1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00

Support stage

This commit is contained in:
Baptiste Daroussin 2014-07-02 12:00:59 +00:00
parent c2a0d1236f
commit ecbc73a76c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=360170
2 changed files with 14 additions and 19 deletions

View File

@ -3,7 +3,7 @@
PORTNAME= xmltex
PORTVERSION= 1.9
PORTREVISION= 9
PORTREVISION= 10
CATEGORIES= print
MASTER_SITES= ftp://ftp.ctan.org/tex-archive/%SUBDIR%/ \
${MASTER_SITE_TEX_CTAN}
@ -12,21 +12,19 @@ DISTFILES= ${DOC_FILES} ${CLASS_FILES}
DIST_SUBDIR= ${PORTNAME}
MAINTAINER= hrs@FreeBSD.org
COMMENT= A non-validating XML parser, written in TeX
COMMENT= non-validating XML parser, written in TeX
LIB_DEPENDS= png15:${PORTSDIR}/graphics/png
OPTIONS_DEFINE= DOCS
LIB_DEPENDS= libpng15.so:${PORTSDIR}/graphics/png
USE_TEX= tex
NO_STAGE= yes
.include <bsd.port.pre.mk>
PLIST_SUB= MKTEXLSR=${MKTEXLSR} CLASSDIR=${CLASSDIR} WEB2CDIR=${WEB2CDIR}
WRKSRC= ${WRKDIR}/base
MAKE_ENV= TEXMFCNF=${FILESDIR}:${LOCALBASE}/${TEXMFWEB2C}
MKTEXLSR= ${LOCALBASE}/bin/mktexlsr
TEXMFDIR= share/texmf
TEXMFDISTDIR= share/texmf-dist
TEXMFLOCALDIR= share/texmf-local
@ -56,16 +54,14 @@ post-patch:
@${CP} ${FILESDIR}/Makefile ${WRKSRC}
do-install:
${INSTALL_DATA} ${WEB2C_FILES:S@^@${WRKSRC}/@} ${PREFIX}/${WEB2CDIR}
${MKDIR} -m 555 ${PREFIX}/${CLASSDIR}
${INSTALL_DATA} ${CLASS_FILES:S@^@${WRKSRC}/@} ${PREFIX}/${CLASSDIR}
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${DOC_FILES:S@^@${WRKSRC}/@} ${DOCSDIR}
.endif
${MKDIR} ${STAGEDIR}${PREFIX}/${WEB2CDIR}
${INSTALL_DATA} ${WEB2C_FILES:S@^@${WRKSRC}/@} ${STAGEDIR}${PREFIX}/${WEB2CDIR}
${MKDIR} ${STAGEDIR}${PREFIX}/${CLASSDIR}
${INSTALL_DATA} ${CLASS_FILES:S@^@${WRKSRC}/@} ${STAGEDIR}${PREFIX}/${CLASSDIR}
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${DOC_FILES:S@^@${WRKSRC}/@} ${STAGEDIR}${DOCSDIR}
post-install:
${LN} -s -f ${LOCALBASE}/bin/latex ${PREFIX}/bin/xmltex
${MKTEXLSR}
${LN} -s -f ${LOCALBASE}/bin/latex ${STAGEDIR}${PREFIX}/bin/xmltex
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View File

@ -1,3 +1,4 @@
bin/xmltex
%%PORTDOCS%%%%DOCSDIR%%/manual.html
%%PORTDOCS%%%%DOCSDIR%%/manual.tex
%%PORTDOCS%%%%DOCSDIR%%/manual.xml
@ -31,8 +32,6 @@
%%CLASSDIR%%/portugeselatin1.xml
%%CLASSDIR%%/englishutf16.xml
%%CLASSDIR%%/englishutf8.xml
@exec ln -s -f %D/bin/latex %D/bin/xmltex
@unexec rm -f %D/bin/xmltex > /dev/null 2>&1 || true
@dirrm %%CLASSDIR%%
@exec %%MKTEXLSR%%
@unexec %%MKTEXLSR%%