blob: 33d636343900ad9e7b41af2d434464a59748c3eb (
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
|
# ex:ts=8
# Ports collection makefile for: gettext-lint
# Date created: Feb 3, 2004
# Whom: ijliao
#
# $FreeBSD$
#
PORTNAME= gettext-lint
PORTVERSION= 0.4
PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= ports@FreeBSD.org
COMMENT= Check the validity and consistency of PO and POT files
RUN_DEPENDS= msgfmt:${PORTSDIR}/devel/gettext
USE_PYTHON= yes
NO_BUILD= yes
MAN1= POFileChecker.1 POFileClean.1 POFileConsistency.1 \
POFileEquiv.1 POFileFill.1 POFileGlossary.1 \
POFileSpell.1 POFileStatus.1
post-patch:
.for i in POFileChecker POFileClean POFileConsistency POFileEquiv POFileFill \
POFileGlossary POFileSpell POFileStatus
cd ${WRKSRC}/src && ${SED} -e 's|@PYTHON@|${PYTHON_CMD}|g ; \
s|@prefix@/share/@PACKAGE@|${PYTHON_SITELIBDIR}/${PORTNAME}|g' ${i}.in > ${i}
.endfor
do-install:
.for i in POFileChecker POFileClean POFileConsistency POFileEquiv POFileFill \
POFileGlossary POFileSpell POFileStatus
${INSTALL_SCRIPT} ${WRKSRC}/src/${i} ${PREFIX}/bin/${i}
${INSTALL_MAN} ${WRKSRC}/doc/${i}.1 ${MANPREFIX}/man/man1/${i}.1
.endfor
@${MKDIR} ${PYTHON_SITELIBDIR}/${PORTNAME}
${INSTALL_DATA} ${WRKSRC}/src/*.py ${PYTHON_SITELIBDIR}/${PORTNAME}
@${MKDIR} ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/etc/*.css ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/etc/*.xsl ${DATADIR}
.include <bsd.port.mk>
|