mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
- Add stage support
- Convert to USES=tar:bzip2 - Bump PORTREVISION Allthough not strictly necessary, rename the now non-magic variable "MAN1" to "GEN_MAN" to avoid confusion with its non-staged meaning. Approved by: portmgr (infrastructure blanket)
This commit is contained in:
parent
5969ca5b26
commit
83371c36e1
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=349735
@ -3,7 +3,7 @@
|
||||
|
||||
PORTNAME= translate-toolkit
|
||||
PORTVERSION= 1.9.0
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= textproc
|
||||
MASTER_SITES= SF/translate/Translate%20Toolkit/${PORTVERSION} \
|
||||
http://freebsd.unixfreunde.de/sources/
|
||||
@ -23,12 +23,12 @@ BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sqlite3>=0:${PORTSDIR}/databases/py-sqlite
|
||||
RUN_DEPENDS:= ${BUILD_DEPENDS}
|
||||
# Can use psyco (on i386)
|
||||
|
||||
USE_BZIP2= yes
|
||||
USES= gettext
|
||||
USES= gettext tar:bzip2
|
||||
USE_PYTHON= yes
|
||||
USE_PYDISTUTILS= yes
|
||||
|
||||
MAN1= csv2po.1 csv2tbx.1 html2po.1 ical2po.1 ini2po.1 \
|
||||
# list of manual pages to generate
|
||||
GEN_MAN= csv2po.1 csv2tbx.1 html2po.1 ical2po.1 ini2po.1 \
|
||||
moz2po.1 odf2xliff.1 oo2po.1 oo2xliff.1 \
|
||||
php2po.1 po2csv.1 po2html.1 po2ical.1 po2ini.1 \
|
||||
po2moz.1 po2oo.1 po2php.1 po2prop.1 po2rc.1 \
|
||||
@ -39,7 +39,6 @@ MAN1= csv2po.1 csv2tbx.1 html2po.1 ical2po.1 ini2po.1 \
|
||||
prop2po.1 rc2po.1 symb2po.1 tiki2po.1 ts2po.1 \
|
||||
txt2po.1 web2py2po.1 xliff2odf.1 xliff2oo.1 xliff2po.1
|
||||
|
||||
NO_STAGE= yes
|
||||
post-patch:
|
||||
@${FIND} ${WRKSRC}/tools -type f -print0 | ${XARGS} -0 \
|
||||
${REINPLACE_CMD} -e \
|
||||
@ -48,15 +47,15 @@ post-patch:
|
||||
|
||||
post-build:
|
||||
@${MKDIR} ${WRKDIR}/manpages
|
||||
.for i in ${MAN1:S|.1||}
|
||||
.for i in ${GEN_MAN:S|.1||}
|
||||
cd ${WRKSRC}/build/scripts-* && \
|
||||
${SETENV} PYTHONPATH=${WRKSRC}/build/lib ${PYTHON_CMD} \
|
||||
${i} --man > ${WRKDIR}/manpages/${i}.1
|
||||
.endfor
|
||||
|
||||
post-install:
|
||||
.for i in ${MAN1}
|
||||
cd ${WRKDIR}/manpages && ${INSTALL_MAN} ${i} ${MANPREFIX}/man/man1
|
||||
.for i in ${GEN_MAN}
|
||||
cd ${WRKDIR}/manpages && ${INSTALL_MAN} ${i} ${STAGEDIR}${PREFIX}/man/man1
|
||||
.endfor
|
||||
|
||||
list-man1: build
|
||||
|
@ -62,6 +62,55 @@ bin/web2py2po
|
||||
bin/xliff2odf
|
||||
bin/xliff2oo
|
||||
bin/xliff2po
|
||||
man/man1/csv2po.1.gz
|
||||
man/man1/csv2tbx.1.gz
|
||||
man/man1/html2po.1.gz
|
||||
man/man1/ical2po.1.gz
|
||||
man/man1/ini2po.1.gz
|
||||
man/man1/moz2po.1.gz
|
||||
man/man1/odf2xliff.1.gz
|
||||
man/man1/oo2po.1.gz
|
||||
man/man1/oo2xliff.1.gz
|
||||
man/man1/php2po.1.gz
|
||||
man/man1/po2csv.1.gz
|
||||
man/man1/po2html.1.gz
|
||||
man/man1/po2ical.1.gz
|
||||
man/man1/po2ini.1.gz
|
||||
man/man1/po2moz.1.gz
|
||||
man/man1/po2oo.1.gz
|
||||
man/man1/po2php.1.gz
|
||||
man/man1/po2prop.1.gz
|
||||
man/man1/po2rc.1.gz
|
||||
man/man1/po2symb.1.gz
|
||||
man/man1/po2tiki.1.gz
|
||||
man/man1/po2tmx.1.gz
|
||||
man/man1/po2ts.1.gz
|
||||
man/man1/po2txt.1.gz
|
||||
man/man1/po2web2py.1.gz
|
||||
man/man1/po2wordfast.1.gz
|
||||
man/man1/po2xliff.1.gz
|
||||
man/man1/poclean.1.gz
|
||||
man/man1/pocompile.1.gz
|
||||
man/man1/poconflicts.1.gz
|
||||
man/man1/podebug.1.gz
|
||||
man/man1/pofilter.1.gz
|
||||
man/man1/pogrep.1.gz
|
||||
man/man1/pomerge.1.gz
|
||||
man/man1/porestructure.1.gz
|
||||
man/man1/posegment.1.gz
|
||||
man/man1/poswap.1.gz
|
||||
man/man1/pot2po.1.gz
|
||||
man/man1/pretranslate.1.gz
|
||||
man/man1/prop2po.1.gz
|
||||
man/man1/rc2po.1.gz
|
||||
man/man1/symb2po.1.gz
|
||||
man/man1/tiki2po.1.gz
|
||||
man/man1/ts2po.1.gz
|
||||
man/man1/txt2po.1.gz
|
||||
man/man1/web2py2po.1.gz
|
||||
man/man1/xliff2odf.1.gz
|
||||
man/man1/xliff2oo.1.gz
|
||||
man/man1/xliff2po.1.gz
|
||||
%%PYTHON_SITELIBDIR%%/translate/COPYING
|
||||
%%PYTHON_SITELIBDIR%%/translate/ChangeLog
|
||||
%%PYTHON_SITELIBDIR%%/translate/LICENSE
|
||||
|
Loading…
Reference in New Issue
Block a user