diff options
Diffstat (limited to 'vietnamese/vi2vn/Makefile')
-rw-r--r-- | vietnamese/vi2vn/Makefile | 58 |
1 files changed, 58 insertions, 0 deletions
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> |