summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Thomas Witt <pyromaniac@exherbo.org> 2015-05-27 20:49:41 +0200
committerAvatar Thomas Witt <pyromaniac@exherbo.org> 2015-06-03 00:15:51 +0200
commitcb6ff3bfb76eacdc4c5d8c4d2fd1bccf25051140 (patch)
tree140009874a268f9e0f2c9854fdead56f51cf2c2b
parent9d1eae0a1d4ab5efd792784f50cca545546cffff (diff)
downloadtexlive-cb6ff3bfb76eacdc4c5d8c4d2fd1bccf25051140.tar.gz
texlive-cb6ff3bfb76eacdc4c5d8c4d2fd1bccf25051140.tar.xz
texlive-core: Bump to 2015
-rw-r--r--packages/app-text/texlive-core/texlive-core-2015.exheres-0355
1 files changed, 355 insertions, 0 deletions
diff --git a/packages/app-text/texlive-core/texlive-core-2015.exheres-0 b/packages/app-text/texlive-core/texlive-core-2015.exheres-0
new file mode 100644
index 0000000..d826d88
--- /dev/null
+++ b/packages/app-text/texlive-core/texlive-core-2015.exheres-0
@@ -0,0 +1,355 @@
+# Copyright 2010, 2011 Ingmar Vanhassel
+# Copyright 2013-2015 Thomas Witt
+# Distributed under the terms of the GNU General Public License v2
+# Based in parts upon the texlive-core-2013.ebuild which is
+# Copyright 1999-2013 Gentoo Foundation
+
+require autotools [ supported_autoconf=[ none ] supported_automake=[ 1.13 ] ] texlive-common
+
+SUMMARY="The TeXlive distribution"
+HOMEPAGE="http://tug.org/texlive"
+TL_PN="texlive"
+TL_PV="20150521"
+DOWNLOADS="mirror://ctan/systems/${TL_PN}/Source/${TL_PN}-${TL_PV}-source.tar.xz"
+
+LICENCES="AS-IS GPL-2 GPL-3"
+SLOT="0"
+PLATFORMS="~amd64"
+MYOPTIONS="cjk doc source X xetex"
+
+TL_CORE_BINEXTRA_MODULES=(
+ a2ping adhocfilelist arara asymptote bibtex8 bibtexu bundledoc ctan_chk
+ ctanify ctanupload ctie cweb de-macro dtl dtxgen dvi2tty dviasm dvicopy
+ dvidvi dviljk dvipng dvipos findhyph fragmaster hook-pre-commit-pkg hyphenex
+ installfont lacheck latex-git-log latex2man latexfileversion latexpand
+ latexindent ltxfileinfo ltximg listings-ext match_parens mkjobtexmf patgen
+ pdfcrop pdftools pfarrei pkfix pkfix-helper purifyeps pythontex seetexk
+ sty2dtx synctex texcount texdef texdiff texdirflatten texdoc texfot
+ texliveonfly texloganalyser texware tie tpic2pdftex typeoutfileinfo web
+ collection-binextra
+)
+TL_CORE_BINEXTRA_DOC_MODULES=(
+ a2ping.doc adhocfilelist.doc arara.doc asymptote.doc bibtex8.doc bibtexu.doc
+ bundledoc.doc ctan_chk.doc ctanify.doc ctanupload.doc ctie.doc cweb.doc
+ de-macro.doc dtl.doc dtxgen.doc dvi2tty.doc dviasm.doc dvicopy.doc dviljk.doc
+ dvipng.doc dvipos.doc findhyph.doc fragmaster.doc hook-pre-commit-pkg.doc
+ installfont.doc lacheck.doc latex-git-log.doc latex2man.doc
+ latexfileversion.doc latexpand.doc latexindent.doc ltxfileinfo.doc
+ ltximg.doc listings-ext.doc match_parens.doc mkjobtexmf.doc patgen.doc
+ pdfcrop.doc pdftools.doc pfarrei.doc pkfix.doc pkfix-helper.doc
+ purifyeps.doc pythontex.doc seetexk.doc sty2dtx.doc synctex.doc texcount.doc
+ texdef.doc texdiff.doc texdirflatten.doc texdoc.doc texfot.doc
+ texliveonfly.doc texloganalyser.doc texware.doc tie.doc tpic2pdftex.doc
+ typeoutfileinfo.doc web.doc
+)
+TL_CORE_BINEXTRA_SRC_MODULES=(
+ adhocfilelist.source arara.source hyphenex.source listings-ext.source
+ mkjobtexmf.source pfarrei.source pythontex.source texdef.source
+)
+
+TL_CORE_EXTRA_MODULES=(
+ gsftopk hyphen-base tetex texconfig texlive.infra
+ ${TL_CORE_BINEXTRA_MODULES[@]}
+)
+TL_CORE_EXTRA_DOC_MODULES=(
+ gsftopk.doc tetex.doc texconfig.doc texlive.infra.doc
+ ${TL_CORE_BINEXTRA_DOC_MODULES[@]}
+)
+TL_CORE_EXTRA_SRC_MODULES=( ${TL_CORE_BINEXTRA_SRC_MODULES[@]} )
+
+for i in ${TL_CORE_EXTRA_MODULES[@]}; do
+ DOWNLOADS+=" http://dev.exherbo.org/distfiles/texlive/${PV}/texlive-module-${i}-${PV}.tar.xz"
+done
+
+DOWNLOADS+=" doc? ("
+for i in ${TL_CORE_EXTRA_MODULES[@]}; do
+ DOWNLOADS+=" http://dev.exherbo.org/distfiles/texlive/${PV}/texlive-module-${i}-${PV}.tar.xz"
+done
+DOWNLOADS+=" ) source? ("
+for i in ${TL_CORE_EXTRA_MODULES[@]}; do
+ DOWNLOADS+=" http://dev.exherbo.org/distfiles/texlive/${PV}/texlive-module-${i}-${PV}.tar.xz"
+done
+DOWNLOADS+=" )"
+
+REMOTE_IDS="freecode:${TL_PN}"
+
+
+RESTRICT="test"
+
+DEPENDENCIES="
+ build:
+ app-arch/xz
+ virtual/pkg-config
+ sys-apps/ed
+ sys-devel/flex
+ build+run:
+ app-text/dvipsk[>=5.995_p${TL_PV}]
+ app-text/ghostscript [[ note = [ --with-system-libgs ] ]]
+ app-text/poppler [[ note = [ --with-system-xpdf ] ]]
+ dev-libs/icu:= [[ note = [ --with-system-icu ] ]]
+ dev-libs/kpathsea[>=6.2.1_p${TL_PV}] [[ note = [ --with-system-kpathsea ] ]]
+ dev-libs/ptexenc[>=1.3.3_p${TL_PV}] [[ note = [ --with-system-ptexenc ] ]]
+ dev-libs/zziplib [[ note = [ --with-system-zziplib ] ]]
+ dev-tex/luatex[>=0.76]
+ media-libs/freetype:2 [[ note = [ --with-system-freetype2 ] ]]
+ media-libs/gd [[ note = [ --with-system-gd ] ]]
+ media-libs/libpng:= [[ note = [ --with-system-libpng ] ]]
+ media-libs/t1lib [[ note = [ --with-system-t1lib ] ]]
+ !media-libs/TECkit [[ note = [ use bundled version ] resolution = uninstall-blocked-before ]]
+ x11-libs/cairo [[ note = [ --with-system-cairo ] ]]
+ x11-libs/pixman:1
+ X? (
+ x11-libs/libXmu
+ x11-libs/libXp
+ x11-libs/libXpm
+ x11-libs/libICE
+ x11-libs/libSM
+ x11-libs/libXaw
+ x11-libs/libXfont
+ )
+ xetex? (
+ media-libs/fontconfig
+ media-libs/freetype:2
+ )
+ cjk? (
+ dev-libs/ptexenc
+ )
+ recommendation:
+ dev-tex/biblatex-biber [[ note = [ Replacement for BibTeX ] ]]
+"
+
+ #app-text/ps2pkm[>=1.5_p20120701]
+ #dev-tex/bibtexu[>=3.71_p20130530]
+ #media-gfx/graphite2
+ #x11-libs/harfbuzz
+ #xetex? ( app-text/xdvipdfmx[>=0.7.9_p20130530] ) ???
+
+WORK="${WORKBASE}/${TL_PN}-${TL_PV}-build/"
+#DEFAULT_SRC_PREPARE_PATCHES=( -p0 "${FILES}/texmfcnflua2013.patch" )
+ECONF_SOURCE="${WORKBASE}/${TL_PN}-${TL_PV}-source/"
+
+DEFAULT_SRC_COMPILE_PARAMS=( AR=${AR} )
+
+pkg_pretend() {
+ texlive_leftover_warning "${ROOT}"etc/texmf/web2c/updmap.cfg.d/updmap-hdr.cfg
+}
+
+src_unpack() {
+ default
+ edo mkdir "${WORK}"
+
+ option doc || edo rm -rf texmf-dist/doc
+}
+
+src_prepare() {
+ edo cd "${WORKBASE}"
+
+ texlive-common_reloc_target
+
+ edo cd "${ECONF_SOURCE}"
+
+ # Find the prefixed strings command
+ edo sed -e "s/if strings/if $(exhost --tool-prefix)strings/" \
+ -i libs/cairo/m4/float.m4
+ edo autoreconf libs/cairo
+
+ default
+
+ #FIXME GENTOO PATCH
+ # Manually regenerate all Makefile.ams touched by our patches.
+ # automake doesn't recurse, autoreconf takes too long.
+ #edo autoreconf texk/cjkutils/ texk/dvipdfmx/ texk/dvipsk/ \
+ #texk/gsftopk/ texk/kpathsea/ texk/lcdf-typetools/ \
+ #texk/texlive/ texk/xdvik/ texk/xdvipdfmx/
+}
+
+src_configure() {
+ local myconf=()
+
+ myconf=(
+ --with-banner-add="/Exherbo ${PNVR}"
+ # If enabled, build for a TeX Live binary distribution as shipped by the TeX user groups
+ --disable-native-texlive-build
+ # Don’t install executables, binaries into platform dependent subdirectories of bindir, libdir
+ --disable-multiplatform
+ --enable-shared
+ --disable-static
+ # Terminate the build if a requested feature can’t be enabled due to missing dependencies
+ --disable-missing
+
+ # Fails for some subdirectories
+ --hates=docdir
+
+ # We don’t currently have freetype:1, this is only used by texk/ttf2pk, which we disable
+ --with-system-{cairo,freetype2,gd,icu,kpathsea,libgs,pixman,libpng,ptexenc,poppler,t1lib,xpdf,zlib,zziplib}
+ --without-system-{graphite2,harfbuzz,teckit}
+ --with-freetype2-include=/usr/$(exhost --target)/include
+ --with-kpathsea-includes=/usr/$(exhost --target)/include
+ --with-petexenc-include=/usr/$(exhost --target)/include
+
+ --without-freetype
+
+ # Following features disabled temporarily until needed
+ --disable-lcdf-typetools
+ --disable-ttf2pk # requires freetype:1
+ --disable-xindy
+
+ --disable-luatex # separate package
+
+ --disable-biber # separate package
+
+ --disable-ps2eps
+ --disable-dvipng
+ --disable-dvipsk #separate package
+ --disable-chktex
+ --disable-pdfopen
+ --enable-ps2pkm
+ --disable-detex
+ --disable-ttf2pk
+ --disable-ttf2pk2
+ --disable-tex4htk
+ --disable-cjkutils
+ --disable-xdvik
+ --disable-dvi2tty
+ --disable-dvisvgm
+ --disable-vlna
+
+ # TODO system graphite2
+ $(option_enable xetex)
+ $(option_enable xetex xdvipdfmx)
+ #$(option_with xetex graphite2)
+
+ $(option_enable cjk ptex)
+ $(option_enable cjk eptex)
+ $(option_enable cjk uptex)
+ $(option_enable cjk euptex)
+ $(option_enable cjk mendexk)
+ $(option_enable cjk makejvf)
+ $(option_with cjk system-ptexenc)
+
+ $(option_with X x)
+
+ --disable-texdoctk
+ --disable-dialog # sys-apps/dialog
+ --disable-psutils # app-text/psutils
+ )
+
+ econf "${myconf[@]}"
+}
+
+src_install() {
+ default
+
+ dosym bibtex8 /usr/$(exhost --target)/bin/bibtex
+
+ # FIXME: Comb through /usr/texmf*/scripts for cruft that shouldn't be installed
+ # Get rid of tlmgr bits
+ edo rm -rf "${IMAGE}"/usr/{$(exhost --target)/bin/tlmgr,texmf/scripts/texlive/}
+
+ edo cp -pPR "${WORKBASE}/"texmf-dist "${IMAGE}"/usr/share/
+
+ dodir /usr/share/tlpkg
+ edo cp -pPR "${WORKBASE}/"tlpkg/TeXLive "${IMAGE}"/usr/share/tlpkg/
+
+ dodir /etc/texmf/updmap.d
+ edo mv "${IMAGE}/usr/share/texmf-dist/web2c/updmap-hdr.cfg" "${IMAGE}/etc/texmf/updmap.d"
+ dodir /etc/texmf/fmtutil.d
+ edo mv ${IMAGE}/usr/share/texmf-dist/web2c/fmtutil-hdr.cnf "${IMAGE}/etc/texmf/fmtutil.d"
+
+ # autogenerated by etexmf-update
+ nonfatal edo rm "${IMAGE}"/usr/share/texmf-dist/web2c/updmap.cfg
+ nonfatal edo rm "${IMAGE}"/usr/share/texmf-dist/web2c/fmtutil.cnf
+ nonfatal edo rm "${IMAGE}"/usr/share/texmf-dist/tex/generic/config/language.dat
+ nonfatal edo rm "${IMAGE}"/usr/share/texmf-dist/tex/generic/config/language.dat.lua
+ nonfatal edo rm "${IMAGE}"/usr/share/texmf-dist/tex/generic/config/language.def
+
+ texlive-common_handle_config_files
+
+ # handled by dev-tex/glossaries
+ nonfatal edo rm "${IMAGE}/usr/$(exhost --target)/bin/makeglossaries"
+ # handled by dev-texlive/langgreek
+ nonfatal edo rm -r "${IMAGE}"/usr/share/texmf-dist/scripts/mkgrkindex
+ # handled by dev-texlive/langcyrillic
+ nonfatal edo rm "${IMAGE}"/usr/share/texmf-dist/scripts/texlive/rubibtex.sh
+ nonfatal edo rm "${IMAGE}"/usr/share/texmf-dist/scripts/texlive/rumakeindex.sh
+ # handled by dev-texlive/texlive-fontutils
+ nonfatal edo rm -r "${IMAGE}"/usr/share/texmf-dist/scripts/accfonts
+ nonfatal edo rm -r "${IMAGE}"/usr/share/texmf-dist/scripts/dosepsbin
+ nonfatal edo rm -r "${IMAGE}"/usr/share/texmf-dist/scripts/epstopdf
+ nonfatal edo rm -r "${IMAGE}"/usr/share/texmf-dist/scripts/fontools
+ nonfatal edo rm -r "${IMAGE}"/usr/share/texmf-dist/scripts/mf2pt1
+ nonfatal edo rm "${IMAGE}"/usr/share/texmf-dist/scripts/texlive/fontinst.sh
+ nonfatal edo rm "${IMAGE}"/usr/share/texmf-dist/scripts/texlive/ps2frag.sh
+ nonfatal edo rm "${IMAGE}"/usr/share/texmf-dist/scripts/texlive/pslatex.sh
+ # handled by dev-texlive/texlive-langindic
+ nonfatal edo rm -r "${IMAGE}"/usr/share/texmf-dist/scripts/ebong
+ # handled by dev-texlive/texlive-latex
+ nonfatal edo rm -r "${IMAGE}"/usr/share/texmf-dist/scripts/context/perl
+ nonfatal edo rm -r "${IMAGE}"/usr/share/texmf-dist/scripts/oberdiek
+ # handled by dev-texlive/texlive-latexrecommended
+ nonfatal edo rm -r "${IMAGE}"/usr/share/texmf-dist/scripts/thumbpdf
+ # handled by dev-texlive/texlive-luatex
+ nonfatal edo rm -r "${IMAGE}"/usr/share/texmf-dist/scripts/checkcites
+ nonfatal edo rm -r "${IMAGE}"/usr/share/texmf-dist/scripts/lua2dox
+ nonfatal edo rm -r "${IMAGE}"/usr/share/texmf-dist/scripts/luaotfload
+ # handled by dev-texlive/texlive-pstricks
+ nonfatal edo rm -r "${IMAGE}"/usr/share/texmf-dist/scripts/cachepic
+ nonfatal edo rm -r "${IMAGE}"/usr/share/texmf-dist/scripts/epspdf
+ nonfatal edo rm -r "${IMAGE}"/usr/share/texmf-dist/scripts/fig4latex
+ nonfatal edo rm -r "${IMAGE}"/usr/share/texmf-dist/scripts/mathspic
+ nonfatal edo rm -r "${IMAGE}"/usr/share/texmf-dist/scripts/mkpic
+ nonfatal edo rm -r "${IMAGE}"/usr/share/texmf-dist/scripts/pedigree-perl
+ nonfatal edo rm -r "${IMAGE}"/usr/share/texmf-dist/scripts/pst2pdf
+ # handled by dev-texlive/texlive-latexextra
+ nonfatal edo rm -r "${IMAGE}"/usr/share/texmf-dist/scripts/authorindex
+ nonfatal edo rm -r "${IMAGE}"/usr/share/texmf-dist/scripts/exceltex
+ nonfatal edo rm -r "${IMAGE}"/usr/share/texmf-dist/scripts/glossaries
+ nonfatal edo rm -r "${IMAGE}"/usr/share/texmf-dist/scripts/pax
+ nonfatal edo rm -r "${IMAGE}"/usr/share/texmf-dist/scripts/perltex
+ nonfatal edo rm -r "${IMAGE}"/usr/share/texmf-dist/scripts/pst-pdf
+ nonfatal edo rm -r "${IMAGE}"/usr/share/texmf-dist/scripts/splitindex
+ nonfatal edo rm -r "${IMAGE}"/usr/share/texmf-dist/scripts/svn-multi
+ nonfatal edo rm -r "${IMAGE}"/usr/share/texmf-dist/scripts/vpe
+ # handled by dev-texlive/texlive-basic
+ nonfatal edo rm -r "${IMAGE}"/usr/share/texmf-dist/dvips
+ nonfatal edo rm -r "${IMAGE}"/usr/share/texmf-dist/dvipdfmx
+ nonfatal edo rm -r "${IMAGE}"/usr/share/texmf-dist/texconfig
+ nonfatal edo rm -r "${IMAGE}"/usr/share/texmf-dist/fonts
+ nonfatal edo rm -r "${IMAGE}"/usr/share/texmf-dist/tex/generic
+ nonfatal edo rm -r "${IMAGE}"/usr/$(exhost --target)/bin/mptopdf
+ nonfatal edo rm -r "${IMAGE}"/usr/$(exhost --target)/bin/pdfatfi
+ nonfatal edo rm -r "${IMAGE}"/usr/$(exhost --target)/bin/rungs
+ nonfatal edo rm -r "${IMAGE}"/usr/$(exhost --target)/bin/simpdftex
+ nonfatal edo rm -r "${IMAGE}"/usr/share/texmf-dist/scripts/simpdftex
+ nonfatal edo rm -r "${IMAGE}"/usr/share/texmf-dist/scripts/texlive/rungs.tlu
+ # handled by dev-texlive/texlive-science
+ nonfatal edo rm -r "${IMAGE}"/usr/share/texmf-dist/scripts/ulqda
+ # handled by dev-texlive/texlive-music
+ nonfatal edo rm -r "${IMAGE}"/usr/share/texmf-dist/scripts/lilyglyphs
+ nonfatal edo rm -r "${IMAGE}"/usr/share/texmf-dist/scripts/m-tx
+ nonfatal edo rm -r "${IMAGE}"/usr/share/texmf-dist/scripts/musixtex
+ nonfatal edo rm -r "${IMAGE}"/usr/share/texmf-dist/scripts/pmx{,chords}
+ # handled by dev-texlive/texlive-games
+ nonfatal edo rm -r "${IMAGE}"/usr/share/texmf-dist/scripts/rubik
+ # handled by dev-texlive/texlive-bibtexextra
+ nonfatal edo rm -r "${IMAGE}"/usr/share/texmf-dist/scripts/bibexport
+ nonfatal edo rm -r "${IMAGE}"/usr/share/texmf-dist/scripts/multibibliography
+ nonfatal edo rm -r "${IMAGE}"/usr/share/texmf-dist/scripts/urlbst
+ nonfatal edo rm -r "${IMAGE}"/usr/share/texmf-dist/scripts/listbib
+ # handled by dev-texlive/texlive-context
+ nonfatal edo rm -r "${IMAGE}"/usr/share/texmf-dist/scripts/context
+
+ keepdir /usr/share/texmf-dist/web2c
+}
+
+pkg_postinst() {
+ etexmf-update
+}
+
+pkg_postrm() {
+ if [[ -z ${REPLACED_BY_ID} ]]; then
+ nonfatal edo rm "${ROOT}"/etc/texmf/web2c/updmap.cfg
+ nonfatal edo rm "${ROOT}"/etc/texmf/web2c/fmtutil.cfg
+ fi
+}
+