diff options
author | obrien <obrien@FreeBSD.org> | 2002-11-13 15:19:13 +0800 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2002-11-13 15:19:13 +0800 |
commit | cbb0599a66d01650aedd9ffee6247bbb497953d5 (patch) | |
tree | aa83bfce864cc1656f3c8ff381506bd5f8e32854 /vietnamese | |
parent | ced4db9842c479d66f686d5fbd50d8a0cb8c41e3 (diff) | |
download | freebsd-ports-gnome-cbb0599a66d01650aedd9ffee6247bbb497953d5.tar.gz freebsd-ports-gnome-cbb0599a66d01650aedd9ffee6247bbb497953d5.tar.zst freebsd-ports-gnome-cbb0599a66d01650aedd9ffee6247bbb497953d5.zip |
Perl script to convert the text in the VIQR encoding to another Vietnamese
encoding (such as TCVN, VISCII, VPS, VNI, ...).
Diffstat (limited to 'vietnamese')
-rw-r--r-- | vietnamese/Makefile | 1 | ||||
-rw-r--r-- | vietnamese/vi2vn/Makefile | 58 | ||||
-rw-r--r-- | vietnamese/vi2vn/distinfo | 1 | ||||
-rw-r--r-- | vietnamese/vi2vn/pkg-comment | 1 | ||||
-rw-r--r-- | vietnamese/vi2vn/pkg-descr | 2 | ||||
-rw-r--r-- | vietnamese/vi2vn/pkg-plist | 5 |
6 files changed, 68 insertions, 0 deletions
diff --git a/vietnamese/Makefile b/vietnamese/Makefile index ca26001e116e..664542a3128e 100644 --- a/vietnamese/Makefile +++ b/vietnamese/Makefile @@ -3,6 +3,7 @@ SUBDIR += libviet SUBDIR += unicode-uhoai + SUBDIR += vi2vn SUBDIR += vis2u SUBDIR += vn7to8 SUBDIR += vnconvert diff --git a/vietnamese/vi2vn/Makefile b/vietnamese/vi2vn/Makefile new file mode 100644 index 000000000000..5c4ce7e45218 --- /dev/null +++ b/vietnamese/vi2vn/Makefile @@ -0,0 +1,58 @@ +# ex:ts=8 +# Ports collection makefile for: vi2vn +# Date created: Monday, Nov 11, 2002 +# Whom: David O'Brien (obrien@NUXI.org) +# +# $FreeBSD$ +# + +PORTNAME= vi2vn +PORTVERSION= 0.64 +CATEGORIES= vietnamese +MASTER_SITES= http://linux.nguyendai.org/ +DISTNAME= ${PORTNAME}-${PORTVERSION}-1.src +EXTRACT_SUFX= .rpm + +MAINTAINER= obrien@FreeBSD.org + +PORTCOMMENT= Converts Vietnamese VIQR text into troff format + +BUILD_DEPENDS= rpm2cpio:${PORTSDIR}/archivers/rpm2cpio + +EXTRACT_CMD= rpm2cpio +EXTRACT_BEFORE_ARGS= +EXTRACT_AFTER_ARGS= |cpio -idum +WRKSRC= ${WRKDIR}/${PORTNAME} +USE_REINPLACE= yes +NO_BUILD= yes +MAN1= ${PORTNAME}.1 + +post-extract: + @if ! (cd ${WRKDIR} && ${GZIP_CMD} -dc vi2vn.tgz | ${TAR} -xf -);\ + then exit 1; fi + +post-patch: + @${REINPLACE_CMD} -e 's|/usr/local/|${PREFIX}/|g' ${WRKSRC}/${PORTNAME}* + +do-install: + ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/${MAN1} ${PREFIX}/man/man1 + ${MKDIR} ${PREFIX}/share/${PORTNAME} + ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.lib ${PREFIX}/share/${PORTNAME} + ${CP} -R ${WRKSRC}/enc ${PREFIX}/share/${PORTNAME} + +post-install: + @cd ${PREFIX} ;\ + ${FIND} share/${PORTNAME} -type f -o -type l >${WRKDIR}/PLIST.share + @cd ${PREFIX} ;\ + ${FIND} share/${PORTNAME} -type d \ + | sort -r | ${SED} -e 's/^/@dirrm /g' >>${WRKDIR}/PLIST.share + @${ECHO_CMD} "r ${TMPPLIST}" > ${WRKDIR}/ex.script + @${ECHO_CMD} "/Insert PLIST.share" >> ${WRKDIR}/ex.script + @${ECHO_CMD} "d" >> ${WRKDIR}/ex.script + @${ECHO_CMD} "r ${WRKDIR}/PLIST.share" >> ${WRKDIR}/ex.script + @${ECHO_CMD} "x!" >> ${WRKDIR}/ex.script + @${CP} -p ${TMPPLIST} ${TMPPLIST}.pre-share + @cd ${WRKDIR} ; ex < ex.script + +.include <bsd.port.mk> diff --git a/vietnamese/vi2vn/distinfo b/vietnamese/vi2vn/distinfo new file mode 100644 index 000000000000..d135aa536007 --- /dev/null +++ b/vietnamese/vi2vn/distinfo @@ -0,0 +1 @@ +MD5 (vi2vn-0.64-1.src.rpm) = ffc2fb5b684ebff4285c52a914d0005a diff --git a/vietnamese/vi2vn/pkg-comment b/vietnamese/vi2vn/pkg-comment new file mode 100644 index 000000000000..4391e7623844 --- /dev/null +++ b/vietnamese/vi2vn/pkg-comment @@ -0,0 +1 @@ +Perl script to convert VIQR encoding to other Vietnamese encodings. diff --git a/vietnamese/vi2vn/pkg-descr b/vietnamese/vi2vn/pkg-descr new file mode 100644 index 000000000000..e6f6a3c80db7 --- /dev/null +++ b/vietnamese/vi2vn/pkg-descr @@ -0,0 +1,2 @@ +Perl script to convert the text in the VIQR encoding to another Vietnamese +encoding (such as TCVN, VISCII, VPS, VNI, ...). diff --git a/vietnamese/vi2vn/pkg-plist b/vietnamese/vi2vn/pkg-plist new file mode 100644 index 000000000000..a3474c82c21d --- /dev/null +++ b/vietnamese/vi2vn/pkg-plist @@ -0,0 +1,5 @@ +@comment $FreeBSD$ +bin/vi2vn +@comment Insert PLIST.share here +@comment -=[ begin PLIST.share ]=- +@comment -=[ end PLIST.share ]=- |