blob: fbc6a995fbbaa41bd7545a79d650a695c0e70c7e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# 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.pl:${PORTSDIR}/archivers/rpm2cpio
EXTRACT_CMD= rpm2cpio.pl
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>
|