mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 09:49:18 -04:00
fix zh_TW locale to be readable on FreeBSD.
Submitted by: clive
This commit is contained in:
parent
34b0012e77
commit
3bfa53e899
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=46847
2 changed files with 22 additions and 4 deletions
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
PORTNAME= wget
|
PORTNAME= wget
|
||||||
PORTVERSION= 1.7
|
PORTVERSION= 1.7
|
||||||
PORTREVISION= 2
|
PORTREVISION= 3
|
||||||
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/ \
|
||||||
|
@ -24,6 +24,7 @@ PATCH_DIST_STRIP= -p1
|
||||||
MAINTAINER= sf@FreeBSD.org
|
MAINTAINER= sf@FreeBSD.org
|
||||||
|
|
||||||
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
|
||||||
|
@ -36,9 +37,17 @@ CONFIGURE_ENV+= CPPFLAGS=-I${LOCALBASE}/include \
|
||||||
|
|
||||||
MAN1= wget.1
|
MAN1= wget.1
|
||||||
|
|
||||||
# made by broken KAME patch. Already contacted.
|
|
||||||
post-patch:
|
post-patch:
|
||||||
|
# made by broken KAME patch. Already contacted.
|
||||||
@${RM} -f ${WRKSRC}/po/zh.po*
|
@${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:
|
pre-build:
|
||||||
@${RM} -f ${WRKSRC}/doc/wget.info*
|
@${RM} -f ${WRKSRC}/doc/wget.info*
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
PORTNAME= wget
|
PORTNAME= wget
|
||||||
PORTVERSION= 1.7
|
PORTVERSION= 1.7
|
||||||
PORTREVISION= 2
|
PORTREVISION= 3
|
||||||
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/ \
|
||||||
|
@ -24,6 +24,7 @@ PATCH_DIST_STRIP= -p1
|
||||||
MAINTAINER= sf@FreeBSD.org
|
MAINTAINER= sf@FreeBSD.org
|
||||||
|
|
||||||
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
|
||||||
|
@ -36,9 +37,17 @@ CONFIGURE_ENV+= CPPFLAGS=-I${LOCALBASE}/include \
|
||||||
|
|
||||||
MAN1= wget.1
|
MAN1= wget.1
|
||||||
|
|
||||||
# made by broken KAME patch. Already contacted.
|
|
||||||
post-patch:
|
post-patch:
|
||||||
|
# made by broken KAME patch. Already contacted.
|
||||||
@${RM} -f ${WRKSRC}/po/zh.po*
|
@${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:
|
pre-build:
|
||||||
@${RM} -f ${WRKSRC}/doc/wget.info*
|
@${RM} -f ${WRKSRC}/doc/wget.info*
|
||||||
|
|
Loading…
Add table
Reference in a new issue