diff options
author | Michał Masłowski <mtjm@mtjm.eu> | 2011-09-02 16:32:28 +0200 |
---|---|---|
committer | Michał Masłowski <mtjm@mtjm.eu> | 2011-09-02 16:32:28 +0200 |
commit | 5dabee169f9495fe7f72334ab2d8228c6763b944 (patch) | |
tree | 082ad8da3c6940531b0de194f50d658f4ce17b24 /libre/texlive-core-libre | |
parent | 8b6f468be06bc206a42581ba93065ddf31766970 (diff) | |
download | abslibre-5dabee169f9495fe7f72334ab2d8228c6763b944.tar.gz abslibre-5dabee169f9495fe7f72334ab2d8228c6763b944.tar.bz2 abslibre-5dabee169f9495fe7f72334ab2d8228c6763b944.zip |
libre/texlive-core-libre-2011.23170-1, without nonfree packages.
Diffstat (limited to 'libre/texlive-core-libre')
-rw-r--r-- | libre/texlive-core-libre/PKGBUILD | 159 | ||||
-rw-r--r-- | libre/texlive-core-libre/texlive-core.maps | 40 | ||||
-rw-r--r-- | libre/texlive-core-libre/texlive.install | 58 |
3 files changed, 257 insertions, 0 deletions
diff --git a/libre/texlive-core-libre/PKGBUILD b/libre/texlive-core-libre/PKGBUILD new file mode 100644 index 000000000..ccf5c480f --- /dev/null +++ b/libre/texlive-core-libre/PKGBUILD @@ -0,0 +1,159 @@ +# Parabola maintainer: Michał Masłowski <mtjm@mtjm.eu> +# Maintainer: Rémy Oudompheng <remy@archlinux.org> + +pkgname=texlive-core-libre +_pkgname=texlive-core +pkgver=2011.23170 +_revnr=${pkgver#2011.} +pkgrel=1 +pkgdesc="TeX Live core distribution" +license=('GPL') +arch=(any) +depends=('texlive-bin-libre') +optdepends=( + 'perl: for many useful tools' + 'ruby: for old ConTeXT MkII and epspdf' + 'tk: for texdoctk' + 'python2: for dviasm' + 'ghostscript: for epstopdf, epspdf and other ConTeXt tools' + 'psutils: to manipulate the output of dvips' + 't1utils: can be useful when installing Type1 fonts' +) +groups=('texlive-most') +conflicts=('tetex' 'texlive-latex3' 'texlive-core') +provides=('tetex' 'texlive-latex3' 'texlive-core') +replaces=('tetex' 'texlive-latex3' 'texlive-core') +url='http://tug.org/texlive/' +source=("http://repo.parabolagnulinux.org/other/${pkgname}-${pkgver}.tar.xz" + "${_pkgname}.maps") +options=(!strip) +install=texlive.install +#backup=(etc/texmf/tex/context/config/cont-usr.tex) +md5sums=('304e164e22f8dee41bfd6c2f4758e394' + '490872c9981c40d20721de1e2fccccb8') + +mksource() { + [ -f texlive-core-$pkgver-src.zip ] || wget ftp://ftp.archlinux.org/other/texlive/texlive-core-$pkgver-src.zip + mkdir ${pkgname}-${pkgver} + pushd ${pkgname}-${pkgver} + bsdtar xf ../texlive-core-$pkgver-src.zip + # remove nonfree packages + # MeX licensed packages. + rm {cc-pl,cs,ec,mex,pl}.tar.xz + # Public domain, will be relicensed. + rm context-{account,algorithmic,fixme,games,letter,ruby}.tar.xz + # No specific free license. + rm euro-ce.tar.xz + # Remove them from package list. + sed -ri '/^(cc-pl|cs|ec|mex|pl|context-(account|algorithmic|fixme|games|letter|ruby)|euro-ce) /d' CONTENTS + popd + tar cJf ${pkgname}-${pkgver}.tar.xz ${pkgname}-${pkgver} + rm -rf ${pkgname}-${pkgver} +} + +build() { + cd "$srcdir/${pkgname}-${pkgver}" + echo -n " --> extracting all packages... " + for p in *.tar.xz; do + bsdtar -xf $p + done + echo "done" + rm -rf {tlpkg,doc,source,omega} || true +} + +package() { + cd "$srcdir/${pkgname}-${pkgver}" + install -m755 -d $pkgdir/var/lib/texmf/arch/installedpkgs + sed -i '/^#/d' CONTENTS + install -m644 CONTENTS $pkgdir/var/lib/texmf/arch/installedpkgs/${_pkgname}_${_revnr}.pkgs + install -m644 ${srcdir}/${_pkgname}.maps $pkgdir/var/lib/texmf/arch/installedpkgs/ + install -m755 -d $pkgdir/usr/share + wanteddirs=$(for d in *; do test -d $d && [[ $d != texmf* ]] && echo $d; done) || true + for dir in $wanteddirs; do + find $dir -type d -exec install -d -m755 $pkgdir/usr/share/texmf-dist/'{}' \; + find $dir -type f -exec install -m644 '{}' $pkgdir/usr/share/texmf-dist/'{}' \; + done + find texmf-dist -type d -exec install -d -m755 $pkgdir/usr/share/'{}' \; + find texmf-dist -type f -exec install -m644 '{}' $pkgdir/usr/share/'{}' \; + if [[ -d $pkgdir/usr/share/texmf-dist/scripts ]]; then + find $pkgdir/usr/share/texmf-dist/scripts -type f -exec chmod a+x '{}' \; + fi + # use python2 for dviasm + sed -i 's/env python/env python2/' $pkgdir/usr/share/texmf-dist/scripts/dviasm/dviasm.py + + # copy config file to texmf-config + #mkdir -p $pkgdir/etc/texmf/tex/context/config + #cp -a $pkgdir/usr/share/texmf-dist/tex/context/config/cont-usr.tex \ + # $pkgdir/etc/texmf/tex/context/config/cont-usr.tex + + # remove obsolete stuff (we don't provide the omega and aleph binaries anyway) + #rm -rf $pkgdir/usr/share/texmf-dist/omega + rm -f $pkgdir/usr/share/texmf-dist/tex/plain/config/{omega,aleph}.ini + # more cleanup + rm -rf $pkgdir/usr/share/texmf-dist/scripts/context/stubs/mswin/ + + # link programs from /usr/share/texmf-dist/scripts + _linked_scripts=" +accfonts/mkt1font +accfonts/vpl2ovp +accfonts/vpl2vpl +bundledoc/arlatex +bundledoc/bundledoc +context/perl/mptopdf.pl +de-macro/de-macro +dviasm/dviasm.py +epstopdf/epstopdf.pl +findhyph/findhyph +fontools/afm2afm +fontools/autoinst +fontools/cmap2enc +fontools/font2afm +fontools/ot2kpx +fontools/pfm2kpx +fontools/showglyphs +fragmaster/fragmaster.pl +installfont/installfont-tl +latex2man/latex2man +latexdiff/latexdiff.pl +latexdiff/latexdiff-vc.pl +latexdiff/latexrevise.pl +latexmk/latexmk.pl +luaotfload/mkluatexfontdb.lua +mkjobtexmf/mkjobtexmf.pl +oberdiek/pdfatfi.pl +pdfcrop/pdfcrop.pl +pdfjam/pdf180 +pdfjam/pdf270 +pdfjam/pdf90 +pdfjam/pdfbook +pdfjam/pdfflip +pdfjam/pdfjam +pdfjam/pdfjam-pocketmod +pdfjam/pdfjam-slides3up +pdfjam/pdfjam-slides6up +pdfjam/pdfjoin +pdfjam/pdfnup +pdfjam/pdfpun +pkfix-helper/pkfix-helper +pkfix/pkfix.pl +purifyeps/purifyeps +sty2dtx/sty2dtx.pl +texcount/texcount.pl +texdef/texdef.pl +texdiff/texdiff +texdirflatten/texdirflatten +texloganalyser/texloganalyser +thumbpdf/thumbpdf.pl +" + install -m755 -d $pkgdir/usr/bin + for _script in ${_linked_scripts}; do + _scriptbase=$(basename $_script) + _scriptbase=${_scriptbase%.*} + ln -s /usr/share/texmf-dist/scripts/${_script} ${pkgdir}/usr/bin/${_scriptbase} + done + ln -s /usr/share/texmf-dist/scripts/listings-ext/listings-ext.sh ${pkgdir}/usr/bin/listings-ext.sh + + # additional symlinks + ln -s epstopdf ${pkgdir}/usr/bin/repstopdf + ln -s pdfcrop ${pkgdir}/usr/bin/rpdfcrop +} diff --git a/libre/texlive-core-libre/texlive-core.maps b/libre/texlive-core-libre/texlive-core.maps new file mode 100644 index 000000000..553d07b72 --- /dev/null +++ b/libre/texlive-core-libre/texlive-core.maps @@ -0,0 +1,40 @@ +Map euler.map +Map charter.map +Map fpls.map +Map l7x-urwvn.map +Map lm.map +Map marvosym.map +Map original-context-symbol.map +Map pazo.map +Map pxfonts.map +Map qag.map +Map qbk.map +Map qcr.map +Map qcs.map +Map qhv.map +Map qpl.map +Map qtm.map +Map qzc.map +Map tabvar.map +Map troff-updmap.map +Map txfonts.map +Map utopia.map +MixedMap cm-super-t1.map +MixedMap cm-super-t2a.map +MixedMap cm-super-t2b.map +MixedMap cm-super-t2c.map +MixedMap cm-super-ts1.map +MixedMap cm-super-x2.map +MixedMap cm.map +MixedMap cmextra.map +MixedMap cmtext-bsr-interpolated.map +MixedMap cyrillic.map +MixedMap eurosym.map +MixedMap latxfont.map +MixedMap mflogo.map +MixedMap rsfs.map +MixedMap stmaryrd.map +MixedMap symbols.map +MixedMap tipa.map +MixedMap wasy.map +MixedMap yhmath.map diff --git a/libre/texlive-core-libre/texlive.install b/libre/texlive-core-libre/texlive.install new file mode 100644 index 000000000..a758c084d --- /dev/null +++ b/libre/texlive-core-libre/texlive.install @@ -0,0 +1,58 @@ +PKGNAME="texlive-core" +UPDMAP="etc/texmf/web2c/updmap.cfg" +UPDMAPLOCAL="etc/texmf/web2c/updmap-local.cfg" +SYNCWITHTREES='' + +MAPFILE="var/lib/texmf/arch/installedpkgs/$PKGNAME.maps" + +post_install() { + TMPFILE=`mktemp` + echo ">>> texlive: saving updmap.cfg as $TMPFILE..." + cp "$UPDMAP" "$TMPFILE" + echo ">>> texlive: regenerating updmap.cfg (custom additions shoud go" + echo " into /etc/texmf/web2c/updmap-local.cfg" + cp usr/share/texmf/web2c/updmap-hdr.cfg $UPDMAP + cat var/lib/texmf/arch/installedpkgs/*.maps >> $UPDMAP + [ -f "$UPDMAPLOCAL" ] && cat "$UPDMAPLOCAL" >> $UPDMAP + echo ">>> texlive: updating the filename database..." + usr/bin/mktexlsr + echo ">>> texlive: updating the fontmap files with updmap..." + usr/bin/updmap-sys --quiet --nohash + echo " done." + echo -n "creating all formats..." + usr/bin/fmtutil-sys --all 1>/dev/null + echo " done." + echo " (logs are under /var/lib/texmf/web2c/<engine>/<formatname>.log)" +# echo "NB: To setup ConTeXt and the lua(la)tex font db," +# echo " see http://wiki.archlinux.org/index.php/TeX_Live" +} + +post_upgrade() { + TMPFILE=`mktemp` + echo ">>> texlive: saving updmap.cfg as $TMPFILE..." + cp "$UPDMAP" "$TMPFILE" + echo ">>> texlive: regenerating updmap.cfg (custom additions shoud go" + echo " into /etc/texmf/web2c/updmap-local.cfg" + cp usr/share/texmf/web2c/updmap-hdr.cfg $UPDMAP + cat var/lib/texmf/arch/installedpkgs/*.maps >> $UPDMAP + [ -f "$UPDMAPLOCAL" ] && cat "$UPDMAPLOCAL" >> $UPDMAP + echo ">>> texlive: updating the filename database..." + usr/bin/mktexlsr + echo ">>> texlive: updating the fontmap files with updmap..." + usr/bin/updmap-sys --quiet --nohash $SYNCWITHTREES + echo " done." + echo ">>> texlive: recreating all formats..." + usr/bin/fmtutil-sys --all 1>/dev/null + echo " done." + echo " (logs are under /var/lib/texmf/web2c/<engine>/<formatname>.log)" +# echo "NB: To setup ConTeXt and the lua(la)tex font db," +# echo " see http://wiki.archlinux.org/index.php/TeX_Live" + if [[ "$2" == 200* ]]; then + echo "Important note. Some directories have moved:" + echo " \$TEXMFSYSVAR is now /var/lib/texmf (previously /usr/share/texmf-var)" + echo " \$TEXMFSYSCONFIG is now /etc/texmf (previously /usr/share/texmf-config)" + echo "Please move and update the config files you had modified and delete the rest." + echo "(Note however that updmap.cfg has been automatically copied and updated.)" + fi +} + |