svn commit: r331259 - in head/japanese/a2ps: . files
Hiroki Sato
hrs at FreeBSD.org
Tue Oct 22 12:28:19 UTC 2013
Author: hrs
Date: Tue Oct 22 12:28:18 2013
New Revision: 331259
URL: http://svnweb.freebsd.org/changeset/ports/331259
Log:
- Use shebangfix.
- Fix a missing USES=perl5. ${PERL} was empty.
- Add STAGEDIR support.
PR: ports/183200
Modified:
head/japanese/a2ps/Makefile
head/japanese/a2ps/files/patch-a2ps-j
Modified: head/japanese/a2ps/Makefile
==============================================================================
--- head/japanese/a2ps/Makefile Tue Oct 22 12:14:10 2013 (r331258)
+++ head/japanese/a2ps/Makefile Tue Oct 22 12:28:18 2013 (r331259)
@@ -3,7 +3,7 @@
PORTNAME= a2ps
PORTVERSION= 1.45
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= japanese print
MASTER_SITES= ftp://ftp.sra.co.jp/pub/lang/perl/sra-scripts/ \
${MASTER_SITE_LOCAL:S|%SUBDIR%|tota/a2ps|}
@@ -17,6 +17,10 @@ LICENSE= BSD
RUN_DEPENDS= paperconf:${PORTSDIR}/print/libpaper
+USES= perl5 shebangfix
+USE_PERL5= run
+SHEBANG_FILES= ${WRKDIR}/a2ps-j
+perl_OLD_CMD= /usr/local/bin/perl
PLIST_FILES= bin/a2ps-j
EXTRACT_CMD= ${INSTALL_SCRIPT}
EXTRACT_BEFORE_ARGS= # empty
@@ -24,14 +28,10 @@ EXTRACT_AFTER_ARGS= a2ps-j
NO_WRKSUBDIR= yes
NO_BUILD= yes
-NO_STAGE= yes
post-patch:
- ${REINPLACE_CMD} \
- -e 's,%%PERL%%,${PERL},' \
- -e 's,%%LOCALBASE%%,${LOCALBASE},' \
- ${WRKDIR}/a2ps-j
+ ${REINPLACE_CMD} -e 's,%%LOCALBASE%%,${LOCALBASE},' ${WRKDIR}/a2ps-j
do-install:
- ${INSTALL_SCRIPT} ${WRKDIR}/a2ps-j ${PREFIX}/bin
+ ${INSTALL_SCRIPT} ${WRKDIR}/a2ps-j ${STAGEDIR}${PREFIX}/bin
.include <bsd.port.mk>
Modified: head/japanese/a2ps/files/patch-a2ps-j
==============================================================================
--- head/japanese/a2ps/files/patch-a2ps-j Tue Oct 22 12:14:10 2013 (r331258)
+++ head/japanese/a2ps/files/patch-a2ps-j Tue Oct 22 12:28:18 2013 (r331259)
@@ -1,11 +1,5 @@
---- a2ps-j.orig 2013-05-01 15:12:22.000000000 +0900
-+++ a2ps-j 2013-05-01 15:12:32.000000000 +0900
-@@ -1,4 +1,4 @@
--#!/usr/local/bin/perl
-+#!%%PERL%%
- ;#
- ;# a2ps: ascii to ps
- ;#
+--- a2ps-j.orig 2013-10-22 21:19:43.000000000 +0900
++++ a2ps-j 2013-10-22 21:20:30.000000000 +0900
@@ -51,14 +51,23 @@
@mon{@mon} = ($[ .. $#mon);
@day{@day} = ($[ .. $#day);
More information about the svn-ports-all
mailing list