pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/print/html2ps honor PKGMANDIR, from PR 42329



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f371c0849e93
branches:  trunk
changeset: 575224:f371c0849e93
user:      sbd <sbd%pkgsrc.org@localhost>
date:      Thu May 06 09:17:27 2010 +0000

description:
honor PKGMANDIR, from PR 42329

diffstat:

 print/html2ps/Makefile         |   4 ++--
 print/html2ps/distinfo         |   4 ++--
 print/html2ps/patches/patch-aa |  41 ++++++++++++++++++++++++++++++-----------
 3 files changed, 34 insertions(+), 15 deletions(-)

diffs (146 lines):

diff -r 9471665eaf43 -r f371c0849e93 print/html2ps/Makefile
--- a/print/html2ps/Makefile    Thu May 06 09:15:55 2010 +0000
+++ b/print/html2ps/Makefile    Thu May 06 09:17:27 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.27 2010/01/27 18:21:56 joerg Exp $
+# $NetBSD: Makefile,v 1.28 2010/05/06 09:17:27 sbd Exp $
 #
 
 DISTNAME=      html2ps-1.0b4
@@ -28,7 +28,7 @@
 
 do-install:
        ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/html2ps
-       @cd ${WRKSRC} && PATH=${LOCALBASE}/bin:${PREFIX}/bin ./install ${DESTDIR}${PREFIX}
+       @cd ${WRKSRC} && PATH=${LOCALBASE}/bin:${PREFIX}/bin ./install ${DESTDIR}${PREFIX} ${PKGMANDIR}
        @${INSTALL_DATA} ${WRKSRC}/sample ${DESTDIR}${PREFIX}/share/html2ps/sample.rc
 
 .include "../../mk/bsd.pkg.mk"
diff -r 9471665eaf43 -r f371c0849e93 print/html2ps/distinfo
--- a/print/html2ps/distinfo    Thu May 06 09:15:55 2010 +0000
+++ b/print/html2ps/distinfo    Thu May 06 09:17:27 2010 +0000
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.8 2009/03/08 19:17:10 minskim Exp $
+$NetBSD: distinfo,v 1.9 2010/05/06 09:17:27 sbd Exp $
 
 SHA1 (html2ps-1.0b4.tar.gz) = 09b1b6678e08eb08c49113e4837f0ac91942c095
 RMD160 (html2ps-1.0b4.tar.gz) = 248a6319eaddbf5fc342fd9150c6c8cb67c7df1f
 Size (html2ps-1.0b4.tar.gz) = 127901 bytes
-SHA1 (patch-aa) = 88a63b4ae589c5b46c5bbc9baa437e2e5c764f22
+SHA1 (patch-aa) = 000b6b9f01e233948943d7ac9402a4ad0038f8aa
 SHA1 (patch-ab) = b541a724106572e2d82dfc9a73b3e11b22a9136b
diff -r 9471665eaf43 -r f371c0849e93 print/html2ps/patches/patch-aa
--- a/print/html2ps/patches/patch-aa    Thu May 06 09:15:55 2010 +0000
+++ b/print/html2ps/patches/patch-aa    Thu May 06 09:17:27 2010 +0000
@@ -1,17 +1,18 @@
-$NetBSD: patch-aa,v 1.5 2009/03/08 19:17:11 minskim Exp $
+$NetBSD: patch-aa,v 1.6 2010/05/06 09:17:27 sbd Exp $
 
 --- install.orig       2005-03-03 12:25:29.000000000 +0000
 +++ install
-@@ -17,7 +17,7 @@ if(-e '/dev/null') {
+@@ -17,7 +17,8 @@ if(-e '/dev/null') {
      $pathsep = ':';
      $dirsep = '/';
      $sys = 'unix';
 -    $prefix = '/usr/local';
 +    $prefix = $ARGV[0];
++    $mandir = $ARGV[1];
  } elsif (-e 'nul') {
      $pathsep = ';';
      $dirsep = '\\';
-@@ -57,8 +57,8 @@ where the abovementioned packages are. Y
+@@ -57,8 +58,8 @@ where the abovementioned packages are. Y
  the directories where the files should be placed.
  EOD
  
@@ -22,7 +23,7 @@
  
  print "\n";
  for $req (@perl) {
-@@ -134,19 +134,22 @@ if(@reqpath) {
+@@ -134,19 +135,22 @@ if(@reqpath) {
  
  chop ($cd = `pwd`);
  
@@ -57,7 +58,7 @@
  
  if($def) {
      $bindir = "$prefix${dirsep}bin";
-@@ -159,9 +162,9 @@ if($def) {
+@@ -159,9 +163,9 @@ if($def) {
  &makedir($bindir,$def);
  
  if($def) {
@@ -69,7 +70,25 @@
       "\nEnter the the directory where the global configuration file for\n"
      ."html2ps should be put");
      $glob =~ s|/$||g;
-@@ -198,7 +201,7 @@ $cophy = 1;
+@@ -174,7 +178,7 @@ if(-f "$glob${dirsep}html2psrc") {
+ }
+ 
+ if($def) {
+-    $man1 = "$prefix${dirsep}man${dirsep}man1";
++    $man1 = "$prefix${dirsep}${mandir}${dirsep}man1";
+ } else {
+     &getval($man1, "$prefix${dirsep}man${dirsep}man1",
+      "\nEnter the directory for the html2ps manual page");
+@@ -183,7 +187,7 @@ if($def) {
+ &makedir($man1,$def);
+ 
+ if($def) {
+-    $man5 = "$prefix${dirsep}man${dirsep}man5";
++    $man5 = "$prefix${dirsep}${mandir}${dirsep}man5";
+ } else {
+     &getval($man5, "$prefix${dirsep}man${dirsep}man5",
+      "\nEnter the directory for the manual page describing the configuration\n"
+@@ -198,7 +202,7 @@ $cophy = 1;
  if($exist{'TeX'}) {
      $hfile = "";
      ($texdir = $dir{'TeX'}) =~ s|/bin$||;
@@ -78,7 +97,7 @@
          "lib/inputs","lib/tex/macros","lib/tex/inputs") {
          if(-f "$texdir/$_/ushyph1.tex") {
              $hyph = "$texdir/$_";
-@@ -212,15 +215,15 @@ if($exist{'TeX'}) {
+@@ -212,15 +216,15 @@ if($exist{'TeX'}) {
          }
      }
      if($hfile) {
@@ -102,7 +121,7 @@
      } else {
          &getval($hfile, "", "$ht I cannot find the pattern\nfile for English "
           ."in your TeX installation. (It should be called\n'hyphen.tex', "
-@@ -236,9 +239,9 @@ if($exist{'TeX'}) {
+@@ -236,9 +240,9 @@ if($exist{'TeX'}) {
      }
      if(!$hfile) {
          if($def) {
@@ -114,7 +133,7 @@
               "\nOK, I will use the supplied pattern file for English. Enter "
              ."the directory\nwhere this file should be put");
              &fixdir($hyph);
-@@ -246,9 +249,9 @@ if($exist{'TeX'}) {
+@@ -246,9 +250,9 @@ if($exist{'TeX'}) {
      }
  } else {
      if($def) {
@@ -126,7 +145,7 @@
       ."included with html2ps (see the documentation how to install pattern\n"
       ."files for other languages). Enter the directory where this file\n"
       ."should be put");
-@@ -260,20 +263,21 @@ if($cophy) {
+@@ -260,20 +264,21 @@ if($cophy) {
  }
  
  if($def) {
@@ -156,7 +175,7 @@
  if($format !~ /^other$/i) {
      $paper .= "    type: $format;";
  } else {
-@@ -431,7 +435,7 @@ sub inst {
+@@ -431,7 +436,7 @@ sub inst {
      copy $from => $_[0].$dirsep.$_[1] or die "*** Cannot write to $_[0]\n";
  }
  sub goodprefix {



Home | Main Index | Thread Index | Old Index