aboutsummaryrefslogtreecommitdiffstats
path: root/print/texlive-base
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2014-07-05 01:35:18 +0800
committerbapt <bapt@FreeBSD.org>2014-07-05 01:35:18 +0800
commita4feb108b22468959fe7c7b4b9ddab2531e4dd31 (patch)
tree1f86cc582c2ad43d4c632315c51db0626c5a1005 /print/texlive-base
parent1d245abad7f7ebc0d6a9c1b86a9c4a29dfad1f5b (diff)
downloadfreebsd-ports-gnome-a4feb108b22468959fe7c7b4b9ddab2531e4dd31.tar.gz
freebsd-ports-gnome-a4feb108b22468959fe7c7b4b9ddab2531e4dd31.tar.zst
freebsd-ports-gnome-a4feb108b22468959fe7c7b4b9ddab2531e4dd31.zip
Support stage for texlive, given it is impossible to rebuild the fmt files into
the stage then they are now rebuild in post-installation, like it is done in other package system
Diffstat (limited to 'print/texlive-base')
-rw-r--r--print/texlive-base/Makefile19
-rw-r--r--print/texlive-base/pkg-plist3
2 files changed, 19 insertions, 3 deletions
diff --git a/print/texlive-base/Makefile b/print/texlive-base/Makefile
index c3dae19bc3da..707aed1d476c 100644
--- a/print/texlive-base/Makefile
+++ b/print/texlive-base/Makefile
@@ -25,7 +25,7 @@ LIB_DEPENDS= libicuio.so:${PORTSDIR}/devel/icu \
libpoppler.so:${PORTSDIR}/graphics/poppler
USE_TEX= texlive web2c kpathsea ptexenc texhash-bootstrap
-USES= gmake pkgconfig perl5 tar:xz
+USES= gmake pkgconfig perl5 shebangfix tar:xz
USE_AUTOTOOLS= autoconf
USE_GHOSTSCRIPT=yes
USE_PERL5= run
@@ -97,6 +97,20 @@ CFLAGS+= -I${LOCALBASE}/include \
-I${LOCALBASE}/include/ptexenc
PLIST_SUB= INSTALL_DATA="${INSTALL_DATA}"
+SHEBANG_FILES= texk/texlive/linked_scripts/*/*.pl \
+ texk/texlive/linked_scripts/findhyph/findhyph \
+ texk/texlive/linked_scripts/de-macro/de-macro \
+ texk/texlive/linked_scripts/uptex/convbkmk.rb \
+ texk/texlive/linked_scripts/accfonts/vpl2vpl \
+ texk/texlive/linked_scripts/exceltex/exceltex \
+ texk/texlive/linked_scripts/texdirflatten/texdirflatten \
+ texk/texlive/linked_scripts/bibexport/bibexport.sh \
+ texk/texlive/linked_scripts/urlbst/urlbst \
+ texk/texlive/linked_scripts/accfonts/mkt1font \
+ texk/texlive/linked_scripts/splitindex/perl/splitindex.pl \
+ texk/texlive/linked_scripts/accfonts/vpl2ovp \
+ texk/texlive/linked_scripts/installfont/installfont-tl
+
INFO= dvipng
post-patch:
@@ -109,8 +123,11 @@ post-patch:
post-install-fmtutil:
${MKDIR} ${STAGEDIR}${PREFIX}/${TEXMFCONFIGDIR}/web2c
${TOUCH} ${STAGEDIR}${PREFIX}/${TEXMFCONFIGDIR}/web2c/.keep_me
+ ${MKDIR} ${STAGEDIR}${PREFIX}/${TEXMFLOCALDIR}
+ ${MKDIR} ${STAGEDIR}${PREFIX}/${TEXMFVARDIR}
${INSTALL_DATA} ${STAGEDIR}${PREFIX}/${TEXMFDIR}/web2c/fmtutil.cnf \
${STAGEDIR}${PREFIX}/${FMTUTIL_CNF}
+ ${CHMOD} 644 ${STAGEDIR}${PREFIX}/${TEXMFDIR}/web2c/fmtutil.cnf
post-install: post-install-fmtutil
.ORDER: post-install-fmtutil do-texhash
diff --git a/print/texlive-base/pkg-plist b/print/texlive-base/pkg-plist
index 791cab00275c..168640a2d928 100644
--- a/print/texlive-base/pkg-plist
+++ b/print/texlive-base/pkg-plist
@@ -417,8 +417,7 @@ man/man5/updmap.cfg.5.gz
%%TEXMFDIR%%/scripts/texlive/tlmgr.pl
%%TEXMFDIR%%/web2c/fmtutil.cnf
%%TEXMFCONFIGDIR%%/web2c/.keep_me
-@exec %%INSTALL_DATA%% %D/%%TEXMFDIR%%/web2c/fmtutil.cnf %D/%%FMTUTIL_CNF%%
-@unexec /bin/rm -f %D/%%FMTUTIL_CNF%%
+%%FMTUTIL_CNF%%
@dirrmtry %%TEXMFCONFIGDIR%%/web2c
@dirrmtry %%TEXMFCONFIGDIR%%
@dirrmtry %%TEXMFDISTDIR%%/scripts/accfonts