aboutsummaryrefslogtreecommitdiffstats
path: root/print/latex-ltablex
diff options
context:
space:
mode:
authorstephen <stephen@FreeBSD.org>2011-06-17 21:00:25 +0800
committerstephen <stephen@FreeBSD.org>2011-06-17 21:00:25 +0800
commit4a7860d5e564c58214952eb87b7304e763db10e3 (patch)
tree730aa92bec36c88bdf78d23f022d40dc22f46ef9 /print/latex-ltablex
parent45e0b07449432716296fcdea2a71f5e2d29c9433 (diff)
downloadfreebsd-ports-gnome-4a7860d5e564c58214952eb87b7304e763db10e3.tar.gz
freebsd-ports-gnome-4a7860d5e564c58214952eb87b7304e763db10e3.tar.zst
freebsd-ports-gnome-4a7860d5e564c58214952eb87b7304e763db10e3.zip
- Changed installation directories.
- Changed from dynamic plist to static plist. Reviewed by: hrs Approved by: maho (mentor), kubito@gmail.com (maintainer)
Diffstat (limited to 'print/latex-ltablex')
-rw-r--r--print/latex-ltablex/Makefile41
-rw-r--r--print/latex-ltablex/pkg-plist4
2 files changed, 16 insertions, 29 deletions
diff --git a/print/latex-ltablex/Makefile b/print/latex-ltablex/Makefile
index cad10ed528e8..7f72f588843d 100644
--- a/print/latex-ltablex/Makefile
+++ b/print/latex-ltablex/Makefile
@@ -6,6 +6,7 @@
PORTNAME= ltablex
PORTVERSION= 1.0
+PORTREVISION= 1
CATEGORIES= print
MASTER_SITES= ${MASTER_SITE_TEX_CTAN}
MASTER_SITE_SUBDIR= macros/latex/contrib
@@ -16,52 +17,34 @@ DIST_SUBDIR= latex
MAINTAINER= kubito@gmail.com
COMMENT= Combines the features of both the tabularx and longtable packages
-BUILD_DEPENDS= mktexlsr:${PORTSDIR}/print/teTeX-base \
- ${TEXMFLOCAL_LSR}:${PORTSDIR}/print/tex-texmflocal
-RUN_DEPENDS= latex:${PORTSDIR}/print/teTeX-base \
- ${TEXMFLOCAL_LSR}:${PORTSDIR}/print/tex-texmflocal
+BUILD_DEPENDS= mktexlsr:${PORTSDIR}/print/teTeX-base
+RUN_DEPENDS= latex:${PORTSDIR}/print/teTeX-base
USE_ZIP= YES
NO_BUILD= YES
-PLIST= ${WRKDIR}/pkg-plist
+PLIST_SUB= MKTEXLSR=${MKTEXLSR} \
+ CLASSDIR=${CLASSDIR} \
+ TEXMFDIR=${TEXMFDIR}
-TEXMFLOCAL= share/texmf-local
-TEXMFLOCAL_LSR= ${LOCALBASE}/${TEXMFLOCAL}/ls-R
+TEXMFDIR= share/texmf
MKTEXLSR= ${LOCALBASE}/bin/mktexlsr
-TEX_BIN= ${LOCALBASE}/bin/latex
-CLASSNAME= ${PORTNAME}
-CLASSDIR= ${TEXMFLOCAL}/tex/latex/${CLASSNAME}
-DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
+CLASSDIR= ${TEXMFDIR}/tex/latex/${PORTNAME}
CLASS_FILES= ltablex.sty
-DOC_FILES= ltablex.pdf ltablex.tex
+PORTDOCS= ltablex.pdf ltablex.tex
-WRKSRC= ${WRKDIR}/${CLASSNAME}
-
-pre-install:
- (for F in ${CLASS_FILES}; do \
- ${ECHO_CMD} "${CLASSDIR}/$${F}"; \
- done;) > ${PLIST}
- ${ECHO_CMD} "@dirrm ${CLASSDIR}" >> ${PLIST}
-.if !defined(NOPORTDOCS)
- (for F in ${DOC_FILES}; do \
- ${ECHO_CMD} "${DOCSDIR:S,^${PREFIX}/,,}/$${F}"; \
- done;\
- ${ECHO_CMD} "@dirrm ${DOCSDIR:S,^${PREFIX}/,,}" ) >> ${PLIST}
-.endif
- ${ECHO_CMD} "@exec ${MKTEXLSR}" >> ${PLIST}
- ${ECHO_CMD} "@unexec ${MKTEXLSR}" >> ${PLIST}
+WRKSRC= ${WRKDIR}/${PORTNAME}
do-install:
${MKDIR} ${PREFIX}/${CLASSDIR}
${INSTALL_DATA} ${CLASS_FILES:S@^@${WRKSRC}/@} ${PREFIX}/${CLASSDIR}
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${DOC_FILES:S@^@${WRKSRC}/@} ${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S@^@${WRKSRC}/@} ${DOCSDIR}
.endif
post-install:
- ${MKTEXLSR}
+ ${MKTEXLSR} ${PREFIX}/${TEXMFDIR}
.include <bsd.port.mk>
diff --git a/print/latex-ltablex/pkg-plist b/print/latex-ltablex/pkg-plist
new file mode 100644
index 000000000000..c5f2f515c7ec
--- /dev/null
+++ b/print/latex-ltablex/pkg-plist
@@ -0,0 +1,4 @@
+%%CLASSDIR%%/ltablex.sty
+@dirrm %%CLASSDIR%%
+@exec %%MKTEXLSR%% %D/%%TEXMFDIR%%
+@unexec %%MKTEXLSR%% %D/%%TEXMFDIR%%