aboutsummaryrefslogtreecommitdiffstats
path: root/print
diff options
context:
space:
mode:
authorwxs <wxs@FreeBSD.org>2008-09-27 22:13:01 +0800
committerwxs <wxs@FreeBSD.org>2008-09-27 22:13:01 +0800
commit902c40e960d51859c782824ee9feb63fcf503b39 (patch)
tree215b62e8e7de29c290470d393fbc7e70c791188f /print
parent79984361679b53d6d3994a5b59f4d6a00e2734e0 (diff)
downloadfreebsd-ports-gnome-902c40e960d51859c782824ee9feb63fcf503b39.tar.gz
freebsd-ports-gnome-902c40e960d51859c782824ee9feb63fcf503b39.tar.zst
freebsd-ports-gnome-902c40e960d51859c782824ee9feb63fcf503b39.zip
- Properly call mktexslr when (un)installing by package.
PR: ports/127646 Submitted by: Martin Dieringer <martin.dieringer@gmx.de> (maintainer)
Diffstat (limited to 'print')
-rw-r--r--print/ifxetex/Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/print/ifxetex/Makefile b/print/ifxetex/Makefile
index 3f2026e75a46..d7c7c2b0c057 100644
--- a/print/ifxetex/Makefile
+++ b/print/ifxetex/Makefile
@@ -6,6 +6,7 @@
PORTNAME= ifxetex
PORTVERSION= 20080729
+PORTREVISION= 1
CATEGORIES= print
MASTER_SITES= ${MASTER_SITE_TEX_CTAN}
MASTER_SITE_SUBDIR= macros/generic/${PORTNAME}
@@ -23,7 +24,10 @@ EXTRACT_CMD= ${CP}
EXTRACT_BEFORE_ARGS= # empty
EXTRACT_AFTER_ARGS= .
+PLIST= ${WRKDIR}/pkg-plist
+
TEXMFDIR= share/texmf-local
+MKTEXLSR= ${LOCALBASE}/bin/mktexlsr
CLASSDIR= ${TEXMFDIR}/tex/latex/${PORTNAME}
CLASS_FILES= ${DISTFILES}
@@ -31,11 +35,17 @@ PLIST_SUB= CLASSDIR=${CLASSDIR}
PLIST_FILES= ${CLASSDIR}/${CLASS_FILES}
PLIST_DIRS= ${CLASSDIR}
+pre-install:
+ ${ECHO_CMD} "${CLASSDIR}/${CLASS_FILES}" > ${PLIST}
+ ${ECHO_CMD} "@dirrm ${CLASSDIR}" >> ${PLIST}
+ ${ECHO_CMD} "@exec ${MKTEXLSR}" >> ${PLIST}
+ ${ECHO_CMD} "@unexec ${MKTEXLSR}" >> ${PLIST}
+
do-install:
@${MKDIR} ${PREFIX}/${CLASSDIR}
${INSTALL_DATA} ${CLASS_FILES:S@^@${WRKSRC}/@} ${PREFIX}/${CLASSDIR}
post-install:
- ${LOCALBASE}/bin/texhash
+ ${MKTEXLSR}
.include <bsd.port.mk>