From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Feb 11 18:10:15 2012 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EAADA106566B for ; Sat, 11 Feb 2012 18:10:15 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id C60D58FC20 for ; Sat, 11 Feb 2012 18:10:15 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q1BIAFCe084762 for ; Sat, 11 Feb 2012 18:10:15 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q1BIAFcu084761; Sat, 11 Feb 2012 18:10:15 GMT (envelope-from gnats) Resent-Date: Sat, 11 Feb 2012 18:10:15 GMT Resent-Message-Id: <201202111810.q1BIAFcu084761@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, KATO Tsuguru Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F1F7F106564A for ; Sat, 11 Feb 2012 18:04:13 +0000 (UTC) (envelope-from tkato432@yahoo.com) Received: from msa105lp.auone-net.jp (msa105lp.auone-net.jp [222.3.140.168]) by mx1.freebsd.org (Postfix) with ESMTP id 9934A8FC15 for ; Sat, 11 Feb 2012 18:04:13 +0000 (UTC) Received: from localhost.localdomain (ZT037109.ppp.dion.ne.jp [59.128.37.109]) by msa105lp.auone-net.jp (au one net msa) with ESMTP id 504F250037 for ; Sun, 12 Feb 2012 03:04:10 +0900 (JST) Message-Id: <20120212025146.44a665b6.tkato432@yahoo.com> Date: Sun, 12 Feb 2012 02:51:46 +0900 From: KATO Tsuguru To: FreeBSD-gnats-submit@FreeBSD.org Cc: Subject: ports/164999: Update port: print/html2ps-letter to 1.0b7 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Feb 2012 18:10:16 -0000 >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 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] = ) =~ 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: