diff options
author | tota <tota@FreeBSD.org> | 2011-10-04 05:48:36 +0800 |
---|---|---|
committer | tota <tota@FreeBSD.org> | 2011-10-04 05:48:36 +0800 |
commit | d23e9443604b3a1d279afbf849e3426c5822bef3 (patch) | |
tree | c9bb04be1ab0cab2cefde0121d7d71721d527ab2 /japanese | |
parent | 4f3a24621a0655275f05e1c0513f4d12681cd9f3 (diff) | |
download | freebsd-ports-gnome-d23e9443604b3a1d279afbf849e3426c5822bef3.tar.gz freebsd-ports-gnome-d23e9443604b3a1d279afbf849e3426c5822bef3.tar.zst freebsd-ports-gnome-d23e9443604b3a1d279afbf849e3426c5822bef3.zip |
- Add a patch to fix deprecated defined(%hash) issue
PR: ports/160174
Submitted by: Takefu <takefu_AT_airport_DOT_fm>
Diffstat (limited to 'japanese')
-rw-r--r-- | japanese/jcode.pl/Makefile | 15 | ||||
-rw-r--r-- | japanese/jcode.pl/files/patch-jcode.pl | 20 |
2 files changed, 27 insertions, 8 deletions
diff --git a/japanese/jcode.pl/Makefile b/japanese/jcode.pl/Makefile index 0184220bec12..1f4f4aed7e74 100644 --- a/japanese/jcode.pl/Makefile +++ b/japanese/jcode.pl/Makefile @@ -7,10 +7,10 @@ PORTNAME= jcode.pl PORTVERSION= 2.13 +PORTREVISION= 1 CATEGORIES= japanese perl5 MASTER_SITES= ftp://ftp.iij.ad.jp/pub/IIJ/dist/utashiro/perl/ \ - ftp://ftp.sra.co.jp/pub/lang/perl/sra-scripts/ \ - http://srekcah.org/jcode/ + ftp://ftp.sra.co.jp/pub/lang/perl/sra-scripts/ EXTRACT_SUFX= # none MAINTAINER= ports@FreeBSD.org @@ -20,13 +20,12 @@ USE_PERL5_RUN= yes NO_WRKSUBDIR= yes NO_BUILD= yes EXTRACT_CMD= ${CP} -EXTRACT_BEFORE_ARGS= -EXTRACT_AFTER_ARGS= . - -PLIST_FILES= %%SITE_PERL%%/${PORTNAME} +EXTRACT_BEFORE_ARGS= # none +EXTRACT_AFTER_ARGS= ${WRKDIR}/${PORTNAME} +PLIST_FILES= ${SITE_PERL_REL}/${PORTNAME} do-install: - ${MKDIR} ${PREFIX}/${SITE_PERL_REL}/ - ${INSTALL_DATA} ${WRKDIR}/${DISTNAME} ${PREFIX}/${SITE_PERL_REL}/${PORTNAME} + ${MKDIR} ${PREFIX}/${SITE_PERL_REL} + ${INSTALL_DATA} ${WRKDIR}/${PORTNAME} ${PREFIX}/${SITE_PERL_REL}/ .include <bsd.port.mk> diff --git a/japanese/jcode.pl/files/patch-jcode.pl b/japanese/jcode.pl/files/patch-jcode.pl new file mode 100644 index 000000000000..6d9cd45a0813 --- /dev/null +++ b/japanese/jcode.pl/files/patch-jcode.pl @@ -0,0 +1,20 @@ +--- jcode.pl.orig 2010-07-28 14:46:52.000000000 +0900 ++++ jcode.pl 2010-07-28 14:51:52.000000000 +0900 +@@ -681,7 +681,7 @@ + + sub z2h_euc { + local(*s, $n) = @_; +- &init_z2h_euc unless defined %z2h_euc; ++ &init_z2h_euc unless %z2h_euc; + $s =~ s/($re_euc_c|$re_euc_kana)/ + $z2h_euc{$1} ? ($n++, $z2h_euc{$1}) : $1 + /geo; +@@ -690,7 +690,7 @@ + + sub z2h_sjis { + local(*s, $n) = @_; +- &init_z2h_sjis unless defined %z2h_sjis; ++ &init_z2h_sjis unless %z2h_sjis; + $s =~ s/($re_sjis_c)/$z2h_sjis{$1} ? ($n++, $z2h_sjis{$1}) : $1/geo; + $n; + } |