aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/p5-nkf
diff options
context:
space:
mode:
authornork <nork@FreeBSD.org>2009-04-12 21:42:08 +0800
committernork <nork@FreeBSD.org>2009-04-12 21:42:08 +0800
commit7050bdc5d5f2f45ee9c64f16337d08687f1ba549 (patch)
treeecdd5af18b5f809000ab4f3be27625401fcc8225 /japanese/p5-nkf
parente86636a6e0463d9674147ca573ef4dd62a30a714 (diff)
downloadfreebsd-ports-gnome-7050bdc5d5f2f45ee9c64f16337d08687f1ba549.tar.gz
freebsd-ports-gnome-7050bdc5d5f2f45ee9c64f16337d08687f1ba549.tar.zst
freebsd-ports-gnome-7050bdc5d5f2f45ee9c64f16337d08687f1ba549.zip
Update to 2.0.9.
PR: ports/132453 Submitted by: Tsurutani Naoki turutani at scphys.kyoto-u.ac.jp
Diffstat (limited to 'japanese/p5-nkf')
-rw-r--r--japanese/p5-nkf/Makefile2
-rw-r--r--japanese/p5-nkf/files/patch-NKF.xs33
2 files changed, 34 insertions, 1 deletions
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 */