1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-25 00:51:21 +00:00
freebsd-ports/vietnamese/vi2vn/Makefile
Ade Lovett 7e52725f2a Clear moonlight beckons.
Requiem mors pacem pkg-comment,
And be calm ports tree.

E Nomini Patri, E Fili, E Spiritu Sancti.
2003-03-07 06:14:21 +00:00

60 lines
1.7 KiB
Makefile

# 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
COMMENT= Perl script to convert VIQR encoding to other Vietnamese encodings.
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>