summaryrefslogtreecommitdiff
path: root/ftp
diff options
context:
space:
mode:
authorFUJISHIMA Satsuki <sf@FreeBSD.org>2001-08-25 05:44:46 +0000
committerFUJISHIMA Satsuki <sf@FreeBSD.org>2001-08-25 05:44:46 +0000
commit3bfa53e89984d9dc54408c37280b6d9c8a11f91f (patch)
tree968300b43195bfcfa06766a3b422e87dbefc0333 /ftp
parentChase textproc/sablotron's update. (diff)
fix zh_TW locale to be readable on FreeBSD.
Submitted by: clive
Notes
Notes: svn path=/head/; revision=46847
Diffstat (limited to 'ftp')
-rw-r--r--ftp/wget-devel/Makefile13
-rw-r--r--ftp/wget/Makefile13
2 files changed, 22 insertions, 4 deletions
diff --git a/ftp/wget-devel/Makefile b/ftp/wget-devel/Makefile
index c188e70e41b3..16fc2c00eb2e 100644
--- a/ftp/wget-devel/Makefile
+++ b/ftp/wget-devel/Makefile
@@ -7,7 +7,7 @@
PORTNAME= wget
PORTVERSION= 1.7
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= ftp www ipv6
MASTER_SITES= ${MASTER_SITE_GNU} \
ftp://ftp.dl.ac.uk/ccp14/ftp-mirror/wget/pub/unix/util/wget/ \
@@ -24,6 +24,7 @@ PATCH_DIST_STRIP= -p1
MAINTAINER= sf@FreeBSD.org
LIB_DEPENDS= intl.1:${PORTSDIR}/devel/gettext
+BUILD_DEPENDS= giconv:${PORTSDIR}/converters/libiconv
.if !defined(WITHOUT_SSL)
USE_OPENSSL= yes
@@ -36,9 +37,17 @@ CONFIGURE_ENV+= CPPFLAGS=-I${LOCALBASE}/include \
MAN1= wget.1
-# made by broken KAME patch. Already contacted.
post-patch:
+# made by broken KAME patch. Already contacted.
@${RM} -f ${WRKSRC}/po/zh.po*
+# convert utf-8 to Big5 for FreeBSD's default old fashioned gettext.
+ (cd ${WRKSRC}; \
+ ${MV} po/zh_TW.po po/zh_TW.po.utf-8; \
+ ${LOCALBASE}/bin/giconv -f UTF-8 -t BIG5 po/zh_TW.po.utf-8 |\
+ ${SED} -e 's/utf-8/big5/' |\
+ ${PERL} -p -e 's{([\x81-\xfe])\\}{$$1\\\\}g' |\
+ ${PERL} -p -e 's,\\\\([nt\"]),\\$$1,g' \
+ > po/zh_TW.po)
pre-build:
@${RM} -f ${WRKSRC}/doc/wget.info*
diff --git a/ftp/wget/Makefile b/ftp/wget/Makefile
index c188e70e41b3..16fc2c00eb2e 100644
--- a/ftp/wget/Makefile
+++ b/ftp/wget/Makefile
@@ -7,7 +7,7 @@
PORTNAME= wget
PORTVERSION= 1.7
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= ftp www ipv6
MASTER_SITES= ${MASTER_SITE_GNU} \
ftp://ftp.dl.ac.uk/ccp14/ftp-mirror/wget/pub/unix/util/wget/ \
@@ -24,6 +24,7 @@ PATCH_DIST_STRIP= -p1
MAINTAINER= sf@FreeBSD.org
LIB_DEPENDS= intl.1:${PORTSDIR}/devel/gettext
+BUILD_DEPENDS= giconv:${PORTSDIR}/converters/libiconv
.if !defined(WITHOUT_SSL)
USE_OPENSSL= yes
@@ -36,9 +37,17 @@ CONFIGURE_ENV+= CPPFLAGS=-I${LOCALBASE}/include \
MAN1= wget.1
-# made by broken KAME patch. Already contacted.
post-patch:
+# made by broken KAME patch. Already contacted.
@${RM} -f ${WRKSRC}/po/zh.po*
+# convert utf-8 to Big5 for FreeBSD's default old fashioned gettext.
+ (cd ${WRKSRC}; \
+ ${MV} po/zh_TW.po po/zh_TW.po.utf-8; \
+ ${LOCALBASE}/bin/giconv -f UTF-8 -t BIG5 po/zh_TW.po.utf-8 |\
+ ${SED} -e 's/utf-8/big5/' |\
+ ${PERL} -p -e 's{([\x81-\xfe])\\}{$$1\\\\}g' |\
+ ${PERL} -p -e 's,\\\\([nt\"]),\\$$1,g' \
+ > po/zh_TW.po)
pre-build:
@${RM} -f ${WRKSRC}/doc/wget.info*