aboutsummaryrefslogtreecommitdiff
path: root/japanese/p5-nkf
diff options
context:
space:
mode:
authorNorikatsu Shigemura <nork@FreeBSD.org>2009-04-12 13:42:08 +0000
committerNorikatsu Shigemura <nork@FreeBSD.org>2009-04-12 13:42:08 +0000
commit76af5fda937e9417b5c727be8b30134b6d568901 (patch)
tree22373f6fd88969d126c798502eb3acbd6226371e /japanese/p5-nkf
parent5be96b6d45063b8595d46dd860e52b250b485d1f (diff)
downloadports-76af5fda937e9417b5c727be8b30134b6d568901.tar.gz
ports-76af5fda937e9417b5c727be8b30134b6d568901.zip
Update to 2.0.9.
PR: ports/132453 Submitted by: Tsurutani Naoki turutani at scphys.kyoto-u.ac.jp
Notes
Notes: svn path=/head/; revision=232210
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 */