Finally add staging support.
While here, replace all the direct invocations of mktexlsr by USE_TEX=texhash.
This commit is contained in:
parent
e28e8e0e5d
commit
bf83f6b90f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=356103
2 changed files with 10 additions and 21 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
PORTNAME= ltablex
|
||||
PORTVERSION= 1.0
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= print
|
||||
# As of 2012-08-24, some mirrors are returning a tarball with a
|
||||
# different checksum, so I am mirroring it locally instead.
|
||||
|
@ -17,32 +17,23 @@ MAINTAINER= rakuco@FreeBSD.org
|
|||
COMMENT= Combines the features of both the tabularx and longtable packages
|
||||
|
||||
USES= zip
|
||||
USE_TEX= latex
|
||||
NO_BUILD= YES
|
||||
PLIST_SUB= MKTEXLSR=${MKTEXLSR} \
|
||||
CLASSDIR=${CLASSDIR} \
|
||||
TEXMFDIR=${TEXMFDIR}
|
||||
USE_TEX= latex texhash
|
||||
NO_BUILD= yes
|
||||
PLIST_SUB= CLASSDIR=${CLASSDIR}
|
||||
|
||||
OPTIONS_DEFINE= DOCS
|
||||
|
||||
TEXMFDIR= share/texmf
|
||||
MKTEXLSR= ${LOCALBASE}/bin/mktexlsr
|
||||
|
||||
CLASSDIR= ${TEXMFDIR}/tex/latex/${PORTNAME}
|
||||
|
||||
CLASS_FILES= ltablex.sty
|
||||
PORTDOCS= ltablex.pdf ltablex.tex
|
||||
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}
|
||||
|
||||
NO_STAGE= yes
|
||||
do-install:
|
||||
${MKDIR} ${PREFIX}/${CLASSDIR}
|
||||
${INSTALL_DATA} ${CLASS_FILES:S@^@${WRKSRC}/@} ${PREFIX}/${CLASSDIR}
|
||||
.if !defined(NOPORTDOCS)
|
||||
${MKDIR} ${DOCSDIR}
|
||||
${INSTALL_DATA} ${PORTDOCS:S@^@${WRKSRC}/@} ${DOCSDIR}
|
||||
.endif
|
||||
|
||||
post-install:
|
||||
${MKTEXLSR} ${PREFIX}/${TEXMFDIR}
|
||||
${MKDIR} ${STAGEDIR}${PREFIX}/${CLASSDIR}
|
||||
${INSTALL_DATA} ${CLASS_FILES:S@^@${WRKSRC}/@} ${STAGEDIR}${PREFIX}/${CLASSDIR}
|
||||
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
${INSTALL_DATA} ${PORTDOCS:S@^@${WRKSRC}/@} ${STAGEDIR}${DOCSDIR}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
|
@ -1,4 +1,2 @@
|
|||
%%CLASSDIR%%/ltablex.sty
|
||||
@dirrm %%CLASSDIR%%
|
||||
@exec %%MKTEXLSR%% %D/%%TEXMFDIR%%
|
||||
@unexec %%MKTEXLSR%% %D/%%TEXMFDIR%%
|
||||
|
|
Loading…
Reference in a new issue