Revert 1.43 (usage of msgfmt-new instead of perl(1)-based hack), following is

the explanation I've received:

"msgfmt-new can handle UTF-8 .po, but cant' convert it into big5 .po.
 wget links against legacy gettext libraries, which simply lets garbage
 in and out, doesnt' know what it produces."

Bump PORTREVISION.

Submitted by:	Clive Lin <clive@tongi.org>
This commit is contained in:
Maxim Sobolev 2001-11-14 11:43:11 +00:00
parent 983ef9b69a
commit fa7f2d91f0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=50017
2 changed files with 22 additions and 10 deletions

View file

@ -7,7 +7,7 @@
PORTNAME= wget PORTNAME= wget
PORTVERSION= 1.7 PORTVERSION= 1.7
PORTREVISION= 3 PORTREVISION= 4
CATEGORIES= ftp www ipv6 CATEGORIES= ftp www ipv6
MASTER_SITES= ${MASTER_SITE_GNU} \ MASTER_SITES= ${MASTER_SITE_GNU} \
ftp://ftp.dl.ac.uk/ccp14/ftp-mirror/wget/pub/unix/util/wget/ \ ftp://ftp.dl.ac.uk/ccp14/ftp-mirror/wget/pub/unix/util/wget/ \
@ -23,8 +23,8 @@ PATCH_DIST_STRIP= -p1
MAINTAINER= sf@FreeBSD.org MAINTAINER= sf@FreeBSD.org
BUILD_DEPENDS= msgfmt-new:${PORTSDIR}/devel/gettext-devel
LIB_DEPENDS= intl.1:${PORTSDIR}/devel/gettext LIB_DEPENDS= intl.1:${PORTSDIR}/devel/gettext
BUILD_DEPENDS= giconv:${PORTSDIR}/converters/libiconv
.if !defined(WITHOUT_SSL) .if !defined(WITHOUT_SSL)
USE_OPENSSL= yes USE_OPENSSL= yes
@ -33,9 +33,7 @@ CONFIGURE_ARGS= --with-ssl=${OPENSSLBASE}
USE_GMAKE= yes USE_GMAKE= yes
GNU_CONFIGURE= yes GNU_CONFIGURE= yes
CONFIGURE_ENV+= CPPFLAGS=-I${LOCALBASE}/include \ CONFIGURE_ENV+= CPPFLAGS=-I${LOCALBASE}/include \
LIBS=-L${LOCALBASE}/lib \ LIBS=-L${LOCALBASE}/lib
MSGFMT=${LOCALBASE}/bin/msgfmt-new \
XGETTEXT=${LOCALBASE}/bin/xgettext-new
MAN1= wget.1 MAN1= wget.1
@ -44,6 +42,14 @@ post-patch:
@${RM} -f ${WRKSRC}/po/zh.po* @${RM} -f ${WRKSRC}/po/zh.po*
# we don't need to run autoconf. # we don't need to run autoconf.
${TOUCH} ${WRKSRC}/configure ${TOUCH} ${WRKSRC}/configure
# 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: pre-build:
@${RM} -f ${WRKSRC}/doc/wget.info* @${RM} -f ${WRKSRC}/doc/wget.info*

View file

@ -7,7 +7,7 @@
PORTNAME= wget PORTNAME= wget
PORTVERSION= 1.7 PORTVERSION= 1.7
PORTREVISION= 3 PORTREVISION= 4
CATEGORIES= ftp www ipv6 CATEGORIES= ftp www ipv6
MASTER_SITES= ${MASTER_SITE_GNU} \ MASTER_SITES= ${MASTER_SITE_GNU} \
ftp://ftp.dl.ac.uk/ccp14/ftp-mirror/wget/pub/unix/util/wget/ \ ftp://ftp.dl.ac.uk/ccp14/ftp-mirror/wget/pub/unix/util/wget/ \
@ -23,8 +23,8 @@ PATCH_DIST_STRIP= -p1
MAINTAINER= sf@FreeBSD.org MAINTAINER= sf@FreeBSD.org
BUILD_DEPENDS= msgfmt-new:${PORTSDIR}/devel/gettext-devel
LIB_DEPENDS= intl.1:${PORTSDIR}/devel/gettext LIB_DEPENDS= intl.1:${PORTSDIR}/devel/gettext
BUILD_DEPENDS= giconv:${PORTSDIR}/converters/libiconv
.if !defined(WITHOUT_SSL) .if !defined(WITHOUT_SSL)
USE_OPENSSL= yes USE_OPENSSL= yes
@ -33,9 +33,7 @@ CONFIGURE_ARGS= --with-ssl=${OPENSSLBASE}
USE_GMAKE= yes USE_GMAKE= yes
GNU_CONFIGURE= yes GNU_CONFIGURE= yes
CONFIGURE_ENV+= CPPFLAGS=-I${LOCALBASE}/include \ CONFIGURE_ENV+= CPPFLAGS=-I${LOCALBASE}/include \
LIBS=-L${LOCALBASE}/lib \ LIBS=-L${LOCALBASE}/lib
MSGFMT=${LOCALBASE}/bin/msgfmt-new \
XGETTEXT=${LOCALBASE}/bin/xgettext-new
MAN1= wget.1 MAN1= wget.1
@ -44,6 +42,14 @@ post-patch:
@${RM} -f ${WRKSRC}/po/zh.po* @${RM} -f ${WRKSRC}/po/zh.po*
# we don't need to run autoconf. # we don't need to run autoconf.
${TOUCH} ${WRKSRC}/configure ${TOUCH} ${WRKSRC}/configure
# 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: pre-build:
@${RM} -f ${WRKSRC}/doc/wget.info* @${RM} -f ${WRKSRC}/doc/wget.info*