Date: Sun, 12 Feb 2012 02:51:46 +0900 From: KATO Tsuguru <tkato432@yahoo.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/164999: Update port: print/html2ps-letter to 1.0b7 Message-ID: <20120212025146.44a665b6.tkato432@yahoo.com> Resent-Message-ID: <201202111810.q1BIAFcu084761@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 164999 >Category: ports >Synopsis: Update port: print/html2ps-letter to 1.0b7 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sat Feb 11 18:10:15 UTC 2012 >Closed-Date: >Last-Modified: >Originator: KATO Tsuguru >Release: FreeBSD 7.4-RELEASE-p5 i386 >Organization: >Environment: >Description: - Update to version 1.0b7 New file: files/html2psrc.in Remove file: files/patch-aa pkg-pkist scripts/pre-configure >How-To-Repeat: >Fix: diff -urN /usr/ports/print/html2ps-letter/Makefile print/html2ps-letter/Makefile --- /usr/ports/print/html2ps-letter/Makefile 2012-01-19 15:55:17.000000000 +0900 +++ print/html2ps-letter/Makefile 2012-01-21 06:25:43.000000000 +0900 @@ -6,32 +6,52 @@ # PORTNAME= html2ps -DISTVERSION= 1.0b5 -PORTREVISION= 4 +DISTVERSION= 1.0b7 PORTEPOCH= 1 CATEGORIES= print www perl5 -MASTER_SITES= http://user.it.uu.se/~jan/ +MASTER_SITES= http://user.it.uu.se/~jan/ \ + http://fossies.org/unix/www/ PKGNAMESUFFIX= -${PAPERSIZE} MAINTAINER= ports@FreeBSD.org COMMENT= HTML to PostScript converter -USE_GHOSTSCRIPT_BUILD= yes +LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/COPYING RUN_DEPENDS= mogrify:${PORTSDIR}/graphics/ImageMagick \ ${SITE_PERL}/LWP.pm:${PORTSDIR}/www/p5-libwww \ weblint:${PORTSDIR}/www/weblint -USE_PERL5= YES -NO_BUILD= YES +NO_BUILD= yes +USE_PERL5= yes +USE_GHOSTSCRIPT_RUN= yes -PAPERSIZE?= letter +SUB_FILES= html2psrc +SUB_LIST= PAPERSIZE="${PAPERSIZE}" MAN1= html2ps.1 MAN5= html2psrc.5 -SCRIPTS_ENV+= PERL=${PERL} PAPERSIZE=${PAPERSIZE} +PLIST_FILES= bin/html2ps \ + %%DATADIR%%/html2ps.html \ + %%DATADIR%%/html2psrc \ + %%DATADIR%%/hyphen.tex +PLIST_DIRS= %%DATADIR%% + +PAPERSIZE?= letter + +post-patch: + @${REINPLACE_CMD} -e \ + 's|exec perl|exec ${PERL}| ; \ + s|/it/sw/share/www/lib/html2ps|${DATADIR}|' ${WRKSRC}/html2ps do-install: - @cd ${WRKSRC}; ${PERL} install + ${INSTALL_SCRIPT} ${WRKSRC}/html2ps ${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/html2ps.1 ${MAN1PREFIX}/man/man1 + ${INSTALL_MAN} ${WRKSRC}/html2psrc.5 ${MAN5PREFIX}/man/man5 + @${MKDIR} ${DATADIR} + ${INSTALL_DATA} ${WRKDIR}/html2psrc ${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/html2ps.html ${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/hyphen.tex ${DATADIR} .include <bsd.port.mk> diff -urN /usr/ports/print/html2ps-letter/distinfo print/html2ps-letter/distinfo --- /usr/ports/print/html2ps-letter/distinfo 2011-07-04 02:12:13.000000000 +0900 +++ print/html2ps-letter/distinfo 2012-01-21 04:38:18.000000000 +0900 @@ -1,2 +1,2 @@ -SHA256 (html2ps-1.0b5.tar.gz) = f71e425d5db2eda9578f4f4b019b14da42d39f69a802e5bdb9d4609ae8903e93 -SIZE (html2ps-1.0b5.tar.gz) = 128059 +SHA256 (html2ps-1.0b7.tar.gz) = d553980468a14bae738982c384c17f426ecf77dafd9a4e2499d520953f156f14 +SIZE (html2ps-1.0b7.tar.gz) = 128451 diff -urN /usr/ports/print/html2ps-letter/files/html2psrc.in print/html2ps-letter/files/html2psrc.in --- /usr/ports/print/html2ps-letter/files/html2psrc.in 1970-01-01 09:00:00.000000000 +0900 +++ print/html2ps-letter/files/html2psrc.in 2012-01-21 06:06:51.000000000 +0900 @@ -0,0 +1,23 @@ +/* Global configuration file for html2ps */ + +@html2ps { + package { + ImageMagick: 1; + PerlMagick: 1; + djpeg: 1; + TeX: 1; + dvips: 1; + Ghostscript: 1; + check: weblint; + libwww-perl: 1; + path: "%%LOCALBASE%%/bin"; + } + paper { + type: %%PAPERSIZE%%; + } + hyphenation { + en { + file: "%%DATADIR%%/hyphen.tex"; + } + } +} diff -urN /usr/ports/print/html2ps-letter/files/patch-aa print/html2ps-letter/files/patch-aa --- /usr/ports/print/html2ps-letter/files/patch-aa 2001-01-05 07:36:05.000000000 +0900 +++ print/html2ps-letter/files/patch-aa 1970-01-01 09:00:00.000000000 +0900 @@ -1,49 +0,0 @@ ---- install.orig Thu Aug 17 00:42:03 2000 -+++ install Thu Jan 4 17:23:05 2001 -@@ -1,5 +1,5 @@ - : # Use perl --eval 'exec perl -S $0 "$@"' -+eval 'exec !!PERL5!! -S $0 "$@"' - if $running_under_some_shell; - - $vid=103; -@@ -17,7 +17,7 @@ - $pathsep = ':'; - $dirsep = '/'; - $sys = 'unix'; -- $prefix = '/usr/local'; -+ $prefix = "!!PREFIX!!"; - } elsif (-e 'nul') { - $pathsep = ';'; - $dirsep = '\\'; -@@ -198,9 +198,9 @@ - $ht = "\nTo use the automatic hyphenation feature, hyphenation pattern files\n" - ."from the TeX distribution are needed."; - $cophy = 1; --if($exist{'TeX'}) { -+if($exist{'share'}) { - $hfile = ""; -- ($texdir = $dir{'TeX'}) =~ s|/bin$||; -+ ($texdir = $dir{'share'}) =~ s|/bin$||; - SW:for("texmf/tex/generic/hyphen","macros","inputs","lib/macros", - "lib/inputs","lib/tex/macros","lib/tex/inputs") { - if(-f "$texdir/$_/ushyph1.tex") { -@@ -272,7 +272,7 @@ - &makedir($html,$def); - - $paper = ""; --&getval($format, "A4", -+&getval($format, "!!PAPERSIZE!!", - "\nEnter the default paper type, possible choices are:\nA0, A1, A2, A3, A4," - ." A5, A6, A7, A8, A9, A10,\nB0, B1, B2, B3, B4, B5, B6, B7, B8, B9, B10,\n" - ."letter, legal, arche, archd, archc, archb, archa,\nflsa, flse, halfletter," -@@ -419,8 +419,7 @@ - - sub getval { - $text = $_[1]? "$_[2] [$_[1]]": $_[2]; -- print "$text: "; -- ($_[0] = <STDIN>) =~ s/^\s+|[\/\s]+$//g; -+ print "$text: $_[1]\n"; - $_[0] = $_[1] if(!$_[0]); - } - sub inst { diff -urN /usr/ports/print/html2ps-letter/pkg-plist print/html2ps-letter/pkg-plist --- /usr/ports/print/html2ps-letter/pkg-plist 1998-10-20 10:45:53.000000000 +0900 +++ print/html2ps-letter/pkg-plist 1970-01-01 09:00:00.000000000 +0900 @@ -1,5 +0,0 @@ -bin/html2ps -lib/html2ps/html2ps.html -lib/html2ps/html2psrc -lib/html2ps/hyphen.tex -@dirrm lib/html2ps diff -urN /usr/ports/print/html2ps-letter/scripts/pre-configure print/html2ps-letter/scripts/pre-configure --- /usr/ports/print/html2ps-letter/scripts/pre-configure 1999-09-10 17:27:35.000000000 +0900 +++ print/html2ps-letter/scripts/pre-configure 1970-01-01 09:00:00.000000000 +0900 @@ -1,9 +0,0 @@ -#! /bin/sh - -perl -pi -e "s=!!PREFIX!!=$PREFIX=" ${WRKSRC}/install -perl -pi -e "s=!!PERL5!!=$PERL=" ${WRKSRC}/install -perl -pi -e "s=!!PAPERSIZE!!=$PAPERSIZE=" ${WRKSRC}/install -perl -pi -e "s=!!PREFIX!!=$PREFIX=" ${WRKSRC}/html2ps -perl -pi -e "s=!!PERL5!!=$PERL=" ${WRKSRC}/html2ps - -exit 0 >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120212025146.44a665b6.tkato432>