diff options
author | Hiroki Sato <hrs@FreeBSD.org> | 2004-12-21 19:40:35 +0000 |
---|---|---|
committer | Hiroki Sato <hrs@FreeBSD.org> | 2004-12-21 19:40:35 +0000 |
commit | 6f899cf75b0bc27e860785bdcd67f502ac3b8a8a (patch) | |
tree | a63ba5b52d6dfdc12970edecd2bf13a982112f74 /print/tex-texmflocal/Makefile | |
parent | 23a19d5f6a1544c79d76eb04d4a7e6f1e6825278 (diff) | |
download | ports-6f899cf75b0bc27e860785bdcd67f502ac3b8a8a.tar.gz ports-6f899cf75b0bc27e860785bdcd67f502ac3b8a8a.zip |
Notes
Diffstat (limited to 'print/tex-texmflocal/Makefile')
-rw-r--r-- | print/tex-texmflocal/Makefile | 57 |
1 files changed, 17 insertions, 40 deletions
diff --git a/print/tex-texmflocal/Makefile b/print/tex-texmflocal/Makefile index 63a08ed8e67b..bdfb8697182f 100644 --- a/print/tex-texmflocal/Makefile +++ b/print/tex-texmflocal/Makefile @@ -5,7 +5,7 @@ # $FreeBSD$ PORTNAME= tex-texmflocal -PORTVERSION= 1.5 +PORTVERSION= 1.6 CATEGORIES= print MASTER_SITES= # empty DISTFILES= # empty @@ -26,23 +26,6 @@ TEXMFVAR= share/texmf-var TEXMFVAR_LSR= ${LOCALBASE}/${TEXMFVAR}/ls-R MKTEXLSR= ${LOCALBASE}/bin/mktexlsr -DEFAULT_MODE= tetex -TEXMFCNF= web2c/texmf.cnf -DVIPSKCNF= dvips/config/config.ps -XDVIKCNF= xdvi/XDvi -DVIPDFMCNF= dvipdfm/config/config - -TETEX_MODESW_SUB= \ - DEFAULT_MODE=${DEFAULT_MODE} \ - TEXMFCNF=${TEXMFCNF} \ - DVIPSKCNF=${DVIPSKCNF} \ - XDVIKCNF=${XDVIKCNF} \ - DVIPDFMCNF=${DVIPDFMCNF} \ - PREFIX=${PREFIX} \ - TEXMF=${TEXMF} \ - TEXMFVAR=${TEXMFVAR} \ - TEXMFLOCAL=${TEXMFLOCAL} - DIRS= bibtex/bib bibtex/bst bibtex\ context/config context \ dvipdfm/config dvipdfm dvips/config dvips \ @@ -61,31 +44,25 @@ DIRS= bibtex/bib bibtex/bst bibtex\ LSRMAGIC=${ECHO_CMD} "% ls-R -- filename database for kpathsea; do not change this line." pre-install: - ${SED} ${TETEX_MODESW_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \ - < ${FILESDIR}/tetex-modesw.in > ${WRKDIR}/tetex-modesw (${ECHO_CMD} "bin/tetex-modesw"; \ - for dir in ${DIRS}; do \ - ${ECHO_CMD} "@unexec ${RMDIR} %D/${TEXMFLOCAL}/$${dir} > /dev/null 2>&1 || true"; \ - ${ECHO_CMD} "@unexec ${RMDIR} %D/${TEXMFVAR}/$${dir} > /dev/null 2>&1 || true"; \ - ${ECHO_CMD} "@exec ${MKDIR} %D/${TEXMFLOCAL}/$${dir}"; \ - ${ECHO_CMD} "@exec ${MKDIR} %D/${TEXMFVAR}/$${dir}"; \ - done; \ - ${ECHO_CMD} '@exec ${LSRMAGIC:S,%,%%,g} > ${TEXMFLOCAL_LSR} && ${CHMOD} 0644 ${TEXMFLOCAL_LSR}'; \ - ${ECHO_CMD} '@exec ${LSRMAGIC:S,%,%%,g} > ${TEXMFVAR_LSR} && ${CHMOD} 0644 ${TEXMFVAR_LSR}'; \ - ${ECHO_CMD} '@exec ${TOUCH} ${PREFIX}/etc/tetex-modesw.conf'; \ - ${ECHO_CMD} '@unexec ${RM} -f ${PREFIX}/etc/tetex-modesw.conf > /dev/null 2>&1 || true'; \ - ${ECHO_CMD} '@unexec ${RM} -f ${TEXMFLOCAL_LSR} > /dev/null 2>&1 || true'; \ - ${ECHO_CMD} '@unexec ${RM} -f ${TEXMFVAR_LSR} > /dev/null 2>&1 || true'; \ - ${ECHO_CMD} "@unexec ${RMDIR} %D/${TEXMFLOCAL} > /dev/null 2>&1 || true"; \ - ${ECHO_CMD} "@unexec ${RMDIR} %D/${TEXMFVAR} > /dev/null 2>&1 || true"; \ - ${ECHO_CMD} '@exec if [ -x ${MKTEXLSR} ]; then ${MKTEXLSR}; fi'; \ - ${ECHO_CMD} '@unexec if [ -x ${MKTEXLSR} ]; then ${MKTEXLSR}; fi'; \ - ) > ${PLIST} + for dir in ${DIRS}; do \ + ${ECHO_CMD} "@unexec ${RMDIR} %D/${TEXMFLOCAL}/$${dir} > /dev/null 2>&1 || true"; \ + ${ECHO_CMD} "@unexec ${RMDIR} %D/${TEXMFVAR}/$${dir} > /dev/null 2>&1 || true"; \ + ${ECHO_CMD} "@exec ${MKDIR} %D/${TEXMFLOCAL}/$${dir}"; \ + ${ECHO_CMD} "@exec ${MKDIR} %D/${TEXMFVAR}/$${dir}"; \ + done; \ + ${ECHO_CMD} '@exec ${LSRMAGIC:S,%,%%,g} > ${TEXMFLOCAL_LSR} && ${CHMOD} 0644 ${TEXMFLOCAL_LSR}'; \ + ${ECHO_CMD} '@exec ${LSRMAGIC:S,%,%%,g} > ${TEXMFVAR_LSR} && ${CHMOD} 0644 ${TEXMFVAR_LSR}'; \ + ${ECHO_CMD} '@unexec ${RM} -f ${TEXMFLOCAL_LSR} > /dev/null 2>&1 || true'; \ + ${ECHO_CMD} '@unexec ${RM} -f ${TEXMFVAR_LSR} > /dev/null 2>&1 || true'; \ + ${ECHO_CMD} "@unexec ${RMDIR} %D/${TEXMFLOCAL} > /dev/null 2>&1 || true"; \ + ${ECHO_CMD} "@unexec ${RMDIR} %D/${TEXMFVAR} > /dev/null 2>&1 || true"; \ + ${ECHO_CMD} '@exec if [ -x ${MKTEXLSR} ]; then ${MKTEXLSR}; fi'; \ + ${ECHO_CMD} '@unexec if [ -x ${MKTEXLSR} ]; then ${MKTEXLSR}; fi'; \ + ) > ${PLIST} do-install: - ${INSTALL_SCRIPT} ${WRKDIR}/tetex-modesw ${PREFIX}/bin - ${TOUCH} ${PREFIX}/etc/tetex-modesw.conf - ${CHMOD} 644 ${PREFIX}/etc/tetex-modesw.conf + ${INSTALL_SCRIPT} ${FILESDIR}/tetex-modesw.in ${PREFIX}/bin/tetex-modesw ${MKDIR} ${DIRS:S,^,${PREFIX}/${TEXMFLOCAL}/,} ${MKDIR} ${DIRS:S,^,${PREFIX}/${TEXMFVAR}/,} ${LSRMAGIC} > ${TEXMFLOCAL_LSR} |