diff options
-rw-r--r-- | japanese/nkf/Makefile | 7 | ||||
-rw-r--r-- | japanese/nkf/distinfo | 6 | ||||
-rw-r--r-- | japanese/nkf/files/patch-aa | 40 | ||||
-rw-r--r-- | japanese/p5-nkf/Makefile | 2 | ||||
-rw-r--r-- | japanese/p5-nkf/files/patch-NKF.xs | 33 |
5 files changed, 62 insertions, 26 deletions
diff --git a/japanese/nkf/Makefile b/japanese/nkf/Makefile index 513459c68fa8..7a22fe1a3879 100644 --- a/japanese/nkf/Makefile +++ b/japanese/nkf/Makefile @@ -6,19 +6,16 @@ # PORTNAME= nkf -PORTVERSION= 2.0.7 +PORTVERSION= 2.0.9 PORTEPOCH= 1 CATEGORIES?= japanese MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_JP} -MASTER_SITE_SUBDIR= ${PORTNAME}/20770 +MASTER_SITE_SUBDIR= ${PORTNAME}/37177 PKGNAMEPREFIX?= ja- -DISTNAME= ${PORTNAME}${PORTVERSION:S/.//g} MAINTAINER= nork@FreeBSD.org COMMENT?= Network Kanji code conversion Filter -WRKSRC?= ${WRKDIR}/${PORTNAME}${PORTVERSION:S/.//g} - .if ${PKGNAMEPREFIX} != "ja-p5-" MAN1= nkf.1 MANLANG= "" ja diff --git a/japanese/nkf/distinfo b/japanese/nkf/distinfo index 5f6c106f2814..84b4809d45ba 100644 --- a/japanese/nkf/distinfo +++ b/japanese/nkf/distinfo @@ -1,3 +1,3 @@ -MD5 (nkf207.tar.gz) = af11dcd3fe71d67831c020e3bfd5073b -SHA256 (nkf207.tar.gz) = 71d2ba992df209a00bb1dca45e3336729dc16e51b71526bd20f897cc6127a275 -SIZE (nkf207.tar.gz) = 150501 +MD5 (nkf-2.0.9.tar.gz) = 0dadcf178785c87874822a2ff8da9f19 +SHA256 (nkf-2.0.9.tar.gz) = 3b2a972437e425c2c1e2786f20d74deaaf06bb7386eaa2925dfd5a772198f81f +SIZE (nkf-2.0.9.tar.gz) = 157686 diff --git a/japanese/nkf/files/patch-aa b/japanese/nkf/files/patch-aa index 8ce6c794964e..86eca49eafa6 100644 --- a/japanese/nkf/files/patch-aa +++ b/japanese/nkf/files/patch-aa @@ -1,11 +1,10 @@ ---- Makefile.orig Mon Jun 19 23:04:35 2006 -+++ Makefile Sun Jul 2 21:44:28 2006 -@@ -1,17 +1,27 @@ +--- Makefile.orig 2009-01-20 18:49:31.000000000 +0900 ++++ Makefile 2009-04-12 22:30:54.667420352 +0900 +@@ -1,15 +1,19 @@ -CC = cc --CFLAGS = -O -+PREFIX?= /usr/local +-CFLAGS = -O -Wall -pedantic +CC?= cc -+CFLAGS?= -O -Wall ++CFLAGS?= -O -Wall -pedantic # CFLAGS = -O3 SHAR = shar # SHAR = shar -T @@ -13,22 +12,29 @@ -RM = rm -rf +PERL?= perl +RM?= rm -rf + VERSION = 2.0.9 +-prefix = /usr/local ++PREFIX?= /usr/local +INSTALL?= /usr/bin/install +BSD_INSTALL_PROGRAM?= ${INSTALL} -s -o root -g wheel -m 555 +BSD_INSTALL_MAN?= ${INSTALL} -o root -g wheel -m 444 - VERSION = 207 - nkf : nkf.c config.h utf8tbl.o - $(CC) $(CFLAGS) -o nkf nkf.c utf8tbl.o + nkf : nkf.o utf8tbl.o + $(CC) $(CFLAGS) -o nkf nkf.o utf8tbl.o + ./nkf -e nkf.1j > nkf.1j.euc - utf8tbl.o : utf8tbl.c config.h - $(CC) $(CFLAGS) -c utf8tbl.c -+ -+install: -+ ${BSD_INSTALL_PROGRAM} nkf ${PREFIX}/bin -+ ${BSD_INSTALL_MAN} nkf.1 ${PREFIX}/man/man1/nkf.1 + nkf.o : nkf.c nkf.h utf8tbl.h config.h + $(CC) $(CFLAGS) -c nkf.c +@@ -31,9 +35,9 @@ + make test ) + + install: +- cp nkf $(prefix)/bin/ +- cp nkf.1 $(prefix)/man/man1/ +- cp nkf.1j $(prefix)/man/ja/man1/nkf.1 ++ ${BSD_INSTALL_PRGRAM} nkf ${PREFIX}/bin/ ++ ${BSD_INSTALL_MAN} nkf.1 ${PREFIX}/man/man1/ + ${BSD_INSTALL_MAN} nkf.1j.euc ${PREFIX}/man/ja/man1/nkf.1 - clean: - -$(RM) nkf.o nkf nkf.in nkf.out nkf$(VERSION) *~ *.bad utf8tbl.o + shar: + -mkdir nkf-$(VERSION) diff --git a/japanese/p5-nkf/Makefile b/japanese/p5-nkf/Makefile index 309f89d395ac..269b854ab6ce 100644 --- a/japanese/p5-nkf/Makefile +++ b/japanese/p5-nkf/Makefile @@ -14,7 +14,7 @@ DESCR= ${.CURDIR}/pkg-descr PLIST= ${.CURDIR}/pkg-plist PERL_CONFIGURE= yes -WRKSRC= ${WRKDIR}/${PORTNAME}${PORTVERSION:S/.//g}/NKF.mod +WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/NKF.mod PATCHDIR= ${.CURDIR}/files MAN3= NKF.3 diff --git a/japanese/p5-nkf/files/patch-NKF.xs b/japanese/p5-nkf/files/patch-NKF.xs new file mode 100644 index 000000000000..60472da4840d --- /dev/null +++ b/japanese/p5-nkf/files/patch-NKF.xs @@ -0,0 +1,33 @@ +--- NKF.xs.orig 2009-01-20 18:49:31.000000000 +0900 ++++ NKF.xs 2009-04-12 22:34:31.574328548 +0900 +@@ -95,7 +95,10 @@ + + #define PERL_XS 1 + #include "../utf8tbl.c" ++#undef SP + #include "../nkf.c" ++#undef SP ++#define SP sp /* perl's CORE/pp.h */ + + /* package defenition */ + +@@ -134,9 +137,6 @@ + data = SvPV(ST(argc),i_len); + input_ctr = 0; + +- if(x0201_f == WISH_TRUE) +- x0201_f = ((!iso2022jp_f)? TRUE : NO_X0201); +- + /* allocate the result buffer */ + + /* During conversion, stirngs length may grow. This is the unit */ +@@ -178,9 +178,6 @@ + data = SvPV(ST(0),i_len); + input_ctr = 0; + +- if(x0201_f == WISH_TRUE) +- x0201_f = ((!iso2022jp_f)? TRUE : NO_X0201); +- + /* allocate the result buffer */ + + /* During conversion, stirngs length may grow. This is the unit */ |