summaryrefslogtreecommitdiff
path: root/print/html2ps
diff options
context:
space:
mode:
authorsbd <sbd@pkgsrc.org>2010-05-06 09:17:27 +0000
committersbd <sbd@pkgsrc.org>2010-05-06 09:17:27 +0000
commit611e355be8e02a68dc3530c4721179ce21ccdcde (patch)
treede0110192025c50279b6c22209b39f13b92ae14b /print/html2ps
parent733e9fa064f6ddba93962bfd3d7c38d8d06575dc (diff)
downloadpkgsrc-611e355be8e02a68dc3530c4721179ce21ccdcde.tar.gz
honor PKGMANDIR, from PR 42329
Diffstat (limited to 'print/html2ps')
-rw-r--r--print/html2ps/Makefile4
-rw-r--r--print/html2ps/distinfo4
-rw-r--r--print/html2ps/patches/patch-aa41
3 files changed, 34 insertions, 15 deletions
diff --git a/print/html2ps/Makefile b/print/html2ps/Makefile
index 59069092df0..7eaf4d6f752 100644
--- a/print/html2ps/Makefile
+++ b/print/html2ps/Makefile
@@ -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 @@ NO_BUILD= yes
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 --git a/print/html2ps/distinfo b/print/html2ps/distinfo
index 179ebaba56f..7088e7e9f45 100644
--- a/print/html2ps/distinfo
+++ b/print/html2ps/distinfo
@@ -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 --git a/print/html2ps/patches/patch-aa b/print/html2ps/patches/patch-aa
index df715b12e43..4677a4cd9b3 100644
--- a/print/html2ps/patches/patch-aa
+++ b/print/html2ps/patches/patch-aa
@@ -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 @@ $NetBSD: patch-aa,v 1.5 2009/03/08 19:17:11 minskim Exp $
print "\n";
for $req (@perl) {
-@@ -134,19 +134,22 @@ if(@reqpath) {
+@@ -134,19 +135,22 @@ if(@reqpath) {
chop ($cd = `pwd`);
@@ -57,7 +58,7 @@ $NetBSD: patch-aa,v 1.5 2009/03/08 19:17:11 minskim Exp $
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 @@ $NetBSD: patch-aa,v 1.5 2009/03/08 19:17:11 minskim Exp $
"\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 @@ $NetBSD: patch-aa,v 1.5 2009/03/08 19:17:11 minskim Exp $
"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 @@ $NetBSD: patch-aa,v 1.5 2009/03/08 19:17:11 minskim Exp $
} 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 @@ $NetBSD: patch-aa,v 1.5 2009/03/08 19:17:11 minskim Exp $
"\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 @@ $NetBSD: patch-aa,v 1.5 2009/03/08 19:17:11 minskim Exp $
."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 @@ $NetBSD: patch-aa,v 1.5 2009/03/08 19:17:11 minskim Exp $
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 {