summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /dev-tex
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'dev-tex')
-rw-r--r--dev-tex/aastex/Manifest1
-rw-r--r--dev-tex/aastex/aastex-5.2.ebuild22
-rw-r--r--dev-tex/aastex/metadata.xml5
-rw-r--r--dev-tex/abntex/Manifest2
-rw-r--r--dev-tex/abntex/abntex-0.9_beta2.ebuild60
-rw-r--r--dev-tex/abntex/metadata.xml15
-rw-r--r--dev-tex/bera/Manifest1
-rw-r--r--dev-tex/bera/bera-20040930.ebuild55
-rw-r--r--dev-tex/bera/metadata.xml5
-rw-r--r--dev-tex/biber/Manifest2
-rw-r--r--dev-tex/biber/biber-1.9.ebuild70
-rw-r--r--dev-tex/biber/biber-2.1.ebuild74
-rw-r--r--dev-tex/biber/files/biber-1.9-drop-mozilla-ca.patch221
-rw-r--r--dev-tex/biber/files/biber-2.1-drop-mozilla-ca.patch197
-rw-r--r--dev-tex/biber/metadata.xml12
-rw-r--r--dev-tex/biblatex-apa/Manifest1
-rw-r--r--dev-tex/biblatex-apa/biblatex-apa-6.6.ebuild30
-rw-r--r--dev-tex/biblatex-apa/metadata.xml13
-rw-r--r--dev-tex/biblatex/Manifest2
-rw-r--r--dev-tex/biblatex/biblatex-2.9a-r1.ebuild35
-rw-r--r--dev-tex/biblatex/biblatex-3.0-r1.ebuild35
-rw-r--r--dev-tex/biblatex/metadata.xml14
-rw-r--r--dev-tex/bibtex2html/Manifest2
-rw-r--r--dev-tex/bibtex2html/bibtex2html-1.97.ebuild58
-rw-r--r--dev-tex/bibtex2html/bibtex2html-1.98.ebuild58
-rw-r--r--dev-tex/bibtex2html/files/bibtex2html-1.88-destdir.patch40
-rw-r--r--dev-tex/bibtex2html/metadata.xml6
-rw-r--r--dev-tex/bibtexu/Manifest16
-rw-r--r--dev-tex/bibtexu/bibtexu-3.71_p20120701.ebuild36
-rw-r--r--dev-tex/bibtexu/bibtexu-3.71_p20130530.ebuild57
-rw-r--r--dev-tex/bibtexu/bibtexu-3.71_p20140525.ebuild60
-rw-r--r--dev-tex/bibtexu/bibtexu-3.71_p20150521.ebuild57
-rw-r--r--dev-tex/bibtexu/metadata.xml5
-rw-r--r--dev-tex/catdvi/Manifest1
-rw-r--r--dev-tex/catdvi/catdvi-0.14-r1.ebuild36
-rw-r--r--dev-tex/catdvi/files/catdvi-0.14-kpathsea.patch60
-rw-r--r--dev-tex/catdvi/metadata.xml11
-rw-r--r--dev-tex/cdcover/Manifest1
-rw-r--r--dev-tex/cdcover/cdcover-1.3b.ebuild16
-rw-r--r--dev-tex/cdcover/metadata.xml5
-rw-r--r--dev-tex/chktex/Manifest4
-rw-r--r--dev-tex/chktex/chktex-1.7.1.ebuild51
-rw-r--r--dev-tex/chktex/chktex-1.7.2.ebuild51
-rw-r--r--dev-tex/chktex/chktex-1.7.3.ebuild53
-rw-r--r--dev-tex/chktex/chktex-1.7.4.ebuild53
-rw-r--r--dev-tex/chktex/files/chktex-1.7.1-asneeded.patch13
-rw-r--r--dev-tex/chktex/metadata.xml5
-rw-r--r--dev-tex/circuit_macros/Manifest4
-rw-r--r--dev-tex/circuit_macros/circuit_macros-7.9.6.ebuild54
-rw-r--r--dev-tex/circuit_macros/circuit_macros-8.0.ebuild50
-rw-r--r--dev-tex/circuit_macros/circuit_macros-8.02.ebuild50
-rw-r--r--dev-tex/circuit_macros/circuit_macros-8.04.ebuild50
-rwxr-xr-xdev-tex/circuit_macros/files/cm2pdf72
-rw-r--r--dev-tex/circuit_macros/metadata.xml19
-rw-r--r--dev-tex/cjk-latex/Manifest6
-rw-r--r--dev-tex/cjk-latex/cjk-latex-4.8.3-r1.ebuild161
-rw-r--r--dev-tex/cjk-latex/cjk-latex-4.8.4.ebuild164
-rw-r--r--dev-tex/cjk-latex/metadata.xml6
-rw-r--r--dev-tex/cpp2latex/Manifest1
-rw-r--r--dev-tex/cpp2latex/cpp2latex-2.3-r1.ebuild31
-rw-r--r--dev-tex/cpp2latex/files/cpp2latex-2.3-gcc43.patch12
-rw-r--r--dev-tex/cpp2latex/files/cpp2latex-2.3-tests.patch15
-rw-r--r--dev-tex/cpp2latex/files/cpp2latex-2.3.patch44
-rw-r--r--dev-tex/cpp2latex/metadata.xml5
-rw-r--r--dev-tex/crosstex/Manifest1
-rw-r--r--dev-tex/crosstex/crosstex-0.6.ebuild51
-rw-r--r--dev-tex/crosstex/metadata.xml8
-rw-r--r--dev-tex/csindex/Manifest1
-rw-r--r--dev-tex/csindex/csindex-2.11c-r1.ebuild37
-rw-r--r--dev-tex/csindex/files/csindex-2.11c-decl.patch25
-rw-r--r--dev-tex/csindex/files/csindex-2.11c-flags.patch16
-rw-r--r--dev-tex/csindex/metadata.xml12
-rw-r--r--dev-tex/culmus-latex/Manifest1
-rw-r--r--dev-tex/culmus-latex/culmus-latex-0.7.ebuild38
-rw-r--r--dev-tex/culmus-latex/metadata.xml8
-rw-r--r--dev-tex/currvita/Manifest1
-rw-r--r--dev-tex/currvita/currvita-0.9i-r1.ebuild33
-rw-r--r--dev-tex/currvita/metadata.xml5
-rw-r--r--dev-tex/curve/Manifest1
-rw-r--r--dev-tex/curve/curve-1.16.ebuild39
-rw-r--r--dev-tex/curve/metadata.xml5
-rw-r--r--dev-tex/detex/Manifest1
-rw-r--r--dev-tex/detex/detex-2.8-r1.ebuild41
-rw-r--r--dev-tex/detex/files/detex-2.8-ldflags.patch17
-rw-r--r--dev-tex/detex/metadata.xml5
-rw-r--r--dev-tex/dot2tex/Manifest2
-rw-r--r--dev-tex/dot2tex/dot2tex-2.8.7-r1.ebuild36
-rw-r--r--dev-tex/dot2tex/dot2tex-2.8.7.ebuild38
-rw-r--r--dev-tex/dot2tex/dot2tex-2.9.0.ebuild44
-rw-r--r--dev-tex/dot2tex/metadata.xml9
-rw-r--r--dev-tex/dot2texi/Manifest1
-rw-r--r--dev-tex/dot2texi/dot2texi-3.0.ebuild38
-rw-r--r--dev-tex/dot2texi/metadata.xml10
-rw-r--r--dev-tex/dvi2gr/Manifest1
-rw-r--r--dev-tex/dvi2gr/dvi2gr-0.4.ebuild41
-rw-r--r--dev-tex/dvi2gr/metadata.xml9
-rw-r--r--dev-tex/dvi2tty/Manifest1
-rw-r--r--dev-tex/dvi2tty/dvi2tty-5.3.4.ebuild30
-rw-r--r--dev-tex/dvi2tty/files/dvi2tty-5.3.4-cflags.patch29
-rw-r--r--dev-tex/dvi2tty/files/dvi2tty-cflags.patch30
-rw-r--r--dev-tex/dvi2tty/files/dvi2tty-gcc.patch12
-rw-r--r--dev-tex/dvi2tty/files/dvi2tty-getline.patch67
-rw-r--r--dev-tex/dvi2tty/metadata.xml14
-rw-r--r--dev-tex/dvipost/Manifest1
-rw-r--r--dev-tex/dvipost/dvipost-1.1-r2.ebuild39
-rw-r--r--dev-tex/dvipost/files/1.1-ldflags.patch13
-rw-r--r--dev-tex/dvipost/metadata.xml5
-rw-r--r--dev-tex/ellipsis/Manifest1
-rw-r--r--dev-tex/ellipsis/ellipsis-1.6.ebuild28
-rw-r--r--dev-tex/ellipsis/metadata.xml5
-rw-r--r--dev-tex/envlab/Manifest1
-rw-r--r--dev-tex/envlab/envlab-1.2-r1.ebuild39
-rw-r--r--dev-tex/envlab/metadata.xml5
-rw-r--r--dev-tex/europecv/Manifest1
-rw-r--r--dev-tex/europecv/europecv-20060424-r1.ebuild38
-rw-r--r--dev-tex/europecv/metadata.xml5
-rw-r--r--dev-tex/feynmf/Manifest2
-rw-r--r--dev-tex/feynmf/feynmf-1.08-r3.ebuild46
-rw-r--r--dev-tex/feynmf/feynmf-1.08-r4.ebuild56
-rw-r--r--dev-tex/feynmf/files/feynmf-1.08-tempfile.patch33
-rw-r--r--dev-tex/feynmf/files/feynmf-1.08.patch12
-rw-r--r--dev-tex/feynmf/metadata.xml14
-rw-r--r--dev-tex/flabels/Manifest1
-rw-r--r--dev-tex/flabels/flabels-1.0.ebuild29
-rw-r--r--dev-tex/flabels/metadata.xml5
-rw-r--r--dev-tex/floatflt/Manifest1
-rw-r--r--dev-tex/floatflt/floatflt-1.31a.ebuild25
-rw-r--r--dev-tex/floatflt/metadata.xml5
-rw-r--r--dev-tex/foiltex/Manifest1
-rw-r--r--dev-tex/foiltex/foiltex-2.1.4b.ebuild26
-rw-r--r--dev-tex/foiltex/metadata.xml5
-rw-r--r--dev-tex/frakturx/Manifest13
-rw-r--r--dev-tex/frakturx/frakturx-20070103.ebuild60
-rw-r--r--dev-tex/frakturx/metadata.xml20
-rw-r--r--dev-tex/fundus/Manifest2
-rw-r--r--dev-tex/fundus/fundus-19970826.ebuild39
-rw-r--r--dev-tex/fundus/metadata.xml5
-rw-r--r--dev-tex/g-brief/Manifest1
-rw-r--r--dev-tex/g-brief/g-brief-4.0.2.ebuild23
-rw-r--r--dev-tex/g-brief/metadata.xml5
-rw-r--r--dev-tex/glossaries/Manifest4
-rw-r--r--dev-tex/glossaries/glossaries-3.04.ebuild42
-rw-r--r--dev-tex/glossaries/glossaries-4.07.ebuild40
-rw-r--r--dev-tex/glossaries/glossaries-4.11.ebuild40
-rw-r--r--dev-tex/glossaries/glossaries-4.12-r1.ebuild41
-rw-r--r--dev-tex/glossaries/metadata.xml6
-rw-r--r--dev-tex/harvard/Manifest1
-rw-r--r--dev-tex/harvard/harvard-2.0.5.ebuild15
-rw-r--r--dev-tex/harvard/metadata.xml5
-rw-r--r--dev-tex/herm-pic/Manifest1
-rw-r--r--dev-tex/herm-pic/herm-pic-1.0.2.ebuild16
-rw-r--r--dev-tex/herm-pic/metadata.xml5
-rw-r--r--dev-tex/hevea/Manifest8
-rw-r--r--dev-tex/hevea/hevea-2.03.ebuild58
-rw-r--r--dev-tex/hevea/hevea-2.18.ebuild58
-rw-r--r--dev-tex/hevea/hevea-2.19.ebuild58
-rw-r--r--dev-tex/hevea/hevea-2.20.ebuild58
-rw-r--r--dev-tex/hevea/hevea-2.21.ebuild58
-rw-r--r--dev-tex/hevea/hevea-2.22.ebuild58
-rw-r--r--dev-tex/hevea/hevea-2.23.ebuild58
-rw-r--r--dev-tex/hevea/hevea-2.25.ebuild58
-rw-r--r--dev-tex/hevea/metadata.xml6
-rw-r--r--dev-tex/hlatex/Manifest16
-rw-r--r--dev-tex/hlatex/hlatex-1.0.1.ebuild116
-rw-r--r--dev-tex/hlatex/metadata.xml6
-rw-r--r--dev-tex/html2latex/Manifest1
-rw-r--r--dev-tex/html2latex/html2latex-1.1-r1.ebuild41
-rw-r--r--dev-tex/html2latex/metadata.xml8
-rw-r--r--dev-tex/hyphen_show/Manifest1
-rw-r--r--dev-tex/hyphen_show/files/hyphen_show-gcc34.patch78
-rw-r--r--dev-tex/hyphen_show/hyphen_show-20000425.ebuild32
-rw-r--r--dev-tex/hyphen_show/metadata.xml13
-rw-r--r--dev-tex/isotope/Manifest1
-rw-r--r--dev-tex/isotope/isotope-20040401.ebuild19
-rw-r--r--dev-tex/isotope/metadata.xml11
-rw-r--r--dev-tex/ivritex/Manifest1
-rw-r--r--dev-tex/ivritex/ivritex-1.1.2.ebuild25
-rw-r--r--dev-tex/ivritex/metadata.xml8
-rw-r--r--dev-tex/latex-beamer/Manifest2
-rw-r--r--dev-tex/latex-beamer/latex-beamer-3.33.ebuild38
-rw-r--r--dev-tex/latex-beamer/latex-beamer-3.36.ebuild38
-rw-r--r--dev-tex/latex-beamer/metadata.xml8
-rw-r--r--dev-tex/latex-calendar/Manifest1
-rw-r--r--dev-tex/latex-calendar/latex-calendar-3.1.ebuild31
-rw-r--r--dev-tex/latex-calendar/metadata.xml5
-rw-r--r--dev-tex/latex-unicode/Manifest2
-rw-r--r--dev-tex/latex-unicode/latex-unicode-20041017.ebuild64
-rw-r--r--dev-tex/latex-unicode/metadata.xml6
-rw-r--r--dev-tex/latex2html/Manifest2
-rw-r--r--dev-tex/latex2html/files/latex2html-convert-length.patch22
-rw-r--r--dev-tex/latex2html/files/latex2html-destdir.patch15
-rw-r--r--dev-tex/latex2html/files/latex2html-extract-major-version-2.patch12
-rw-r--r--dev-tex/latex2html/files/latex2html-extract-major-version.patch12
-rw-r--r--dev-tex/latex2html/files/latex2html-perl_name.patch11
-rw-r--r--dev-tex/latex2html/latex2html-2008-r1.ebuild85
-rw-r--r--dev-tex/latex2html/latex2html-2008.ebuild82
-rw-r--r--dev-tex/latex2html/metadata.xml5
-rw-r--r--dev-tex/latex2rtf/Manifest4
-rw-r--r--dev-tex/latex2rtf/files/texinfo5.patch25
-rw-r--r--dev-tex/latex2rtf/latex2rtf-2.2.1b.ebuild54
-rw-r--r--dev-tex/latex2rtf/latex2rtf-2.3.1.ebuild48
-rw-r--r--dev-tex/latex2rtf/latex2rtf-2.3.3.ebuild48
-rw-r--r--dev-tex/latex2rtf/latex2rtf-2.3.8.ebuild48
-rw-r--r--dev-tex/latex2rtf/metadata.xml8
-rw-r--r--dev-tex/latexdiff/Manifest3
-rw-r--r--dev-tex/latexdiff/latexdiff-0.5.ebuild30
-rw-r--r--dev-tex/latexdiff/latexdiff-1.0.4.ebuild32
-rw-r--r--dev-tex/latexdiff/latexdiff-1.1.0.ebuild32
-rw-r--r--dev-tex/latexdiff/metadata.xml8
-rw-r--r--dev-tex/latexmk/Manifest3
-rw-r--r--dev-tex/latexmk/files/completion.bash-245
-rw-r--r--dev-tex/latexmk/latexmk-435.ebuild31
-rw-r--r--dev-tex/latexmk/latexmk-441.ebuild30
-rw-r--r--dev-tex/latexmk/latexmk-443a.ebuild30
-rw-r--r--dev-tex/latexmk/metadata.xml5
-rw-r--r--dev-tex/lazylist/Manifest1
-rw-r--r--dev-tex/lazylist/lazylist-1.0a.ebuild18
-rw-r--r--dev-tex/lazylist/metadata.xml6
-rw-r--r--dev-tex/leaflet/Manifest1
-rw-r--r--dev-tex/leaflet/files/leaflet-20041222-logging.patch14
-rw-r--r--dev-tex/leaflet/leaflet-20041222.ebuild30
-rw-r--r--dev-tex/leaflet/metadata.xml5
-rw-r--r--dev-tex/lgrind/Manifest1
-rw-r--r--dev-tex/lgrind/files/lgrind-3.67-fgets.patch13
-rw-r--r--dev-tex/lgrind/lgrind-3.67-r3.ebuild50
-rw-r--r--dev-tex/lgrind/metadata.xml5
-rw-r--r--dev-tex/luatex/Manifest4
-rw-r--r--dev-tex/luatex/files/includes.patch25
-rw-r--r--dev-tex/luatex/files/kpathsea2012.patch28
-rw-r--r--dev-tex/luatex/files/poppler018.patch160
-rw-r--r--dev-tex/luatex/files/poppler020.patch75
-rw-r--r--dev-tex/luatex/files/poppler022.patch388
-rw-r--r--dev-tex/luatex/files/poppler026-backport.patch99
-rw-r--r--dev-tex/luatex/files/poppler026.patch143
-rw-r--r--dev-tex/luatex/files/remove-zlib-version-check.patch23
-rw-r--r--dev-tex/luatex/luatex-0.70.1-r2.ebuild121
-rw-r--r--dev-tex/luatex/luatex-0.76.0.ebuild104
-rw-r--r--dev-tex/luatex/metadata.xml10
-rw-r--r--dev-tex/metadata.xml41
-rw-r--r--dev-tex/metapost/Manifest3
-rw-r--r--dev-tex/metapost/files/invocname.patch13
-rw-r--r--dev-tex/metapost/metadata.xml5
-rw-r--r--dev-tex/metapost/metapost-1.780.ebuild74
-rw-r--r--dev-tex/metapost/metapost-1.803.ebuild74
-rw-r--r--dev-tex/metapost/metapost-1.902.ebuild77
-rw-r--r--dev-tex/minted/Manifest2
-rw-r--r--dev-tex/minted/metadata.xml11
-rw-r--r--dev-tex/minted/minted-1.7.ebuild28
-rw-r--r--dev-tex/minted/minted-2.0.ebuild28
-rw-r--r--dev-tex/newlfm/Manifest1
-rw-r--r--dev-tex/newlfm/metadata.xml5
-rw-r--r--dev-tex/newlfm/newlfm-8.3-r1.ebuild38
-rw-r--r--dev-tex/notoccite/Manifest1
-rw-r--r--dev-tex/notoccite/metadata.xml12
-rw-r--r--dev-tex/notoccite/notoccite-20000720.ebuild18
-rw-r--r--dev-tex/oesch/Manifest1
-rw-r--r--dev-tex/oesch/metadata.xml5
-rw-r--r--dev-tex/oesch/oesch-20080712.ebuild35
-rw-r--r--dev-tex/pdfannotextractor/Manifest1
-rw-r--r--dev-tex/pdfannotextractor/files/javajars.patch13
-rw-r--r--dev-tex/pdfannotextractor/metadata.xml5
-rw-r--r--dev-tex/pdfannotextractor/pdfannotextractor-0.1l.ebuild52
-rw-r--r--dev-tex/pgf/Manifest2
-rw-r--r--dev-tex/pgf/metadata.xml8
-rw-r--r--dev-tex/pgf/pgf-2.10.ebuild41
-rw-r--r--dev-tex/pgf/pgf-3.0.0.ebuild39
-rw-r--r--dev-tex/polytable/Manifest1
-rw-r--r--dev-tex/polytable/metadata.xml6
-rw-r--r--dev-tex/polytable/polytable-0.8.2.ebuild18
-rw-r--r--dev-tex/ppower4/Manifest1
-rw-r--r--dev-tex/ppower4/files/ppower4-gentoo.patch11
-rw-r--r--dev-tex/ppower4/metadata.xml5
-rw-r--r--dev-tex/ppower4/ppower4-0.9.6.ebuild47
-rw-r--r--dev-tex/prosper/Manifest2
-rw-r--r--dev-tex/prosper/metadata.xml8
-rw-r--r--dev-tex/prosper/prosper-1.5-r1.ebuild39
-rw-r--r--dev-tex/pscyr/Manifest2
-rw-r--r--dev-tex/pscyr/files/90pscyr.cfg2
-rw-r--r--dev-tex/pscyr/metadata.xml9
-rw-r--r--dev-tex/pscyr/pscyr-0.4d_beta9.ebuild44
-rw-r--r--dev-tex/pstplus/Manifest1
-rw-r--r--dev-tex/pstplus/metadata.xml5
-rw-r--r--dev-tex/pstplus/pstplus-1.6.ebuild40
-rw-r--r--dev-tex/qtexengine/Manifest1
-rw-r--r--dev-tex/qtexengine/files/qtexengine-0.3-dynlib.patch21
-rw-r--r--dev-tex/qtexengine/metadata.xml8
-rw-r--r--dev-tex/qtexengine/qtexengine-0.3.ebuild44
-rw-r--r--dev-tex/quotchap/Manifest1
-rw-r--r--dev-tex/quotchap/metadata.xml5
-rw-r--r--dev-tex/quotchap/quotchap-0.9f.ebuild26
-rw-r--r--dev-tex/rail/Manifest1
-rw-r--r--dev-tex/rail/metadata.xml8
-rw-r--r--dev-tex/rail/rail-1.2_p1.ebuild37
-rw-r--r--dev-tex/rcsinfo/Manifest1
-rw-r--r--dev-tex/rcsinfo/metadata.xml5
-rw-r--r--dev-tex/rcsinfo/rcsinfo-1.9.ebuild18
-rw-r--r--dev-tex/revtex/Manifest2
-rw-r--r--dev-tex/revtex/metadata.xml7
-rw-r--r--dev-tex/revtex/revtex-4.1_p2-r1.ebuild43
-rw-r--r--dev-tex/revtex/revtex-4.ebuild39
-rw-r--r--dev-tex/rubber/Manifest1
-rw-r--r--dev-tex/rubber/metadata.xml5
-rw-r--r--dev-tex/rubber/rubber-1.1_p20090819.ebuild45
-rw-r--r--dev-tex/serienbrief/Manifest1
-rw-r--r--dev-tex/serienbrief/metadata.xml5
-rw-r--r--dev-tex/serienbrief/serienbrief-0.2.4.ebuild38
-rw-r--r--dev-tex/sketch/Manifest1
-rw-r--r--dev-tex/sketch/metadata.xml14
-rw-r--r--dev-tex/sketch/sketch-0.3.7.ebuild44
-rw-r--r--dev-tex/slatex/Manifest1
-rw-r--r--dev-tex/slatex/metadata.xml12
-rw-r--r--dev-tex/slatex/slatex-20090928.ebuild43
-rw-r--r--dev-tex/style-check/Manifest1
-rw-r--r--dev-tex/style-check/metadata.xml5
-rw-r--r--dev-tex/style-check/style-check-0.14.ebuild23
-rw-r--r--dev-tex/svninfo/Manifest1
-rw-r--r--dev-tex/svninfo/files/svninfo-0.5-latex-compile.patch11
-rw-r--r--dev-tex/svninfo/metadata.xml5
-rw-r--r--dev-tex/svninfo/svninfo-0.7.4.ebuild28
-rw-r--r--dev-tex/tex4ht/Manifest1
-rw-r--r--dev-tex/tex4ht/files/50tex4ht.cnf4
-rw-r--r--dev-tex/tex4ht/files/tex4ht-texlive-updates.patch428
-rw-r--r--dev-tex/tex4ht/metadata.xml5
-rw-r--r--dev-tex/tex4ht/tex4ht-20090611_p1038-r1.ebuild113
-rw-r--r--dev-tex/tex4ht/tex4ht-20090611_p1038-r2.ebuild114
-rw-r--r--dev-tex/tex4ht/tex4ht-20090611_p1038-r3.ebuild121
-rw-r--r--dev-tex/texamator/Manifest1
-rw-r--r--dev-tex/texamator/files/texamator3
-rw-r--r--dev-tex/texamator/metadata.xml5
-rw-r--r--dev-tex/texamator/texamator-1.7.5.ebuild48
-rw-r--r--dev-tex/texmfind/Manifest1
-rw-r--r--dev-tex/texmfind/metadata.xml28
-rw-r--r--dev-tex/texmfind/texmfind-2010.1.ebuild17
-rw-r--r--dev-tex/texpower/Manifest1
-rw-r--r--dev-tex/texpower/metadata.xml8
-rw-r--r--dev-tex/texpower/texpower-0.2.ebuild49
-rw-r--r--dev-tex/tipa/Manifest1
-rw-r--r--dev-tex/tipa/metadata.xml5
-rw-r--r--dev-tex/tipa/tipa-1.3.ebuild53
-rw-r--r--dev-tex/translator/Manifest1
-rw-r--r--dev-tex/translator/metadata.xml8
-rw-r--r--dev-tex/translator/translator-1.00.ebuild27
-rw-r--r--dev-tex/tth/Manifest1
-rw-r--r--dev-tex/tth/metadata.xml5
-rw-r--r--dev-tex/tth/tth-3.77.ebuild36
-rw-r--r--dev-tex/xcolor/Manifest1
-rw-r--r--dev-tex/xcolor/metadata.xml5
-rw-r--r--dev-tex/xcolor/xcolor-2.11.ebuild31
-rw-r--r--dev-tex/xmltex/Manifest1
-rw-r--r--dev-tex/xmltex/files/format.xmltex.cnf2
-rw-r--r--dev-tex/xmltex/metadata.xml5
-rw-r--r--dev-tex/xmltex/xmltex-1.9-r2.ebuild49
-rw-r--r--dev-tex/xymtex/Manifest1
-rw-r--r--dev-tex/xymtex/metadata.xml6
-rw-r--r--dev-tex/xymtex/xymtex-5.00a.ebuild44
355 files changed, 9713 insertions, 0 deletions
diff --git a/dev-tex/aastex/Manifest b/dev-tex/aastex/Manifest
new file mode 100644
index 00000000000..a6327020013
--- /dev/null
+++ b/dev-tex/aastex/Manifest
@@ -0,0 +1 @@
+DIST aastex52.tar.gz 1047075 SHA256 c57449e34e704f554c382995418ad721d8cf0aac1ef5c2e11502315d8a6d39a4 SHA512 1015733b1413cb559d6d96b0d526939f5c505d3cc947c39f790a8c83b4b7316de465f15fb682ca79a2de06d6b826b9a11af4554787eb5a9ff5de9c24a005c9ef WHIRLPOOL 3ea36e519665dcf0f4b2aa45795ba96fbdeeb8dace5ca367665926c45325f173d5974d35df464874dc5f40546f2490cd55b8a54feeb1ee3a04e261f01a9890c1
diff --git a/dev-tex/aastex/aastex-5.2.ebuild b/dev-tex/aastex/aastex-5.2.ebuild
new file mode 100644
index 00000000000..6eb7b192200
--- /dev/null
+++ b/dev-tex/aastex/aastex-5.2.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit latex-package
+
+MY_P=${PN/latex-/}${PV//./}
+S=${WORKDIR}/${MY_P}
+DESCRIPTION="LaTeX package used to mark up manuscripts for American Astronomical Society journals. (AASTeX)"
+HOMEPAGE="http://www.journals.uchicago.edu/AAS/AASTeX/"
+SRC_URI="http://www.journals.uchicago.edu/AAS/AASTeX/${MY_P}.tar.gz"
+
+LICENSE="LPPL-1.3"
+SLOT="0"
+KEYWORDS="alpha amd64 hppa ~mips ppc sparc x86"
+IUSE=""
+
+src_install() {
+ export VARTEXFONTS="${T}/fonts"
+
+ latex-package_src_install
+}
diff --git a/dev-tex/aastex/metadata.xml b/dev-tex/aastex/metadata.xml
new file mode 100644
index 00000000000..ba6a8a8800d
--- /dev/null
+++ b/dev-tex/aastex/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>tex</herd>
+</pkgmetadata>
diff --git a/dev-tex/abntex/Manifest b/dev-tex/abntex/Manifest
new file mode 100644
index 00000000000..aaade536288
--- /dev/null
+++ b/dev-tex/abntex/Manifest
@@ -0,0 +1,2 @@
+DIST abntex-0.9-beta2.tar.gz 159150 SHA256 6e94a0328f65494406c02e410725c1c9761468443c21accf0ece5ee77fcd4e62 SHA512 00027c5a7a60b15f9e1bf2cb782d6bdf106fbbff33b1c0be13f6404de9e3c81957a27d7c843b209a1f3b4660eb43236ff601034741cd560e6d88274f04a4edb8 WHIRLPOOL ac08d261e8a1beb18a9aafd67ce39cfc406063d88915a60b682fb1bf38f5089abee4a43c2d4cc8cd5da065dee8a3f6d739df4440fd7779786d20212026429de0
+DIST abntex-doc-0.9-beta2.tar.gz 1350153 SHA256 18cef1e4dc70c61b93bbf82004d990b0957ab081986d32d67bc15713be79f5c6 SHA512 2084e4d3a613140ab53dab2c782e0b7e07294bf60615d79ac7b0a75fd6ae350f365401fb5722266c1e540ab8a94671299cabcd007f799be01c520f39d1af6878 WHIRLPOOL 5d5168e9076af1dc795467678efd557a1d05bde3a27f138c9932f980fa53348c8b015f11590b7586318bce6b0b84ec3500cf8666a8fc0249bb7d6c158ab58b6c
diff --git a/dev-tex/abntex/abntex-0.9_beta2.ebuild b/dev-tex/abntex/abntex-0.9_beta2.ebuild
new file mode 100644
index 00000000000..5022b63ea95
--- /dev/null
+++ b/dev-tex/abntex/abntex-0.9_beta2.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=3
+
+inherit latex-package
+
+MY_PV="${PV/_/-}"
+MY_P="${PN}-${MY_PV}"
+
+DESCRIPTION="LaTeX macros for writing documents following the ABNT norms"
+HOMEPAGE="http://abntex.codigolivre.org.br/ http://abntex.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz
+ doc? ( mirror://sourceforge/${PN}/${PN}-doc-${MY_PV}.tar.gz )"
+
+LICENSE="LPPL-1.3c"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+IUSE="doc examples lyx"
+
+DEPEND="dev-texlive/texlive-latex
+ dev-texlive/texlive-latexrecommended
+ lyx? ( app-office/lyx )"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MY_P%-*}"
+
+src_prepare() {
+ # fix permissions
+ find . -type f -exec chmod 0644 "{}" + || die 'chmod 0644 failed.'
+ find . -type d -exec chmod 0755 "{}" + || die 'chmod 0755 failed.'
+}
+
+src_install() {
+ dobin bin/geratss || die 'dobin failed.'
+
+ if use examples; then
+ insinto /usr/share/doc/${PF}/examples
+ doins -r texmf/doc/* || die 'could not install examples.'
+ fi
+
+ rm -rf texmf/doc
+
+ insinto /usr/share/texmf-site
+ doins -r texmf/* || die 'could not install texmf.'
+
+ if use lyx; then
+ insinto /usr/share/lyx
+ doins -r lyx/* || die 'could not install lyx files.'
+ fi
+
+ dodoc LEIAME || die 'could not install LEIAME'
+
+ if use doc; then
+ insinto /usr/share/doc/${PF}/docs
+ doins -r compiled.docs/* || die "could not install doc"
+ fi
+}
diff --git a/dev-tex/abntex/metadata.xml b/dev-tex/abntex/metadata.xml
new file mode 100644
index 00000000000..dace8a81980
--- /dev/null
+++ b/dev-tex/abntex/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>tex</herd>
+ <maintainer>
+ <email>rafaelmartins@gentoo.org</email>
+ <name>Rafael G. Martins</name>
+ </maintainer>
+ <use>
+ <flag name="lyx">Install with <pkg>app-office/lyx</pkg> layout</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">abntex</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-tex/bera/Manifest b/dev-tex/bera/Manifest
new file mode 100644
index 00000000000..d5f318f5903
--- /dev/null
+++ b/dev-tex/bera/Manifest
@@ -0,0 +1 @@
+DIST bera-20040930.zip 474202 SHA256 29735b1ca7281537a420b2e214b9fddfc27bcb478ad2bd5caf23a489ab1d8cd9 SHA512 a783fa424b0274e83e3648f763e66a467ae154a12da800a806ef74dce820b1d9ff0daf19e155f1edde78caac0880a6512cfe40c707a82b65dcac738e7a9588fa WHIRLPOOL ce81c7cf9690f5a5dfa0f70e144a3ff72a7d31da282cc3a6e9fd729d1deb9fad157905b3a7f879a1e510065aae6f55880fe98321e15b6d270ea046c685fc9e9c
diff --git a/dev-tex/bera/bera-20040930.ebuild b/dev-tex/bera/bera-20040930.ebuild
new file mode 100644
index 00000000000..e187c0b73e6
--- /dev/null
+++ b/dev-tex/bera/bera-20040930.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit latex-package
+
+MY_P=${PN}
+S=${WORKDIR}/${MY_P}
+SUPPLIER="public"
+DESCRIPTION="LaTeX package for the Bera Type1 font family"
+HOMEPAGE="http://www.ctan.org/tex-archive/fonts/bera/"
+SRC_URI="mirror://gentoo/${P}.zip"
+LICENSE="LPPL-1.2"
+
+DEPEND="app-arch/unzip"
+
+KEYWORDS="~amd64 ~x86"
+SLOT="0"
+
+IUSE=""
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ unzip ${MY_P}.zip
+}
+
+src_install() {
+ DOCS="${S}/README ${S}/LICENSE ${S}/doc/fonts/bera/bera.txt"
+ # install sty and fonts
+ cd "${S}/tex/latex/${MY_P}"
+ latex-package_src_install
+
+ cd "${S}/fonts/vf/public/${MY_P}"
+ latex-package_src_install
+
+ cd "${S}/fonts/tfm/public/${MY_P}"
+ latex-package_src_install
+
+ # install map
+ cd "${S}"
+ dodir ${TEXMF}/fonts/map/dvips/${MY_P}
+ cp -pPR fonts/map/dvips/${MY_P}.map "${D}${TEXMF}/fonts/map/dvips/${MY_P}"
+
+ latex-package_src_install
+}
+
+pkg_postinst() {
+ latex-package_rehash
+ updmap-sys --enable Map ${MY_P}.map
+}
+
+pkg_postrm() {
+ updmap-sys --disable ${MY_P}.map
+}
diff --git a/dev-tex/bera/metadata.xml b/dev-tex/bera/metadata.xml
new file mode 100644
index 00000000000..21ff3a53848
--- /dev/null
+++ b/dev-tex/bera/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>tex</herd>
+</pkgmetadata>
diff --git a/dev-tex/biber/Manifest b/dev-tex/biber/Manifest
new file mode 100644
index 00000000000..dbc6684317f
--- /dev/null
+++ b/dev-tex/biber/Manifest
@@ -0,0 +1,2 @@
+DIST biber-1.9.tar.gz 2046569 SHA256 4b8f7ab78f326f2c862c99f8dbb3b224c49f9289820dc226c9529dfa945d9066 SHA512 6b417fd2537e832e8309e3cd1405037a0e1a6e1bc2f2759a208a97f1107a787c269eb3dd9a5b3875855dd50d641dbe7d61b7127d11f986a05d1ceb08ec6ecfda WHIRLPOOL 47b39ab2e0c35e48f4d627bf24f4c03bbeb6b8f499c6492d403da31098b1eb13cd998713f7fbe38c260dff1418b1bd03aede7fa86cd04baf4d5dbe04816e4377
+DIST biber-2.1.tar.gz 2222706 SHA256 7b20049557869a994ed9e0373f620720370981b6412ca415f0408d1af893f8f4 SHA512 4a19bf9781cb90da52d9f08163b9ed400233db5c446054b12ab339786456e85bc7aba16ff8c0a36351ecc66b90e4a93e594e820b52f93566449b8c96b27852fb WHIRLPOOL 0c7b1827e3e9ede6aebd45a00b63eac8cc3e7896d89c219fa2c467b4b6b10f48f2180aeb70d727f14620267943d59646daf4d0f09ddb1bd7b6b4b945d973dc03
diff --git a/dev-tex/biber/biber-1.9.ebuild b/dev-tex/biber/biber-1.9.ebuild
new file mode 100644
index 00000000000..376fe96a48b
--- /dev/null
+++ b/dev-tex/biber/biber-1.9.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils perl-module
+
+MY_PN=biblatex-${PN}
+
+DESCRIPTION="A BibTeX replacement for users of biblatex"
+HOMEPAGE="http://biblatex-biber.sourceforge.net/"
+SRC_URI="mirror://sourceforge/project/${MY_PN}/${MY_PN}/${PV}/${MY_PN}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="|| ( Artistic-2 GPL-1 GPL-2 GPL-3 )"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="doc test"
+
+RDEPEND=">=dev-lang/perl-5.16
+ dev-perl/autovivification
+ dev-perl/Business-ISBN
+ dev-perl/Business-ISMN
+ dev-perl/Business-ISSN
+ dev-perl/Data-Compare
+ dev-perl/Data-Dump
+ dev-perl/Date-Simple
+ dev-perl/Encode-EUCJPASCII
+ dev-perl/Encode-HanExtra
+ dev-perl/Encode-JIS2K
+ dev-perl/File-Slurp-Unicode
+ dev-perl/IPC-Run3
+ dev-perl/libwww-perl[ssl]
+ dev-perl/List-AllUtils
+ dev-perl/Log-Log4perl
+ dev-perl/regexp-common
+ dev-perl/Readonly
+ dev-perl/Readonly-XS
+ >=dev-perl/Text-BibTeX-0.66
+ dev-perl/URI
+ dev-perl/Unicode-LineBreak
+ dev-perl/XML-LibXML-Simple
+ dev-perl/XML-LibXSLT
+ dev-perl/XML-SAX-Base
+ dev-perl/XML-Writer
+ >=dev-tex/biblatex-2.7
+ virtual/perl-IPC-Cmd"
+DEPEND="${RDEPEND}
+ dev-perl/Config-AutoConf
+ dev-perl/Module-Build
+ test? ( dev-perl/File-Which
+ dev-perl/Test-Pod
+ dev-perl/Test-Pod-Coverage )"
+
+S=${WORKDIR}/${MY_PN}-${PV}
+
+SRC_TEST="parallel"
+
+src_prepare(){
+ epatch "${FILESDIR}"/${P}-drop-mozilla-ca.patch
+}
+
+src_install(){
+ perl-module_src_install
+ use doc && dodoc -r doc/*
+}
+
+src_test() {
+ BIBER_SKIP_DEV_TESTS=1 perl-module_src_test
+}
diff --git a/dev-tex/biber/biber-2.1.ebuild b/dev-tex/biber/biber-2.1.ebuild
new file mode 100644
index 00000000000..e4268bbc688
--- /dev/null
+++ b/dev-tex/biber/biber-2.1.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils perl-module
+
+MY_PN=biblatex-${PN}
+
+DESCRIPTION="A BibTeX replacement for users of biblatex"
+HOMEPAGE="http://biblatex-biber.sourceforge.net/ https://github.com/plk/biber/"
+SRC_URI="https://github.com/plk/biber/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="|| ( Artistic-2 GPL-1 GPL-2 GPL-3 )"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="doc test"
+
+RDEPEND=">=dev-lang/perl-5.16
+ dev-perl/autovivification
+ dev-perl/Business-ISBN
+ dev-perl/Business-ISMN
+ dev-perl/Business-ISSN
+ dev-perl/Data-Compare
+ dev-perl/Data-Dump
+ dev-perl/Date-Simple
+ dev-perl/Encode-EUCJPASCII
+ dev-perl/Encode-HanExtra
+ dev-perl/Encode-JIS2K
+ dev-perl/File-Slurp-Unicode
+ dev-perl/IPC-Run3
+ dev-perl/libwww-perl[ssl]
+ dev-perl/List-AllUtils
+ >=dev-perl/List-MoreUtils-0.408.0
+ dev-perl/Log-Log4perl
+ dev-perl/LWP-Protocol-https
+ dev-perl/regexp-common
+ dev-perl/Readonly
+ dev-perl/Readonly-XS
+ dev-perl/Text-Roman
+ >=dev-perl/Text-BibTeX-0.700.0
+ dev-perl/URI
+ dev-perl/Unicode-LineBreak
+ dev-perl/Unicode-Normalize
+ dev-perl/XML-LibXML-Simple
+ dev-perl/XML-LibXSLT
+ dev-perl/XML-SAX-Base
+ dev-perl/XML-Writer
+ >=dev-tex/biblatex-3.0
+ virtual/perl-IPC-Cmd
+ >=virtual/perl-Unicode-Collate-1.120.0"
+DEPEND="${RDEPEND}
+ dev-perl/Config-AutoConf
+ dev-perl/Module-Build
+ test? ( dev-perl/File-Which
+ dev-perl/Test-Differences
+ dev-perl/Test-Pod
+ dev-perl/Test-Pod-Coverage )"
+
+SRC_TEST="parallel"
+
+src_prepare(){
+ epatch "${FILESDIR}"/${P}-drop-mozilla-ca.patch
+}
+
+src_install(){
+ perl-module_src_install
+ use doc && dodoc -r doc/*
+}
+
+src_test() {
+ BIBER_SKIP_DEV_TESTS=1 perl-module_src_test
+}
diff --git a/dev-tex/biber/files/biber-1.9-drop-mozilla-ca.patch b/dev-tex/biber/files/biber-1.9-drop-mozilla-ca.patch
new file mode 100644
index 00000000000..54732a60398
--- /dev/null
+++ b/dev-tex/biber/files/biber-1.9-drop-mozilla-ca.patch
@@ -0,0 +1,221 @@
+From f31062a94aefff64cc193aa3a394fd3a623c2aa7 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Manuel=20R=C3=BCger?= <manuel@rueg.eu>
+Date: Thu, 29 May 2014 14:23:06 +0200
+Subject: [PATCH] Remove Mozilla::CA dependency.
+
+
+diff --git a/Build.PL b/Build.PL
+index 3ea589b..76acdc7 100644
+--- a/Build.PL
++++ b/Build.PL
+@@ -49,7 +49,6 @@ my $builder = $class->new(
+ 'IPC::Run3' => 0,
+ 'List::AllUtils' => 0,
+ 'List::MoreUtils' => 0,
+- 'Mozilla::CA' => '20130114',
+ 'Regexp::Common' => 0,
+ 'Log::Log4perl' => 0,
+ 'Unicode::Collate' => '1.04',
+diff --git a/META.json b/META.json
+index cf91a91..1855294 100644
+--- a/META.json
++++ b/META.json
+@@ -44,7 +44,6 @@
+ "List::AllUtils" : "0",
+ "List::MoreUtils" : "0",
+ "Log::Log4perl" : "0",
+- "Mozilla::CA" : "20130114",
+ "Regexp::Common" : "0",
+ "Text::BibTeX" : "0.69",
+ "URI" : "0",
+diff --git a/META.yml b/META.yml
+index 7091ddb..82706ee 100644
+--- a/META.yml
++++ b/META.yml
+@@ -114,7 +114,6 @@ requires:
+ List::AllUtils: 0
+ List::MoreUtils: 0
+ Log::Log4perl: 0
+- Mozilla::CA: 20130114
+ Regexp::Common: 0
+ Text::BibTeX: 0.69
+ URI: 0
+diff --git a/bin/biber b/bin/biber
+index 6038535..4c3ea1c 100755
+--- a/bin/biber
++++ b/bin/biber
+@@ -73,7 +73,6 @@ GetOptions(
+ 'sortfirstinits=s',
+ 'sortlocale|l=s',
+ 'sortupper=s',
+- 'ssl-nointernalca',
+ 'ssl-noverify-host',
+ 'tool',
+ 'tool_align|tool-align', # legacy alias for output_align
+@@ -664,12 +663,6 @@ default sorting (B<--collate|-C>). When
+ using B<--fastsort|-f>, your OS collation locale determines
+ this and this option is ignored (default is true).
+
+-=item B<--ssl-nointernalca>
+-
+-Don't try to use the default Mozilla CA certificates when using HTTPS to fetch remote data.
+-This assumes that the user will set one of the perl LWP::UserAgent module environment variables
+-to find the CA certs.
+-
+ =item B<--ssl-noverify-host>
+
+ Turn off host verification when using HTTPS to fetch remote data sources.
+diff --git a/data/schemata/config.rnc b/data/schemata/config.rnc
+index e798733..5fcce6d 100644
+--- a/data/schemata/config.rnc
++++ b/data/schemata/config.rnc
+@@ -72,7 +72,6 @@ start = element config {
+ map+
+ }+
+ }? &
+- element ssl-nointernalca { "0" | "1" }? &
+ element ssl-noverify-host { "0" | "1" }? &
+ element tool { "0" | "1" }? &
+ element tool_config { text }? &
+diff --git a/data/schemata/config.rng b/data/schemata/config.rng
+index 185cde6..f7e4176 100644
+--- a/data/schemata/config.rng
++++ b/data/schemata/config.rng
+@@ -335,14 +335,6 @@
+ </element>
+ </optional>
+ <optional>
+- <element name="ssl-nointernalca">
+- <choice>
+- <value>0</value>
+- <value>1</value>
+- </choice>
+- </element>
+- </optional>
+- <optional>
+ <element name="ssl-noverify-host">
+ <choice>
+ <value>0</value>
+diff --git a/lib/Biber/Input/file/biblatexml.pm b/lib/Biber/Input/file/biblatexml.pm
+index d3f7377..21b1471 100644
+--- a/lib/Biber/Input/file/biblatexml.pm
++++ b/lib/Biber/Input/file/biblatexml.pm
+@@ -97,19 +97,6 @@ sub extract_entries {
+ else {
+ if ($1) { # HTTPS
+ # use IO::Socket::SSL qw(debug99); # useful for debugging SSL issues
+- # We have to explicitly set the cert path because otherwise the https module
+- # can't find the .pem when PAR::Packer'ed
+- # Have to explicitly try to require Mozilla::CA here to get it into %INC below
+- # It may, however, have been removed by some biber unpacked dists
+- if (not exists($ENV{PERL_LWP_SSL_CA_FILE}) and
+- not exists($ENV{PERL_LWP_SSL_CA_PATH}) and
+- not defined(Biber::Config->getoption('ssl-nointernalca')) and
+- eval {require Mozilla::CA}) {
+- # we assume that the default CA file is in .../Mozilla/CA/cacert.pem
+- (my $vol, my $dir, undef) = File::Spec->splitpath( $INC{"Mozilla/CA.pm"} );
+- $dir =~ s/\/$//; # splitpath sometimes leaves a trailing '/'
+- $ENV{PERL_LWP_SSL_CA_FILE} = File::Spec->catpath($vol, "$dir/CA", 'cacert.pem');
+- }
+
+ # fallbacks for, e.g., linux
+ unless (exists($ENV{PERL_LWP_SSL_CA_FILE})) {
+diff --git a/lib/Biber/Input/file/bibtex.pm b/lib/Biber/Input/file/bibtex.pm
+index 33185a6..f3fd9f2 100644
+--- a/lib/Biber/Input/file/bibtex.pm
++++ b/lib/Biber/Input/file/bibtex.pm
+@@ -140,19 +140,6 @@ sub extract_entries {
+ else {
+ if ($1) { # HTTPS
+ # use IO::Socket::SSL qw(debug99); # useful for debugging SSL issues
+- # We have to explicitly set the cert path because otherwise the https module
+- # can't find the .pem when PAR::Packer'ed
+- # Have to explicitly try to require Mozilla::CA here to get it into %INC below
+- # It may, however, have been removed by some biber unpacked dists
+- if (not exists($ENV{PERL_LWP_SSL_CA_FILE}) and
+- not exists($ENV{PERL_LWP_SSL_CA_PATH}) and
+- not defined(Biber::Config->getoption('ssl-nointernalca')) and
+- eval {require Mozilla::CA}) {
+- # we assume that the default CA file is in .../Mozilla/CA/cacert.pem
+- (my $vol, my $dir, undef) = File::Spec->splitpath( $INC{"Mozilla/CA.pm"} );
+- $dir =~ s/\/$//; # splitpath sometimes leaves a trailing '/'
+- $ENV{PERL_LWP_SSL_CA_FILE} = File::Spec->catpath($vol, "$dir/CA", 'cacert.pem');
+- }
+
+ # fallbacks for, e.g., linux
+ unless (exists($ENV{PERL_LWP_SSL_CA_FILE})) {
+diff --git a/lib/Biber/Input/file/endnotexml.pm b/lib/Biber/Input/file/endnotexml.pm
+index 14adc38..b880e8a 100644
+--- a/lib/Biber/Input/file/endnotexml.pm
++++ b/lib/Biber/Input/file/endnotexml.pm
+@@ -111,19 +111,6 @@ sub extract_entries {
+ $logger->info("Data source '$source' is a remote EndNote XML datasource - fetching ...");
+ if ($1) { # HTTPS
+ # use IO::Socket::SSL qw(debug99); # useful for debugging SSL issues
+- # We have to explicitly set the cert path because otherwise the https module
+- # can't find the .pem when PAR::Packer'ed
+- # Have to explicitly try to require Mozilla::CA here to get it into %INC below
+- # It may, however, have been removed by some biber unpacked dists
+- if (not exists($ENV{PERL_LWP_SSL_CA_FILE}) and
+- not exists($ENV{PERL_LWP_SSL_CA_PATH}) and
+- not defined(Biber::Config->getoption('ssl-nointernalca')) and
+- eval {require Mozilla::CA}) {
+- # we assume that the default CA file is in .../Mozilla/CA/cacert.pem
+- (my $vol, my $dir, undef) = File::Spec->splitpath( $INC{"Mozilla/CA.pm"} );
+- $dir =~ s/\/$//; # splitpath sometimes leaves a trailing '/'
+- $ENV{PERL_LWP_SSL_CA_FILE} = File::Spec->catpath($vol, "$dir/CA", 'cacert.pem');
+- }
+
+ # fallbacks for, e.g., linux
+ unless (exists($ENV{PERL_LWP_SSL_CA_FILE})) {
+diff --git a/lib/Biber/Input/file/ris.pm b/lib/Biber/Input/file/ris.pm
+index 0dbeacc..dda7466 100644
+--- a/lib/Biber/Input/file/ris.pm
++++ b/lib/Biber/Input/file/ris.pm
+@@ -110,19 +110,6 @@ sub extract_entries {
+ else {
+ if ($1) { # HTTPS
+ # use IO::Socket::SSL qw(debug99); # useful for debugging SSL issues
+- # We have to explicitly set the cert path because otherwise the https module
+- # can't find the .pem when PAR::Packer'ed
+- # Have to explicitly try to require Mozilla::CA here to get it into %INC below
+- # It may, however, have been removed by some biber unpacked dists
+- if (not exists($ENV{PERL_LWP_SSL_CA_FILE}) and
+- not exists($ENV{PERL_LWP_SSL_CA_PATH}) and
+- not defined(Biber::Config->getoption('ssl-nointernalca')) and
+- eval {require Mozilla::CA}) {
+- # we assume that the default CA file is in .../Mozilla/CA/cacert.pem
+- (my $vol, my $dir, undef) = File::Spec->splitpath( $INC{"Mozilla/CA.pm"} );
+- $dir =~ s/\/$//; # splitpath sometimes leaves a trailing '/'
+- $ENV{PERL_LWP_SSL_CA_FILE} = File::Spec->catpath($vol, "$dir/CA", 'cacert.pem');
+- }
+
+ # fallbacks for, e.g., linux
+ unless (exists($ENV{PERL_LWP_SSL_CA_FILE})) {
+diff --git a/lib/Biber/Input/file/zoterordfxml.pm b/lib/Biber/Input/file/zoterordfxml.pm
+index 0d05d2b..79ba19e 100644
+--- a/lib/Biber/Input/file/zoterordfxml.pm
++++ b/lib/Biber/Input/file/zoterordfxml.pm
+@@ -123,19 +123,6 @@ sub extract_entries {
+ $logger->info("Data source '$source' is a remote Zotero RDF/XML data source - fetching ...");
+ if ($1) { # HTTPS
+ # use IO::Socket::SSL qw(debug99); # useful for debugging SSL issues
+- # We have to explicitly set the cert path because otherwise the https module
+- # can't find the .pem when PAR::Packer'ed
+- # Have to explicitly try to require Mozilla::CA here to get it into %INC below
+- # It may, however, have been removed by some biber unpacked dists
+- if (not exists($ENV{PERL_LWP_SSL_CA_FILE}) and
+- not exists($ENV{PERL_LWP_SSL_CA_PATH}) and
+- not defined(Biber::Config->getoption('ssl-nointernalca')) and
+- eval {require Mozilla::CA}) {
+- # we assume that the default CA file is in .../Mozilla/CA/cacert.pem
+- (my $vol, my $dir, undef) = File::Spec->splitpath( $INC{"Mozilla/CA.pm"} );
+- $dir =~ s/\/$//; # splitpath sometimes leaves a trailing '/'
+- $ENV{PERL_LWP_SSL_CA_FILE} = File::Spec->catpath($vol, "$dir/CA", 'cacert.pem');
+- }
+
+ # fallbacks for, e.g., linux
+ unless (exists($ENV{PERL_LWP_SSL_CA_FILE})) {
+--
+2.0.0
+
diff --git a/dev-tex/biber/files/biber-2.1-drop-mozilla-ca.patch b/dev-tex/biber/files/biber-2.1-drop-mozilla-ca.patch
new file mode 100644
index 00000000000..beaf0835666
--- /dev/null
+++ b/dev-tex/biber/files/biber-2.1-drop-mozilla-ca.patch
@@ -0,0 +1,197 @@
+From 29a48e5da01acb1f5f35e3a47b04ec4db42e50b9 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Manuel=20R=C3=BCger?= <manuel@rueg.eu>
+Date: Sun, 31 May 2015 00:34:11 +0200
+Subject: [PATCH] Remove Mozilla::CA dependency.
+
+
+diff --git a/Build.PL b/Build.PL
+index 841af36..b43b5fe 100644
+--- a/Build.PL
++++ b/Build.PL
+@@ -53,7 +53,6 @@ my $builder = $class->new(
+ 'List::AllUtils' => 0,
+ 'List::MoreUtils' => 0,
+ 'List::MoreUtils::XS' => 0,
+- 'Mozilla::CA' => '20141217',
+ 'Regexp::Common' => 0,
+ 'Log::Log4perl' => 0,
+ 'Unicode::Collate' => '1.12',
+diff --git a/bin/biber b/bin/biber
+index 80ebd39..c4f8897 100755
+--- a/bin/biber
++++ b/bin/biber
+@@ -72,7 +72,6 @@ GetOptions(
+ 'sortfirstinits=s',
+ 'sortlocale|l=s',
+ 'sortupper=s',
+- 'ssl-nointernalca',
+ 'ssl-noverify-host',
+ 'tool',
+ 'tool_align|tool-align', # legacy alias for output_align
+@@ -658,12 +657,6 @@ default sorting (B<--collate|-C>). When
+ using B<--fastsort|-f>, your OS collation locale determines
+ this and this option is ignored (default is true).
+
+-=item B<--ssl-nointernalca>
+-
+-Don't try to use the default Mozilla CA certificates when using HTTPS to fetch remote data.
+-This assumes that the user will set one of the perl LWP::UserAgent module environment variables
+-to find the CA certs.
+-
+ =item B<--ssl-noverify-host>
+
+ Turn off host verification when using HTTPS to fetch remote data sources.
+diff --git a/data/schemata/config.rnc b/data/schemata/config.rnc
+index 9f96fec..2863e14 100644
+--- a/data/schemata/config.rnc
++++ b/data/schemata/config.rnc
+@@ -77,7 +77,6 @@ start = element config {
+ map+
+ }+
+ }? &
+- element ssl-nointernalca { "0" | "1" }? &
+ element ssl-noverify-host { "0" | "1" }? &
+ element tool { "0" | "1" }? &
+ element tool_config { text }? &
+diff --git a/data/schemata/config.rng b/data/schemata/config.rng
+index 3bd7072..8ef9bee 100644
+--- a/data/schemata/config.rng
++++ b/data/schemata/config.rng
+@@ -352,14 +352,6 @@
+ </element>
+ </optional>
+ <optional>
+- <element name="ssl-nointernalca">
+- <choice>
+- <value>0</value>
+- <value>1</value>
+- </choice>
+- </element>
+- </optional>
+- <optional>
+ <element name="ssl-noverify-host">
+ <choice>
+ <value>0</value>
+diff --git a/lib/Biber/Input/file/biblatexml.pm b/lib/Biber/Input/file/biblatexml.pm
+index 4d1878b..8994c0f 100644
+--- a/lib/Biber/Input/file/biblatexml.pm
++++ b/lib/Biber/Input/file/biblatexml.pm
+@@ -97,19 +97,6 @@ sub extract_entries {
+ else {
+ if ($1) { # HTTPS
+ # use IO::Socket::SSL qw(debug99); # useful for debugging SSL issues
+- # We have to explicitly set the cert path because otherwise the https module
+- # can't find the .pem when PAR::Packer'ed
+- # Have to explicitly try to require Mozilla::CA here to get it into %INC below
+- # It may, however, have been removed by some biber unpacked dists
+- if (not exists($ENV{PERL_LWP_SSL_CA_FILE}) and
+- not exists($ENV{PERL_LWP_SSL_CA_PATH}) and
+- not defined(Biber::Config->getoption('ssl-nointernalca')) and
+- eval {require Mozilla::CA}) {
+- # we assume that the default CA file is in .../Mozilla/CA/cacert.pem
+- (my $vol, my $dir, undef) = File::Spec->splitpath( $INC{"Mozilla/CA.pm"} );
+- $dir =~ s/\/$//; # splitpath sometimes leaves a trailing '/'
+- $ENV{PERL_LWP_SSL_CA_FILE} = File::Spec->catpath($vol, "$dir/CA", 'cacert.pem');
+- }
+
+ # fallbacks for, e.g., linux
+ unless (exists($ENV{PERL_LWP_SSL_CA_FILE})) {
+diff --git a/lib/Biber/Input/file/bibtex.pm b/lib/Biber/Input/file/bibtex.pm
+index 24b2772..c70e6e4 100644
+--- a/lib/Biber/Input/file/bibtex.pm
++++ b/lib/Biber/Input/file/bibtex.pm
+@@ -140,19 +140,6 @@ sub extract_entries {
+ else {
+ if ($1) { # HTTPS
+ # use IO::Socket::SSL qw(debug99); # useful for debugging SSL issues
+- # We have to explicitly set the cert path because otherwise the https module
+- # can't find the .pem when PAR::Packer'ed
+- # Have to explicitly try to require Mozilla::CA here to get it into %INC below
+- # It may, however, have been removed by some biber unpacked dists
+- if (not exists($ENV{PERL_LWP_SSL_CA_FILE}) and
+- not exists($ENV{PERL_LWP_SSL_CA_PATH}) and
+- not defined(Biber::Config->getoption('ssl-nointernalca')) and
+- eval {require Mozilla::CA}) {
+- # we assume that the default CA file is in .../Mozilla/CA/cacert.pem
+- (my $vol, my $dir, undef) = File::Spec->splitpath( $INC{"Mozilla/CA.pm"} );
+- $dir =~ s/\/$//; # splitpath sometimes leaves a trailing '/'
+- $ENV{PERL_LWP_SSL_CA_FILE} = File::Spec->catpath($vol, "$dir/CA", 'cacert.pem');
+- }
+
+ # fallbacks for, e.g., linux
+ unless (exists($ENV{PERL_LWP_SSL_CA_FILE})) {
+diff --git a/lib/Biber/Input/file/endnotexml.pm b/lib/Biber/Input/file/endnotexml.pm
+index bf62a80..342b3b2 100644
+--- a/lib/Biber/Input/file/endnotexml.pm
++++ b/lib/Biber/Input/file/endnotexml.pm
+@@ -111,19 +111,6 @@ sub extract_entries {
+ $logger->info("Data source '$source' is a remote EndNote XML datasource - fetching ...");
+ if ($1) { # HTTPS
+ # use IO::Socket::SSL qw(debug99); # useful for debugging SSL issues
+- # We have to explicitly set the cert path because otherwise the https module
+- # can't find the .pem when PAR::Packer'ed
+- # Have to explicitly try to require Mozilla::CA here to get it into %INC below
+- # It may, however, have been removed by some biber unpacked dists
+- if (not exists($ENV{PERL_LWP_SSL_CA_FILE}) and
+- not exists($ENV{PERL_LWP_SSL_CA_PATH}) and
+- not defined(Biber::Config->getoption('ssl-nointernalca')) and
+- eval {require Mozilla::CA}) {
+- # we assume that the default CA file is in .../Mozilla/CA/cacert.pem
+- (my $vol, my $dir, undef) = File::Spec->splitpath( $INC{"Mozilla/CA.pm"} );
+- $dir =~ s/\/$//; # splitpath sometimes leaves a trailing '/'
+- $ENV{PERL_LWP_SSL_CA_FILE} = File::Spec->catpath($vol, "$dir/CA", 'cacert.pem');
+- }
+
+ # fallbacks for, e.g., linux
+ unless (exists($ENV{PERL_LWP_SSL_CA_FILE})) {
+diff --git a/lib/Biber/Input/file/ris.pm b/lib/Biber/Input/file/ris.pm
+index bc389c2..56f8d93 100644
+--- a/lib/Biber/Input/file/ris.pm
++++ b/lib/Biber/Input/file/ris.pm
+@@ -110,19 +110,6 @@ sub extract_entries {
+ else {
+ if ($1) { # HTTPS
+ # use IO::Socket::SSL qw(debug99); # useful for debugging SSL issues
+- # We have to explicitly set the cert path because otherwise the https module
+- # can't find the .pem when PAR::Packer'ed
+- # Have to explicitly try to require Mozilla::CA here to get it into %INC below
+- # It may, however, have been removed by some biber unpacked dists
+- if (not exists($ENV{PERL_LWP_SSL_CA_FILE}) and
+- not exists($ENV{PERL_LWP_SSL_CA_PATH}) and
+- not defined(Biber::Config->getoption('ssl-nointernalca')) and
+- eval {require Mozilla::CA}) {
+- # we assume that the default CA file is in .../Mozilla/CA/cacert.pem
+- (my $vol, my $dir, undef) = File::Spec->splitpath( $INC{"Mozilla/CA.pm"} );
+- $dir =~ s/\/$//; # splitpath sometimes leaves a trailing '/'
+- $ENV{PERL_LWP_SSL_CA_FILE} = File::Spec->catpath($vol, "$dir/CA", 'cacert.pem');
+- }
+
+ # fallbacks for, e.g., linux
+ unless (exists($ENV{PERL_LWP_SSL_CA_FILE})) {
+diff --git a/lib/Biber/Input/file/zoterordfxml.pm b/lib/Biber/Input/file/zoterordfxml.pm
+index 6dbb3f9..15bc3f6 100644
+--- a/lib/Biber/Input/file/zoterordfxml.pm
++++ b/lib/Biber/Input/file/zoterordfxml.pm
+@@ -123,19 +123,6 @@ sub extract_entries {
+ $logger->info("Data source '$source' is a remote Zotero RDF/XML data source - fetching ...");
+ if ($1) { # HTTPS
+ # use IO::Socket::SSL qw(debug99); # useful for debugging SSL issues
+- # We have to explicitly set the cert path because otherwise the https module
+- # can't find the .pem when PAR::Packer'ed
+- # Have to explicitly try to require Mozilla::CA here to get it into %INC below
+- # It may, however, have been removed by some biber unpacked dists
+- if (not exists($ENV{PERL_LWP_SSL_CA_FILE}) and
+- not exists($ENV{PERL_LWP_SSL_CA_PATH}) and
+- not defined(Biber::Config->getoption('ssl-nointernalca')) and
+- eval {require Mozilla::CA}) {
+- # we assume that the default CA file is in .../Mozilla/CA/cacert.pem
+- (my $vol, my $dir, undef) = File::Spec->splitpath( $INC{"Mozilla/CA.pm"} );
+- $dir =~ s/\/$//; # splitpath sometimes leaves a trailing '/'
+- $ENV{PERL_LWP_SSL_CA_FILE} = File::Spec->catpath($vol, "$dir/CA", 'cacert.pem');
+- }
+
+ # fallbacks for, e.g., linux
+ unless (exists($ENV{PERL_LWP_SSL_CA_FILE})) {
+--
+2.4.2
+
diff --git a/dev-tex/biber/metadata.xml b/dev-tex/biber/metadata.xml
new file mode 100644
index 00000000000..b34954eb916
--- /dev/null
+++ b/dev-tex/biber/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>mrueg@gentoo.org</email>
+ <name>Manuel Rüger</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">biblatex-biber</remote-id>
+ <remote-id type="github">plk/biber</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-tex/biblatex-apa/Manifest b/dev-tex/biblatex-apa/Manifest
new file mode 100644
index 00000000000..fafbe02807d
--- /dev/null
+++ b/dev-tex/biblatex-apa/Manifest
@@ -0,0 +1 @@
+DIST biblatex-apa-6.6.tar.gz 140429 SHA256 00a710d12735a14c4083fb5c85a9da8222a6ebba8e74bd365e2dcb23f9d895b6 SHA512 a606521223896dc71f2fd4b41bebb9c3a0ddd7b466adfddec1e67f802de2b64f280093c2ad0265afddd8abfe9de226cfe77701ac337e36c8163e1ce0201a4a01 WHIRLPOOL a8ae219ddfaad8c9a59a296fee57f2fc41ec288f85104bd8cd3f698799c23bd03b243108b84b5c969e9c739b26556f53e6dcc542b37de5bcd53b6a8bebaf61a4
diff --git a/dev-tex/biblatex-apa/biblatex-apa-6.6.ebuild b/dev-tex/biblatex-apa/biblatex-apa-6.6.ebuild
new file mode 100644
index 00000000000..4b2a7842fa8
--- /dev/null
+++ b/dev-tex/biblatex-apa/biblatex-apa-6.6.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit latex-package
+
+DESCRIPTION="APA style for BibLaTeX"
+HOMEPAGE="http://www.ctan.org/pkg/biblatex-apa https://github.com/plk/biblatex-apa"
+SRC_URI="https://github.com/plk/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="LPPL-1.3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc examples"
+
+RDEPEND="dev-texlive/texlive-bibtexextra
+ dev-tex/biblatex"
+DEPEND="${RDEPEND}"
+
+TEXMF=/usr/share/texmf-site
+
+src_install() {
+ insinto "${TEXMF}"
+ doins -r tex
+
+ dodoc README RELEASE
+ use doc && { pushd doc/ ; latex-package_src_doinstall doc ; popd ; }
+}
diff --git a/dev-tex/biblatex-apa/metadata.xml b/dev-tex/biblatex-apa/metadata.xml
new file mode 100644
index 00000000000..b7a7598eb42
--- /dev/null
+++ b/dev-tex/biblatex-apa/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>tex</herd>
+ <maintainer>
+ <email>mrueg@gentoo.org</email>
+ <name>Manuel Rüger</name>
+ <description>CC me on bugs. Assign to herd</description>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">plk/biblatex-apa</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-tex/biblatex/Manifest b/dev-tex/biblatex/Manifest
new file mode 100644
index 00000000000..238aca28d7a
--- /dev/null
+++ b/dev-tex/biblatex/Manifest
@@ -0,0 +1,2 @@
+DIST biblatex-2.9a.tds.tgz 17829003 SHA256 d3e6490505728113bcc5332f1a83fca1db6d50950e0ffaade495f4c5052e5175 SHA512 1341e530bc68096498306b9933a014eaf2e4ebc573b344776ae3f3addd93301927f31da84b368b812e364aae45bdab1624da69a63dfcd0589b3a28c7795f6ab8 WHIRLPOOL 51f30f41e323077a24958e0724d1357763f2c5e9b05ebf6dd11b254cde0d5d20f4a93cf66d9f722d550908d1d0c9856f430edc2067aabd4e4d3c11b293e465df
+DIST biblatex-3.0.tds.tgz 18965624 SHA256 8de8554eea84dce59a652d61a11e5fcd52c89f303471eb9ca58304b82155e889 SHA512 a8db58907953010c0376bda823ef03250428a2df0172a6e74f2725b19212a8df95c8e742b27f5301a5ca401ccee394d1aa4485bafc2263c985fbde1ce5de4c93 WHIRLPOOL b444a55a0149a5147e1142c4ba8a4ee2251e1f92cece83a8ee7b6ff79a46d46bbb9a22b4f34cdb06aba55eb9b13efb9465d32de60753f27d5c48931044411719
diff --git a/dev-tex/biblatex/biblatex-2.9a-r1.ebuild b/dev-tex/biblatex/biblatex-2.9a-r1.ebuild
new file mode 100644
index 00000000000..e9a5d908c1f
--- /dev/null
+++ b/dev-tex/biblatex/biblatex-2.9a-r1.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit latex-package
+
+DESCRIPTION="Reimplementation of the bibliographic facilities provided by LaTeX"
+HOMEPAGE="http://www.ctan.org/tex-archive/macros/latex/contrib/biblatex"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tds.tgz"
+
+LICENSE="LPPL-1.3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc examples"
+
+RDEPEND="dev-texlive/texlive-bibtexextra
+ dev-texlive/texlive-latexextra"
+DEPEND="${RDEPEND}"
+
+S=${WORKDIR}
+TEXMF=/usr/share/texmf-site
+
+src_install() {
+ insinto "${TEXMF}"
+ doins -r bibtex tex
+
+ dodoc doc/latex/biblatex/{README,RELEASE}
+ use doc && { pushd doc/ ; latex-package_src_doinstall doc ; popd ; }
+ if use examples ; then
+ docinto examples
+ dodoc -r doc/latex/biblatex/examples
+ fi
+}
diff --git a/dev-tex/biblatex/biblatex-3.0-r1.ebuild b/dev-tex/biblatex/biblatex-3.0-r1.ebuild
new file mode 100644
index 00000000000..47aae74acd4
--- /dev/null
+++ b/dev-tex/biblatex/biblatex-3.0-r1.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit latex-package
+
+DESCRIPTION="Reimplementation of the bibliographic facilities provided by LaTeX"
+HOMEPAGE="http://www.ctan.org/tex-archive/macros/latex/contrib/biblatex https://github.com/plk/biblatex/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tds.tgz"
+
+LICENSE="LPPL-1.3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc examples"
+
+RDEPEND="dev-texlive/texlive-bibtexextra
+ dev-texlive/texlive-latexextra"
+DEPEND="${RDEPEND}"
+
+S=${WORKDIR}
+TEXMF=/usr/share/texmf-site
+
+src_install() {
+ insinto "${TEXMF}"
+ doins -r bibtex tex
+
+ dodoc doc/latex/biblatex/{README,RELEASE}
+ use doc && { pushd doc/ ; latex-package_src_doinstall doc ; popd ; }
+ if use examples ; then
+ docinto examples
+ dodoc -r doc/latex/biblatex/examples
+ fi
+}
diff --git a/dev-tex/biblatex/metadata.xml b/dev-tex/biblatex/metadata.xml
new file mode 100644
index 00000000000..3924e72680f
--- /dev/null
+++ b/dev-tex/biblatex/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>tex</herd>
+ <maintainer>
+ <email>mrueg@gentoo.org</email>
+ <name>Manuel Rüger</name>
+ <description>CC me on bugs. Assign to herd</description>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">plk/biblatex</remote-id>
+ <remote-id type="sourceforge">biblatex</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-tex/bibtex2html/Manifest b/dev-tex/bibtex2html/Manifest
new file mode 100644
index 00000000000..fd578ed706c
--- /dev/null
+++ b/dev-tex/bibtex2html/Manifest
@@ -0,0 +1,2 @@
+DIST bibtex2html-1.97.tar.gz 94887 SHA256 99b5b66a729fd2928ee4d9d7d8397e36b684def4be9ee2746233006501c8e314 SHA512 001611bd763e4d91a926bc230341983b7feb1dd59687e1d64896607be54b206878ba4e163750b2d3f88e2e16cdac53a0e2ea70cc6e7ccf57262e368a7b067208 WHIRLPOOL d4531578214f4f21b44572750bdb7a69fa456303ee0876576b09f91504163b7aa3a72f30d6074a684634348d74a1dde7cc8fbcec31019be44b75835a0251b715
+DIST bibtex2html-1.98.tar.gz 92719 SHA256 e925a0b97bf87a14bcbda95cac269835cd5ae0173504261f2c60e3c46a8706d6 SHA512 7d8480ed87bef74a1e0c970446fba4d30b103df3e78f127a051efff875032ac7f52d3d6baab0c6a2fc67ca11f3d558d7be4439311934f99067993b5891ff6ad4 WHIRLPOOL e0a56cf31090012305140e11f46191a50d4949fbee1d179cdb9f56e216e5fcae05f60e4457de88cbc771a512f3b7b054a781ee604a1b25640eb810ff33224f1a
diff --git a/dev-tex/bibtex2html/bibtex2html-1.97.ebuild b/dev-tex/bibtex2html/bibtex2html-1.97.ebuild
new file mode 100644
index 00000000000..1488091b23e
--- /dev/null
+++ b/dev-tex/bibtex2html/bibtex2html-1.97.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils
+
+IUSE="doc +ocamlopt"
+
+DESCRIPTION="A bibtex to HTML converter"
+SRC_URI="http://www.lri.fr/~filliatr/ftp/bibtex2html/${P}.tar.gz"
+HOMEPAGE="http://www.lri.fr/~filliatr/bibtex2html/"
+
+SLOT="0"
+
+LICENSE="GPL-2"
+KEYWORDS="amd64 ~ppc ~ppc64 x86"
+RESTRICT="test"
+
+# With use doc we need a latex compiler to generate manual.pdf
+# hevea is used for manual.html
+# manual.tex needs fullpage.sty
+DEPEND=">=dev-lang/ocaml-3.10:=[ocamlopt?]
+ doc? ( virtual/latex-base
+ dev-texlive/texlive-latexextra
+ dev-tex/hevea )"
+# We need tex-base for bibtex but also some bibtex styles, so we use latex-base
+RDEPEND="virtual/latex-base"
+
+src_prepare() {
+ epatch "${FILESDIR}/${PN}-1.88-destdir.patch"
+ # Avoid pre-stripped files
+ sed -i -e "s/strip/true/" Makefile.in
+ # For make install
+ use ocamlopt || sed -i 's/= opt /= noopt /' Makefile.in
+}
+
+src_compile() {
+ export VARTEXFONTS="${T}/fonts"
+ if use ocamlopt ; then
+ emake opt
+ else
+ emake byte
+ fi
+ if use doc; then
+ emake doc
+ fi
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ dodoc README CHANGES
+ if use doc; then
+ dodoc manual.pdf
+ dohtml manual.html
+ fi
+}
diff --git a/dev-tex/bibtex2html/bibtex2html-1.98.ebuild b/dev-tex/bibtex2html/bibtex2html-1.98.ebuild
new file mode 100644
index 00000000000..e0c694d5977
--- /dev/null
+++ b/dev-tex/bibtex2html/bibtex2html-1.98.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils
+
+IUSE="doc +ocamlopt"
+
+DESCRIPTION="A bibtex to HTML converter"
+SRC_URI="http://www.lri.fr/~filliatr/ftp/bibtex2html/${P}.tar.gz"
+HOMEPAGE="http://www.lri.fr/~filliatr/bibtex2html/"
+
+SLOT="0"
+
+LICENSE="GPL-2"
+KEYWORDS="amd64 ppc ~ppc64 ~x86"
+RESTRICT="test"
+
+# With use doc we need a latex compiler to generate manual.pdf
+# hevea is used for manual.html
+# manual.tex needs fullpage.sty
+DEPEND=">=dev-lang/ocaml-3.10:=[ocamlopt?]
+ doc? ( virtual/latex-base
+ dev-texlive/texlive-latexextra
+ dev-tex/hevea )"
+# We need tex-base for bibtex but also some bibtex styles, so we use latex-base
+RDEPEND="virtual/latex-base"
+
+src_prepare() {
+ epatch "${FILESDIR}/${PN}-1.88-destdir.patch"
+ # Avoid pre-stripped files
+ sed -i -e "s/strip/true/" Makefile.in
+ # For make install
+ use ocamlopt || sed -i 's/= opt /= noopt /' Makefile.in
+}
+
+src_compile() {
+ export VARTEXFONTS="${T}/fonts"
+ if use ocamlopt ; then
+ emake opt
+ else
+ emake byte
+ fi
+ if use doc; then
+ emake doc
+ fi
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ dodoc README CHANGES
+ if use doc; then
+ dodoc manual.pdf
+ dohtml manual.html
+ fi
+}
diff --git a/dev-tex/bibtex2html/files/bibtex2html-1.88-destdir.patch b/dev-tex/bibtex2html/files/bibtex2html-1.88-destdir.patch
new file mode 100644
index 00000000000..4230382ab3a
--- /dev/null
+++ b/dev-tex/bibtex2html/files/bibtex2html-1.88-destdir.patch
@@ -0,0 +1,40 @@
+Index: bibtex2html-1.88/Makefile.in
+===================================================================
+--- bibtex2html-1.88.orig/Makefile.in
++++ bibtex2html-1.88/Makefile.in
+@@ -56,24 +56,24 @@ test: bibtex2html bib2bib
+ make -C bench test
+
+ install-indep:
+- mkdir -p $(BINDIR)
+- cp aux2bib $(BINDIR)/aux2bib
+- mkdir -p $(MANDIR)/man1
+- cp bibtex2html.1 $(MANDIR)/man1/bibtex2html.1
+- cp bibtex2html.1 $(MANDIR)/man1/bib2bib.1
+- cp aux2bib.1 $(MANDIR)/man1/aux2bib.1
++ mkdir -p $(DESTDIR)$(BINDIR)
++ cp aux2bib $(DESTDIR)$(BINDIR)/aux2bib
++ mkdir -p $(DESTDIR)$(MANDIR)/man1
++ cp bibtex2html.1 $(DESTDIR)$(MANDIR)/man1/bibtex2html.1
++ cp bibtex2html.1 $(DESTDIR)$(MANDIR)/man1/bib2bib.1
++ cp aux2bib.1 $(DESTDIR)$(MANDIR)/man1/aux2bib.1
+
+ install: install-indep
+ if test @OCAMLBEST@ = opt ; then \
+- cp bibtex2html bib2bib $(BINDIR) ; \
++ cp bibtex2html bib2bib $(DESTDIR)$(BINDIR) ; \
+ else \
+- cp bibtex2html.byte $(BINDIR)/bibtex2html ; \
+- cp bib2bib.byte $(BINDIR)/bib2bib ; \
++ cp bibtex2html.byte $(DESTDIR)$(BINDIR)/bibtex2html ; \
++ cp bib2bib.byte $(DESTDIR)$(BINDIR)/bib2bib ; \
+ fi
+
+ install-byte: install-indep
+- cp bibtex2html.byte $(BINDIR)/bibtex2html
+- cp bib2bib.byte $(BINDIR)/bib2bib
++ cp bibtex2html.byte $(DESTDIR)$(BINDIR)/bibtex2html
++ cp bib2bib.byte $(DESTDIR)$(BINDIR)/bib2bib
+
+ local: bibtex2html bib2bib
+ cp bibtex2html bib2bib aux2bib $$HOME/bin/$$OSTYPE
diff --git a/dev-tex/bibtex2html/metadata.xml b/dev-tex/bibtex2html/metadata.xml
new file mode 100644
index 00000000000..12a9af65960
--- /dev/null
+++ b/dev-tex/bibtex2html/metadata.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>tex</herd>
+<herd>ml</herd>
+</pkgmetadata>
diff --git a/dev-tex/bibtexu/Manifest b/dev-tex/bibtexu/Manifest
new file mode 100644
index 00000000000..6024ee64dad
--- /dev/null
+++ b/dev-tex/bibtexu/Manifest
@@ -0,0 +1,16 @@
+DIST texlive-20120701-source.tar.xz 131904044 SHA256 9666617d5dac3e82578e696835cc9f251ee0a56d162d86dff08659ac5dcb6c81 SHA512 0e8653aa21094e079900d17256f0768ac5514690a3725d96923d5fdc7633484d611441df1af8c674b38b9ce6a8845a9004976cd00635742dfc6837aa433caf5f WHIRLPOOL 9d570a1bd58cca8baed399ab53eb767c7c3db607c00363ce563e14dfccdd235703c538e6a651aa7f2934adf21f8477775f1547f9e7f3d957b89af644c89bcb57
+DIST texlive-20130530-source.tar.xz 179963948 SHA256 a905832e4c04dd1cb16db4bb7baacb78fbc19682bd33ac2697a3a85ce78d79d4 SHA512 4aa85273a675af2453f09777b7cb348c18add77410d72f562c6586f6814d4e7c34b6f3690e3453020654fb0a265339fcabf590d9155367d52846224499af334c WHIRLPOOL 3affaf25d3936505d971599092964b0f0e97d107d22dbac6a85ad547e1d2726a6a09c5075fecb0c6ff8c88bc1bd09d78f95902f76eb76c608f8a7bc42dd6bc33
+DIST texlive-20140525-source.tar.xz 41657688 SHA256 08bb4eb02923ac65ce1183612c6b64da185904f26a1660f5ca4f902d055795be SHA512 09169af15d806abd721e55ffc20ed684c0a7ad60783272d49fabfe9c88857c4abd15b60f30e3f5511ceda1982fdc1d33db8265f97e374bfa5b250dbb5612f8ad WHIRLPOOL fd7fffeeaf319bca5333f6d5d8d9cc6517f76ffe5b2793a73604d844cb7474d83c23826f98d4d11ea5e1a35c0f273e12b2fe6f5945f9880a9577fedad6625014
+DIST texlive-20150521-source.tar.xz 45459552 SHA256 ed9bcd7bdce899c3c27c16a8c5c3017c4f09e1d7fd097038351b72497e9d4669 SHA512 9d06bb88c489715787ce619c4c6b5e2d4251e1db8d48ae7fe2d1a253634c76bc6d7282ef9c93c77847845cae01eafb58dfb37ba3fb83a6d223f0d7fe8f5d3855 WHIRLPOOL e19e4cf9c6122e8a2e80d3ad62171591a2d53317792ce69d7b2afdd6978d397c873565d597b1457d23ba6f5b5de33750955690a92fb6c34d814c075397b67a0b
+DIST texlive-module-bibtex8-2013.tar.xz 9204 SHA256 f954fa5f0ad8e3a63a075414fdbc687055653a254ca35a09effe778bc48a1865 SHA512 097a24e6f95bf49015ea14e7fcb3cbd967e1cb9aee2e31f96099c45cadb181d25b998321fe52fab478b91a3756d0be5ebb86710bb68073dd2241783be7c891f0 WHIRLPOOL 98fffe62c6c0104d97d7c863e44a9d6b205398bb818ec65a330fc71efa7ab32d24ac3488ecf51c7229ccd81f1aa66f69cf6ad0fef63eef43fbcf6c4d73e3f2a6
+DIST texlive-module-bibtex8-2014.tar.xz 9208 SHA256 560028318eab83ffd525472175a1f20b847c9c9bf5f75cf925976f4b8dcf537e SHA512 dfb935342738175f1c9927168566e94db5801650f7b2f5413d60dac88ee4dd402bf3cc0346f71abfa805a336b19519191228e7ebb19230ea79902a7c23d15d8f WHIRLPOOL bf7b30f5b426865376c5564c4bb9a849b7e080d44210d0b6879a40292e31d16ce1b049c61c00a3c13617a3ee8bc81731ccbac98a6c2f92b2a96530cfc56ce554
+DIST texlive-module-bibtex8-2015.tar.xz 9204 SHA256 c3811dcae326b679a750c494c779429bdd8d43173f2c21bce8dc6b59e8462355 SHA512 4fb4d5c80e6b8f4f53bf43ee587a274b2dca3b0fdbf74f9f898af82b49d1fe4492ebef69caccb7ab8951c08eeb70ddb21c748434dfafdac047abe47bd305e2e2 WHIRLPOOL c3d86087082accc5791b49a2a7a47890e1332a16341182ea0eb2104783e4436603f051b43c9d2e6dd22dcc348b8b4f4cd7c8283067b06ad62c463ef7faf3bbcd
+DIST texlive-module-bibtex8.doc-2013.tar.xz 13416 SHA256 2ede2dfe0e65d40f4402751d2199dae9b707ff333e121500c8cccb6a85c663c4 SHA512 95398df89ca804811087f0c907aec40d427d5cc2229f189ce31c33a70508db158d718b3d824ddbed1f0a65f673e35b9620f00344ace14dc389a781957e4a6abb WHIRLPOOL 01bc8af07ff44849eb90c72e5fac181b3d012e7edffd372d9a10363e628edbf8f0b3854be52a57b33fd8212cd91cbe554cc9f3b31aa197c74187992a763feb53
+DIST texlive-module-bibtex8.doc-2014.tar.xz 13416 SHA256 50981c312bb5bd3f3f125a44bbc6ffdbbec47c45cb1d09e0afce527538b27ebb SHA512 ee0bf2fbeb5b6c77b5f95ebdc0aca08e91364ce058b1f015061cbca57774b1f57e8cd32107166f5913fc64efbf57b273a2906722a730f3b2701265b01d483b4c WHIRLPOOL efb4c09c4f00d3e7b36a56fc3267b51f32809d662e79b77df71141ef52d309361ff0f1b7222837da5fb76b70879ce648862d14fd9b1b399beea45f5f3323911c
+DIST texlive-module-bibtex8.doc-2015.tar.xz 13420 SHA256 d8a3f7cb97547d3648d71807d58d9113c23f98be2b1f6133d4026465acc843c4 SHA512 7d4525d402ff02fbff6217be7420ee61f77601a083e86a97bab0cc2da0dbc2600c678e9540103a70038664696206b1ea03e67d0c476b064af7b55b095764026b WHIRLPOOL 1bb96fb6e40532ee255f805953efaef770227ed2936d0be10665e482bb36b5121b706262fb0b834e781305314d0d085b75a3e4a86e96d2178e3c515f79c7a73b
+DIST texlive-module-bibtexu-2013.tar.xz 244 SHA256 e0c11f5786af2ef7d188574c5c605a0a881fb49fbf956fc81c5508eaa1dc4299 SHA512 c9ff458fb7ac5af20039a5568e8f5c309655f32d241b40cc3186fd519c378d1625fb5acf7b422428d721b2ba6fdeca1bf9d1875831e6315f16b71aac8327f58b WHIRLPOOL b2a790165e0a5d19e0e3e088d8116496d26e4483b9ed2d74b745b2b34f05a3ee64b42334140ab52ce73a364bd3c067ea125451ccbf390a1cf9b9854a8f352b5d
+DIST texlive-module-bibtexu-2014.tar.xz 244 SHA256 74f2620e6940dfe3f82aa5f74648c443366fd0451f96cef24cc7d95bc72f4212 SHA512 aa53668c32692bccf6e789d0f370e542ffae767f45f07cf471a457e566c7c77c0981a16717ff84bad45716913ae672716114d9a6dd0104c9099ca0e96eaf61c9 WHIRLPOOL d0d3c9754c393b1a9e463f763396c9af9bb296777476436cf66efff7603f5119fd3c4d04ef3f79f9912559184823d16b00ca7412b19e358d5e7fac244601bba0
+DIST texlive-module-bibtexu-2015.tar.xz 244 SHA256 12be3b63b2419433bf3fcc9352f562e2c189dbf7b5f1e349d47245497519acb9 SHA512 3a5c3e4fcaf36428f64a4a9341901769bc5ea7fedbed6d8f3d293b9e44f9ea71046ac5717c366a392305d88b324d4461e1c30a2dc0305c969914e26b921806c3 WHIRLPOOL 51501ef80f309960020a0d3b4e20ce3da559da8c88359f9b035f9945ef0dca221d3cdacddc2d5bab68f234fb3f3923539c2ca9e7e404a999bff1432942f201a3
+DIST texlive-module-bibtexu.doc-2013.tar.xz 13420 SHA256 37d51ecf1779aa2eef8bbf7f878648093b847b9f17cb09668810624cc276d63a SHA512 49a0c3b242dc39f1a5977d4e343526f97d79c6de185e2ba66947396d19316fb4ca71935978b7cde52e27313f3cbf7a91412e2b1397038e47909d1784d33a3ae1 WHIRLPOOL e606245939da0e7728a2bc6841016e046db4fd83f654ada58b94644223d5fc443d89bda41c3981c35072ec2e77c3267c2d92a18058907b9e16420a9fd94b479a
+DIST texlive-module-bibtexu.doc-2014.tar.xz 13416 SHA256 9d0fa4eabf9bdd5dad1d307529c8b7f0de80e992cd9754fb7ce1417b671f4f41 SHA512 d033226460dcc6f1bec5b7cc8f6aa986038e56a22caa107861f735e6e7fa37a106db84fbd64969977e4c189a64214fa0ff16199017ba2ce28497ba63a29968e4 WHIRLPOOL b0d9fddfb6844c34bc2345ed3db7d2fa4256d0b83f1556cb526265f4c1ff2296c3a5af99f154d1aacaed96f9863609462318af08dcb20d831ed1b00ae42a943c
+DIST texlive-module-bibtexu.doc-2015.tar.xz 13416 SHA256 7958df9b9c4051d687c2e434408bc0669e9139043b39d84482da008f5cdcfd42 SHA512 ae4b87168c620f72479eb895493ab725e37589b40f9cf0b88373a63f860bd9c8f4dce587ae55f6746616d42b69c95e82b8083e95a9ed7fcfd6de6c8a2a90a47c WHIRLPOOL c5d2712fb36f844e5e6ea1605ea3da13043db3898e4a5b802da18cf03bdad30c06680a3708f24d180faca50f9a0da53faa80310b1e8596894a244184fc9cf7ac
diff --git a/dev-tex/bibtexu/bibtexu-3.71_p20120701.ebuild b/dev-tex/bibtexu/bibtexu-3.71_p20120701.ebuild
new file mode 100644
index 00000000000..00d2b5df46c
--- /dev/null
+++ b/dev-tex/bibtexu/bibtexu-3.71_p20120701.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+DESCRIPTION="8-bit Implementation of BibTeX 0.99 with a Very Large Capacity"
+HOMEPAGE="http://tug.org/texlive/"
+SRC_URI="mirror://gentoo/texlive-${PV#*_p}-source.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
+IUSE=""
+
+RDEPEND=">=dev-libs/kpathsea-6.1.0_p20120701
+ >=dev-libs/icu-4.4:="
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+S=${WORKDIR}/texlive-${PV#*_p}-source/texk/${PN}
+
+src_configure() {
+ econf \
+ --with-system-kpathsea \
+ --with-system-icu
+}
+
+src_install() {
+ emake \
+ DESTDIR="${D}" \
+ csfdir="${EPREFIX}/usr/share/texmf-dist/bibtexu/csf/base" \
+ btdocdir="${EPREFIX}/usr/share/doc/${PF}" \
+ install || die
+ dodoc 00readme.txt ChangeLog csfile.txt HISTORY
+}
diff --git a/dev-tex/bibtexu/bibtexu-3.71_p20130530.ebuild b/dev-tex/bibtexu/bibtexu-3.71_p20130530.ebuild
new file mode 100644
index 00000000000..38ae522192f
--- /dev/null
+++ b/dev-tex/bibtexu/bibtexu-3.71_p20130530.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+DESCRIPTION="8-bit Implementation of BibTeX 0.99 with a Very Large Capacity"
+HOMEPAGE="http://tug.org/texlive/"
+SRC_URI="mirror://gentoo/texlive-${PV#*_p}-source.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
+IUSE="doc source"
+
+RDEPEND=">=dev-libs/kpathsea-6.1.0_p20120701
+ >=dev-libs/icu-4.4:=
+ !<app-text/texlive-core-2013"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+S=${WORKDIR}/texlive-${PV#*_p}-source/texk/bibtex-x
+
+TL_VERSION=2013
+EXTRA_TL_MODULES="bibtex8 bibtexu"
+EXTRA_TL_DOC_MODULES="bibtex8.doc bibtexu.doc"
+
+for i in ${EXTRA_TL_MODULES} ; do
+ SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${TL_VERSION}.tar.xz"
+done
+
+SRC_URI="${SRC_URI} doc? ( "
+for i in ${EXTRA_TL_DOC_MODULES} ; do
+ SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${TL_VERSION}.tar.xz"
+done
+SRC_URI="${SRC_URI} ) "
+
+src_configure() {
+ econf \
+ --with-system-kpathsea \
+ --with-system-icu
+}
+
+src_install() {
+ emake \
+ DESTDIR="${D}" \
+ csfdir="${EPREFIX}/usr/share/texmf-dist/bibtexu/csf/base" \
+ btdocdir="${EPREFIX}/usr/share/doc/${PF}" \
+ install
+ dodoc 00readme.txt ChangeLog csfile.txt HISTORY
+
+ dodir /usr/share # just in case
+ cp -pR "${WORKDIR}"/texmf-dist "${ED}/usr/share/" || die "failed to install texmf trees"
+ if use source ; then
+ cp -pR "${WORKDIR}"/tlpkg "${ED}/usr/share/" || die "failed to install tlpkg files"
+ fi
+}
diff --git a/dev-tex/bibtexu/bibtexu-3.71_p20140525.ebuild b/dev-tex/bibtexu/bibtexu-3.71_p20140525.ebuild
new file mode 100644
index 00000000000..6827adf3f47
--- /dev/null
+++ b/dev-tex/bibtexu/bibtexu-3.71_p20140525.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit flag-o-matic toolchain-funcs
+
+DESCRIPTION="8-bit Implementation of BibTeX 0.99 with a Very Large Capacity"
+HOMEPAGE="http://tug.org/texlive/"
+SRC_URI="mirror://gentoo/texlive-${PV#*_p}-source.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~mips ppc ~ppc64 ~s390 ~sh ~sparc x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
+IUSE="doc source"
+
+RDEPEND=">=dev-libs/kpathsea-6.2.0
+ >=dev-libs/icu-4.4:=
+ !<app-text/texlive-core-2013"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+S=${WORKDIR}/texlive-${PV#*_p}-source/texk/bibtex-x
+
+TL_VERSION=2014
+EXTRA_TL_MODULES="bibtex8 bibtexu"
+EXTRA_TL_DOC_MODULES="bibtex8.doc bibtexu.doc"
+
+for i in ${EXTRA_TL_MODULES} ; do
+ SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${TL_VERSION}.tar.xz"
+done
+
+SRC_URI="${SRC_URI} doc? ( "
+for i in ${EXTRA_TL_DOC_MODULES} ; do
+ SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${TL_VERSION}.tar.xz"
+done
+SRC_URI="${SRC_URI} ) "
+
+src_configure() {
+ has_version '>=dev-libs/kpathsea-6.2.1' && append-cppflags "$($(tc-getPKG_CONFIG) --cflags kpathsea)"
+ econf \
+ --with-system-kpathsea \
+ --with-system-icu
+}
+
+src_install() {
+ emake \
+ DESTDIR="${D}" \
+ csfdir="${EPREFIX}/usr/share/texmf-dist/bibtexu/csf/base" \
+ btdocdir="${EPREFIX}/usr/share/doc/${PF}" \
+ install
+ dodoc 00readme.txt ChangeLog csfile.txt HISTORY
+
+ dodir /usr/share # just in case
+ cp -pR "${WORKDIR}"/texmf-dist "${ED}/usr/share/" || die "failed to install texmf trees"
+ if use source ; then
+ cp -pR "${WORKDIR}"/tlpkg "${ED}/usr/share/" || die "failed to install tlpkg files"
+ fi
+}
diff --git a/dev-tex/bibtexu/bibtexu-3.71_p20150521.ebuild b/dev-tex/bibtexu/bibtexu-3.71_p20150521.ebuild
new file mode 100644
index 00000000000..bcf6302cbf8
--- /dev/null
+++ b/dev-tex/bibtexu/bibtexu-3.71_p20150521.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+DESCRIPTION="8-bit Implementation of BibTeX 0.99 with a Very Large Capacity"
+HOMEPAGE="http://tug.org/texlive/"
+SRC_URI="mirror://gentoo/texlive-${PV#*_p}-source.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
+IUSE="doc source"
+
+RDEPEND=">=dev-libs/kpathsea-6.2.1:=
+ >=dev-libs/icu-4.4:=
+ !<app-text/texlive-core-2013"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+S=${WORKDIR}/texlive-${PV#*_p}-source/texk/bibtex-x
+
+TL_VERSION=2015
+EXTRA_TL_MODULES="bibtex8 bibtexu"
+EXTRA_TL_DOC_MODULES="bibtex8.doc bibtexu.doc"
+
+for i in ${EXTRA_TL_MODULES} ; do
+ SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${TL_VERSION}.tar.xz"
+done
+
+SRC_URI="${SRC_URI} doc? ( "
+for i in ${EXTRA_TL_DOC_MODULES} ; do
+ SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${TL_VERSION}.tar.xz"
+done
+SRC_URI="${SRC_URI} ) "
+
+src_configure() {
+ econf \
+ --with-system-kpathsea \
+ --with-system-icu
+}
+
+src_install() {
+ emake \
+ DESTDIR="${D}" \
+ csfdir="${EPREFIX}/usr/share/texmf-dist/bibtexu/csf/base" \
+ btdocdir="${EPREFIX}/usr/share/doc/${PF}" \
+ install
+ dodoc 00readme.txt ChangeLog csfile.txt HISTORY
+
+ dodir /usr/share # just in case
+ cp -pR "${WORKDIR}"/texmf-dist "${ED}/usr/share/" || die "failed to install texmf trees"
+ if use source ; then
+ cp -pR "${WORKDIR}"/tlpkg "${ED}/usr/share/" || die "failed to install tlpkg files"
+ fi
+}
diff --git a/dev-tex/bibtexu/metadata.xml b/dev-tex/bibtexu/metadata.xml
new file mode 100644
index 00000000000..ba6a8a8800d
--- /dev/null
+++ b/dev-tex/bibtexu/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>tex</herd>
+</pkgmetadata>
diff --git a/dev-tex/catdvi/Manifest b/dev-tex/catdvi/Manifest
new file mode 100644
index 00000000000..4fc493a86a8
--- /dev/null
+++ b/dev-tex/catdvi/Manifest
@@ -0,0 +1 @@
+DIST catdvi-0.14.tar.gz 160661 SHA256 6bface4e8a86f861d8de8ba56483ed2ace69fc0eb12c2c6d0e51e869a46b30a8 SHA512 82ea6130ec702b49ed2d2f08b968ca4d5bee6b16c7973500ceae2d412b209f38a6e63a9e80dd8d2866f190340a7758aa23ee31bed76beb35065016fea109982d WHIRLPOOL 0c4be28f029a38f456e065e52323b44c53f00c761fa3e7b4aea8539d7b9305ca386fc91094c69ea162920ba1caa5096d6d45d9b3cdd04d4cfe808e6c10e6687f
diff --git a/dev-tex/catdvi/catdvi-0.14-r1.ebuild b/dev-tex/catdvi/catdvi-0.14-r1.ebuild
new file mode 100644
index 00000000000..860bed71bc4
--- /dev/null
+++ b/dev-tex/catdvi/catdvi-0.14-r1.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit eutils autotools toolchain-funcs
+
+DESCRIPTION="DVI to plain text translator"
+HOMEPAGE="http://catdvi.sourceforge.net"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="virtual/tex-base"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}-kpathsea.patch"
+ eautoconf
+}
+
+src_compile() {
+ # Do not use plain emake here, because make tests
+ # may cache fonts and generate sandbox violations.
+ emake catdvi CC="$(tc-getCC)"
+}
+
+src_install() {
+ dobin catdvi
+ doman catdvi.1
+ dodoc AUTHORS ChangeLog NEWS README TODO
+}
diff --git a/dev-tex/catdvi/files/catdvi-0.14-kpathsea.patch b/dev-tex/catdvi/files/catdvi-0.14-kpathsea.patch
new file mode 100644
index 00000000000..799cd151201
--- /dev/null
+++ b/dev-tex/catdvi/files/catdvi-0.14-kpathsea.patch
@@ -0,0 +1,60 @@
+http://bugs.gentoo.org/342817
+
+--- catdvi-0.14-orig/config.mk.in
++++ catdvi-0.14/config.mk.in
+@@ -23,6 +23,7 @@
+
+ CFG_HAS_GETOPT_LONG = @CFG_HAS_GETOPT_LONG@
+ CFG_HAS_KPATHSEA = @CFG_HAS_KPATHSEA@
++CFG_HAS_KPATHSEA_VERSION_H = @CFG_HAS_KPATHSEA_VERSION_H@
+ CFG_KPATHSEA_HAS_GETOPT_LONG = @CFG_KPATHSEA_HAS_GETOPT_LONG@
+ CFG_SHOW_PSE2UNIC_WARNINGS = @CFG_SHOW_PSETOUNIC_WARNINGS@
+
+--- catdvi-0.14-orig/configure.in
++++ catdvi-0.14/configure.in
+@@ -48,6 +48,9 @@
+ AC_MSG_ERROR([*** kpathsea library (required) not found; try to use the --with-kpathsea-prefix option ***])
+ fi
+
++AC_CHECK_HEADERS([kpathsea/version.h], CFG_HAS_KPATHSEA_VERSION_H=yes, CFG_HAS_KPATHSEA_VERSION_H=no)
++AC_SUBST(CFG_HAS_KPATHSEA_VERSION_H)
++
+ dnl It seem libkpathsea provides a getopt_long() implementation
+ dnl if and only if the C library does not.
+ dnl
+--- catdvi-0.14-orig/GNUmakefile
++++ catdvi-0.14/GNUmakefile
+@@ -36,6 +36,10 @@
+ endif
+ endif
+
++ifeq ($(CFG_HAS_KPATHSEA_VERSION_H),yes)
++CPPFLAGS += -DCFG_HAS_KPATHSEA_VERSION_H
++endif
++
+ ifeq ($(CFG_HAS_KPATHSEA),yes)
+ FINDTFM = kpathsea.o
+ LDLIBS = -lkpathsea
+--- catdvi-0.14-orig/kpathsea.c
++++ catdvi-0.14/kpathsea.c
+@@ -21,6 +21,12 @@
+ #include "findtfm.h"
+ #include "version.h"
+
++#ifdef CFG_HAS_KPATHSEA_VERSION_H
++#include <kpathsea/version.h>
++#else
++extern char * kpathsea_version_string;
++#endif
++
+ void setup_findtfm(char const * progname)
+ {
+ kpse_set_program_name(progname, PACKAGE);
+@@ -36,7 +42,6 @@
+
+ void version_findtfm(void)
+ {
+- extern char * kpathsea_version_string;
+ puts(kpathsea_version_string);
+ }
+
diff --git a/dev-tex/catdvi/metadata.xml b/dev-tex/catdvi/metadata.xml
new file mode 100644
index 00000000000..8149b587c67
--- /dev/null
+++ b/dev-tex/catdvi/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>tex</herd>
+ <maintainer>
+ <email>ulm@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">catdvi</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-tex/cdcover/Manifest b/dev-tex/cdcover/Manifest
new file mode 100644
index 00000000000..8af00555d2e
--- /dev/null
+++ b/dev-tex/cdcover/Manifest
@@ -0,0 +1 @@
+DIST cdcover-1.3b.tar.gz 14597 SHA256 46a94daa27af9afd84a0df6db314f7bf57104437d3f8583f9e6a62a9c3da2bda SHA512 4a74d1ae526f5cd183bfa58170e5adb6a159b2ee4a10a4efd170f38d98d5d91b4ddd783d7eac286ab292c80bc0f27888c202ef1d26c14b9b42d1bbf040eb8623 WHIRLPOOL bd27e821ec95d1fb18ba3f6f29b3de9e780fc8da899c33634a7e9bba8a069db84b47617fb10e98af726625acd427e047ca26f9084cc2032f5a1e6914d8e44549
diff --git a/dev-tex/cdcover/cdcover-1.3b.ebuild b/dev-tex/cdcover/cdcover-1.3b.ebuild
new file mode 100644
index 00000000000..4cd79b71aca
--- /dev/null
+++ b/dev-tex/cdcover/cdcover-1.3b.ebuild
@@ -0,0 +1,16 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit latex-package
+
+S=${WORKDIR}/cdcover
+DESCRIPTION="LaTeX package used to create CD case covers"
+SRC_URI="mirror://gentoo/${P}.tar.gz"
+HOMEPAGE="http://www.ctan.org/tex-archive/macros/latex/contrib/cd-cover/"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="x86 amd64 ~sparc"
+IUSE=""
+
+# checksum from official ftp site changes frequently so we mirror it
diff --git a/dev-tex/cdcover/metadata.xml b/dev-tex/cdcover/metadata.xml
new file mode 100644
index 00000000000..ba6a8a8800d
--- /dev/null
+++ b/dev-tex/cdcover/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>tex</herd>
+</pkgmetadata>
diff --git a/dev-tex/chktex/Manifest b/dev-tex/chktex/Manifest
new file mode 100644
index 00000000000..7b2c2be317d
--- /dev/null
+++ b/dev-tex/chktex/Manifest
@@ -0,0 +1,4 @@
+DIST chktex-1.7.1.tar.gz 349551 SHA256 be01222e819c00bdf0fb411c232e585fd6a116adc76ba33f7f45a46d1239317b SHA512 88b8b6b20a2242557d253e690ad7a7b5a41497e3c96ee44798997b83ccbfd4e37203aea9c557c7b25fc0b6223bd08a590b464af674f7558547393c2af0a86926 WHIRLPOOL ba4ff573c60fc4d07f56207b878359655622d32fdc21aac3ecf6b29223ca79bcd1fedad2958e6279097a23a2d0d3c1bac2a89c4fc9eeb0f774be303cb3350791
+DIST chktex-1.7.2.tar.gz 356981 SHA256 d7f37985e3a122990f2a29fe7cac5d1f31acb1e50035457ef7ceb07c30550158 SHA512 f0ac3ed74471d33da55591e6ca2a4b6847340540ef1911eef37bfad38ffc7c64ca4709966d52a22f871268edf893bf360c8429e1be7f62157d2fac9e58ea40af WHIRLPOOL b32e1927734ee1ba6af77bbe2a0e64ec640718ea26ebcd89a54c06555ec3b0c275fee3e81809b846b25f440f32397536d12eb85b3dde49bf55a7def09a19658a
+DIST chktex-1.7.3.tar.gz 150801 SHA256 22a2a1af8d6c8b901a66b3729c114080f722b3ba59a73ca000035686590c98dd SHA512 29018229176d3bfd7bff92e68739d32262b01414d7df3d379ef1604abcd28c28abdeb83a2513f6d439e5c888a05e5a636e4a7ab34275d40d20fc63a275985c4a WHIRLPOOL 6fcb533ce1bf0f5dede29825a6477f8961e08fe0e03a596fab76492fd97b5a5179bffc70bf7fdf3e8caffa15b2722ec1be46d58f304000760f4c9f3a6871d82b
+DIST chktex-1.7.4.tar.gz 150839 SHA256 77ed995eabe7088dacf53761933da23e6bf8be14d461f364bd06e090978bf6d2 SHA512 d5bf056f67ca520d9df95237b777380d9b98c792d5e20c16bcec2d78a4c68ec3c35308e4525eab33efa2abaf8f2d67ad62e65988b8885f30d1a3f29d27975a1f WHIRLPOOL e0cba6f01526d97304bd27804508c38a2ea1ca843f459d6e88dd7db84ba1745e8f37372f1b8aa393dbbe5fa1a62a71956849b2222859b36e125f24cdbc5333f3
diff --git a/dev-tex/chktex/chktex-1.7.1.ebuild b/dev-tex/chktex/chktex-1.7.1.ebuild
new file mode 100644
index 00000000000..81a26cb1769
--- /dev/null
+++ b/dev-tex/chktex/chktex-1.7.1.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+AUTOTOOLS_AUTORECONF=true
+
+inherit autotools-utils
+
+DESCRIPTION="Checks latex source for common mistakes"
+HOMEPAGE="http://www.nongnu.org/chktex/"
+SRC_URI="http://download.savannah.gnu.org/releases/chktex/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
+IUSE="debug doc +pcre test"
+# Tests fail without pcre. Enable pcre by default and make tests depend on it.
+REQUIRED_USE="test? ( pcre )"
+
+RDEPEND="virtual/latex-base
+ dev-lang/perl
+ pcre? ( dev-libs/libpcre )"
+DEPEND="${RDEPEND}
+ sys-apps/groff
+ doc? ( dev-tex/latex2html )"
+
+PATCHES=( "${FILESDIR}/${P}-asneeded.patch" )
+DOCS=( NEWS )
+
+src_configure() {
+ local myeconfargs=(
+ $(use_enable debug debug-info)
+ $(use_enable pcre)
+ )
+ autotools-utils_src_configure
+}
+
+src_compile() {
+ autotools-utils_src_compile
+ use doc && autotools-utils_src_compile html
+}
+
+src_install() {
+ if use doc ; then
+ HTML_DOCS=("${AUTOTOOLS_BUILD_DIR}/HTML/ChkTeX/")
+ DOCS+=("${AUTOTOOLS_BUILD_DIR}/HTML/ChkTeX.tex")
+ fi
+ autotools-utils_src_install
+ doman *.1
+}
diff --git a/dev-tex/chktex/chktex-1.7.2.ebuild b/dev-tex/chktex/chktex-1.7.2.ebuild
new file mode 100644
index 00000000000..f30051a4faa
--- /dev/null
+++ b/dev-tex/chktex/chktex-1.7.2.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+AUTOTOOLS_AUTORECONF=true
+
+inherit autotools-utils
+
+DESCRIPTION="Checks latex source for common mistakes"
+HOMEPAGE="http://www.nongnu.org/chktex/"
+SRC_URI="http://download.savannah.gnu.org/releases/chktex/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
+IUSE="debug doc +pcre test"
+# Tests fail without pcre. Enable pcre by default and make tests depend on it.
+REQUIRED_USE="test? ( pcre )"
+
+RDEPEND="virtual/latex-base
+ dev-lang/perl
+ pcre? ( dev-libs/libpcre )"
+DEPEND="${RDEPEND}
+ sys-apps/groff
+ doc? ( dev-tex/latex2html )"
+
+PATCHES=( "${FILESDIR}/${PN}-1.7.1-asneeded.patch" )
+DOCS=( NEWS )
+
+src_configure() {
+ local myeconfargs=(
+ $(use_enable debug debug-info)
+ $(use_enable pcre)
+ )
+ autotools-utils_src_configure
+}
+
+src_compile() {
+ autotools-utils_src_compile
+ use doc && autotools-utils_src_compile html
+}
+
+src_install() {
+ if use doc ; then
+ HTML_DOCS=("${AUTOTOOLS_BUILD_DIR}/HTML/ChkTeX/")
+ DOCS+=("${AUTOTOOLS_BUILD_DIR}/HTML/ChkTeX.tex")
+ fi
+ autotools-utils_src_install
+ doman *.1
+}
diff --git a/dev-tex/chktex/chktex-1.7.3.ebuild b/dev-tex/chktex/chktex-1.7.3.ebuild
new file mode 100644
index 00000000000..cca1bf4786d
--- /dev/null
+++ b/dev-tex/chktex/chktex-1.7.3.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+AUTOTOOLS_AUTORECONF=true
+
+inherit autotools-utils
+
+DESCRIPTION="Checks latex source for common mistakes"
+HOMEPAGE="http://www.nongnu.org/chktex/"
+SRC_URI="http://download.savannah.gnu.org/releases/chktex/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
+IUSE="debug doc +pcre test"
+# Tests fail without pcre. Enable pcre by default and make tests depend on it.
+REQUIRED_USE="test? ( pcre )"
+
+RDEPEND="virtual/latex-base
+ dev-lang/perl
+ pcre? ( dev-libs/libpcre )"
+DEPEND="${RDEPEND}
+ sys-apps/groff
+ doc? ( dev-tex/latex2html )"
+
+PATCHES=( "${FILESDIR}/${PN}-1.7.1-asneeded.patch" )
+DOCS=( NEWS )
+
+src_configure() {
+ export VARTEXFONTS="${T}/fonts" #538672
+
+ local myeconfargs=(
+ $(use_enable debug debug-info)
+ $(use_enable pcre)
+ )
+ autotools-utils_src_configure
+}
+
+src_compile() {
+ autotools-utils_src_compile
+ use doc && autotools-utils_src_compile html
+}
+
+src_install() {
+ if use doc ; then
+ HTML_DOCS=("${AUTOTOOLS_BUILD_DIR}/HTML/ChkTeX/")
+ DOCS+=("${AUTOTOOLS_BUILD_DIR}/HTML/ChkTeX.tex")
+ fi
+ autotools-utils_src_install
+ doman *.1
+}
diff --git a/dev-tex/chktex/chktex-1.7.4.ebuild b/dev-tex/chktex/chktex-1.7.4.ebuild
new file mode 100644
index 00000000000..cca1bf4786d
--- /dev/null
+++ b/dev-tex/chktex/chktex-1.7.4.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+AUTOTOOLS_AUTORECONF=true
+
+inherit autotools-utils
+
+DESCRIPTION="Checks latex source for common mistakes"
+HOMEPAGE="http://www.nongnu.org/chktex/"
+SRC_URI="http://download.savannah.gnu.org/releases/chktex/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
+IUSE="debug doc +pcre test"
+# Tests fail without pcre. Enable pcre by default and make tests depend on it.
+REQUIRED_USE="test? ( pcre )"
+
+RDEPEND="virtual/latex-base
+ dev-lang/perl
+ pcre? ( dev-libs/libpcre )"
+DEPEND="${RDEPEND}
+ sys-apps/groff
+ doc? ( dev-tex/latex2html )"
+
+PATCHES=( "${FILESDIR}/${PN}-1.7.1-asneeded.patch" )
+DOCS=( NEWS )
+
+src_configure() {
+ export VARTEXFONTS="${T}/fonts" #538672
+
+ local myeconfargs=(
+ $(use_enable debug debug-info)
+ $(use_enable pcre)
+ )
+ autotools-utils_src_configure
+}
+
+src_compile() {
+ autotools-utils_src_compile
+ use doc && autotools-utils_src_compile html
+}
+
+src_install() {
+ if use doc ; then
+ HTML_DOCS=("${AUTOTOOLS_BUILD_DIR}/HTML/ChkTeX/")
+ DOCS+=("${AUTOTOOLS_BUILD_DIR}/HTML/ChkTeX.tex")
+ fi
+ autotools-utils_src_install
+ doman *.1
+}
diff --git a/dev-tex/chktex/files/chktex-1.7.1-asneeded.patch b/dev-tex/chktex/files/chktex-1.7.1-asneeded.patch
new file mode 100644
index 00000000000..7862a3534b9
--- /dev/null
+++ b/dev-tex/chktex/files/chktex-1.7.1-asneeded.patch
@@ -0,0 +1,13 @@
+Index: chktex-1.7.1/configure.in
+===================================================================
+--- chktex-1.7.1.orig/configure.in
++++ chktex-1.7.1/configure.in
+@@ -173,7 +173,7 @@ if test "$enable_pcre" = "yes"; then
+ if test "$WITH_PCRE" = "yes"; then
+ AC_DEFINE(HAVE_PCRE, 1, "Whether PCRE can be used for user warnings.")
+ CFLAGS="${CFLAGS} $(pcre-config --cflags-posix)"
+- LDFLAGS="${LDFLAGS} $(pcre-config --libs-posix)"
++ LIBS="${LIBS} $(pcre-config --libs-posix)"
+ else
+ AC_DEFINE(HAVE_PCRE, 0, "Whether PCRE can be used for user warnings.")
+ AC_MSG_WARN(PCRE library not found.)
diff --git a/dev-tex/chktex/metadata.xml b/dev-tex/chktex/metadata.xml
new file mode 100644
index 00000000000..ba6a8a8800d
--- /dev/null
+++ b/dev-tex/chktex/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>tex</herd>
+</pkgmetadata>
diff --git a/dev-tex/circuit_macros/Manifest b/dev-tex/circuit_macros/Manifest
new file mode 100644
index 00000000000..b30b5148195
--- /dev/null
+++ b/dev-tex/circuit_macros/Manifest
@@ -0,0 +1,4 @@
+DIST circuit_macros-7.9.6.tar.gz 1693833 SHA256 b1fb52cad0952cdbbca2bbb6bbfa9fe880ab6e16592ed732669a120f47dae5f0 SHA512 302ff2e68e231cbdf94922e8e2960e43fc049d80961a646a308246080c401c1de18a72002969d31ca92f9a461c2ae0626993eb39aec28fc622aca4d5f6931efa WHIRLPOOL 6fa5d0170e75b262ac20cd3cd29ad6aeea325abc041fa1fcff7288963773ee893946c1863aa821024bb8406f7d0b60f049b30f9ad0201b17a84c09d18aab3805
+DIST circuit_macros-8.0.tar.gz 1742055 SHA256 6678ff194ba1181d73b69f78003753f0bb9816a801d7f44530293517b7852b73 SHA512 5b2b93c8f3092fe0785472d759ca05fba3b06795352f30e0cff71a72fcaecc66a6e2b49663522dc4816cdc88a4b00f6f8c76c19f3b08f5027dbcb492625d0daf WHIRLPOOL 3d1dfd05175cc529b8271fb0b86e11702ea44f3d00ae8fcaa2832f12c264633d9e374c64f6fac3de9dfe4d8cbc5e81e3df3152bb89780e08a65283b949a9872d
+DIST circuit_macros-8.02.tar.gz 1833829 SHA256 c025a72c24bd0c54edbb6debcaeded8e6c7a8aad30570b51d266fad3af064674 SHA512 1b20deb4c1dcc3d464c1318b39e87a932da3daa863aa01dbc8e5ca2d4a25e7b79fb4950a6dc2d413dc4202e1cdf1968497c3e737631858e0364b1b3c043e250b WHIRLPOOL d6f3d315532401e2cc11fc2f424ebc57a8fd8e2f40d4897dd8f5e54339744fdb77fb49aef556281cd1dd698c508ed7482fd524c8378b5d2ae9a133a8e78df747
+DIST circuit_macros-8.04.tar.gz 1833571 SHA256 36a8be40f8751364c92de823b6e8a66dd864cb306d6b45db117dab95b9bc79cc SHA512 e52353e6a87fb76dc7b8452059a0bf26f23a7778c76b3e02000139807f5ed70071dffd75c40ee0afb6b99087b5b28e3d2af7fa5dd2e0740f8103b4203193fc74 WHIRLPOOL 3737abef0314122443a218134d879114660a84e9dc82a1fbc5d22e019e988a715d620a200dd998eaefe89f5d33e9fb9ae089bdd4edd2662d90c9575c8bf144d7
diff --git a/dev-tex/circuit_macros/circuit_macros-7.9.6.ebuild b/dev-tex/circuit_macros/circuit_macros-7.9.6.ebuild
new file mode 100644
index 00000000000..cda8f2aae49
--- /dev/null
+++ b/dev-tex/circuit_macros/circuit_macros-7.9.6.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit texlive-common
+
+DESCRIPTION="M4 Macros for Electric circuit diagrams in TeX or LaTeX"
+HOMEPAGE="https://ece.uwaterloo.ca/~aplevich/Circuit_macros/"
+SRC_URI="https://ece.uwaterloo.ca/~aplevich/Circuit_macros/Circuit_macros.tar.gz -> circuit_macros-${PV}.tar.gz"
+
+LICENSE="LPPL-1.3c"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc examples +script"
+
+DEPEND=""
+RDEPEND="|| ( app-text/texlive[graphics] app-text/texlive[pstricks] )
+ media-gfx/dpic
+ sys-devel/m4
+ script? ( app-text/texlive[graphics]
+ dev-texlive/texlive-latexextra )"
+
+S="${WORKDIR}/Circuit_macros${PV}"
+
+src_compile() {
+ :
+}
+
+src_install() {
+ insinto /usr/share/${PN}
+ doins *.m4
+ insinto /usr/share/texmf-site/tex/latex/${PN}
+ doins boxdims.sty
+ dodoc README CHANGES Makefile doc/CMman.pdf
+ rm -f doc/CMman.pdf
+ use doc && dodoc -r doc
+ use examples && dodoc -r examples
+ use script && dobin "${FILESDIR}/cm2pdf"
+ docompress -x \
+ /usr/share/doc/${PF}/Makefile \
+ /usr/share/doc/${PF}/doc \
+ /usr/share/doc/${PF}/examples
+}
+
+pkg_postinst() {
+ etexmf-update
+ use script && einfo "cm2pdf was installed to automatically create PDFs. Run cm2pdf --help for usage help."
+}
+
+pkg_postrm() {
+ etexmf-update
+}
diff --git a/dev-tex/circuit_macros/circuit_macros-8.0.ebuild b/dev-tex/circuit_macros/circuit_macros-8.0.ebuild
new file mode 100644
index 00000000000..64e34807ddf
--- /dev/null
+++ b/dev-tex/circuit_macros/circuit_macros-8.0.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit texlive-common
+
+DESCRIPTION="M4 Macros for Electric circuit diagrams in TeX or LaTeX"
+HOMEPAGE="https://ece.uwaterloo.ca/~aplevich/Circuit_macros/"
+SRC_URI="https://ece.uwaterloo.ca/~aplevich/Circuit_macros/Circuit_macros.tar.gz -> circuit_macros-${PV}.tar.gz"
+
+LICENSE="LPPL-1.3c"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc examples +script"
+
+DEPEND=""
+RDEPEND="|| ( app-text/texlive[graphics] app-text/texlive[pstricks] )
+ media-gfx/dpic
+ sys-devel/m4
+ script? ( app-text/texlive[graphics]
+ dev-texlive/texlive-latexextra )"
+
+S="${WORKDIR}/Circuit_macros${PV}"
+
+src_install() {
+ insinto /usr/share/${PN}
+ doins *.m4
+ insinto /usr/share/texmf-site/tex/latex/${PN}
+ doins boxdims.sty
+ dodoc README CHANGES Makefile doc/CMman.pdf
+ rm -f doc/CMman.pdf
+ use doc && dodoc -r doc
+ use examples && dodoc -r examples
+ use script && dobin "${FILESDIR}/cm2pdf"
+ docompress -x \
+ /usr/share/doc/${PF}/Makefile \
+ /usr/share/doc/${PF}/doc \
+ /usr/share/doc/${PF}/examples
+}
+
+pkg_postinst() {
+ etexmf-update
+ use script && einfo "cm2pdf was installed to automatically create PDFs. Run cm2pdf --help for usage help."
+}
+
+pkg_postrm() {
+ etexmf-update
+}
diff --git a/dev-tex/circuit_macros/circuit_macros-8.02.ebuild b/dev-tex/circuit_macros/circuit_macros-8.02.ebuild
new file mode 100644
index 00000000000..64e34807ddf
--- /dev/null
+++ b/dev-tex/circuit_macros/circuit_macros-8.02.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit texlive-common
+
+DESCRIPTION="M4 Macros for Electric circuit diagrams in TeX or LaTeX"
+HOMEPAGE="https://ece.uwaterloo.ca/~aplevich/Circuit_macros/"
+SRC_URI="https://ece.uwaterloo.ca/~aplevich/Circuit_macros/Circuit_macros.tar.gz -> circuit_macros-${PV}.tar.gz"
+
+LICENSE="LPPL-1.3c"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc examples +script"
+
+DEPEND=""
+RDEPEND="|| ( app-text/texlive[graphics] app-text/texlive[pstricks] )
+ media-gfx/dpic
+ sys-devel/m4
+ script? ( app-text/texlive[graphics]
+ dev-texlive/texlive-latexextra )"
+
+S="${WORKDIR}/Circuit_macros${PV}"
+
+src_install() {
+ insinto /usr/share/${PN}
+ doins *.m4
+ insinto /usr/share/texmf-site/tex/latex/${PN}
+ doins boxdims.sty
+ dodoc README CHANGES Makefile doc/CMman.pdf
+ rm -f doc/CMman.pdf
+ use doc && dodoc -r doc
+ use examples && dodoc -r examples
+ use script && dobin "${FILESDIR}/cm2pdf"
+ docompress -x \
+ /usr/share/doc/${PF}/Makefile \
+ /usr/share/doc/${PF}/doc \
+ /usr/share/doc/${PF}/examples
+}
+
+pkg_postinst() {
+ etexmf-update
+ use script && einfo "cm2pdf was installed to automatically create PDFs. Run cm2pdf --help for usage help."
+}
+
+pkg_postrm() {
+ etexmf-update
+}
diff --git a/dev-tex/circuit_macros/circuit_macros-8.04.ebuild b/dev-tex/circuit_macros/circuit_macros-8.04.ebuild
new file mode 100644
index 00000000000..64e34807ddf
--- /dev/null
+++ b/dev-tex/circuit_macros/circuit_macros-8.04.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit texlive-common
+
+DESCRIPTION="M4 Macros for Electric circuit diagrams in TeX or LaTeX"
+HOMEPAGE="https://ece.uwaterloo.ca/~aplevich/Circuit_macros/"
+SRC_URI="https://ece.uwaterloo.ca/~aplevich/Circuit_macros/Circuit_macros.tar.gz -> circuit_macros-${PV}.tar.gz"
+
+LICENSE="LPPL-1.3c"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc examples +script"
+
+DEPEND=""
+RDEPEND="|| ( app-text/texlive[graphics] app-text/texlive[pstricks] )
+ media-gfx/dpic
+ sys-devel/m4
+ script? ( app-text/texlive[graphics]
+ dev-texlive/texlive-latexextra )"
+
+S="${WORKDIR}/Circuit_macros${PV}"
+
+src_install() {
+ insinto /usr/share/${PN}
+ doins *.m4
+ insinto /usr/share/texmf-site/tex/latex/${PN}
+ doins boxdims.sty
+ dodoc README CHANGES Makefile doc/CMman.pdf
+ rm -f doc/CMman.pdf
+ use doc && dodoc -r doc
+ use examples && dodoc -r examples
+ use script && dobin "${FILESDIR}/cm2pdf"
+ docompress -x \
+ /usr/share/doc/${PF}/Makefile \
+ /usr/share/doc/${PF}/doc \
+ /usr/share/doc/${PF}/examples
+}
+
+pkg_postinst() {
+ etexmf-update
+ use script && einfo "cm2pdf was installed to automatically create PDFs. Run cm2pdf --help for usage help."
+}
+
+pkg_postrm() {
+ etexmf-update
+}
diff --git a/dev-tex/circuit_macros/files/cm2pdf b/dev-tex/circuit_macros/files/cm2pdf
new file mode 100755
index 00000000000..893c59fe97b
--- /dev/null
+++ b/dev-tex/circuit_macros/files/cm2pdf
@@ -0,0 +1,72 @@
+#! /bin/bash
+
+m4file=""
+fontsize=10
+
+usage() {
+ echo "Usage:"
+ echo "${0##*/} --help"
+ echo "${0##*/} [options] path/to/file.m4"
+ echo
+ echo "--help"
+ echo " Show this help message."
+ echo
+ echo "-f, --fontsize"
+ echo " Set size of base font, in points."
+ echo " Supported font sizes are 8, 9, 10, 11, 12, 14, 17 and 20."
+ exit
+}
+
+if [[ "$#" == 0 ]]; then usage; fi
+
+while [[ "$#" != 0 ]]; do
+ case "${1}" in
+ -h|--help)
+ usage;;
+ -f|--fontsize)
+ case "${2}" in
+ 8)
+ fontsize=8;;
+ 9)
+ fontsize=9;;
+ 10)
+ fontsize=10;;
+ 11)
+ fontsize=11;;
+ 12)
+ fontsize=12;;
+ 14)
+ fontsize=14;;
+ 17)
+ fontsize=17;;
+ 20)
+ fontsize=20;;
+ *)
+ echo "Unsupported font size: ${2}"
+ exit;;
+ esac
+ shift; shift;;
+ *.m4)
+ m4file="${1}"
+ shift;;
+ *)
+ echo "Unknown option: ${1}"
+ exit
+ esac
+done
+
+if [[ "${m4file}" == "" ]]; then
+ echo "No m4 input file"
+ exit
+fi
+
+tempdir=$(mktemp -d)
+cp -f "${m4file}" "${tempdir}/source.m4"
+pushd "${tempdir}" > /dev/null
+
+m4 -I /usr/share/circuit_macros pgf.m4 source.m4 | dpic -g > source.tex
+pdflatex "\documentclass[preview=true]{standalone}\usepackage{tikz,boxdims}\usepackage[${fontsize}pt]{extsizes}\begin{document}\input source.tex\end{document}"
+
+popd > /dev/null
+cp "${tempdir}/standalone.pdf" "${m4file%.m4}.pdf"
+rm -rf "${tempdir}"
diff --git a/dev-tex/circuit_macros/metadata.xml b/dev-tex/circuit_macros/metadata.xml
new file mode 100644
index 00000000000..239ba2086e6
--- /dev/null
+++ b/dev-tex/circuit_macros/metadata.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>tex</herd>
+<herd>sci-electronics</herd>
+<maintainer>
+ <email>calchan@gentoo.org</email>
+</maintainer>
+<longdescription>Set of macros for drawing high-quality line diagrams to include
+ in TeX, LaTeX, or similar documents. Fundamental electric circuit
+ elements and basic logic gates are included with several tools and
+ examples of other types of diagrams.
+</longdescription>
+<use>
+ <flag name="script">Install cm2pdf to automatically create a correctly
+ sized PDF from a circuit_macro m4 source
+ </flag>
+</use>
+</pkgmetadata>
diff --git a/dev-tex/cjk-latex/Manifest b/dev-tex/cjk-latex/Manifest
new file mode 100644
index 00000000000..3709a964ed0
--- /dev/null
+++ b/dev-tex/cjk-latex/Manifest
@@ -0,0 +1,6 @@
+DIST cjk-4.8.3-doc.tar.gz 2045004 SHA256 d7a39b532f318b210ee650be0389145973029ffaebcb3e731a3e1fd90440d8b5 SHA512 06cab391ebd7d92a120dc493101bd3f9aef585e9f8be26d5c510c1b2266fe8dd6dd83aa6b41a4a58b8a97b294431193e05350485d4480019acab388b4a25f0a7 WHIRLPOOL 566db0371595a25352e36a35b294aa19f0df7c704e36c3a682bec25d2f5edaa6517f84e0791433e0e457015f4d0444cf2a1babb7e0a39f64a27711eec3d2a63b
+DIST cjk-4.8.3-fonts.zip 20384230 SHA256 1625582b13a5f46532b5f7d0b0f25a9f72960017ad9b1074fbcf70cbbf45efb4 SHA512 ec55aa604f1e8b19936d0e22949f8100f6442c6c93a5f240a78c9891289d838dd29350dcb4d20998c3e7a13ba05d451934ed29a2d7e7cbbaf517db06a92204d1 WHIRLPOOL 0876b7908b1f0c164a3e28888e97b4b7d8f251ea56e84f0268053bd6b3cc7877ca4e1543c9afb4534b1a5a4860187bb038ef08a9d66567b4937eb46ee8ae0a45
+DIST cjk-4.8.3.tar.gz 562787 SHA256 fd8847d7494110a318f222276f8026bc9723f4728ad1fd5ec72e0494a20f4837 SHA512 b3ff2761f86de900abcf678cb85886fa3bd2ec80a205e042ccdf44d432f699b0e8fb45e56aff4368b534b187c46de2eb4e2657098bab877b11a2bc13d099bee9 WHIRLPOOL 00ab9a67bccc2bcc3737b1e739b6526a0ef0dc33bf997f89e42245f243b1f711b24dd570d41470b8cba135369feddca349c86d7d9f84b4c58fb17ab271c0fc0a
+DIST cjk-4.8.4-doc.tar.gz 2152418 SHA256 73775aec5a9006acecca45acaf7f3f59cbdeab7f3d2dfe3a1d983d6791fbf987 SHA512 453ff48554d950eeba53481e0643dcd96214627a12e685e1c39476e19aee9f5284ae347cf694df583c43cc273be44a5b56511bfc622144552f07e51d9e1e0877 WHIRLPOOL 494c1a7fa00e73fdbafe503842b44dc928edf6fd19426a7a5c623427a6e4a7e77edc5944a31ce7ef1b4a4e02d39f2e37c1a91b8918018791171240fe2fea0ea0
+DIST cjk-4.8.4-fonts.zip 20384230 SHA256 1625582b13a5f46532b5f7d0b0f25a9f72960017ad9b1074fbcf70cbbf45efb4 SHA512 ec55aa604f1e8b19936d0e22949f8100f6442c6c93a5f240a78c9891289d838dd29350dcb4d20998c3e7a13ba05d451934ed29a2d7e7cbbaf517db06a92204d1 WHIRLPOOL 0876b7908b1f0c164a3e28888e97b4b7d8f251ea56e84f0268053bd6b3cc7877ca4e1543c9afb4534b1a5a4860187bb038ef08a9d66567b4937eb46ee8ae0a45
+DIST cjk-4.8.4.tar.gz 556197 SHA256 17b3978a1558dbcb23a041076673c4b26856bfe975839a17363e35cd2f93a6ea SHA512 d1dc754c176331d0694561158554072083e6b8f2bbeb2516915c8bc8b15bbcedff81f2a14655cc9d77d832121971a5f9792e3c477336f9b5bcb77c8f15f8cfa3 WHIRLPOOL 9c1d94f676b86f91bf0496047b7bc3fd9f5ae70eae49390dc1e52a313fad8e342ed9cc254f58e7b5ba109ddbfc027145fe1caae1659fd2cd2234a10de5dc0871
diff --git a/dev-tex/cjk-latex/cjk-latex-4.8.3-r1.ebuild b/dev-tex/cjk-latex/cjk-latex-4.8.3-r1.ebuild
new file mode 100644
index 00000000000..1414e62c74f
--- /dev/null
+++ b/dev-tex/cjk-latex/cjk-latex-4.8.3-r1.ebuild
@@ -0,0 +1,161 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit latex-package elisp-common toolchain-funcs multilib eutils
+
+MY_P="${P/-latex/}"
+
+DESCRIPTION="A LaTeX 2e macro package which enables the use of CJK scripts in various encodings"
+HOMEPAGE="http://cjk.ffii.org/"
+# fonts are taken from ftp://ftp.ctan.org/tex-archive/fonts/CJK.zip
+SRC_URI="ftp://ftp.ffii.org/pub/cjk/${MY_P}.tar.gz
+ mirror://gentoo/${MY_P}-fonts.zip
+ doc? ( ftp://ftp.ffii.org/pub/cjk/${MY_P}-doc.tar.gz )"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux"
+IUSE="doc emacs"
+
+DEPEND="virtual/latex-base
+ emacs? ( virtual/emacs )"
+RDEPEND="${DEPEND}
+ app-arch/unzip"
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+ for i in "${WORKDIR}"/CJK/*.tar.gz; do
+ tar -xzf ${i} || die "failed to unpack $i"
+ done
+ find texmf/fonts/hbf -type f -exec cp {} "${T}" \; || die
+ sed -i -e "/^pk_files/s/no/yes/" \
+ -e "/^dpi_x/s/300/500/" \
+ texmf/hbf2gf/*.cfg || die
+}
+
+src_configure() {
+ cd utils
+ for d in *conv; do
+ cd $d
+ local f=`echo $d | tr '[:upper:]' '[:lower:]'`
+ echo "all: $f" >> Makefile
+ if [ $d = CEFconv ] ; then
+ echo "all: cef5conv cefsconv" >> Makefile
+ fi
+ cd -
+ done
+ cd hbf2gf
+ econf --with-kpathsea-lib="${EPREFIX}"/usr/$(get_libdir) \
+ --with-kpathsea-include="${EPREFIX}"/usr/include/kpathsea
+}
+
+src_compile() {
+ tc-export CC
+ cd utils
+ for d in *conv; do
+ cd $d
+ emake || die
+ cd -
+ done
+ cd hbf2gf
+ emake || die
+ cd -
+
+ if use emacs ; then
+ cd lisp
+ elisp-compile *.el
+ cd emacs
+ elisp-compile *.el
+ cd ../mule-2.3
+ elisp-compile *.el
+ fi
+
+ cd "${T}"
+
+ for f in "${S}"/texmf/hbf2gf/*.cfg ; do
+ env TEXMFCNF="${EPREFIX}/etc/texmf/web2c" HBF_TARGET="${S}/texmf/fonts" "${S}/utils/hbf2gf/hbf2gf" $f || die
+ done
+
+ einfo "Generating pk fonts"
+ for gf in *.gf ; do
+ einfo "${gf}"
+ gftopk $gf || die
+ done
+}
+
+src_install() {
+ cd utils
+ for d in *conv; do
+ cd $d
+ local f=`echo $d | tr '[:upper:]' '[:lower:]'`
+ dobin *latex *conv
+ doman *.1
+ cd -
+ done
+ cd hbf2gf
+ einstall || die "einstall failed"
+
+ cd "${S}"
+
+ # Install pk fonts
+ pushd texmf &>/dev/null
+ for d in fonts/pk/modeless/*/* ; do
+ insinto ${TEXMF}/${d}
+ for f in "${T}"/${d##*/}*.pk ; do
+ newins $f `basename ${f/.pk/.500pk}` || die "newins failed"
+ done
+ done
+ popd &>/dev/null
+
+ insinto "${TEXMF}/tex/latex/${PN}"
+ doins -r texinput/* || die "installing texinput files failed"
+ doins -r contrib/wadalab || die "installing wadalab failed"
+
+ if use emacs ; then
+ cd utils/lisp
+ elisp-install ${PN} *.el{,c} emacs/*.el{,c} mule-2.3/*.el{,c}
+ fi
+
+ cd "${S}"
+
+ # uwpatch stuff
+ insinto ${TEXMF}/scripts/uwpatch
+ doins uwpatch/uwpatchold.sh
+ insinto ${TEXMF}/fonts/afm/uwpatch
+ doins uwpatch/*.afm
+
+ # jisksp40 stuff
+ insinto ${TEXMF}
+ doins -r jisksp40/texmf/*
+
+ # kanji48 stuff
+ insinto ${TEXMF}
+ doins -r kanji48/texmf/*
+
+ use doc || rm -rf texmf/doc
+ insinto ${TEXMF}
+ doins -r texmf/* || die "installing texmf failed"
+
+ # Move fonts because hbf2gf expects them in MISCFONTS
+ mv "${ED}/${TEXMF}/fonts/hbf" "${ED}/${TEXMF}/fonts/misc" || die "mv font failed"
+
+ insinto ${TEXMF}/hbf2gf
+ doins utils/hbf2gf/cfg/*
+
+ insinto ${TEXMF}/scripts/subfonts
+ doins utils/subfonts/*
+
+ rm -f doc/COPYING doc/INSTALL
+ dodoc ChangeLog README
+ if use doc ; then
+ insinto /usr/share/doc/${PF}
+ doins -r doc/*
+ doins -r examples
+ fi
+ docinto uwpatch
+ dodoc uwpatch/README
+}
diff --git a/dev-tex/cjk-latex/cjk-latex-4.8.4.ebuild b/dev-tex/cjk-latex/cjk-latex-4.8.4.ebuild
new file mode 100644
index 00000000000..440af1bb056
--- /dev/null
+++ b/dev-tex/cjk-latex/cjk-latex-4.8.4.ebuild
@@ -0,0 +1,164 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit latex-package elisp-common toolchain-funcs multilib eutils flag-o-matic
+
+MY_P="${P/-latex/}"
+
+DESCRIPTION="A LaTeX 2e macro package which enables the use of CJK scripts in various encodings"
+HOMEPAGE="http://cjk.ffii.org/"
+# fonts are taken from ftp://ftp.ctan.org/tex-archive/fonts/CJK.zip
+SRC_URI="ftp://ftp.ffii.org/pub/cjk/${MY_P}.tar.gz
+ mirror://gentoo/${MY_P}-fonts.zip
+ doc? ( ftp://ftp.ffii.org/pub/cjk/${MY_P}-doc.tar.gz )"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux"
+IUSE="doc emacs"
+
+RDEPEND="virtual/latex-base
+ dev-libs/kpathsea
+ emacs? ( virtual/emacs )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ app-arch/unzip"
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+ for i in "${WORKDIR}"/CJK/*.tar.gz; do
+ tar -xzf ${i} || die "failed to unpack $i"
+ done
+ find texmf/fonts/hbf -type f -exec cp {} "${T}" \; || die
+ sed -i -e "/^pk_files/s/no/yes/" \
+ -e "/^dpi_x/s/300/500/" \
+ texmf/hbf2gf/*.cfg || die
+}
+
+src_configure() {
+ has_version '>=dev-libs/kpathsea-6.2.1' && append-cppflags "$($(tc-getPKG_CONFIG) --cflags kpathsea)"
+ cd utils
+ for d in *conv; do
+ cd $d
+ local f=`echo $d | tr '[:upper:]' '[:lower:]'`
+ echo "all: $f" >> Makefile
+ if [ $d = CEFconv ] ; then
+ echo "all: cef5conv cefsconv" >> Makefile
+ fi
+ cd -
+ done
+ cd hbf2gf
+ econf --with-kpathsea-lib="${EPREFIX}"/usr/$(get_libdir) \
+ --with-kpathsea-include="${EPREFIX}"/usr/include/kpathsea
+}
+
+src_compile() {
+ tc-export CC
+ cd utils
+ for d in *conv; do
+ cd $d
+ emake || die
+ cd -
+ done
+ cd hbf2gf
+ emake || die
+ cd -
+
+ if use emacs ; then
+ cd lisp
+ elisp-compile *.el
+ cd emacs
+ elisp-compile *.el
+ cd ../mule-2.3
+ elisp-compile *.el
+ fi
+
+ cd "${T}"
+
+ for f in "${S}"/texmf/hbf2gf/*.cfg ; do
+ env TEXMFCNF="${EPREFIX}/etc/texmf/web2c" HBF_TARGET="${S}/texmf/fonts" "${S}/utils/hbf2gf/hbf2gf" $f || die
+ done
+
+ einfo "Generating pk fonts"
+ for gf in *.gf ; do
+ einfo "${gf}"
+ gftopk $gf || die
+ done
+}
+
+src_install() {
+ cd utils
+ for d in *conv; do
+ cd $d
+ local f=`echo $d | tr '[:upper:]' '[:lower:]'`
+ dobin *latex *conv
+ doman *.1
+ cd -
+ done
+ cd hbf2gf
+ einstall || die "einstall failed"
+
+ cd "${S}"
+
+ # Install pk fonts
+ pushd texmf &>/dev/null
+ for d in fonts/pk/modeless/*/* ; do
+ insinto ${TEXMF}/${d}
+ for f in "${T}"/${d##*/}*.pk ; do
+ newins $f `basename ${f/.pk/.500pk}` || die "newins failed"
+ done
+ done
+ popd &>/dev/null
+
+ insinto "${TEXMF}/tex/latex/${PN}"
+ doins -r texinput/* || die "installing texinput files failed"
+ doins -r contrib/wadalab || die "installing wadalab failed"
+
+ if use emacs ; then
+ cd utils/lisp
+ elisp-install ${PN} *.el{,c} emacs/*.el{,c} mule-2.3/*.el{,c}
+ fi
+
+ cd "${S}"
+
+ # uwpatch stuff
+ insinto ${TEXMF}/scripts/uwpatch
+ doins uwpatch/uwpatchold.sh
+ insinto ${TEXMF}/fonts/afm/uwpatch
+ doins uwpatch/*.afm
+
+ # jisksp40 stuff
+ insinto ${TEXMF}
+ doins -r jisksp40/texmf/*
+
+ # kanji48 stuff
+ insinto ${TEXMF}
+ doins -r kanji48/texmf/*
+
+ use doc || rm -rf texmf/doc
+ insinto ${TEXMF}
+ doins -r texmf/* || die "installing texmf failed"
+
+ # Move fonts because hbf2gf expects them in MISCFONTS
+ mv "${ED}/${TEXMF}/fonts/hbf" "${ED}/${TEXMF}/fonts/misc" || die "mv font failed"
+
+ insinto ${TEXMF}/hbf2gf
+ doins utils/hbf2gf/cfg/*
+
+ insinto ${TEXMF}/scripts/subfonts
+ doins utils/subfonts/*
+
+ rm -f doc/COPYING doc/INSTALL
+ dodoc ChangeLog README
+ if use doc ; then
+ insinto /usr/share/doc/${PF}
+ doins -r doc/*
+ doins -r examples
+ fi
+ docinto uwpatch
+ dodoc uwpatch/README
+}
diff --git a/dev-tex/cjk-latex/metadata.xml b/dev-tex/cjk-latex/metadata.xml
new file mode 100644
index 00000000000..a5618f4ac96
--- /dev/null
+++ b/dev-tex/cjk-latex/metadata.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>tex</herd>
+<herd>cjk</herd>
+</pkgmetadata>
diff --git a/dev-tex/cpp2latex/Manifest b/dev-tex/cpp2latex/Manifest
new file mode 100644
index 00000000000..f9c92af75d7
--- /dev/null
+++ b/dev-tex/cpp2latex/Manifest
@@ -0,0 +1 @@
+DIST cpp2latex-2.3.tar.gz 483213 SHA256 bd2ede885f34f5412734b2ec28cc454b6ce0ae3cc89b9a0cfe9df4baa075af86 SHA512 af4a13a79b2eb14556f35ca372a0c4f5fec5ddc52a712e998fb73dfe0451c1d95eb857f905a9fd66fac72f734fdcad50b9bca2769780950c7b04fa56912812e1 WHIRLPOOL b34d5611bf2af53b5dd9cc5dd2002f795d894ba87d00072160080b7655959eae64f902e5af04cd22e0fee58d46930ede53e7a2f03e808235e91800eb56de8b5c
diff --git a/dev-tex/cpp2latex/cpp2latex-2.3-r1.ebuild b/dev-tex/cpp2latex/cpp2latex-2.3-r1.ebuild
new file mode 100644
index 00000000000..639627f76a9
--- /dev/null
+++ b/dev-tex/cpp2latex/cpp2latex-2.3-r1.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit eutils
+
+DESCRIPTION="A program to convert C++ code to LaTeX source"
+HOMEPAGE="http://www.arnoldarts.de/drupal/?q=Cpp2LaTeX"
+SRC_URI="http://www.arnoldarts.de/drupal/files/downloads/cpp2latex/${P}.tar.gz"
+LICENSE="GPL-2"
+
+IUSE=""
+SLOT="0"
+KEYWORDS="amd64 ppc sparc x86"
+
+# although it makes sense to have tex installed, it is
+# neither a compile or runtime dependency
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}/cpp2latex"
+ # bug 44585
+ epatch "${FILESDIR}/cpp2latex-2.3.patch"
+ # bug #227863
+ epatch "${FILESDIR}/${P}-gcc43.patch"
+ epatch "${FILESDIR}/${P}-tests.patch"
+}
+
+src_install() {
+ emake install DESTDIR="${D}" || die "make install failed"
+}
diff --git a/dev-tex/cpp2latex/files/cpp2latex-2.3-gcc43.patch b/dev-tex/cpp2latex/files/cpp2latex-2.3-gcc43.patch
new file mode 100644
index 00000000000..00656050667
--- /dev/null
+++ b/dev-tex/cpp2latex/files/cpp2latex-2.3-gcc43.patch
@@ -0,0 +1,12 @@
+Index: cpp2latex-2.3/cpp2latex/main.cpp
+===================================================================
+--- cpp2latex-2.3.orig/cpp2latex/main.cpp
++++ cpp2latex-2.3/cpp2latex/main.cpp
+@@ -22,6 +22,7 @@
+ #include <iostream>
+ #include <stdlib.h>
+ #include <string>
++#include <cstring>
+ #include <fstream>
+ #include <vector>
+ #include <stdio.h>
diff --git a/dev-tex/cpp2latex/files/cpp2latex-2.3-tests.patch b/dev-tex/cpp2latex/files/cpp2latex-2.3-tests.patch
new file mode 100644
index 00000000000..621c43d2815
--- /dev/null
+++ b/dev-tex/cpp2latex/files/cpp2latex-2.3-tests.patch
@@ -0,0 +1,15 @@
+Index: cpp2latex-2.3/cpp2latex/getopttest.cpp
+===================================================================
+--- cpp2latex-2.3.orig/cpp2latex/getopttest.cpp
++++ cpp2latex-2.3/cpp2latex/getopttest.cpp
+@@ -2,7 +2,9 @@
+ #include <iostream>
+ #include <getopt.h>
+
+-void main( int argc, char* argv[] )
++using namespace std;
++
++int main( int argc, char* argv[] )
+ {
+ int optch=0, optc=1;
+ while( ( optch = getopt( argc,argv, "h:a:k" ) ) > 0 )
diff --git a/dev-tex/cpp2latex/files/cpp2latex-2.3.patch b/dev-tex/cpp2latex/files/cpp2latex-2.3.patch
new file mode 100644
index 00000000000..676b5ef3136
--- /dev/null
+++ b/dev-tex/cpp2latex/files/cpp2latex-2.3.patch
@@ -0,0 +1,44 @@
+--- main.cpp Thu Mar 6 08:15:36 2003
++++ main.cpp Tue Jan 24 21:47:17 2006
+@@ -27,12 +27,14 @@
+ #include <stdio.h>
+ #include <getopt.h>
+
++using namespace std;
++
+ struct replace{
+ std::string voraus;
+ std::string ersetzt;
+ };
+
+-std::vector <replace> rules;
++std::vector<struct replace> rules;
+ std::string syntax( std::ifstream *src, char *c );
+ void initReplace();
+ bool satzzeichen( char c );
+@@ -162,9 +164,13 @@
+ if( comment && !comment1 )
+ {
+ file.get(c);
+- if(c=='/') { out+="/}"; comment=false; }
+- else { if(c=='\n') out+="\\\\"; }
+- if( !( (c=='*')||(c=='/') )) out+=c;
++ if(c=='/') {
++ out+="/}";
++ comment=false;
++ } else if (c=='\n') out+="\\\\";
++ /* .alex. 1 line substitution*/
++ else file.seekg(-1,ios::cur);
++ //if( !( (c=='*')||(c=='/') )) out+=c;
+ }
+ break;
+
+@@ -323,7 +329,7 @@
+ /** initialize the replacementrules */
+ void initReplace()
+ {
+-replace dummy;
++ struct replace dummy;
+ dummy.voraus = "and"; dummy.ersetzt = "\\textbf{and}"; rules.push_back(dummy);
+ dummy.voraus = "and_eq"; dummy.ersetzt = "\\textbf{and\\underline\\ eq}"; rules.push_back(dummy);
+ dummy.voraus = "asm"; dummy.ersetzt = "\\textbf{asm}"; rules.push_back(dummy);
diff --git a/dev-tex/cpp2latex/metadata.xml b/dev-tex/cpp2latex/metadata.xml
new file mode 100644
index 00000000000..ba6a8a8800d
--- /dev/null
+++ b/dev-tex/cpp2latex/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>tex</herd>
+</pkgmetadata>
diff --git a/dev-tex/crosstex/Manifest b/dev-tex/crosstex/Manifest
new file mode 100644
index 00000000000..d5098ef47b5
--- /dev/null
+++ b/dev-tex/crosstex/Manifest
@@ -0,0 +1 @@
+DIST crosstex-0.6.tar.gz 2366411 SHA256 86a52ca110848faa66ec3cf0ef851b3591bbac46b50fee3d63399df493957473 SHA512 88d42ddbe4b229838c0750bbaf6d099349679a66859e8c28e03888d06bbc4641dd815a37e167700f6494a53e950245af864ea260a7779c3fd50e65cd968de08c WHIRLPOOL fb25ceb4d756c1e0cdedeedf48a442a09502245f63f7d5edfd179496f3229e34ba27268e593b0a30300460127e15d48dfdd692f95374a2aca7793b3a34230b6e
diff --git a/dev-tex/crosstex/crosstex-0.6.ebuild b/dev-tex/crosstex/crosstex-0.6.ebuild
new file mode 100644
index 00000000000..5ed8a14e5bd
--- /dev/null
+++ b/dev-tex/crosstex/crosstex-0.6.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="3"
+PYTHON_DEPEND="2"
+
+inherit multilib python
+
+DESCRIPTION="CrossTeX - object oriented BibTeX replacement"
+HOMEPAGE="http://www.cs.cornell.edu/people/egs/crosstex/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="examples"
+
+RDEPEND="dev-python/ply"
+DEPEND="${RDEPEND}"
+
+pkg_setup() {
+ python_set_active_version 2
+ python_pkg_setup
+}
+
+src_install() {
+ emake \
+ ROOT="${D}" \
+ PREFIX="/usr" \
+ LIBDIR="/$(get_libdir)/python$(python_get_version)/site-packages" \
+ install || die "emake install failed"
+
+ python_convert_shebangs -r $(python_get_version) "${D}"
+ python_need_rebuild
+
+ insinto /usr/share/doc/${PF}
+ doins "${PN}".pdf
+ if use examples; then
+ insinto /usr/share/doc/${PF}/examples
+ doins tests/*
+ fi
+}
+
+pkg_postinst() {
+ python_mod_optimize ${PN}
+}
+
+pkg_postrm() {
+ python_mod_cleanup ${PN}
+}
diff --git a/dev-tex/crosstex/metadata.xml b/dev-tex/crosstex/metadata.xml
new file mode 100644
index 00000000000..76b8496bb50
--- /dev/null
+++ b/dev-tex/crosstex/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>tex</herd>
+ <upstream>
+ <remote-id type="sourceforge">crosstex</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-tex/csindex/Manifest b/dev-tex/csindex/Manifest
new file mode 100644
index 00000000000..871ee9d85a9
--- /dev/null
+++ b/dev-tex/csindex/Manifest
@@ -0,0 +1 @@
+DIST csindex-19980713.tar.gz 31778 SHA256 3ccb0822c40862aab30d923d367d1f053b85ee3d79865cca5c76f1b80e6b57f7 SHA512 ab4d35c84272aa64f9613023412cf8fb8d0b565ffd1fe61b397f82911b6ff7c230c4f54ff44aa0ea5a512229e7ee9410a9257c3fc7ee1d0ba267151ab1704130 WHIRLPOOL bb2f40f52b96aebd0188b1d6a792b0d2cd37073d02acabd932ca16ce097d9f9c8b303345774fb0f9203e62e5bead9c059ee12bf97feb90c64d4594b8e41a0f1d
diff --git a/dev-tex/csindex/csindex-2.11c-r1.ebuild b/dev-tex/csindex/csindex-2.11c-r1.ebuild
new file mode 100644
index 00000000000..b1eb05a562c
--- /dev/null
+++ b/dev-tex/csindex/csindex-2.11c-r1.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=3
+
+inherit toolchain-funcs eutils
+
+MY_P="${PN}-19980713"
+
+DESCRIPTION="Utility for creating Czech/Slovak-sorted LaTeX index-files"
+HOMEPAGE="http://math.feld.cvut.cz/olsak/cstex/"
+SRC_URI="ftp://math.feld.cvut.cz/pub/cstex/base/${MY_P}.tar.gz"
+
+LICENSE="MakeIndex"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}-flags.patch" \
+ "${FILESDIR}/${P}-decl.patch"
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" || die "make failed"
+}
+
+src_install() {
+ dobin csindex || die
+ dodoc README
+}
diff --git a/dev-tex/csindex/files/csindex-2.11c-decl.patch b/dev-tex/csindex/files/csindex-2.11c-decl.patch
new file mode 100644
index 00000000000..c02d456f181
--- /dev/null
+++ b/dev-tex/csindex/files/csindex-2.11c-decl.patch
@@ -0,0 +1,25 @@
+Index: csindex-19980713/mkind.c
+===================================================================
+--- csindex-19980713.orig/mkind.c
++++ csindex-19980713/mkind.c
+@@ -32,6 +32,8 @@
+ #ifdef CS_INDEX
+ #include <string.h>
+ #endif
++#include <unistd.h>
++
+
+ int letter_ordering = FALSE;
+ int compress_blanks = FALSE;
+Index: csindex-19980713/mkind.h
+===================================================================
+--- csindex-19980713.orig/mkind.h
++++ csindex-19980713/mkind.h
+@@ -720,6 +720,7 @@ extern void scan_idx ARGS((void));
+ extern void scan_sty ARGS((void));
+ extern void sort_idx ARGS((void));
+ extern int strtoint ARGS((char *str));
++char *strlwr(char *a);
+
+ #if __STDC__
+ #include <stdlib.h>
diff --git a/dev-tex/csindex/files/csindex-2.11c-flags.patch b/dev-tex/csindex/files/csindex-2.11c-flags.patch
new file mode 100644
index 00000000000..f13914b2eee
--- /dev/null
+++ b/dev-tex/csindex/files/csindex-2.11c-flags.patch
@@ -0,0 +1,16 @@
+Index: csindex-19980713/Makefile
+===================================================================
+--- csindex-19980713.orig/Makefile
++++ csindex-19980713/Makefile
+@@ -1,9 +1,9 @@
+ DEFS=-DOS_SYSV
+ OBJS=csindex.o genind.o mkind.o qsort.o scanid.o scanst.o sortid.o
+-CFLAGS= -O2 $(DEFS)
++CFLAGS+= $(DEFS)
+
+ all: csindex
+
+ csindex: $(OBJS)
+- $(CC) -o csindex $(DEFS) $(OBJS) -lm
++ $(CC) $(LDFLAGS) -o csindex $(DEFS) $(OBJS) -lm
+
diff --git a/dev-tex/csindex/metadata.xml b/dev-tex/csindex/metadata.xml
new file mode 100644
index 00000000000..040f708c840
--- /dev/null
+++ b/dev-tex/csindex/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>tex</herd>
+<herd>proxy-maintainers</herd>
+<maintainer>
+ <email>malenko@email.cz</email>
+ <name>Jaromir Malenko</name>
+ <description>Jaromir is helping us with Czeck and Slovak support in
+ Gentoo. He is also a maintainer of cstetex. See bug #31657</description>
+</maintainer>
+</pkgmetadata>
diff --git a/dev-tex/culmus-latex/Manifest b/dev-tex/culmus-latex/Manifest
new file mode 100644
index 00000000000..08fbbd2e204
--- /dev/null
+++ b/dev-tex/culmus-latex/Manifest
@@ -0,0 +1 @@
+DIST culmus-latex-0.7_src.tar.gz 121188 SHA256 2f5990b858e1e6c1a4c94a91f65f73ae3a1dd4cebe0cb536053b23589a597a5f SHA512 81f0351687e831f304d0a4a2be3684ebc2fcad8e696425beaaebd945c3ae048dd87a5f8614ec181ce47e0debb58a86c2c2e369f37d9ff7c7f5c1ded34206fd02 WHIRLPOOL 15175b4ebd10bf1adb4751e3c7fd26a195e20e82fdedd959cdaa0f4072f30384c8cc9ccc06b2fe3a1fedc682e653ea1b559ffa96e1bf740a055797288c821880
diff --git a/dev-tex/culmus-latex/culmus-latex-0.7.ebuild b/dev-tex/culmus-latex/culmus-latex-0.7.ebuild
new file mode 100644
index 00000000000..6bddf88decd
--- /dev/null
+++ b/dev-tex/culmus-latex/culmus-latex-0.7.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="2"
+inherit latex-package
+
+DESCRIPTION="Culmus fonts support for latex"
+HOMEPAGE="http://ivritex.sourceforge.net/"
+SRC_URI="mirror://sourceforge/ivritex/${P}_src.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 sparc x86"
+IUSE="examples"
+
+RDEPEND="virtual/latex-base"
+DEPEND="${RDEPEND}
+ || ( >=media-fonts/culmus-0.110[fancy] <media-fonts/culmus-0.110 )
+ app-text/t1utils"
+
+src_compile() {
+ emake CULMUSDIR=/usr/share/fonts/culmus/ || die "failed to build fonts"
+ echo "Map culmus.map" > ${PN}.cfg
+}
+
+src_install() {
+ emake CULMUSDIR=/usr/share/fonts/culmus/ DESTDIR="${D}" TEXMFROOT=/usr/share/texmf-site pkginstall || die "failed to install"
+ insinto /etc/texmf/updmap.d
+ doins ${PN}.cfg
+ dodoc README
+ if use examples ; then
+ insinto /usr/share/doc/${PF}/examples
+ doins examples/*
+ insinto /usr/share/doc/${PF}/examples/hiriq
+ doins examples/hiriq/*
+ fi
+}
diff --git a/dev-tex/culmus-latex/metadata.xml b/dev-tex/culmus-latex/metadata.xml
new file mode 100644
index 00000000000..933d77e4b95
--- /dev/null
+++ b/dev-tex/culmus-latex/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>tex</herd>
+ <upstream>
+ <remote-id type="sourceforge">ivritex</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-tex/currvita/Manifest b/dev-tex/currvita/Manifest
new file mode 100644
index 00000000000..db52744a21f
--- /dev/null
+++ b/dev-tex/currvita/Manifest
@@ -0,0 +1 @@
+DIST currvita-0.9i.tar.gz 17889 SHA256 4454cdce19f0cc8b4c82ae53426b1096e7bfbf8bb5f34c6b88c4ad8dda403264 SHA512 46c13f9b0c94c3d0212629a508d645beefc961a9b0bc970ea3523337f3a9f1ad33cbb549672190df4c3a2fcc14c8bfa86a941750170ba4fa87ce98467af0dbc5 WHIRLPOOL 9228d276a2b3de8e4c753ce6523f5cc1ab916b8de3de407a95177c4f1bd5ff7c41f9aac4d4236d22dbebb2f8ff842285798de6d6c2e9eae0d2eaf0c09f481e37
diff --git a/dev-tex/currvita/currvita-0.9i-r1.ebuild b/dev-tex/currvita/currvita-0.9i-r1.ebuild
new file mode 100644
index 00000000000..21f4034b902
--- /dev/null
+++ b/dev-tex/currvita/currvita-0.9i-r1.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit latex-package
+
+DESCRIPTION="A LaTeX package for typesetting a curriculum vitae"
+HOMEPAGE="http://www.ctan.org/tex-archive/macros/latex/contrib/currvita/"
+# snapshot taken from
+# ftp://ftp.dante.de/tex-archive/macros/latex/contrib/currvita.tar.gz
+SRC_URI="mirror://gentoo/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
+
+IUSE=""
+
+# >=tetex-2 includes currvita
+DEPEND="!>=app-text/tetex-2
+ !app-text/ptex"
+
+S="${WORKDIR}/${PN}"
+
+TEXMF="/usr/share/texmf-site"
+DOCS="README"
+
+src_test() {
+ latex currvita.dtx || die "first step of currvita.dtx failed"
+ latex currvita.dtx || die "second step of currvita.dtx failed"
+ latex currvita.dtx || die "third step of currvita.dtx failed"
+ latex cvtest.tex || die "processing cvtest.tex failed"
+}
diff --git a/dev-tex/currvita/metadata.xml b/dev-tex/currvita/metadata.xml
new file mode 100644
index 00000000000..ba6a8a8800d
--- /dev/null
+++ b/dev-tex/currvita/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>tex</herd>
+</pkgmetadata>
diff --git a/dev-tex/curve/Manifest b/dev-tex/curve/Manifest
new file mode 100644
index 00000000000..f6e38357490
--- /dev/null
+++ b/dev-tex/curve/Manifest
@@ -0,0 +1 @@
+DIST curve-1.16.zip 279634 SHA256 d369e9a0ddec13cb0fe069fdfb6b219ebb2fdef483cbc305de8ef80eb4436f15 SHA512 3e017dc1e16084513e3d1476d8a6947c8bb6b1b71ae532842bcded186841bfe668dc46ded1200dd835fc258dcdebf0707626cf60d0af752694a377f14739ddbf WHIRLPOOL c2ef53423b14b528bf4fed32588dd98136f31fea05fc136d53073723ba8d5e0b8de55e91f5cedebdae80b87e72c6b285b10aa302db437382024ea68b8db8364a
diff --git a/dev-tex/curve/curve-1.16.ebuild b/dev-tex/curve/curve-1.16.ebuild
new file mode 100644
index 00000000000..179f375c40e
--- /dev/null
+++ b/dev-tex/curve/curve-1.16.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=2
+
+inherit latex-package
+
+S=${WORKDIR}/${PN}
+
+DESCRIPTION="LaTeX style for a CV (curriculum vitae) with flavour option"
+SRC_URI="ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/${PN}.zip -> ${P}.zip"
+HOMEPAGE="http://www.ctan.org/tex-archive/macros/latex/contrib/curve/"
+LICENSE="LPPL-1.2"
+RDEPEND=">=dev-texlive/texlive-latexextra-2010"
+DEPEND="${RDEPEND}
+ app-arch/unzip"
+IUSE="doc examples"
+
+SLOT="0"
+KEYWORDS="amd64 ppc ~sparc x86"
+
+TEXMF=/usr/share/texmf-site
+
+src_install() {
+
+ latex-package_src_doinstall styles
+
+ dodoc README NEWS THANKS
+
+ if use doc ; then
+ latex-package_src_doinstall pdf
+ fi
+
+ if use examples ; then
+ insinto /usr/share/doc/${PF}/example
+ doins examples/*
+ fi
+}
diff --git a/dev-tex/curve/metadata.xml b/dev-tex/curve/metadata.xml
new file mode 100644
index 00000000000..21ff3a53848
--- /dev/null
+++ b/dev-tex/curve/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>tex</herd>
+</pkgmetadata>
diff --git a/dev-tex/detex/Manifest b/dev-tex/detex/Manifest
new file mode 100644
index 00000000000..da7ae3dbe7f
--- /dev/null
+++ b/dev-tex/detex/Manifest
@@ -0,0 +1 @@
+DIST detex-2.8.tar 318976 SHA256 13ad67311f232faa31da9fa8322645c5745e8ed5ab977cc85818154fabd94134 SHA512 5afd54aebc3a018e9b72a5e5f37d05858b0b90c1165ec725b08995f5338479153a04ff938a2f54543108c66ac2f66d2c06159d331c9cde304ebce32b527c737f WHIRLPOOL cf6e3c7106a2e108105180e09385a208b6970ca72dc19498832d4fa07dcb866efb04f8528a0d83263090af7c7ca9feaa91cb767a35f39af89581753a9cf059f9
diff --git a/dev-tex/detex/detex-2.8-r1.ebuild b/dev-tex/detex/detex-2.8-r1.ebuild
new file mode 100644
index 00000000000..cd897df70cd
--- /dev/null
+++ b/dev-tex/detex/detex-2.8-r1.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="A filter program that removes the LaTeX (or TeX) control sequences"
+HOMEPAGE="http://www.cs.purdue.edu/homes/trinkle/detex/"
+SRC_URI="http://www.cs.purdue.edu/homes/trinkle/detex/${P}.tar"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
+IUSE=""
+
+DEPEND="sys-devel/flex"
+RDEPEND=""
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}/${P}-ldflags.patch"
+ sed -i \
+ -e "s:CFLAGS = -O \${DEFS}:CFLAGS = ${CFLAGS} \${DEFS}:" \
+ -e 's:LEX = lex:#LEX = lex:' \
+ -e 's:#LEX = flex:LEX = flex:' \
+ -e 's:#DEFS += ${DEFS} -DNO_MALLOC_DECL:DEFS += -DNO_MALLOC_DECL:' \
+ -e 's:LEXLIB = -ll:LEXLIB = -lfl:' \
+ Makefile || die "sed failed"
+}
+
+src_compile() {
+ tc-export CC
+ emake || die "emake failed"
+}
+
+src_install() {
+ dobin detex || die
+ dodoc README
+ doman detex.1l
+}
diff --git a/dev-tex/detex/files/detex-2.8-ldflags.patch b/dev-tex/detex/files/detex-2.8-ldflags.patch
new file mode 100644
index 00000000000..e70c000b0c5
--- /dev/null
+++ b/dev-tex/detex/files/detex-2.8-ldflags.patch
@@ -0,0 +1,17 @@
+dont ignore ldflags
+bug #209731
+
+
+Index: detex-2.8/Makefile
+===================================================================
+--- detex-2.8.orig/Makefile
++++ detex-2.8/Makefile
+@@ -104,7 +104,7 @@ D_OBJ = detex.o
+ all: ${PROGS}
+
+ detex: ${D_OBJ}
+- ${CC} ${CFLAGS} -o $@ ${D_OBJ} ${LEXLIB}
++ ${CC} $(LDFLAGS) ${CFLAGS} -o $@ ${D_OBJ} ${LEXLIB}
+
+ detex.c:
+ sed -f states.sed detex.l > xxx.l
diff --git a/dev-tex/detex/metadata.xml b/dev-tex/detex/metadata.xml
new file mode 100644
index 00000000000..ba6a8a8800d
--- /dev/null
+++ b/dev-tex/detex/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>tex</herd>
+</pkgmetadata>
diff --git a/dev-tex/dot2tex/Manifest b/dev-tex/dot2tex/Manifest
new file mode 100644
index 00000000000..5b7966dd2b3
--- /dev/null
+++ b/dev-tex/dot2tex/Manifest
@@ -0,0 +1,2 @@
+DIST dot2tex-2.8.7.tar.gz 571055 SHA256 899168d976faff8768115648a1371bcb92c81e14cf371cafec056eff398d56d7 SHA512 a74bf94e295571f066b836848a583c35c15a16117cb86dd849c6ba1ec1f9ebf815cdd3b5641f90740d0fc108819794d1960a240ad6838a189faac3889d0b7527 WHIRLPOOL c71d1d1140b67669940e8a565435a7d8deea8ce70a5b33cee97b4d1dcb27b005fcb245494bf7189e49c2f8824ee6b0154cb4aebf4799ea04c76cbbefc02113b9
+DIST dot2tex-2.9.0.tar.gz 663372 SHA256 7a182868f72fd5e59899f85006c3b559ac4157ade003f3e208341a9a5b46d2fa SHA512 97ba9983643254d5a3034d2fc8c454c445849ac546bd285676b854e20c8aae9a25d61e73632717da1562541ce9b3a4ae8aa4daa29e33f78105e28a34b5ebae5d WHIRLPOOL 22e8be55034cfda62091d1de7de34a07ccba9d695d41b18a9edf688d16c2219b24cba842344f1c3f7dd86b3a8293b8c94ccacba93097c46d7ab5d0407b03f88b
diff --git a/dev-tex/dot2tex/dot2tex-2.8.7-r1.ebuild b/dev-tex/dot2tex/dot2tex-2.8.7-r1.ebuild
new file mode 100644
index 00000000000..40b9bfd1092
--- /dev/null
+++ b/dev-tex/dot2tex/dot2tex-2.8.7-r1.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1
+
+DESCRIPTION="A Graphviz to LaTeX converter"
+HOMEPAGE="http://www.fauskes.net/code/dot2tex/"
+SRC_URI="http://dot2tex.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris"
+IUSE="doc examples"
+
+DEPEND=""
+RDEPEND="dev-python/pyparsing[${PYTHON_USEDEP}]
+ media-gfx/pydot[${PYTHON_USEDEP}]
+ media-gfx/graphviz"
+
+python_install_all() {
+ distutils-r1_python_install_all
+
+ if use doc; then
+ dohtml -r doc/*
+ dodoc doc/usage.{txt,pdf}
+ fi
+ if use examples; then
+ dodoc -r examples
+ docompress -x /usr/share/doc/${PF}/examples
+ fi
+}
diff --git a/dev-tex/dot2tex/dot2tex-2.8.7.ebuild b/dev-tex/dot2tex/dot2tex-2.8.7.ebuild
new file mode 100644
index 00000000000..9b582b6fbc7
--- /dev/null
+++ b/dev-tex/dot2tex/dot2tex-2.8.7.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="3"
+PYTHON_DEPEND="2"
+SUPPORT_PYTHON_ABIS="1"
+RESTRICT_PYTHON_ABIS="3.*"
+
+inherit distutils
+
+DESCRIPTION="A Graphviz to LaTeX converter"
+HOMEPAGE="http://www.fauskes.net/code/dot2tex/"
+SRC_URI="http://dot2tex.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd ~amd64-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris"
+IUSE="doc examples"
+
+DEPEND=""
+RDEPEND="dev-python/pyparsing
+ media-gfx/pydot
+ media-gfx/graphviz"
+
+DOCS="changelog.txt"
+
+src_install() {
+ distutils_src_install
+ if use doc; then
+ dohtml -r doc/*
+ dodoc doc/usage.{txt,pdf}
+ fi
+ if use examples; then
+ insinto "/usr/share/doc/${PF}/examples"
+ doins examples/*
+ fi
+}
diff --git a/dev-tex/dot2tex/dot2tex-2.9.0.ebuild b/dev-tex/dot2tex/dot2tex-2.9.0.ebuild
new file mode 100644
index 00000000000..f35ba7f44e9
--- /dev/null
+++ b/dev-tex/dot2tex/dot2tex-2.9.0.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1
+
+DESCRIPTION="A Graphviz to LaTeX converter"
+HOMEPAGE="https://dot2tex.readthedocs.org/ https://github.com/kjellmf/dot2tex"
+SRC_URI="https://github.com/kjellmf/dot2tex/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris"
+IUSE="doc examples"
+
+DEPEND="dev-python/pyparsing[${PYTHON_USEDEP}]"
+RDEPEND="
+ media-gfx/pydot[${PYTHON_USEDEP}]
+ media-gfx/graphviz"
+DEPEND="${DEPEND}
+ doc? ( dev-python/sphinx )"
+
+python_compile_all() {
+ if use doc ; then
+ cd "${S}/docs"
+ emake html
+ fi
+}
+
+python_install_all() {
+ distutils-r1_python_install_all
+
+ if use doc; then
+ dohtml -r docs/_build/html/*
+ fi
+ if use examples; then
+ dodoc -r examples
+ docompress -x /usr/share/doc/${PF}/examples
+ fi
+}
diff --git a/dev-tex/dot2tex/metadata.xml b/dev-tex/dot2tex/metadata.xml
new file mode 100644
index 00000000000..73c319c8eb2
--- /dev/null
+++ b/dev-tex/dot2tex/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>tex</herd>
+ <upstream>
+ <remote-id type="google-code">dot2tex</remote-id>
+ <remote-id type="github">kjellmf/dot2tex</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-tex/dot2texi/Manifest b/dev-tex/dot2texi/Manifest
new file mode 100644
index 00000000000..4703cce2f4e
--- /dev/null
+++ b/dev-tex/dot2texi/Manifest
@@ -0,0 +1 @@
+DIST dot2texi-3.0.zip 280478 SHA256 40a2efe7370c279acc81e387f4f086e65e1ca2d6cdccc383aa50e14f274aea48 SHA512 fa45a8545ac9b84553ab75cdaf82220efecbe83d24defc0194e93ba438f320d0a0198940e760525ae4da034bf1f8d105a512a470815d7d3495b23944af16fb9b WHIRLPOOL 41830201afd8faa250380d4861dc395ba58dcf77032d12871e0d7415d97709caee742096db2f3266f44585ba5d6d6df7bd8e28be45535d041d5b97bdfb19afe4
diff --git a/dev-tex/dot2texi/dot2texi-3.0.ebuild b/dev-tex/dot2texi/dot2texi-3.0.ebuild
new file mode 100644
index 00000000000..ad0ab0729df
--- /dev/null
+++ b/dev-tex/dot2texi/dot2texi-3.0.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit latex-package
+
+DESCRIPTION="Create graphs within LaTeX using the dot2tex tool"
+HOMEPAGE="http://www.ctan.org/tex-archive/help/Catalogue/entries/dot2texi.html"
+# Taken from http://theory.uwinnipeg.ca/scripts/CTAN/macros/latex/contrib/dot2texi.zip
+SRC_URI="mirror://gentoo/${P}.zip"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd ~amd64-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris"
+IUSE="pgf pstricks examples"
+
+DEPEND="app-arch/unzip"
+RDEPEND="pstricks? ( dev-texlive/texlive-pstricks )
+ pgf? ( dev-tex/pgf )
+ dev-texlive/texlive-latexrecommended
+ dev-texlive/texlive-latexextra
+ >=dev-tex/dot2tex-2.7.0"
+
+S="${WORKDIR}/${PN}"
+
+TEXMF="/usr/share/texmf-site"
+
+src_install() {
+ latex-package_src_doinstall sty pdf
+
+ dodoc README
+ dodoc ${PN}.tex
+
+ if use examples; then
+ insinto "/usr/share/doc/${PF}/examples"
+ doins examples/*
+ fi
+}
diff --git a/dev-tex/dot2texi/metadata.xml b/dev-tex/dot2texi/metadata.xml
new file mode 100644
index 00000000000..8ac42f03a0d
--- /dev/null
+++ b/dev-tex/dot2texi/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>tex</herd>
+<use>
+ <flag name='pgf'>Enable support for <pkg>dev-tex/pgf</pkg> (The TeX Portable
+ Graphic Format)</flag>
+ <flag name='pstricks'>Enable pstricks support</flag>
+</use>
+</pkgmetadata>
diff --git a/dev-tex/dvi2gr/Manifest b/dev-tex/dvi2gr/Manifest
new file mode 100644
index 00000000000..1aab5f2d540
--- /dev/null
+++ b/dev-tex/dvi2gr/Manifest
@@ -0,0 +1 @@
+DIST dvi2gr-0.4.tar.gz 10240 SHA256 1baaeb295b63ead487d68ba667dfe54416fa7b770f253e31ed18d9b2bdd24254 SHA512 d0b69eac3ffb9e6975195fae0a8a16c58c547eb6ffa8954799cfacf88ea1fdfe943cdbd6665694d8c346e5dda88b8df3b031a620323158081cbac45a7e44be19 WHIRLPOOL 05e83d326ea42ef5aed28e6c624aafe374a4f289a8566c5366ba3f15ca2c8f7a64c6dd54a127ab8a58d4130ebb224a23144c5176210de9e0900cf6c434f955dc
diff --git a/dev-tex/dvi2gr/dvi2gr-0.4.ebuild b/dev-tex/dvi2gr/dvi2gr-0.4.ebuild
new file mode 100644
index 00000000000..11316064563
--- /dev/null
+++ b/dev-tex/dvi2gr/dvi2gr-0.4.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=2
+
+DESCRIPTION="DVI to Grace translator"
+HOMEPAGE="http://plasma-gate.weizmann.ac.il/Grace/"
+SRC_URI="ftp://plasma-gate.weizmann.ac.il/pub/grace/src/devel/${P}.tar.gz"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~x86"
+IUSE="examples"
+
+DEPEND="media-libs/t1lib"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ # respect flags
+ sed -i \
+ -e '/^LDFLAGS/d' -e '/^CFLAGS/d' -e '/^CC/d' \
+ Makefile || die
+ sed -i -e 's/DVI2GR=\.\/dvi2gr/DVI2GR=$(which dvi2gr)/g' runtest.sh || die
+}
+
+src_install() {
+ dobin ${PN} || die
+ if use examples; then
+ insinto /usr/share/doc/${PF}/examples
+ doins *.ti runtest.sh || die
+ fi
+
+ insinto /usr/share/${PN}
+ doins -r fonts || die
+}
+
+pkg_postinst() {
+ einfo "Don't forget install the TeX-Fonts in Grace"
+ einfo " /usr/share/${PN}/fonts/FontDataBase"
+}
diff --git a/dev-tex/dvi2gr/metadata.xml b/dev-tex/dvi2gr/metadata.xml
new file mode 100644
index 00000000000..3ff1f0ca977
--- /dev/null
+++ b/dev-tex/dvi2gr/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>sci</herd>
+<longdescription lang='en'>
+ dvi2gr is a small utility to translate a TeX file (DVI) into a string
+ recognized by the Grace plotting tool.
+</longdescription>
+</pkgmetadata>
diff --git a/dev-tex/dvi2tty/Manifest b/dev-tex/dvi2tty/Manifest
new file mode 100644
index 00000000000..7cada1cc083
--- /dev/null
+++ b/dev-tex/dvi2tty/Manifest
@@ -0,0 +1 @@
+DIST dvi2tty-5.3.4.tgz 59519 SHA256 5272ef88b99ebc0fe58c868fb4752408dfe8b23d7d8b86d7b87357d7206995e6 SHA512 5ad91f346d882cbe8a64e746aafec51dce208a01f83a058a86669a3eecb9546804831bf0b283553c54cfd751f0b08fda80343de0ebe78c6f86360d606a839877 WHIRLPOOL ac3c15f3e703f853b11c76bc7c5f0d85bf22f2f7fd61af0e57ede37197b83445c486c20aa9f4cc6be2fe5d854a3f981a92a9e55492688187909874d13b651850
diff --git a/dev-tex/dvi2tty/dvi2tty-5.3.4.ebuild b/dev-tex/dvi2tty/dvi2tty-5.3.4.ebuild
new file mode 100644
index 00000000000..52e4d7144f0
--- /dev/null
+++ b/dev-tex/dvi2tty/dvi2tty-5.3.4.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Preview dvi-files on text-only devices"
+HOMEPAGE="http://www.ctan.org/tex-archive/dviware/"
+SRC_URI="ftp://ftp.mesa.nl/pub/dvi2tty/${P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux"
+IUSE=""
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-cflags.patch
+}
+
+src_compile() {
+ tc-export CC
+ emake
+}
+
+src_install() {
+ dobin dvi2tty disdvi
+ doman dvi2tty.1 disdvi.1
+ dodoc README TODO
+}
diff --git a/dev-tex/dvi2tty/files/dvi2tty-5.3.4-cflags.patch b/dev-tex/dvi2tty/files/dvi2tty-5.3.4-cflags.patch
new file mode 100644
index 00000000000..1d46f195453
--- /dev/null
+++ b/dev-tex/dvi2tty/files/dvi2tty-5.3.4-cflags.patch
@@ -0,0 +1,29 @@
+--- Makefile
++++ Makefile
+@@ -6,11 +6,10 @@
+ # This Makefile does not work for MSDOS. Make your
+ # own one, or compile by hand.
+ #
+-CC = gcc
++CC ?= gcc
+
+-CFLAGS = -Wall -O2
++CFLAGS += -Wall
+ # CFLAGS = -Wall -O2 -fomit-frame-pointer
+-LDFLAGS = -s
+
+ prefix = ${DESTDIR}/usr
+ mandir = $(prefix)/share/man/man1
+@@ -20,10 +19,10 @@
+ all: dvi2tty disdvi
+
+ dvi2tty:dvi2tty.o dvistuff.o
+- $(CC) $(LFLAGS) -o dvi2tty dvi2tty.o dvistuff.o
++ $(CC) $(LDFLAGS) -o dvi2tty dvi2tty.o dvistuff.o
+
+ disdvi:disdvi.o
+- $(CC) $(LFLAGS) -o disdvi disdvi.o
++ $(CC) $(LDFLAGS) -o disdvi disdvi.o
+
+ dvi2tty.o: dvi2tty.c dvi2tty.h
+
diff --git a/dev-tex/dvi2tty/files/dvi2tty-cflags.patch b/dev-tex/dvi2tty/files/dvi2tty-cflags.patch
new file mode 100644
index 00000000000..36d9afb7f1e
--- /dev/null
+++ b/dev-tex/dvi2tty/files/dvi2tty-cflags.patch
@@ -0,0 +1,30 @@
+Index: dvi2tty-5.3.1/Makefile
+===================================================================
+--- dvi2tty-5.3.1.orig/Makefile
++++ dvi2tty-5.3.1/Makefile
+@@ -6,11 +6,11 @@
+ # This Makefile does not work for MSDOS. Make your
+ # own one, or compile by hand.
+ #
+-CC = gcc
++CC ?= gcc
+
+-CFLAGS = -Wall -O2
++CFLAGS ?= -Wall -O2
+ # CFLAGS = -Wall -O2 -fomit-frame-pointer
+-LDFLAGS = -s
++#LDFLAGS = -s
+
+ prefix = /usr/local
+ mandir = $(prefix)/man/man1
+@@ -20,10 +20,8 @@ bindir = $(prefix)/bin
+ all: dvi2tty disdvi
+
+ dvi2tty:dvi2tty.o dvistuff.o
+- $(CC) $(LFLAGS) -o dvi2tty dvi2tty.o dvistuff.o
+
+ disdvi:disdvi.o
+- $(CC) $(LFLAGS) -o disdvi disdvi.o
+
+ dvi2tty.o: dvi2tty.c dvi2tty.h
+
diff --git a/dev-tex/dvi2tty/files/dvi2tty-gcc.patch b/dev-tex/dvi2tty/files/dvi2tty-gcc.patch
new file mode 100644
index 00000000000..38ec70309cc
--- /dev/null
+++ b/dev-tex/dvi2tty/files/dvi2tty-gcc.patch
@@ -0,0 +1,12 @@
+diff -ur dvi2tty-5.3.1-old/disdvi.c dvi2tty-5.3.1/disdvi.c
+--- dvi2tty-5.3.1-old/disdvi.c 2003-01-23 17:31:00.000000000 +0700
++++ dvi2tty-5.3.1/disdvi.c 2004-12-16 18:59:50.930219880 +0700
+@@ -108,7 +108,7 @@
+ */
+
+ #if !defined(THINK_C)
+-char * malloc ();
++void * malloc ();
+ #endif
+
+ #if defined(VMS)
diff --git a/dev-tex/dvi2tty/files/dvi2tty-getline.patch b/dev-tex/dvi2tty/files/dvi2tty-getline.patch
new file mode 100644
index 00000000000..932810ea40a
--- /dev/null
+++ b/dev-tex/dvi2tty/files/dvi2tty-getline.patch
@@ -0,0 +1,67 @@
+http://bugs.gentoo.org/271621
+
+--- dvi2tty-5.3.1-orig/dvistuff.c 2003-01-23 04:01:12.000000000 +0100
++++ dvi2tty-5.3.1/dvistuff.c 2009-06-03 15:57:26.000000000 +0200
+@@ -179,7 +179,7 @@
+ void ruleaux (long, long, char);
+ long horizontalmove (long);
+ int skipnops (void);
+-linetype * getline (void);
++linetype * get_line (void);
+ linetype * findline (void);
+ unsigned long num (int);
+ long snum (int);
+@@ -208,7 +208,7 @@
+ void ruleaux (long rulewt, long ruleht, char ch);
+ long horizontalmove (long amount);
+ int skipnops (void);
+-linetype * getline (void);
++linetype * get_line (void);
+ linetype * findline (void);
+ unsigned long num (int size);
+ long snum (int size);
+@@ -376,7 +376,7 @@
+ h = 0L; v = 0L; /* initialize coordinates */
+ x = 0L; w = 0L; y = 0L; z = 0L; /* initialize amounts */
+ sptr = 0; /* initialize stack */
+- currentline = getline(); /* initialize list of lines */
++ currentline = get_line(); /* initialize list of lines */
+ currentline->vv = 0L;
+ firstline = currentline;
+ lastline = currentline;
+@@ -777,7 +777,7 @@
+ * GETLINE -- Returns an initialized line-object
+ */
+
+-linetype *getline(void)
++linetype *get_line(void)
+ {
+ register int i;
+ register linetype *temp;
+@@ -809,7 +809,7 @@
+
+ if (v <= firstline->vv) { /* above first line */
+ if (firstline->vv - v > lineheight) {
+- temp = getline();
++ temp = get_line();
+ temp->next = firstline;
+ firstline->prev = temp;
+ temp->vv = v;
+@@ -820,7 +820,7 @@
+
+ if (v >= lastline->vv) { /* below last line */
+ if (v - lastline->vv > lineheight) {
+- temp = getline();
++ temp = get_line();
+ temp->prev = lastline;
+ lastline->next = temp;
+ temp->vv = v;
+@@ -843,7 +843,7 @@
+ return temp->next;
+
+ /* no line fits suitable, generate a new one */
+- currentline = getline();
++ currentline = get_line();
+ currentline->next = temp->next;
+ currentline->prev = temp;
+ temp->next->prev = currentline;
diff --git a/dev-tex/dvi2tty/metadata.xml b/dev-tex/dvi2tty/metadata.xml
new file mode 100644
index 00000000000..5e272f4cee5
--- /dev/null
+++ b/dev-tex/dvi2tty/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>tex</herd>
+<herd>proxy-maintainers</herd>
+<maintainer>
+ <email>idella4@gentoo.org</email>
+ <name>Ian Delaney</name>
+</maintainer>
+<maintainer>
+ <email>maksbotan@gentoo.org</email>
+ <name>Maxim Koltsov</name>
+</maintainer>
+</pkgmetadata>
diff --git a/dev-tex/dvipost/Manifest b/dev-tex/dvipost/Manifest
new file mode 100644
index 00000000000..28f3a388783
--- /dev/null
+++ b/dev-tex/dvipost/Manifest
@@ -0,0 +1 @@
+DIST dvipost-1.1.tar.gz 46428 SHA256 da05010ec47b7bc6b410d9c1eb7b083eeeed1a96f1986470377e604a64fa425a SHA512 5598dca794b4f1ec38e98128e50a72dfb168423d0302b560ff6d944573031b4f56a78b3ac48fabec3ca33886e350fca63c43fe0bd6892c4bd064d486dd4c25b4 WHIRLPOOL 3b7c7cb0ca97d26f0942d4a67fa639a370eaa9239019bb3e4fe63be08efc367d3036fc5c7d521de87bde9afa492161133fc0a762d819ae898756a798a6258de7
diff --git a/dev-tex/dvipost/dvipost-1.1-r2.ebuild b/dev-tex/dvipost/dvipost-1.1-r2.ebuild
new file mode 100644
index 00000000000..a5508c9f332
--- /dev/null
+++ b/dev-tex/dvipost/dvipost-1.1-r2.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="2"
+
+inherit latex-package eutils toolchain-funcs
+
+DESCRIPTION="post processor for dvi files"
+HOMEPAGE="http://efeu.cybertec.at/index_en.html"
+SRC_URI="http://efeu.cybertec.at/dist/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 sparc x86 ~x64-macos ~x86-macos"
+IUSE=""
+
+src_prepare() {
+ tc-export CC
+ epatch "${FILESDIR}"/${PV}-ldflags.patch
+}
+
+src_compile() {
+ emake || die
+}
+
+src_install() {
+ dobin dvipost || die
+ dosym dvipost /usr/bin/pptex || die
+ dosym dvipost /usr/bin/pplatex || die
+
+ insinto ${TEXMF}/tex/latex/misc/
+ insopts -m0644
+ doins dvipost.sty || die
+
+ dodoc dvipost.doc CHANGELOG NOTES README || die
+ dohtml dvipost.html || die
+ newman "${S}"/dvipost.man dvipost.1 || die
+}
diff --git a/dev-tex/dvipost/files/1.1-ldflags.patch b/dev-tex/dvipost/files/1.1-ldflags.patch
new file mode 100644
index 00000000000..b8711b50026
--- /dev/null
+++ b/dev-tex/dvipost/files/1.1-ldflags.patch
@@ -0,0 +1,13 @@
+diff --git a/Makefile.in b/Makefile.in
+index cd4758b..bb0af2a 100644
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -74,7 +74,7 @@ clean::; rm -f main.o
+
+ OBJ= main.o $(BASE:.c=.o) $(DVI:.c=.o)
+
+-$(NAME): $(OBJ); $(CC) $(CFLAGS) -o $@ $(OBJ)
++$(NAME): $(OBJ); $(CC) $(LDFLAGS) $(CFLAGS) -o $@ $(OBJ)
+
+ clean::; rm -f $(NAME)
+
diff --git a/dev-tex/dvipost/metadata.xml b/dev-tex/dvipost/metadata.xml
new file mode 100644
index 00000000000..ba6a8a8800d
--- /dev/null
+++ b/dev-tex/dvipost/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>tex</herd>
+</pkgmetadata>
diff --git a/dev-tex/ellipsis/Manifest b/dev-tex/ellipsis/Manifest
new file mode 100644
index 00000000000..25b726c1589
--- /dev/null
+++ b/dev-tex/ellipsis/Manifest
@@ -0,0 +1 @@
+DIST ellipsis-1.6.zip 100655 SHA256 c742c57707d316903c2a34623cc887662d0952edf698b6bd7bcc27776feac410 SHA512 fcf5a2027ea9f448e07e63af664ad9b69922073a3f5b81b43cecf928b4792d9aa17fef869cc350a6a0861b5ef83dbc6e7ab0224bf668d7492991daf93702b57d WHIRLPOOL 032d0d131843bad49f1f29a7dc3c9bfa83735b06aa39bd4acebfa68d19e876e965f426229cb1b04c605033a7f489db0f6abb810176e28b4ba0200d017b4994ce
diff --git a/dev-tex/ellipsis/ellipsis-1.6.ebuild b/dev-tex/ellipsis/ellipsis-1.6.ebuild
new file mode 100644
index 00000000000..e02c22bb811
--- /dev/null
+++ b/dev-tex/ellipsis/ellipsis-1.6.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit latex-package
+
+DESCRIPTION="Simple package that fixes the way LaTeX centers ellipses"
+HOMEPAGE="http://www.ctan.org/tex-archive/macros/latex/contrib/ellipsis/"
+# Downloaded from:
+# ftp://tug.ctan.org/tex-archive/macros/latex/contrib/ellipsis.zip
+SRC_URI="mirror://gentoo/${P}.zip"
+IUSE=""
+KEYWORDS="~amd64 ~x86"
+LICENSE="LPPL-1.2"
+SLOT="0"
+
+DEPEND="app-arch/unzip"
+
+S="${WORKDIR}/${PN}"
+
+src_install() {
+ export VARTEXFONTS="${T}/fonts"
+
+ latex-package_src_install
+
+ dodoc README ellipsis.pdf \
+ || die "Installing the documentation failed."
+}
diff --git a/dev-tex/ellipsis/metadata.xml b/dev-tex/ellipsis/metadata.xml
new file mode 100644
index 00000000000..ba6a8a8800d
--- /dev/null
+++ b/dev-tex/ellipsis/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>tex</herd>
+</pkgmetadata>
diff --git a/dev-tex/envlab/Manifest b/dev-tex/envlab/Manifest
new file mode 100644
index 00000000000..39c3d332e18
--- /dev/null
+++ b/dev-tex/envlab/Manifest
@@ -0,0 +1 @@
+DIST envlab-1.2.tar.gz 29184 SHA256 aff40269548359bffb0f0ab082b3c716f3cf5da83a776accdc23ad4f419fd1f1 SHA512 9182becf89c57245b2f13546096bdaf446c63517b09ca0052bd0e08ef858418c0323c286bdfcdeacb521f1576191da1fd74e25bfc5a22be704c5fafbab15a037 WHIRLPOOL 177e35a8e88b86701a33d95821fe2c3c3ffe753af777a054a5e33f266c70dc1a3512bd35f2982c224d82cac5e9c2e55fa5e1bd06bae0887ca174f162977b984f
diff --git a/dev-tex/envlab/envlab-1.2-r1.ebuild b/dev-tex/envlab/envlab-1.2-r1.ebuild
new file mode 100644
index 00000000000..af5bad3275a
--- /dev/null
+++ b/dev-tex/envlab/envlab-1.2-r1.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit latex-package
+
+S="${WORKDIR}/${PN}"
+LICENSE="LPPL-1.2"
+DESCRIPTION="A LaTeX module to format envelopes"
+HOMEPAGE="http://planck.psu.edu/~boris/"
+# downloaded from
+# ftp://ftp.ctan.org/pub/tex-archive/macros/latex/contrib/${PN}.tar.gz
+SRC_URI="mirror://gentoo/${P}.tar.gz"
+SLOT="0"
+DEPEND=""
+KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
+IUSE=""
+
+TEXMF=/usr/share/texmf-site
+
+src_compile() {
+ export VARTEXFONTS="${T}/fonts"
+ ebegin "Compiling ${PN}"
+ latex envlab.ins || die
+ pdflatex elguide.tex || die
+ pdflatex elguide.tex || die
+ pdflatex envlab.drv || die
+ pdflatex envlab.drv || die
+ eend
+}
+
+src_install() {
+ latex-package_src_install
+
+ insinto ${TEXMF}/tex/latex/${PN}
+ doins *.cfg
+
+ dodoc readme.v12
+}
diff --git a/dev-tex/envlab/metadata.xml b/dev-tex/envlab/metadata.xml
new file mode 100644
index 00000000000..ba6a8a8800d
--- /dev/null
+++ b/dev-tex/envlab/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>tex</herd>
+</pkgmetadata>
diff --git a/dev-tex/europecv/Manifest b/dev-tex/europecv/Manifest
new file mode 100644
index 00000000000..bb35382feb3
--- /dev/null
+++ b/dev-tex/europecv/Manifest
@@ -0,0 +1 @@
+DIST europecv-20060424.zip 783310 SHA256 dea079efcaf233fbdfef0c4520649ed014df961d8a7e56c1816a7e7737bc5ced SHA512 6378bc96cff2952f05d7f401ff811868fbf9c4cc336bab7e7b2d4822f1591e0a08791368a5c230a95dcde70cafeab6b12bc36cc4b0a60a35c47891091f1463d8 WHIRLPOOL 3edf849c3812aaffcd92b72ec2a5828684f1c723589ba29e6c36164e666bd014fa1f7694c3f85aa53584db2ef3414315a5a8ae093cb0e231e5fc2aebb5c48777
diff --git a/dev-tex/europecv/europecv-20060424-r1.ebuild b/dev-tex/europecv/europecv-20060424-r1.ebuild
new file mode 100644
index 00000000000..62dfaa1ec77
--- /dev/null
+++ b/dev-tex/europecv/europecv-20060424-r1.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit latex-package
+
+DESCRIPTION="LaTeX class for the standard model for curricula vitae as recommended by the European Commission"
+HOMEPAGE="http://www.ctan.org/tex-archive/help/Catalogue/entries/europecv.html"
+# Downloaded from:
+# ftp://cam.ctan.org/tex-archive/macros/latex/contrib/europecv.zip
+SRC_URI="mirror://gentoo/${P}.zip"
+
+LICENSE="LPPL-1.2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
+
+IUSE="examples"
+
+RDEPEND="|| ( >=dev-texlive/texlive-latexextra-2008 dev-tex/latex-unicode )"
+DEPEND="${RDEPEND}
+ app-arch/unzip"
+S="${WORKDIR}/${PN}"
+
+TEXMF=/usr/share/texmf-site
+
+src_compile() {
+ return
+}
+
+src_install() {
+ insinto ${TEXMF}/tex/latex/europecv
+ doins ecv* europecv.cls EuropeFlag* europasslogo*
+
+ insinto /usr/share/doc/${PF}
+ doins -r europecv.pdf europecv.tex
+ dosym /usr/share/doc/${PF}/europecv.pdf ${TEXMF}/doc/latex/${PN}/europecv.pdf
+ use examples && doins -r examples templates
+}
diff --git a/dev-tex/europecv/metadata.xml b/dev-tex/europecv/metadata.xml
new file mode 100644
index 00000000000..ba6a8a8800d
--- /dev/null
+++ b/dev-tex/europecv/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>tex</herd>
+</pkgmetadata>
diff --git a/dev-tex/feynmf/Manifest b/dev-tex/feynmf/Manifest
new file mode 100644
index 00000000000..6c5603c929d
--- /dev/null
+++ b/dev-tex/feynmf/Manifest
@@ -0,0 +1,2 @@
+DIST feynmf-1.08.tar.gz 286208 SHA256 07bd8c23246fc3e8c7bab6590570e601dcbab2e7b07119cc052693c06d31bd0f SHA512 968853ef09ab140fa0844068e564995b44bd79bbe5376a7b866d6db80278b2099aab47920213c7f744d5558e10e69a6de8e056f4d35c8d0fe51055a17981cad2 WHIRLPOOL f83c8e7fc6de3f5d7be55ae621a96230abdbd77892f8f76b66f70feee6115bcb51456dd0dd44e21b24f032060eb1d6aa012ea7576dbbb56d70ff309a060aef37
+DIST feynmf-cnl.tar.gz 49920 SHA256 18bbfc2aedcb76f20c8817a1ee002962baa1172f5b2c9fb23f968268db2c75d5 SHA512 ba84d284a6157bd1fce6fd1752a006472631bd8628d9c7b0cd9f429e7d3f5c79a7489c43d9db76232987cbe8de01a794d060095dbcbffbd003189ff002493201 WHIRLPOOL 7bb8df35942ef79aa93591b6980051e7f86e4c244557b8645c125b9bc4db6ad6e7aac035e8ba4bfc9b9614b777159e62be74d21c9b4181f52f412ba2f91465fe
diff --git a/dev-tex/feynmf/feynmf-1.08-r3.ebuild b/dev-tex/feynmf/feynmf-1.08-r3.ebuild
new file mode 100644
index 00000000000..4fc43489e43
--- /dev/null
+++ b/dev-tex/feynmf/feynmf-1.08-r3.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils latex-package
+
+DESCRIPTION="Combined LaTeX/Metafont package for drawing of Feynman diagrams"
+HOMEPAGE="http://www.ctan.org/tex-archive/macros/latex/contrib/feynmf/"
+#Taken from: ftp.tug.ctan.org/tex-archive/macros/latex/contrib/${PN}.tar.gz
+SRC_URI="http://dev.gentoo.org/~ulm/distfiles/${P}.tar.gz
+ doc? ( http://dev.gentoo.org/~ulm/distfiles/${PN}-cnl.tar.gz )"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
+IUSE="doc"
+
+RDEPEND="dev-texlive/texlive-metapost"
+DEPEND="${RDEPEND}
+ dev-lang/perl"
+
+S="${WORKDIR}/${PN}"
+TEXMF="/usr/share/texmf-site"
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}.patch"
+ epatch "${FILESDIR}/${P}-tempfile.patch"
+}
+
+src_compile() {
+ export VARTEXFONTS="${T}"/fonts
+ emake MP=mpost all manual.ps
+ use doc && emake -f Makefile.cnl ps
+}
+
+src_install() {
+ newbin feynmf.pl feynmf
+ doman feynmf.1
+ insinto ${TEXMF}/tex/latex/${PN}; doins feynmf.sty feynmp.sty
+ insinto ${TEXMF}/metafont/${PN}; doins feynmf.mf
+ insinto ${TEXMF}/metapost/${PN}; doins feynmp.mp
+ dodoc README manual.ps template.tex
+ use doc && dodoc fmfcnl*.ps
+}
diff --git a/dev-tex/feynmf/feynmf-1.08-r4.ebuild b/dev-tex/feynmf/feynmf-1.08-r4.ebuild
new file mode 100644
index 00000000000..728d774b07e
--- /dev/null
+++ b/dev-tex/feynmf/feynmf-1.08-r4.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils latex-package
+
+DESCRIPTION="Combined LaTeX/Metafont package for drawing of Feynman diagrams"
+HOMEPAGE="http://www.ctan.org/tex-archive/macros/latex/contrib/feynmf/"
+#Taken from: ftp.tug.ctan.org/tex-archive/macros/latex/contrib/${PN}.tar.gz
+SRC_URI="http://dev.gentoo.org/~ulm/distfiles/${P}.tar.gz
+ doc? ( http://dev.gentoo.org/~ulm/distfiles/${PN}-cnl.tar.gz )"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="alpha amd64 ~arm ~hppa ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
+IUSE="doc"
+
+RDEPEND="dev-texlive/texlive-metapost"
+DEPEND="${RDEPEND}
+ dev-lang/perl"
+
+S="${WORKDIR}/${PN}"
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}.patch"
+ epatch "${FILESDIR}/${P}-tempfile.patch"
+}
+
+src_compile() {
+ export VARTEXFONTS="${T}"/fonts
+ emake MP=mpost all manual.ps
+ use doc && emake -f Makefile.cnl ps
+}
+
+src_install() {
+ newbin feynmf.pl feynmf
+ doman feynmf.1
+ insinto ${TEXMF}/tex/latex/${PN}; doins feynmf.sty feynmp.sty
+ insinto ${TEXMF}/metafont/${PN}; doins feynmf.mf
+ insinto ${TEXMF}/metapost/${PN}; doins feynmp.mp
+ dodoc README manual.ps template.tex
+ docompress -x /usr/share/doc/${PF}/manual.ps
+ dosym /usr/share/doc/${PF}/manual.ps \
+ ${TEXMF}/doc/latex/${PN}/${PN}-manual.ps
+
+ if use doc; then
+ local f
+ for f in fmfcnl*.ps; do
+ dodoc ${f}
+ docompress -x /usr/share/doc/${PF}/${f}
+ dosym /usr/share/doc/${PF}/${f} ${TEXMF}/doc/latex/${PN}/${f}
+ done
+ fi
+}
diff --git a/dev-tex/feynmf/files/feynmf-1.08-tempfile.patch b/dev-tex/feynmf/files/feynmf-1.08-tempfile.patch
new file mode 100644
index 00000000000..5e3ec840dcc
--- /dev/null
+++ b/dev-tex/feynmf/files/feynmf-1.08-tempfile.patch
@@ -0,0 +1,33 @@
+--- feynmf-orig/feynmf.pl 2007-11-06 08:32:37.000000000 +0100
++++ feynmf/feynmf.pl 2007-11-06 09:33:04.000000000 +0100
+@@ -119,6 +119,7 @@
+ require 5.000;
+ # use strict;
+ use File::Find;
++use File::Temp qw(tempfile);
+ use Getopt::Long;
+
+ ########################################################################
+@@ -270,18 +271,18 @@
+ my @tfm = @_;
+ # Prepare a fake temporary PL file
+ # (/dev/null won't do, because the font must not be empty):
+- my ($pl) = "/tmp/feynmf$$.pl";
+ my ($tfm);
+ $pltotf_prog
+ or die "feynmf: fatal: pltopf programm required unless -notfm\n";
+- open (PL, ">$pl") or die "feynmf: can't open temporary file $pl: $!\n";
++ my ($PL, $pl) = tempfile("/tmp/feynmfXXXXXX", SUFFIX => ".pl");
++ $PL or die "feynmf: can't open temporary file: $!\n";
+ push @temporay_files, $pl;
+- print PL <<__END_PL__;
++ print $PL <<__END_PL__;
+ (FAMILY FEYNMF)
+ (DESIGNSIZE R 10.0)
+ (CHARACTER D 1 (CHARWD R 10.0) (CHARHT R 10.0))
+ __END_PL__
+- close (PL);
++ close ($PL);
+ foreach $tfm (@tfm) {
+ maybe_run "$pltotf_prog $pl $tfm.tfm" unless -r "$tfm.tfm";
+ }
diff --git a/dev-tex/feynmf/files/feynmf-1.08.patch b/dev-tex/feynmf/files/feynmf-1.08.patch
new file mode 100644
index 00000000000..9695d26c26a
--- /dev/null
+++ b/dev-tex/feynmf/files/feynmf-1.08.patch
@@ -0,0 +1,12 @@
+diff -Nur feynmf-orig/feynmf.pl feynmf/feynmf.pl
+--- feynmf-orig/feynmf.pl 1996-12-02 01:00:00.000000000 +0100
++++ feynmf/feynmf.pl 2004-09-02 23:25:40.603910119 +0200
+@@ -373,7 +373,7 @@
+ maybe_run "$gftopk_prog $gf" if $gftopk_prog;
+ }
+ }
+- close (<LOG>);
++ close (LOG);
+ }
+ }
+ }
diff --git a/dev-tex/feynmf/metadata.xml b/dev-tex/feynmf/metadata.xml
new file mode 100644
index 00000000000..2ffe56d5544
--- /dev/null
+++ b/dev-tex/feynmf/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>tex</herd>
+<maintainer>
+ <email>ulm@gentoo.org</email>
+</maintainer>
+<longdescription>
+ FeynMF is a combined LaTeX/Metafont package for easy drawing of professional
+ quality Feynman diagrams. FeynMF lays out most diagrams satisfactorily from
+ the structure of the graph without any need for manual intervention.
+ Nevertheless all the power of Metafont is available for more obscure cases.
+</longdescription>
+</pkgmetadata>
diff --git a/dev-tex/flabels/Manifest b/dev-tex/flabels/Manifest
new file mode 100644
index 00000000000..a8afd725373
--- /dev/null
+++ b/dev-tex/flabels/Manifest
@@ -0,0 +1 @@
+DIST flabels-1.0.tar.gz 13824 SHA256 3f4efe8818c5f9c9b9965644962730471db331c3dd9cd325105835a156dc95e2 SHA512 5ab08153b4979b99f90306cf207e5e693677c1cfb63fbfddcd37ff3f7aeb31208982776d9c0ce3e9dc4c92e60eddc51b943e9917e53aaae1eef9ad9ea8ef9628 WHIRLPOOL 1e6e71cf7b794190cbbda63fba629f060c32c80e04f9e71e761879fcbfe63d64ea7e1e8a5d28234042dbfa10a1900577b1932103ff34e3c26e1cf27c8633ee47
diff --git a/dev-tex/flabels/flabels-1.0.ebuild b/dev-tex/flabels/flabels-1.0.ebuild
new file mode 100644
index 00000000000..8ff7f797246
--- /dev/null
+++ b/dev-tex/flabels/flabels-1.0.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit latex-package
+
+DESCRIPTION="Macros for typesetting pretty lables (optionally colored) for the back of files or binders"
+HOMEPAGE="http://www.ctan.org/tex-archive/help/Catalogue/entries/flabels.html"
+# downloaded from:
+# ftp.ctan.org/tex-archive/help/Catalogue/entries/flabels.tar.gz
+SRC_URI="mirror://gentoo/${P}.tar.gz"
+LICENSE="LPPL-1.2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+S=${WORKDIR}/${PN}
+DOCS="README"
+
+src_prepare() {
+ chmod +x makedoc
+}
+
+src_compile() {
+ latex-package_src_compile
+ ./makedoc
+}
diff --git a/dev-tex/flabels/metadata.xml b/dev-tex/flabels/metadata.xml
new file mode 100644
index 00000000000..ba6a8a8800d
--- /dev/null
+++ b/dev-tex/flabels/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>tex</herd>
+</pkgmetadata>
diff --git a/dev-tex/floatflt/Manifest b/dev-tex/floatflt/Manifest
new file mode 100644
index 00000000000..40119d0afbc
--- /dev/null
+++ b/dev-tex/floatflt/Manifest
@@ -0,0 +1 @@
+DIST floatflt-1.31a.zip 304735 SHA256 4193c74716e0a110f3872b21358127e0795cc031b4040f437278fe2031fd5719 SHA512 f4e7b960daba37a06dbec47ab0432afa6738416ddea652f8f301609af950bd4f842671bd769de3f246f1cbb88df16299199e24e5965d7f76e160736787f7e9ce WHIRLPOOL 40faa91baecc2c8968c8d40d5248fd11d881f1609d83849c86e4cdbb549f399df4d66237c77dc8b79c98394b600ae20c770fc2c0ca999ec88164ba2afafe5de0
diff --git a/dev-tex/floatflt/floatflt-1.31a.ebuild b/dev-tex/floatflt/floatflt-1.31a.ebuild
new file mode 100644
index 00000000000..9c3b5005226
--- /dev/null
+++ b/dev-tex/floatflt/floatflt-1.31a.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=3
+
+inherit latex-package
+
+DESCRIPTION="LaTeX package used to warp text around figures"
+HOMEPAGE="http://www.ctan.org/tex-archive/macros/latex/contrib/floatflt/"
+# http://www.ctan.org/tex-archive/macros/latex/contrib/floatflt.zip
+SRC_URI="mirror://gentoo/${P}.zip"
+
+LICENSE="LPPL-1.2"
+SLOT="0"
+KEYWORDS="~amd64 hppa ~x86"
+IUSE=""
+
+DEPEND="app-arch/unzip"
+RDEPEND=""
+
+TEXMF="/usr/share/texmf-site"
+
+S=${WORKDIR}/${PN}
+DOCS="README"
diff --git a/dev-tex/floatflt/metadata.xml b/dev-tex/floatflt/metadata.xml
new file mode 100644
index 00000000000..ba6a8a8800d
--- /dev/null
+++ b/dev-tex/floatflt/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>tex</herd>
+</pkgmetadata>
diff --git a/dev-tex/foiltex/Manifest b/dev-tex/foiltex/Manifest
new file mode 100644
index 00000000000..bee6716c4af
--- /dev/null
+++ b/dev-tex/foiltex/Manifest
@@ -0,0 +1 @@
+DIST foiltex-2.1.4b.zip 380785 SHA256 aa98f06fdef0dab55ed751edb498446edd60456c29520a74a68bd8b590a2d0b4 SHA512 62808b2faabe7ebb91ac9e71930e3a11526676bbc6ccf0a2f02088f148a3143bd5362b3fa01fac37088ee83c1329a1ae422d4dc095ea611f5b70c3074b6d894e WHIRLPOOL 5fa8c95042232584ea74a1f45aeff41347a15538a798f31da05cfc153a9e891b0fba4523a385d154448052c54b4037267b6112e0b84ce4781571dccbeb4e66cf
diff --git a/dev-tex/foiltex/foiltex-2.1.4b.ebuild b/dev-tex/foiltex/foiltex-2.1.4b.ebuild
new file mode 100644
index 00000000000..10c944c019d
--- /dev/null
+++ b/dev-tex/foiltex/foiltex-2.1.4b.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit latex-package
+
+S=${WORKDIR}/${PN}
+
+DESCRIPTION="LaTeX package used to create foils and slides"
+HOMEPAGE="ftp://ftp.dante.de/tex-archive/help/Catalogue/entries/foiltex.html"
+# Taken from http://www.ctan.org/get/macros/latex/contrib/foiltex.zip
+SRC_URI="mirror://gentoo/${P}.zip"
+
+LICENSE="FoilTeX"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE=""
+
+TEXMF=/usr/share/texmf-site
+DEPEND="app-arch/unzip"
+RDEPEND=""
+
+src_install () {
+ latex-package_src_doinstall all
+ dodoc "${S}/README"
+}
diff --git a/dev-tex/foiltex/metadata.xml b/dev-tex/foiltex/metadata.xml
new file mode 100644
index 00000000000..ba6a8a8800d
--- /dev/null
+++ b/dev-tex/foiltex/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>tex</herd>
+</pkgmetadata>
diff --git a/dev-tex/frakturx/Manifest b/dev-tex/frakturx/Manifest
new file mode 100644
index 00000000000..c1ab785155c
--- /dev/null
+++ b/dev-tex/frakturx/Manifest
@@ -0,0 +1,13 @@
+DIST frakturx-20070103-base.zip 227344 SHA256 30f8b8d3f8a47d3705204705d51f65ac5af13f63ee1562a247777c2040eba19a SHA512 6676d46e38d9d6971c755319701a351ae851c113050bce82608d058c690f379e8c7b667908999e9c51383ba6f1faae822f648502fa73c11aa427d6e192b7e5ac WHIRLPOOL 3b300ba6866263c3d31ae0de8c7cec3b06fd126efc37b1d3a1d2216be56e16d64610ad4c8f7293e0bbb11137939211fc4bec2f3f3d95ce5738b902adfaa95f4a
+DIST frakturx-20070103-obibel.zip 238296 SHA256 34dfc955fddd57a15fab71db78ca0f34004e50462fb30e5524b3416ad19c32fe SHA512 8a2574ff2cc68d5736ed504eaf81ee8130f64bf926f7894140f699d47ca4e4c9fb32f92ea51397fe3b25ee02354a7c86943505dd134a34caf803a3026d781c68 WHIRLPOOL 3b277dd6ad60169f33e2e97fa453d63409d3305a11824f576685f82b3bdb119f4c85d2dd90a9cc6dd24b97149ba41ce6eae410ced3e43e206623fa8528e34657
+DIST frakturx-20070103-odedruck.zip 343426 SHA256 b7e03152654e7c22f2a34543f63479aa501f4162f8ae3c5b96ff6ccb8ab69d9e SHA512 c97bf80d391c52ea2ecfbb865ca387dcee94eebb500dbf8cb861b5bba46962db7c913bc5f9598910e8a28841781c7d5b9aa41dfc6946b1460ab9c02c6bfd6890 WHIRLPOOL 4f1eae07685f410d2f4b3da91db9f99b36ac6c3e175907a8cb0ec56d7f0ddad4551b40258714419d89e58940ad5c685b51a4a758e8a3aa2ff158c85c264c06bf
+DIST frakturx-20070103-odeschmk.zip 611352 SHA256 78ff700c09063aa62fb0dd0c0b5e07999541bb8c41283e7dd8320a8a791d5621 SHA512 ebc9462c93486e8c357c6e7572db05801455901ec7157a116957cc559e5b01354c59973a6a1fbae339b927a4c5eb0b00953b749499d951fc2d83139a3910fbf4 WHIRLPOOL c9627e42aca2de5ba2d081281a13f461dfc6cba262cf34180aeb49b2a5acf906ad81936280bd5bb1dd03189ed3e26f307fef4046bc4bf8d5bcbf951f13b837d6
+DIST frakturx-20070103-oweissfr.zip 297247 SHA256 2d681dbe613b77e6e723038aac2b15282a77f406472545bcd4fb28ec4e13ade0 SHA512 541a05ba712c4a55a8b75d6d532d4273b5832a1beabae3caf1aa9c0e8857b6875a4bf7eb4bbce4c92658d4e875e555a5eda8b844cde59657a4c18561c5d56b1f WHIRLPOOL f9133c6450b8f7f1f5a135e359d858d436f4a1a7f2135e110aa8b8ca1c18a444c48b93cbcd48c514d98e07f0f432ceeff80efe6e912b8a4d13574af6e5738d0c
+DIST frakturx-20070103-oweissgo.zip 276008 SHA256 4222d34cd9d8b65bcccb4e5550b40111844e63af67d70923e8fa6205bc92fd5e SHA512 d00c05a90a0c255381e98784f2fb48d42461b1c3e66b02b4e44ddad120fceeef55704b012fe95ee7733a8cd9e73cdd6410859456dc5e962524da60f9ce7590d4 WHIRLPOOL 846d26de164c6099da17d453bbe4bba3c1d1269ce9c3b1d6b3faa5ea5110c30089d2c8acde20c8d87310682249c1ad6ec42f0ca984eceb73561d75a0602cafc8
+DIST frakturx-20070103-talteswab.zip 401236 SHA256 7649fa1d0334a56e900eb362c5c5aa653371b32d07c5dfbf5a77ad85ecb5adaa SHA512 a65df90d63c3e235f3a1caca171ff002195095ce4690dd7334730a97dde631ec2c702e68cd8bd28a3bdff79c35693022df1e026ff88eee48129559f3ac522f2a WHIRLPOOL 75753d3a3024cac3255465b9c955b501f4737634b571ad927d8dc762cdb1b91f2cb54e334b09ed4edc76489bb6e243138d52035906c4f3b6d8ffb1026421d4b6
+DIST frakturx-20070103-tbrtkpf.zip 182413 SHA256 3a8921f02fc7c9a4a8aa85f1a4fdacc4a03c4b49c7c41ece40aeaefc23a1faeb SHA512 1abadd165ca8f19a079dc42ae4d437b31f92c305e18607ae663eb2f70f41461cd9a7927e871ceba3c4bf8db7df28c2aae805434cd009af9679e0e33bf6f77c00 WHIRLPOOL 97896a4345aea41e3d3a3ac6b0111461343d2d01e608409edf20c89451809602f17c38b313fc5cc46121da815ef44c12ac863ae24f6860d3e3f470d083bc009b
+DIST frakturx-20070103-tfrak.zip 157783 SHA256 1549873170e994e2ca2f1dce511773f909602e1c9047cd6a16a2eb0b384e2616 SHA512 d5a61df1cadfc790264969d2d07aa7106ba4d669c5e9099137f7bb5115a3e224c74f24587c709b3344393d8ac9ab0979772b00adaf3b8b03587c274c8a9a6ee5 WHIRLPOOL b0fb46b03c2b07fe62dffd4d3093a3ccb00687518ac5c9816e2488ec26a5d14b880482680edd0ce7308afd4303bbcd1fafb1e1876fb897a6b6decc57e7f32a80
+DIST frakturx-20070103-tkngsbg.zip 151162 SHA256 7c0c77c8c71cc466c24831d9e35c451ced38235003c6bcd4ed252f2447193115 SHA512 474bba13396835844c8b3ee20cafd0064fe064f1e026996cb7634a62417aab571b6d45e7f1bbc9bb57b8706948109f7080af3419bb2500a358def2a150af7967 WHIRLPOOL 806fa524a3c566f3e5fe4d3012abf3aeaae18a68d2918eb4cbbd195704d0d0a18f63ed5771fc8368a77acf18cb405e530fdd87e567568bd42d4d21d41e78e726
+DIST frakturx-20070103-twieynk.zip 507577 SHA256 d6445e8d336ec8c550ea64026cf32f13ac51515a0c497c6d4cb3e365d54d2f32 SHA512 2227fc0381a170e6c80764afd922e263430e17b43113b3a64353a990a91206a725b6292643246bb535e26b12b3c2596c9b2a959a5de0d036e2da5b8fbf14f81d WHIRLPOOL 595b7832c7378867f8babd42bb46056ac71850a29407cea371f63239e9d30221909f69b24c02d537b975c03cee427c657317a4f15850e91e65844ca1025847dd
+DIST frakturx-20070103-twieyvig.zip 662665 SHA256 40585e5f51588267683c854035967d370a141850b706429173e68a3840097d60 SHA512 bb22dced1558041f9ff5f33b27fa46693858daff54609b0fe2a8f5a568fc4da9809159315de7114f07f04e1d49463f08a9f5c68ef3de73f7655f0086126297e6 WHIRLPOOL 78138999b2a6ce9c295c62ba14be6d5b95f95a2f1a201b34d4111e6f4ae5af2b2866cdd03dbd91e651b4068aa6c9a6f6da064a770f84e11f470ae1f1c9eec6ac
+DIST frakturx-20070103-tzentenar.zip 447987 SHA256 ff237428861f374f29b92c3c33c543b377b674658b405446fb5c782c9d2e922d SHA512 c4cd8057dc26d1f768c69fd699b823cf39778dc94255e46fc1246b4afa75651d1fdf6efed6d36e85c49a59f0e02d60d11075731f16d815243210c65a7f4892dc WHIRLPOOL 33428f5c83975300b2ffafb6bd5fe86c7fcf66f2c90b6eea31e6e185ac3dd06f7277f55d696ef73bfa563b68f4f3d6c6541eb64b7347a77524a6412456de17b8
diff --git a/dev-tex/frakturx/frakturx-20070103.ebuild b/dev-tex/frakturx/frakturx-20070103.ebuild
new file mode 100644
index 00000000000..58a4d873147
--- /dev/null
+++ b/dev-tex/frakturx/frakturx-20070103.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit latex-package
+
+DESCRIPTION="Collection of blackletter fonts for LaTeX"
+HOMEPAGE="http://www.gaehrken.de/fraktur/"
+SRC_URI="mirror://gentoo/${P}-base.zip
+ mirror://gentoo/${P}-tfrak.zip
+ mirror://gentoo/${P}-obibel.zip
+ mirror://gentoo/${P}-odedruck.zip
+ mirror://gentoo/${P}-odeschmk.zip
+ mirror://gentoo/${P}-oweissfr.zip
+ mirror://gentoo/${P}-oweissgo.zip
+ mirror://gentoo/${P}-talteswab.zip
+ mirror://gentoo/${P}-tbrtkpf.zip
+ mirror://gentoo/${P}-tkngsbg.zip
+ mirror://gentoo/${P}-twieynk.zip
+ mirror://gentoo/${P}-twieyvig.zip
+ mirror://gentoo/${P}-tzentenar.zip"
+
+LICENSE="LPPL-1.2 free-noncomm"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="app-arch/unzip"
+RDEPEND=""
+
+S="${WORKDIR}"
+TEXMF="/usr/share/texmf-site"
+
+src_prepare() {
+ # remove spurious files, so that doins -r is possible later
+ find . -type f -name '.*' | xargs rm -f
+}
+
+src_install() {
+ insinto ${TEXMF}/tex/latex
+ doins -r tex/latex/fraktur
+ insinto ${TEXMF}/fonts
+ doins -r fonts/{tfm,vf,type1,enc}
+ insinto ${TEXMF}/fonts/map/dvips/fraktur
+ doins fonts/map/dvips/*.map
+
+ local m
+ for m in fobi fodd fods fowf fowg ftas ftbk ftkb ftwv ftwy ftzf; do
+ echo "Map ${m}.map" >>"${T}"/50frakturx.cfg
+ done
+ insinto /etc/texmf/updmap.d
+ doins "${T}"/50frakturx.cfg
+
+ dodoc -r doc/fonts/fraktur/*
+
+ # symlink for texdoc
+ dosym /usr/share/doc/${PF} ${TEXMF}/doc/fonts/fraktur
+}
diff --git a/dev-tex/frakturx/metadata.xml b/dev-tex/frakturx/metadata.xml
new file mode 100644
index 00000000000..1dc1e075043
--- /dev/null
+++ b/dev-tex/frakturx/metadata.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>tex</herd>
+<maintainer>
+ <email>ulm@gentoo.org</email>
+</maintainer>
+<longdescription lang="de">
+ Mit diesem Paket (und den dazugehörigen Schriften) soll das Setzen von
+ gebrochenen Schriften unter LaTeX erleichtert werden. Hierzu wird eine
+ neue Schriftkodierung definiert, die die in gebrochenen Schriften
+ üblichen Ligaturen, sowie das "lange s" enthält.
+</longdescription>
+<longdescription lang="en">
+ This package (and the respective fonts) is intended to facilitate
+ typesetting of blackletter scripts in LaTeX. For this purpose a new
+ encoding is defined, containing common ligatures used in blackletter,
+ as well as the "long s".
+</longdescription>
+</pkgmetadata>
diff --git a/dev-tex/fundus/Manifest b/dev-tex/fundus/Manifest
new file mode 100644
index 00000000000..fe78a7b3fc4
--- /dev/null
+++ b/dev-tex/fundus/Manifest
@@ -0,0 +1,2 @@
+DIST fundus-19970826.tar.gz 315674 SHA256 7ce25d294c990db8dcc25fb2dc7d85f705da3b02e243d66c97e3905ce829c37c SHA512 5bd9db0312b3d86682aee8d0adbc92f6bfa65c056c53c226244751533d3adce2e20a95398f37c1f814cff4891ed5f60b4b1218fa493134d4fea419ba1b2f2a61 WHIRLPOOL a28e63bbc8ddb36091bc3b6631453103a52b089841c699ca1f040fc4498ff815bc8f5b33e9bb11d328eaa77cacc83a18ebdaf4d01b1d521eda3fe5b1ac04cdeb
+DIST fundus-fonts.tar.gz 141837 SHA256 ecff98e0805e1d24aa63aefba7e14f9a694bdad7e0c35fc9afdd9cdefbdcdead SHA512 668a4f75e0a11a8201a5a922ceec8b37e167a32226636bbcab800ec91ca68367993300aec39e4f6ac0b7579fc25afa545f013b11d8dfc78cde6208a601cb5e60 WHIRLPOOL 712ebec835a5a54a82998b621c2620c76c29dc6f6e915a4d4c391d41d92256bb586bda36210a2560f166f75cc4586b96373375573dada4ceaa926d6be15d1c85
diff --git a/dev-tex/fundus/fundus-19970826.ebuild b/dev-tex/fundus/fundus-19970826.ebuild
new file mode 100644
index 00000000000..57a1862a445
--- /dev/null
+++ b/dev-tex/fundus/fundus-19970826.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit latex-package
+
+S=${WORKDIR}/${PN}
+DESCRIPTION="Providing LaTeX access to various font families"
+HOMEPAGE="http://www.ctan.org/tex-archive/help/Catalogue/entries/fundus.html"
+# Taken from: ftp://ftp.dante.de/tex-archive/macros/latex/contrib/gene/fundus.tar.gz
+# ftp://ftp.dante.de/tex-archive/fonts/twcal.tar.gz
+# ftp://ftp.dante.de/tex-archive/fonts/va.tar.gz
+# ftp://ftp.dante.de/tex-archive/fonts/la.tar.gz
+# ftp://ftp.dante.de/tex-archive/fonts/calligra.tar.gz
+SRC_URI="mirror://gentoo/${P}.tar.gz
+ mirror://gentoo/${PN}-fonts.tar.gz"
+IUSE=""
+SLOT="0"
+LICENSE="LPPL-1.3c"
+KEYWORDS="x86 ~amd64 ~sparc ~ppc"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ for i in *.tar.gz ; do
+ tar xzf $i
+ done
+}
+
+src_install() {
+ latex-package_src_install
+
+ for f in va la twcal calligra ; do
+ pushd $f
+ insinto /usr/share/texmf/fonts/source/public/$f
+ doins *.mf
+ popd
+ done
+}
diff --git a/dev-tex/fundus/metadata.xml b/dev-tex/fundus/metadata.xml
new file mode 100644
index 00000000000..ba6a8a8800d
--- /dev/null
+++ b/dev-tex/fundus/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>tex</herd>
+</pkgmetadata>
diff --git a/dev-tex/g-brief/Manifest b/dev-tex/g-brief/Manifest
new file mode 100644
index 00000000000..cd8ab85b09c
--- /dev/null
+++ b/dev-tex/g-brief/Manifest
@@ -0,0 +1 @@
+DIST g-brief-4.0.2.zip 151832 SHA256 c7e9101d4005a23992060fb23e7c72c0889619dd308561169cc92cdb07369d3b SHA512 7507de034ab824fe368ab80c44490308b4c9e8a5352d0d434b24190072ab1f49daf4c1153827bbbca2ed2fe0875461187a592032b1a20c008453c4dea677d131 WHIRLPOOL afd9d16f929c76ea82ff9f5581ebc75896d77379c9683f4f8d6e76563a726dc631183a6d505eb93a2e2ed2f6ce95cf65e4728422672e13c0f1d9a603776fd8a9
diff --git a/dev-tex/g-brief/g-brief-4.0.2.ebuild b/dev-tex/g-brief/g-brief-4.0.2.ebuild
new file mode 100644
index 00000000000..29c11ced32e
--- /dev/null
+++ b/dev-tex/g-brief/g-brief-4.0.2.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit latex-package
+
+S=${WORKDIR}/${PN}
+
+# checksum from official ftp site changes frequently so we mirror it
+DESCRIPTION="LaTeX styles for formless letters in German or English"
+SRC_URI="mirror://gentoo/${P}.zip"
+HOMEPAGE="http://www.ctan.org/tex-archive/macros/latex/contrib/g-brief/"
+LICENSE="LPPL-1.2"
+
+IUSE=""
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
+
+RDEPEND="!>=app-text/tetex-2.96"
+DEPEND="${RDEPEND}
+ app-arch/unzip"
+
+TEXMF="/usr/share/texmf-site"
diff --git a/dev-tex/g-brief/metadata.xml b/dev-tex/g-brief/metadata.xml
new file mode 100644
index 00000000000..21ff3a53848
--- /dev/null
+++ b/dev-tex/g-brief/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>tex</herd>
+</pkgmetadata>
diff --git a/dev-tex/glossaries/Manifest b/dev-tex/glossaries/Manifest
new file mode 100644
index 00000000000..ac80875a7e8
--- /dev/null
+++ b/dev-tex/glossaries/Manifest
@@ -0,0 +1,4 @@
+DIST glossaries-3.04.zip 3838009 SHA256 7597d2b61b2a253e562e6b16c33c8db09ea9bd940968d3e5ac96857503f30669 SHA512 1669c2288c31f1b1b79dc9776c55c2abfc8fd216482cf6175e9f788a2882cfe997ca13c9d93d317e4d31fcc9eba8dc977bc806874179654141ca7235ec7c3889 WHIRLPOOL 003016d2a2aaa8241d17464b74d902f228e2aad2730804af3e41075a5bbd176284a7f69ed95493fdd02842a502afde680be0e22b13b27740996563deaf35ba93
+DIST glossaries-4.07.zip 5009472 SHA256 156a625f51adec6524e67d49128fae7e009720b0616c6d73a36ac17c3b1f1b79 SHA512 576c52b0502e9854ac1332142a724ed1b97b37502322d52195f343f864a82e249529715b0a637f984ab01662d288f2ba57f7a932d2523435d5147dfb43145d61 WHIRLPOOL 7db0548b00a3e6544bc7c1a096b645f2f9fe492ca0adc4a5d5f49e42593348b930fad587e3877c769918840c21ae95ef7321becc29a36748d4f2f15a58f190a7
+DIST glossaries-4.11.zip 5411615 SHA256 9a90719e6371173c12b44e594790e67c699171376a16ad52c2826b6a5670e7a7 SHA512 f195bb16f4b000ccf3206ae3dd594f0252cf96942062daa3af9d667be2801d6686b0b2dc337327ba2258766a2d42dbf1ff9e4974e9a4f3b1ca41352f691b4fdb WHIRLPOOL 9f03270a0f48a364f7d823143ea8e3819a263f066f8bf76b88f3ba5d1ee53ab3d04463710fcae878a91220c980737dabe9f2fcb71e1a6e577b786178598253b0
+DIST glossaries-4.12.zip 5410108 SHA256 36b69b05302918b68e2b0fd482f78def6cd84646d6bcd11cad7429bd28f5aaab SHA512 34d5512a1d8daf3b8ddf3290e8da3ed69b835752ff93a166df5ccda95c9784fa3a63aa703926c5e90725cd4a204a43e8a718d460d7eb5dec7560927cc7ce7ef9 WHIRLPOOL 1a5c56018fdaa94a4678f444eee8c12670934e31de2e090a54836fa53e7c4dc44027d816ee9d8dd94befbcaef91a6de60a35bbea7fe4b9198fe023719ae77680
diff --git a/dev-tex/glossaries/glossaries-3.04.ebuild b/dev-tex/glossaries/glossaries-3.04.ebuild
new file mode 100644
index 00000000000..3de3b02af3b
--- /dev/null
+++ b/dev-tex/glossaries/glossaries-3.04.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit latex-package
+
+DESCRIPTION="Create glossaries and lists of acronyms"
+HOMEPAGE="http://www.ctan.org/tex-archive/help/Catalogue/entries/glossaries.html"
+SRC_URI="mirror://gentoo/${P}.zip"
+
+LICENSE="LPPL-1.2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
+IUSE="doc examples"
+
+RDEPEND="dev-lang/perl
+ dev-texlive/texlive-latexrecommended
+ >=dev-texlive/texlive-latexextra-2012"
+DEPEND="${RDEPEND}
+ app-arch/unzip"
+
+TEXMF="/usr/share/texmf-site"
+S=${WORKDIR}/${PN}
+
+src_install() {
+ latex-package_src_doinstall styles
+
+ dobin makeglossaries
+
+ dodoc CHANGES README
+ insinto "${TEXMF}/tex/latex/${PN}/dict"
+ doins *.dict
+ if use doc ; then
+ latex-package_src_doinstall pdf
+ fi
+ if use examples ; then
+ docinto examples
+ dodoc samples/*.tex
+ fi
+}
diff --git a/dev-tex/glossaries/glossaries-4.07.ebuild b/dev-tex/glossaries/glossaries-4.07.ebuild
new file mode 100644
index 00000000000..42a551fe32b
--- /dev/null
+++ b/dev-tex/glossaries/glossaries-4.07.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit latex-package
+
+DESCRIPTION="Create glossaries and lists of acronyms"
+HOMEPAGE="http://www.ctan.org/pkg/glossaries/"
+SRC_URI="http://dev.gentoo.org/~radhermit/dist/${P}.zip"
+
+LICENSE="LPPL-1.2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
+IUSE="doc examples"
+
+RDEPEND="dev-lang/perl
+ dev-texlive/texlive-latexrecommended
+ >=dev-texlive/texlive-latexextra-2012"
+DEPEND="${RDEPEND}
+ app-arch/unzip"
+
+TEXMF="/usr/share/texmf-site"
+S=${WORKDIR}/${PN}
+
+src_install() {
+ latex-package_src_doinstall styles
+
+ dobin makeglossaries
+
+ dodoc CHANGES README
+ if use doc ; then
+ latex-package_src_doinstall pdf
+ fi
+ if use examples ; then
+ docinto examples
+ dodoc samples/*.tex
+ fi
+}
diff --git a/dev-tex/glossaries/glossaries-4.11.ebuild b/dev-tex/glossaries/glossaries-4.11.ebuild
new file mode 100644
index 00000000000..42a551fe32b
--- /dev/null
+++ b/dev-tex/glossaries/glossaries-4.11.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit latex-package
+
+DESCRIPTION="Create glossaries and lists of acronyms"
+HOMEPAGE="http://www.ctan.org/pkg/glossaries/"
+SRC_URI="http://dev.gentoo.org/~radhermit/dist/${P}.zip"
+
+LICENSE="LPPL-1.2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
+IUSE="doc examples"
+
+RDEPEND="dev-lang/perl
+ dev-texlive/texlive-latexrecommended
+ >=dev-texlive/texlive-latexextra-2012"
+DEPEND="${RDEPEND}
+ app-arch/unzip"
+
+TEXMF="/usr/share/texmf-site"
+S=${WORKDIR}/${PN}
+
+src_install() {
+ latex-package_src_doinstall styles
+
+ dobin makeglossaries
+
+ dodoc CHANGES README
+ if use doc ; then
+ latex-package_src_doinstall pdf
+ fi
+ if use examples ; then
+ docinto examples
+ dodoc samples/*.tex
+ fi
+}
diff --git a/dev-tex/glossaries/glossaries-4.12-r1.ebuild b/dev-tex/glossaries/glossaries-4.12-r1.ebuild
new file mode 100644
index 00000000000..2db4b2431ef
--- /dev/null
+++ b/dev-tex/glossaries/glossaries-4.12-r1.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit latex-package
+
+DESCRIPTION="Create glossaries and lists of acronyms"
+HOMEPAGE="http://www.ctan.org/pkg/glossaries/"
+SRC_URI="http://dev.gentoo.org/~radhermit/dist/${P}.zip"
+
+LICENSE="LPPL-1.2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~s390 ~sh ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
+IUSE="doc examples"
+
+RDEPEND="dev-lang/perl
+ dev-texlive/texlive-latexrecommended
+ >=dev-texlive/texlive-latexextra-2012
+ >=dev-texlive/texlive-genericextra-2014"
+DEPEND="${RDEPEND}
+ app-arch/unzip"
+
+TEXMF="/usr/share/texmf-site"
+S=${WORKDIR}/${PN}
+
+src_install() {
+ latex-package_src_doinstall styles
+
+ dobin makeglossaries
+
+ dodoc CHANGES README
+ if use doc ; then
+ latex-package_src_doinstall pdf
+ fi
+ if use examples ; then
+ docinto examples
+ dodoc samples/*.tex
+ fi
+}
diff --git a/dev-tex/glossaries/metadata.xml b/dev-tex/glossaries/metadata.xml
new file mode 100644
index 00000000000..0ae9672985f
--- /dev/null
+++ b/dev-tex/glossaries/metadata.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>tex</herd>
+</pkgmetadata>
+
diff --git a/dev-tex/harvard/Manifest b/dev-tex/harvard/Manifest
new file mode 100644
index 00000000000..7e977429dbd
--- /dev/null
+++ b/dev-tex/harvard/Manifest
@@ -0,0 +1 @@
+DIST harvard-2.0.5.tar.bz2 53125 SHA256 3cc6879d7597e4a6abc43072336be01f3b7afa25af32b66674137ec9f19cbd50 SHA512 3816a9f7b9ed00ff58092ee6f1cb45c547bb496664b844f2d541a65dbe0062626db2ed8630fdc871e252e4034bfa473b9db4102805604080d8018a7d0273bcad WHIRLPOOL 6e72112ea476f295bda6725356d8c0570d6fbf4d98c2051e6d400cc2d669cd34dc859547132587360985063fa646a955a94ecc7488d8ba0662777c80fabdec52
diff --git a/dev-tex/harvard/harvard-2.0.5.ebuild b/dev-tex/harvard/harvard-2.0.5.ebuild
new file mode 100644
index 00000000000..f40b77d09d6
--- /dev/null
+++ b/dev-tex/harvard/harvard-2.0.5.ebuild
@@ -0,0 +1,15 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit latex-package
+
+DESCRIPTION="The harvard family of bibliographic styles"
+HOMEPAGE="http://www.arch.su.edu.au/~peterw/latex/harvard/"
+SRC_URI="mirror://gentoo/${P}.tar.bz2
+ http://dev.gentoo.org/~dholm/files/${P}.tar.bz2"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+DEPEND=""
+IUSE=""
diff --git a/dev-tex/harvard/metadata.xml b/dev-tex/harvard/metadata.xml
new file mode 100644
index 00000000000..ba6a8a8800d
--- /dev/null
+++ b/dev-tex/harvard/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>tex</herd>
+</pkgmetadata>
diff --git a/dev-tex/herm-pic/Manifest b/dev-tex/herm-pic/Manifest
new file mode 100644
index 00000000000..28d9273e706
--- /dev/null
+++ b/dev-tex/herm-pic/Manifest
@@ -0,0 +1 @@
+DIST hermpic_1.0.2.tar.gz 29668 SHA256 b76caa7536f8916550d406ac73d8c714b0bded256e2ba721327f51f0befe420c SHA512 d61b53cd89ccb4bb1d0d7c46fb4dec7517e010bd828beab05c3c8f96353a0881d03d53781c93f9c0e88b9bb97a33a1f405f12148f8dd017fc77266012a8d322c WHIRLPOOL d7b01b24d4f9173a43a7227e59f253136382e3a11d843abfb1d9e7acd6f7f3a6317c67f87203d27040babc638034c4b8dd94b9583b0aef6ee494190f365ef65a
diff --git a/dev-tex/herm-pic/herm-pic-1.0.2.ebuild b/dev-tex/herm-pic/herm-pic-1.0.2.ebuild
new file mode 100644
index 00000000000..8cb836b4090
--- /dev/null
+++ b/dev-tex/herm-pic/herm-pic-1.0.2.ebuild
@@ -0,0 +1,16 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit latex-package
+
+DESCRIPTION="LaTeX class for creating ERM and HER diagramms"
+HOMEPAGE="http://www.svenies-welt.de/?page_id=26"
+SRC_URI="http://my.dex.de/~sven/downloads/${PN/-}_${PV}.tar.gz"
+
+LICENSE="LPPL-1.3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+S="${WORKDIR}/${PN/-}"
+TEXMF="/usr/share/texmf-site"
diff --git a/dev-tex/herm-pic/metadata.xml b/dev-tex/herm-pic/metadata.xml
new file mode 100644
index 00000000000..ba6a8a8800d
--- /dev/null
+++ b/dev-tex/herm-pic/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>tex</herd>
+</pkgmetadata>
diff --git a/dev-tex/hevea/Manifest b/dev-tex/hevea/Manifest
new file mode 100644
index 00000000000..a3860fe479b
--- /dev/null
+++ b/dev-tex/hevea/Manifest
@@ -0,0 +1,8 @@
+DIST hevea-2.03.tar.gz 385865 SHA256 d927f538b47935f8b6cf34a817071195dfeb5da05debfd55ab47253c7868dab5 SHA512 dcb30992ff74935d92e6fdc4710bf8ee3b555e094673557e697531c3bff7155d6577349e2d80de21180abe5ea8d0ac1b4eaffcf217736477a33d8895ebd1aacc WHIRLPOOL 9d5c7a8cfb3f2fcffb90c09c0bfb43d50c0a7cd4cad8073de2b9640365e16613b202c76e8b35993f1a5dcecd7a215091597587a854fc8a8ff742ad0e04656e8e
+DIST hevea-2.18.tar.gz 407339 SHA256 be665556a62cc80d6e159c59b7f2e5137c0e104f49aa54eaf7b025935150feaf SHA512 bd0a5b4ff660309f62863765a4bf05d1a120cecb5ff88bae9261153472252702bf2cb1b8986d268fa8f827c6b316f5182c71051bc6169e0f1c11f016ee3145a5 WHIRLPOOL 7518eaf52650637ed5cc6cc41df37aa0d4a4db673fe261ad282e9b2f9c1c102b83dae0f35a1e7414a74043972a18b07e0c6162b7f06d7837b68a961a87e46392
+DIST hevea-2.19.tar.gz 407438 SHA256 c79c56e6586ecf5c74fbd4b70f9bbf2aab8b09818997a2e1f11a5f8d4e037f3c SHA512 35fa7b36c601f1a23740498f2fc48a666393e37c44673514e50c08ee85bd9ca4ef33ee1ea711fc032ee3c6119527b886c4d1f203291363f3e052529030e6d965 WHIRLPOOL fa9a698f79582745e33a37f31d51c67293986c1c132e8065b90a6a5179562818dff709e842375f7d7aa28b1e017f1f408719de2c3da1eb853f8df84c2f5523ac
+DIST hevea-2.20.tar.gz 407644 SHA256 0540843fb70a7dbcb53a32bfc1813994f454d89a41a889dea2c4a1f5af463319 SHA512 85108c7d376a37bfe6adcbec778859aec4bf52df90fdf3139db386228fc1888acc4e93a907ac56b65defa9c6568fd8ac7aa7295e79df32336192044144e67e01 WHIRLPOOL 9b6d4a905ae8b9e3212781685e06d7eabf581ef03a8937ef835ed81e1bf22524c4b20a3313047e166db8e57695cb177ae29109964e43d42e9c5e1b213f92cf4d
+DIST hevea-2.21.tar.gz 408047 SHA256 f9ec0ea0a41eab0c0e10815d79dbc5840823e50e56d5027b4ca547036a09d152 SHA512 d46523388a04468a823e9823acbafccacd9c0587949bb3e41ee4fc858aff008810fc61d648cffae7fd5d0645de73653f949b445f68e1326911d0c70f6c95c195 WHIRLPOOL 29a6adaf834c15c5b6cf48dd02201f1803227b611edb7ac9b02487afa56384542b8b711f22eda680d5178c4d95c2048b02cd59a1abc71e70563e44f0a9fd54a9
+DIST hevea-2.22.tar.gz 408147 SHA256 aba303d9067eb51ecde25b74f831a33fa58b4b15855e8ef937a1df9949a8fcad SHA512 e15405c43c988faf4bfd860a1e9b2b380e3de636b0e7cac3a754c2437031e6f148a5ee029eae50d20495f042f836b1b0d8ac45bdb3afdfdb42e91ac3d55b8296 WHIRLPOOL 53f45ddf4aac8b9d8862241d4e860910f3f1ed4dd56abd11128e8daa8349e30034fe21445cc625d7ab92866a60533ec930246d462804bf8261b1c16f87d1e529
+DIST hevea-2.23.tar.gz 968938 SHA256 db8ec1459cace8f008387dbcf745ba56917d44ff62c7bdba843da250109137b9 SHA512 674a0b3fe14314101cdbb81c572b0df1039c5d4896697405e6cd8b7f3a3a654fb7b681dd8109044ba2fb11c26d591f90d769ce6640b94d75f50b74d2a7b17d10 WHIRLPOOL 42e1753d2b6bd3fc447612538dbecae679fffcb42143da1991ec8f052b3d143e95f6bcc7dff8ba6edf2410f239e308bce4f9177ca5aa48224d2dac251d4c7d63
+DIST hevea-2.25.tar.gz 969449 SHA256 e4c75b550bb2aa663052063d979dd1490fd7817e7cbb97b208dee92ed24ec94e SHA512 68b382f2c7466f092ee0b1055ff2f8659d2a0fec221b776b91ecb6b579633d5540d809a2ef68937401e870ed51ea6420bae37d8549d7d8db6a1c327051d4cf29 WHIRLPOOL 241dffbeaad6729aa0db243980c94b080651c0fc7a263e46f9f585518ccef78711322c52ab2104ee3f2f6138251b4dd071c04198419f0cb4fdf9c26de405195e
diff --git a/dev-tex/hevea/hevea-2.03.ebuild b/dev-tex/hevea/hevea-2.03.ebuild
new file mode 100644
index 00000000000..42c71d1d187
--- /dev/null
+++ b/dev-tex/hevea/hevea-2.03.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils multilib
+
+IUSE="+ocamlopt"
+
+DESCRIPTION="HeVeA is a quite complete and fast LaTeX to HTML translator"
+HOMEPAGE="http://hevea.inria.fr/"
+SRC_URI="http://hevea.inria.fr/distri/${P}.tar.gz"
+
+LICENSE="QPL"
+SLOT="0"
+KEYWORDS="amd64 ppc ~ppc64 sparc x86"
+
+DEPEND=">=dev-lang/ocaml-3.12:=[ocamlopt?]"
+RDEPEND="${DEPEND}
+ dev-texlive/texlive-latexextra"
+
+src_compile() {
+ rm -f config.sh
+ emake PREFIX=/usr DESTDIR="${D}" LIBDIR="/usr/$(get_libdir)/hevea" LATEXLIBDIR="/usr/share/texmf-site/tex/latex/hevea" config.sh || die "Failed to create config.sh"
+ if use ocamlopt; then
+ emake PREFIX=/usr || die "Failed to build native code binaries"
+ else
+ emake PREFIX=/usr TARGET=byte || die "Failed to build bytecode binaries"
+ fi
+}
+
+src_install() {
+ if use ocamlopt; then
+ emake DESTDIR="${D}" PREFIX=/usr install || die "Install failed"
+ else
+ emake DESTDIR="${D}" PREFIX=/usr TARGET=byte install || die "Install failed"
+ fi
+
+ dodoc README CHANGES
+}
+
+# If texmf-update is present this means we have a latex install; update it so
+# that hevea.sty can be found
+# Do not (r)depend on latex though because hevea does not need it itself
+# If latex is installed later, it will see hevea.sty
+
+pkg_postinst() {
+ if [ "$ROOT" = "/" ] && [ -x /usr/sbin/texmf-update ] ; then
+ /usr/sbin/texmf-update
+ fi
+}
+
+pkg_postrm() {
+ if [ "$ROOT" = "/" ] && [ -x /usr/sbin/texmf-update ] ; then
+ /usr/sbin/texmf-update
+ fi
+}
diff --git a/dev-tex/hevea/hevea-2.18.ebuild b/dev-tex/hevea/hevea-2.18.ebuild
new file mode 100644
index 00000000000..2fb0984f01b
--- /dev/null
+++ b/dev-tex/hevea/hevea-2.18.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils multilib
+
+IUSE="+ocamlopt"
+
+DESCRIPTION="HeVeA is a quite complete and fast LaTeX to HTML translator"
+HOMEPAGE="http://hevea.inria.fr/"
+SRC_URI="http://hevea.inria.fr/distri/${P}.tar.gz"
+
+LICENSE="QPL"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
+
+DEPEND=">=dev-lang/ocaml-3.12:=[ocamlopt?]"
+RDEPEND="${DEPEND}
+ dev-texlive/texlive-latexextra"
+
+src_compile() {
+ rm -f config.sh
+ emake PREFIX=/usr DESTDIR="${D}" LIBDIR="/usr/$(get_libdir)/hevea" LATEXLIBDIR="/usr/share/texmf-site/tex/latex/hevea" config.sh || die "Failed to create config.sh"
+ if use ocamlopt; then
+ emake PREFIX=/usr || die "Failed to build native code binaries"
+ else
+ emake PREFIX=/usr TARGET=byte || die "Failed to build bytecode binaries"
+ fi
+}
+
+src_install() {
+ if use ocamlopt; then
+ emake DESTDIR="${D}" PREFIX=/usr install || die "Install failed"
+ else
+ emake DESTDIR="${D}" PREFIX=/usr TARGET=byte install || die "Install failed"
+ fi
+
+ dodoc README CHANGES
+}
+
+# If texmf-update is present this means we have a latex install; update it so
+# that hevea.sty can be found
+# Do not (r)depend on latex though because hevea does not need it itself
+# If latex is installed later, it will see hevea.sty
+
+pkg_postinst() {
+ if [ "$ROOT" = "/" ] && [ -x /usr/sbin/texmf-update ] ; then
+ /usr/sbin/texmf-update
+ fi
+}
+
+pkg_postrm() {
+ if [ "$ROOT" = "/" ] && [ -x /usr/sbin/texmf-update ] ; then
+ /usr/sbin/texmf-update
+ fi
+}
diff --git a/dev-tex/hevea/hevea-2.19.ebuild b/dev-tex/hevea/hevea-2.19.ebuild
new file mode 100644
index 00000000000..2fb0984f01b
--- /dev/null
+++ b/dev-tex/hevea/hevea-2.19.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils multilib
+
+IUSE="+ocamlopt"
+
+DESCRIPTION="HeVeA is a quite complete and fast LaTeX to HTML translator"
+HOMEPAGE="http://hevea.inria.fr/"
+SRC_URI="http://hevea.inria.fr/distri/${P}.tar.gz"
+
+LICENSE="QPL"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
+
+DEPEND=">=dev-lang/ocaml-3.12:=[ocamlopt?]"
+RDEPEND="${DEPEND}
+ dev-texlive/texlive-latexextra"
+
+src_compile() {
+ rm -f config.sh
+ emake PREFIX=/usr DESTDIR="${D}" LIBDIR="/usr/$(get_libdir)/hevea" LATEXLIBDIR="/usr/share/texmf-site/tex/latex/hevea" config.sh || die "Failed to create config.sh"
+ if use ocamlopt; then
+ emake PREFIX=/usr || die "Failed to build native code binaries"
+ else
+ emake PREFIX=/usr TARGET=byte || die "Failed to build bytecode binaries"
+ fi
+}
+
+src_install() {
+ if use ocamlopt; then
+ emake DESTDIR="${D}" PREFIX=/usr install || die "Install failed"
+ else
+ emake DESTDIR="${D}" PREFIX=/usr TARGET=byte install || die "Install failed"
+ fi
+
+ dodoc README CHANGES
+}
+
+# If texmf-update is present this means we have a latex install; update it so
+# that hevea.sty can be found
+# Do not (r)depend on latex though because hevea does not need it itself
+# If latex is installed later, it will see hevea.sty
+
+pkg_postinst() {
+ if [ "$ROOT" = "/" ] && [ -x /usr/sbin/texmf-update ] ; then
+ /usr/sbin/texmf-update
+ fi
+}
+
+pkg_postrm() {
+ if [ "$ROOT" = "/" ] && [ -x /usr/sbin/texmf-update ] ; then
+ /usr/sbin/texmf-update
+ fi
+}
diff --git a/dev-tex/hevea/hevea-2.20.ebuild b/dev-tex/hevea/hevea-2.20.ebuild
new file mode 100644
index 00000000000..2fb0984f01b
--- /dev/null
+++ b/dev-tex/hevea/hevea-2.20.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils multilib
+
+IUSE="+ocamlopt"
+
+DESCRIPTION="HeVeA is a quite complete and fast LaTeX to HTML translator"
+HOMEPAGE="http://hevea.inria.fr/"
+SRC_URI="http://hevea.inria.fr/distri/${P}.tar.gz"
+
+LICENSE="QPL"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
+
+DEPEND=">=dev-lang/ocaml-3.12:=[ocamlopt?]"
+RDEPEND="${DEPEND}
+ dev-texlive/texlive-latexextra"
+
+src_compile() {
+ rm -f config.sh
+ emake PREFIX=/usr DESTDIR="${D}" LIBDIR="/usr/$(get_libdir)/hevea" LATEXLIBDIR="/usr/share/texmf-site/tex/latex/hevea" config.sh || die "Failed to create config.sh"
+ if use ocamlopt; then
+ emake PREFIX=/usr || die "Failed to build native code binaries"
+ else
+ emake PREFIX=/usr TARGET=byte || die "Failed to build bytecode binaries"
+ fi
+}
+
+src_install() {
+ if use ocamlopt; then
+ emake DESTDIR="${D}" PREFIX=/usr install || die "Install failed"
+ else
+ emake DESTDIR="${D}" PREFIX=/usr TARGET=byte install || die "Install failed"
+ fi
+
+ dodoc README CHANGES
+}
+
+# If texmf-update is present this means we have a latex install; update it so
+# that hevea.sty can be found
+# Do not (r)depend on latex though because hevea does not need it itself
+# If latex is installed later, it will see hevea.sty
+
+pkg_postinst() {
+ if [ "$ROOT" = "/" ] && [ -x /usr/sbin/texmf-update ] ; then
+ /usr/sbin/texmf-update
+ fi
+}
+
+pkg_postrm() {
+ if [ "$ROOT" = "/" ] && [ -x /usr/sbin/texmf-update ] ; then
+ /usr/sbin/texmf-update
+ fi
+}
diff --git a/dev-tex/hevea/hevea-2.21.ebuild b/dev-tex/hevea/hevea-2.21.ebuild
new file mode 100644
index 00000000000..90a000220df
--- /dev/null
+++ b/dev-tex/hevea/hevea-2.21.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils multilib
+
+IUSE="+ocamlopt"
+
+DESCRIPTION="HeVeA is a quite complete and fast LaTeX to HTML translator"
+HOMEPAGE="http://hevea.inria.fr/"
+SRC_URI="http://hevea.inria.fr/distri/${P}.tar.gz"
+
+LICENSE="QPL"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
+
+DEPEND=">=dev-lang/ocaml-3.12:=[ocamlopt?]"
+RDEPEND="${DEPEND}
+ dev-texlive/texlive-latexextra"
+
+src_compile() {
+ rm -f config.sh
+ emake PREFIX=/usr DESTDIR="${D}" LIBDIR="/usr/$(get_libdir)/hevea" LATEXLIBDIR="/usr/share/texmf-site/tex/latex/hevea" config.sh || die "Failed to create config.sh"
+ if use ocamlopt; then
+ emake PREFIX=/usr || die "Failed to build native code binaries"
+ else
+ emake PREFIX=/usr TARGET=byte || die "Failed to build bytecode binaries"
+ fi
+}
+
+src_install() {
+ if use ocamlopt; then
+ emake DESTDIR="${D}" PREFIX=/usr install || die "Install failed"
+ else
+ emake DESTDIR="${D}" PREFIX=/usr TARGET=byte install || die "Install failed"
+ fi
+
+ dodoc README CHANGES
+}
+
+# If texmf-update is present this means we have a latex install; update it so
+# that hevea.sty can be found
+# Do not (r)depend on latex though because hevea does not need it itself
+# If latex is installed later, it will see hevea.sty
+
+pkg_postinst() {
+ if [ "$ROOT" = "/" ] && [ -x /usr/sbin/texmf-update ] ; then
+ /usr/sbin/texmf-update
+ fi
+}
+
+pkg_postrm() {
+ if [ "$ROOT" = "/" ] && [ -x /usr/sbin/texmf-update ] ; then
+ /usr/sbin/texmf-update
+ fi
+}
diff --git a/dev-tex/hevea/hevea-2.22.ebuild b/dev-tex/hevea/hevea-2.22.ebuild
new file mode 100644
index 00000000000..90a000220df
--- /dev/null
+++ b/dev-tex/hevea/hevea-2.22.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils multilib
+
+IUSE="+ocamlopt"
+
+DESCRIPTION="HeVeA is a quite complete and fast LaTeX to HTML translator"
+HOMEPAGE="http://hevea.inria.fr/"
+SRC_URI="http://hevea.inria.fr/distri/${P}.tar.gz"
+
+LICENSE="QPL"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
+
+DEPEND=">=dev-lang/ocaml-3.12:=[ocamlopt?]"
+RDEPEND="${DEPEND}
+ dev-texlive/texlive-latexextra"
+
+src_compile() {
+ rm -f config.sh
+ emake PREFIX=/usr DESTDIR="${D}" LIBDIR="/usr/$(get_libdir)/hevea" LATEXLIBDIR="/usr/share/texmf-site/tex/latex/hevea" config.sh || die "Failed to create config.sh"
+ if use ocamlopt; then
+ emake PREFIX=/usr || die "Failed to build native code binaries"
+ else
+ emake PREFIX=/usr TARGET=byte || die "Failed to build bytecode binaries"
+ fi
+}
+
+src_install() {
+ if use ocamlopt; then
+ emake DESTDIR="${D}" PREFIX=/usr install || die "Install failed"
+ else
+ emake DESTDIR="${D}" PREFIX=/usr TARGET=byte install || die "Install failed"
+ fi
+
+ dodoc README CHANGES
+}
+
+# If texmf-update is present this means we have a latex install; update it so
+# that hevea.sty can be found
+# Do not (r)depend on latex though because hevea does not need it itself
+# If latex is installed later, it will see hevea.sty
+
+pkg_postinst() {
+ if [ "$ROOT" = "/" ] && [ -x /usr/sbin/texmf-update ] ; then
+ /usr/sbin/texmf-update
+ fi
+}
+
+pkg_postrm() {
+ if [ "$ROOT" = "/" ] && [ -x /usr/sbin/texmf-update ] ; then
+ /usr/sbin/texmf-update
+ fi
+}
diff --git a/dev-tex/hevea/hevea-2.23.ebuild b/dev-tex/hevea/hevea-2.23.ebuild
new file mode 100644
index 00000000000..90a000220df
--- /dev/null
+++ b/dev-tex/hevea/hevea-2.23.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils multilib
+
+IUSE="+ocamlopt"
+
+DESCRIPTION="HeVeA is a quite complete and fast LaTeX to HTML translator"
+HOMEPAGE="http://hevea.inria.fr/"
+SRC_URI="http://hevea.inria.fr/distri/${P}.tar.gz"
+
+LICENSE="QPL"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
+
+DEPEND=">=dev-lang/ocaml-3.12:=[ocamlopt?]"
+RDEPEND="${DEPEND}
+ dev-texlive/texlive-latexextra"
+
+src_compile() {
+ rm -f config.sh
+ emake PREFIX=/usr DESTDIR="${D}" LIBDIR="/usr/$(get_libdir)/hevea" LATEXLIBDIR="/usr/share/texmf-site/tex/latex/hevea" config.sh || die "Failed to create config.sh"
+ if use ocamlopt; then
+ emake PREFIX=/usr || die "Failed to build native code binaries"
+ else
+ emake PREFIX=/usr TARGET=byte || die "Failed to build bytecode binaries"
+ fi
+}
+
+src_install() {
+ if use ocamlopt; then
+ emake DESTDIR="${D}" PREFIX=/usr install || die "Install failed"
+ else
+ emake DESTDIR="${D}" PREFIX=/usr TARGET=byte install || die "Install failed"
+ fi
+
+ dodoc README CHANGES
+}
+
+# If texmf-update is present this means we have a latex install; update it so
+# that hevea.sty can be found
+# Do not (r)depend on latex though because hevea does not need it itself
+# If latex is installed later, it will see hevea.sty
+
+pkg_postinst() {
+ if [ "$ROOT" = "/" ] && [ -x /usr/sbin/texmf-update ] ; then
+ /usr/sbin/texmf-update
+ fi
+}
+
+pkg_postrm() {
+ if [ "$ROOT" = "/" ] && [ -x /usr/sbin/texmf-update ] ; then
+ /usr/sbin/texmf-update
+ fi
+}
diff --git a/dev-tex/hevea/hevea-2.25.ebuild b/dev-tex/hevea/hevea-2.25.ebuild
new file mode 100644
index 00000000000..90a000220df
--- /dev/null
+++ b/dev-tex/hevea/hevea-2.25.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils multilib
+
+IUSE="+ocamlopt"
+
+DESCRIPTION="HeVeA is a quite complete and fast LaTeX to HTML translator"
+HOMEPAGE="http://hevea.inria.fr/"
+SRC_URI="http://hevea.inria.fr/distri/${P}.tar.gz"
+
+LICENSE="QPL"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
+
+DEPEND=">=dev-lang/ocaml-3.12:=[ocamlopt?]"
+RDEPEND="${DEPEND}
+ dev-texlive/texlive-latexextra"
+
+src_compile() {
+ rm -f config.sh
+ emake PREFIX=/usr DESTDIR="${D}" LIBDIR="/usr/$(get_libdir)/hevea" LATEXLIBDIR="/usr/share/texmf-site/tex/latex/hevea" config.sh || die "Failed to create config.sh"
+ if use ocamlopt; then
+ emake PREFIX=/usr || die "Failed to build native code binaries"
+ else
+ emake PREFIX=/usr TARGET=byte || die "Failed to build bytecode binaries"
+ fi
+}
+
+src_install() {
+ if use ocamlopt; then
+ emake DESTDIR="${D}" PREFIX=/usr install || die "Install failed"
+ else
+ emake DESTDIR="${D}" PREFIX=/usr TARGET=byte install || die "Install failed"
+ fi
+
+ dodoc README CHANGES
+}
+
+# If texmf-update is present this means we have a latex install; update it so
+# that hevea.sty can be found
+# Do not (r)depend on latex though because hevea does not need it itself
+# If latex is installed later, it will see hevea.sty
+
+pkg_postinst() {
+ if [ "$ROOT" = "/" ] && [ -x /usr/sbin/texmf-update ] ; then
+ /usr/sbin/texmf-update
+ fi
+}
+
+pkg_postrm() {
+ if [ "$ROOT" = "/" ] && [ -x /usr/sbin/texmf-update ] ; then
+ /usr/sbin/texmf-update
+ fi
+}
diff --git a/dev-tex/hevea/metadata.xml b/dev-tex/hevea/metadata.xml
new file mode 100644
index 00000000000..085db2162b6
--- /dev/null
+++ b/dev-tex/hevea/metadata.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>tex</herd>
+ <herd>ml</herd>
+</pkgmetadata>
diff --git a/dev-tex/hlatex/Manifest b/dev-tex/hlatex/Manifest
new file mode 100644
index 00000000000..3f3d531f1f4
--- /dev/null
+++ b/dev-tex/hlatex/Manifest
@@ -0,0 +1,16 @@
+DIST HLaTeX-1.0.1.tar.gz 1133770 SHA256 457fad826daa75a3dd28cce519b1284ab7526072997e14973dedf771c428074b SHA512 3a8c3992d8f68a53adc844e413f04aa69404a71bcd1829cbbbe421ee8f2cd4d0bb9e911d7bbe13bd4316522022b7d5e3335eeac41c862855e2c96104a84431a2 WHIRLPOOL 6946cae204a3c83058333df939c108cb0975a8c85a22ae417e97218f2df92667dfebca389b7eaa7f943092fa8ac91072c9e6db7475344780dda0b4c02ad06a69
+DIST uhc-bom-1.0.tar.gz 1229417 SHA256 619f5126c4396d448e1e77c96882b9405ca78d3ed0e67bd1ef0e3087e153357d SHA512 ca91b9cf248c473e6680d99e2d2b5d9774e90e68527a397fb22ca70742930b6a17939f0552448d20e4083178625a8e15421fd35f79c5f41a1b5fe9b8285a713d WHIRLPOOL 0e26ae6241c57797819f08a08cef36653bab2611d241a3b3c42c8ad28a470cf84eee47053de00245574229ec90089f12d2afbae814fe43a8c32147e4c961df08
+DIST uhc-dinaru-1.0.tar.gz 4370729 SHA256 d8f3b25293cb570397f8cfcd6b3a59596572e529f80e4b5c8adce44560439055 SHA512 9465851f52891ae091ac9637924d913c9fc7ae84c2ac8221a9d69cec18c146e249b922953c7d4e1d48f658269d21c78a39fe04cda522ef86b2cd977f6b3d5320 WHIRLPOOL acdbc7d7e4abb770fd9fa29cba92d3f0de2f55b391c4a0ad287e180b5272c710c71939439db3e27e31f10c3fd38f28efee2f758c0928e774cdd1b87984408861
+DIST uhc-fonts-1.0.tar.gz 987905 SHA256 85c1d83e0955a9276b1e78fb3fd73d0cbf09e5bb2925a1bddd4c103a6adef7b9 SHA512 1f8de83ae0a864690d70ce9ffee9b52c82f1b37c7060f74f807f32464909bd124bd00e9b923bea0d3036773e5e81e99fb488d1d54b0dc4366bf185a966c8dbaa WHIRLPOOL 3325b352830ded71565bc58e868058641712cb31c41162181d619e071b2d40e6cd9cd888da7172835f2578f93612f3e3eb29e38e0f19308d2778f547e9dae540
+DIST uhc-gothic-1.0.tar.gz 8467565 SHA256 e8a9ef3492a2dfd533bec464a6f3830b361d2fca3d73a33c56d0e382a9ffb78e SHA512 da872c167b0aed980bce7c49d63d8c86a523a594de5130c1d45ec953820c02f2105f874487bd5ac921bd0abe24ae08ab9ca5685dc505d05ccd072e2c8e469f54 WHIRLPOOL 9c0cc03ad645934b969fe64192b49c5115340c05ec07df012d5f878f7178e364fadb12135f4184538237a020a7d5d160bd6f1e37cc38fd74cbade810e7458675
+DIST uhc-graphic-1.0.tar.gz 3294846 SHA256 d42a532bb463304caaabca76543070b86487272f9ff6bf663bff190e4055a8a0 SHA512 c8a6bca09b1b4eae8baae2946bc4f40d768f18debdacb5038d8fa3b478fd0991469a01c465423037884cdc880c8108a32e26c822fc2c7c5c159c4da499b2d676 WHIRLPOOL 58db0f587993ec636d5b3b46bd77c49f4ef22a0acbadcb4ad1ab72006ce570270d33d622ff3546a5d58bdd966bae7325caa8b0b8e06216dda54aa2da15312939
+DIST uhc-gungseo-1.0.tar.gz 5414280 SHA256 31df7bf0f186bf12ebfdbd18f6e25280da17d8e8fbe67f7f1b452c93b7ba3d53 SHA512 2c2585c824fd42e4d62accb2ba3c79fe0adfaa33c85307aad95df8fe1abeb78a0ba482342eb8510fec9344253a3f0863cb03ac1eac3068eaf7ba6f812b2f5f77 WHIRLPOOL 1c4082b2be2709bab710dd3482b0ef618e1ad934035ddb6b9c81246df0f64fcdc1737b36df6107a54daab64c5cb24701ad575bb71cfc04d512925aaf3cd29d06
+DIST uhc-jamo-1.0.tar.gz 4158553 SHA256 36831affeaaedf68fb6c2d50b5b3b4a6b5abf15286eea6dcd4156b919c0b5d3d SHA512 46cc4ca88f055c2284dbfe2dc6551dca2f9ce416e56a88cfc4cdaba137782d42b78800921156cab7bd850c5e077ad9edc518c1cb90705ba8f240236455d95734 WHIRLPOOL 99b9fedd42c89d7e23c7bb20a2f68810f99b4faf00000842253f9eca20dddfe7f99c343da6e1d56b0e1f825d421042653d005558d06ae9872aea69ce0de87dff
+DIST uhc-myoungjo-1.0.tar.gz 10684150 SHA256 e776bd739450d5544d500354d50404ac1a3386078bcc80ccc42cb9e66a8f2f0e SHA512 8dec95764a71bb5ab2ca5f5cb96ddfb9984356bc30946a1bc2efb37dac6208d79e8df54b132a7abf6e3c6648d9635266b4fa8a1e828b3cfb8680f0af6aaff85f WHIRLPOOL a0071bc1bd3bbc7afe1cad3f6ad641af18e8500d5f249ce3eb9dc2315e795492a5f0ef2f31647aa1aaaeeb078cd4ecc0b6023408f6ad30cefeb9c50c0661ada0
+DIST uhc-pen-1.0.tar.gz 2678371 SHA256 a3024fbe7b58287e0b49b8784bef38bff44bf0d59d9d3a19596b667a3f0f6c6b SHA512 40f9bd7b787903a9ccac3b12a3132c65163a9128df4abdba5dbf76b8e2025b4f181d8a495234825633da9e431814cbf3e36ccab879005a620628f6a8e463d07b WHIRLPOOL 3dd154db4bb86124a95b6bbef1c309f96932f31f8d0a11db670c4016f1108b62027f3ecf20050f58b702358b5fbe85cf78fec9536b77cbe7f25ed1f37f71870e
+DIST uhc-pilgi-1.0.tar.gz 2305894 SHA256 b33a48e09fa27adcbae4dce2c7bb8c96045752ef7766ad35fd05c61ea26219f9 SHA512 8bca726947df87c33d38ae9b98c3dcca7c1a3c418fe208f60e451fc2168f8d74b0866c8f20a93dcc5b40c23961f4faa7d67480736efadb9dbce733b8f17ac4c9 WHIRLPOOL fd883da7810d03a5227995b20beb95da1fb7d3e9a927eff2b64d9d9802344810af24fe03be0412de60c20adaff2b21f9f9a0271762860cbd980f0f9e3b95ac26
+DIST uhc-pilgia-1.0.tar.gz 1465330 SHA256 1b1de9e19c240b564c9c826d71ea1d9c73615e1dcd9f7d346038d30784d916ae SHA512 18eebfe3103c06c838a687157a90cfd1f85b808899c39a821c84cba3af1cf24e8f09f4e3897b2ebc9a898db3f70d0aecf40a8c40621223b95b0977c50aff0b91 WHIRLPOOL 142b12541ee0ab490e63bf56e45fe975e8635ed232ebd68f034963b7d3b6a0a4b17c846b5dd5468995c1b2a6d4d7ae6b1b2d2e8055c181d3e61f5b35ee7963aa
+DIST uhc-shinmun-1.0.tar.gz 4794977 SHA256 8d7229b3fd4ead8197f8ce43d044183743bc7bce25b58ac31ef0bdccb90a5b83 SHA512 68d25b4dcf0a8284a2b5044a0cec41d3d4f16f54e9e91eacd024b448f34b54681f706eadd9fe879e9187e25f4372ba166a4b26bc3abd40ca02fe7875797d52c6 WHIRLPOOL 3d6e9e10065115797b31fc0d893b89f828bf9642c926f3e94dc77bd339102753b2312f1da9405a40cd5d1910f79eb52947c7dba614d238c9912db2d49e2567da
+DIST uhc-taza-1.0.tar.gz 1338672 SHA256 40ae44cc0e526baa5c47417922dca3ba84715686ba3b818c66ae5869b3e7ecbe SHA512 87ae8ff615e76b1a570f14a4d8f29ae3e15a7dccb75c7b80c1e5bb64374c2b749090f9f6a706cfd74c36d39584549cd36bdbd2ede13c50a9c9d5c3b8a44346b8 WHIRLPOOL 035c31734cb62272f4532ea7034e034b64514776e1e2b056864cb83059190c1c1d11626bea13e74a7f7c3828642e7a3d351e2384f1c368e96f9b71b993e5fee0
+DIST uhc-vada-1.0.tar.gz 1225522 SHA256 68aa3c286687d5c671b28e6776d5b8bd2d7d99adeb8399ee5d618588ae0c0508 SHA512 663ea0a1d3f968dc30387cd7962962969af6c2ade41c6de585f24b116e79ce897539ddb412735bd19a7c1083a69bd975ba198b442ca25ea30d6811ebbb8421ad WHIRLPOOL 277aff3efc7e21ef6a04a6ff3c671a16bf8ec2efcc9177cdc49634889fd3ec6f33eef7eb015b187840a95ac7fb0b6e7845e088cabeea0a1fd883bdd7546d61df
+DIST uhc-yetgul-1.0.tar.gz 5198946 SHA256 d2c0966d88be756058761e69fa25837e2a5dbdebc9c751c759f9874235a4abdb SHA512 e620bfc42eb30d3b3a60964a68071d6ea68a2a6a8f1c9e1d07a3a9c75dcfabb6b26beb5d65ba76c16aaee5f1cd42c87991033d581e49acc67bae923aefaf6ddd WHIRLPOOL 96c4d3f2193a801afab8690b31b667ac2b737b0eba10db70f5c81bb0e4108ca66bfbe7d0566e04ae53174c977d261bf6b79c99462a71e7c2ef0ac8cc65c7b94e
diff --git a/dev-tex/hlatex/hlatex-1.0.1.ebuild b/dev-tex/hlatex/hlatex-1.0.1.ebuild
new file mode 100644
index 00000000000..c34eefec425
--- /dev/null
+++ b/dev-tex/hlatex/hlatex-1.0.1.ebuild
@@ -0,0 +1,116 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=3
+
+inherit toolchain-funcs latex-package
+
+MY_P="HLaTeX-${PV}"
+DESCRIPTION="HLaTeX is a LaTeX package to use Hangul with LaTeX"
+HOMEPAGE="http://project.ktug.or.kr/hlatex/"
+UHCFONTS="uhc-myoungjo-1.0.tar.gz
+ uhc-gothic-1.0.tar.gz
+ uhc-taza-1.0.tar.gz
+ uhc-graphic-1.0.tar.gz
+ uhc-gungseo-1.0.tar.gz
+ uhc-shinmun-1.0.tar.gz
+ uhc-pilgi-1.0.tar.gz
+ uhc-pen-1.0.tar.gz
+ uhc-bom-1.0.tar.gz
+ uhc-yetgul-1.0.tar.gz
+ uhc-jamo-1.0.tar.gz
+ uhc-vada-1.0.tar.gz
+ uhc-pilgia-1.0.tar.gz
+ uhc-dinaru-1.0.tar.gz"
+
+SRC_URI="ftp://ftp.ktug.or.kr/pub/ktug/hlatex/${MY_P}.tar.gz
+ ftp://ftp.ktug.or.kr/pub/ktug/hlatex/fonts/uhc-fonts-1.0.tar.gz
+ ${UHCFONTS//uhc-/ftp://ftp.ktug.or.kr/pub/ktug/hlatex/fonts/uhc-}"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 ppc x86 ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE=""
+
+S="${WORKDIR}/HLaTeX"
+
+src_unpack() {
+ unpack ${MY_P}.tar.gz
+ unpack uhc-fonts-1.0.tar.gz
+ cd "${S}"/contrib
+ cat >Makefile <<-EOF
+CC=$(tc-getCC)
+all: hmakeindex hbibtex
+hmakeindex: hmakeindex.c
+hbibtex: hbibtex.c
+EOF
+}
+
+src_compile() {
+ cd "${S}"/contrib
+ emake || die
+}
+
+src_install() {
+ cd "${S}"/latex
+ insinto ${TEXMF}/tex/latex/hlatex
+ doins *
+
+ cd "${S}"/lambda
+ insinto ${TEXMF}/tex/lambda/hlatex
+ doins u8hangul.tex uhc-test.tex uhc*.fd
+
+ insinto ${TEXMF}/omega/otp/hlatex
+ doins hlatex.otp
+
+ insinto ${TEXMF}/omega/ocp/hlatex
+ doins hlatex.ocp
+
+ cd "${S}"/contrib
+ insinto ${TEXMF}/tex/latex/hlatex
+ doins hbname-k.tex khyper.sty showhkeys.sty showhtags.sty
+ doins hangulfn.sty hfn-k.tex
+
+ insinto ${TEXMF}/tex/lambda/hlatex
+ doins hbname-u.tex hfn-u.tex
+
+ insinto ${TEXMF}/bibtex/bst/hlatex
+ doins halpha.bst
+
+ insinto ${TEXMF}/makeindex
+ doins hind.ist hglo.ist
+
+ dobin hmakeindex hbibtex
+
+ cd "${S}"
+ dodoc ChangeLog.ko NEWS* README.en
+
+ cd "${WORKDIR}"/uhc-fonts-1.0
+ insinto ${TEXMF}/fonts/map/hlatex
+ doins uhc-base.map uhc-extra.map
+
+ cd "${ED}"/${TEXMF}/fonts
+ for X in ${UHCFONTS}
+ do
+ unpack ${X}
+ done
+}
+
+pkg_postinst() {
+ updmap-sys --enable Map=uhc-base.map
+ updmap-sys --enable Map=uhc-extra.map
+ texhash
+}
+
+pkg_postrm() {
+ if [ ! -e "${EPREFIX}"${TEXMF}/fonts/map/hlatex/uhc-base.map ] ; then
+ updmap-sys --disable Map=uhc-base.map
+ fi
+
+ if [ ! -e "${EPREFIX}"${TEXMF}/fonts/map/hlatex/uhc-extra.map ] ; then
+ updmap-sys --disable Map=uhc-extra.map
+ fi
+
+ texhash
+}
diff --git a/dev-tex/hlatex/metadata.xml b/dev-tex/hlatex/metadata.xml
new file mode 100644
index 00000000000..ea9ececdd65
--- /dev/null
+++ b/dev-tex/hlatex/metadata.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>cjk</herd>
+<herd>tex</herd>
+</pkgmetadata>
diff --git a/dev-tex/html2latex/Manifest b/dev-tex/html2latex/Manifest
new file mode 100644
index 00000000000..0090943ebf4
--- /dev/null
+++ b/dev-tex/html2latex/Manifest
@@ -0,0 +1 @@
+DIST html2latex-1.1.tar.gz 48439 SHA256 b724f01c9a094ac07740676ae2b1e158a6e94358fc695f1233233efeaae9baf4 SHA512 ceddb3b33359e07fdbfe0263a1ffd7dddfc95cfb256468a921513ed41777b14d4433117b9143cf23d46c867514be66235acd62065591a403c19c6f8f768be73a WHIRLPOOL c9c1daba9612b6f979aed512e97468fa786b72bd6276659f567877528ba2ab346e886048aa98417f663e64c55f819359feb2b38c93afca0edc26c9ba557c6056
diff --git a/dev-tex/html2latex/html2latex-1.1-r1.ebuild b/dev-tex/html2latex/html2latex-1.1-r1.ebuild
new file mode 100644
index 00000000000..b97dda6973f
--- /dev/null
+++ b/dev-tex/html2latex/html2latex-1.1-r1.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit perl-module
+
+DESCRIPTION="Perl script to convert HTML files into formatted LaTeX"
+HOMEPAGE="http://html2latex.sourceforge.net/"
+SRC_URI="mirror://sourceforge/html2latex/${P}.tar.gz"
+LICENSE="GPL-2"
+
+SLOT="0"
+KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 sparc x86"
+
+IUSE="imagemagick libwww"
+
+DEPEND="dev-perl/HTML-Tree
+ dev-perl/XML-Simple
+ imagemagick? ( media-gfx/imagemagick )
+ libwww? ( dev-perl/libwww-perl )"
+
+src_compile() {
+ # HTML::LaTex
+ cd HTML
+ perl-module_src_configure
+ perl-module_src_compile
+}
+
+src_install() {
+ dobin html2latex
+ doman html2latex.1
+ dodoc README TODO
+
+ # HTML::LaTex
+ cd HTML
+ perl-module_src_install
+ rm unwanted README.win
+ rm $(find "${D}" -name README.win.txt) || die
+}
diff --git a/dev-tex/html2latex/metadata.xml b/dev-tex/html2latex/metadata.xml
new file mode 100644
index 00000000000..9742be5022a
--- /dev/null
+++ b/dev-tex/html2latex/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>tex</herd>
+ <upstream>
+ <remote-id type="sourceforge">html2latex</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-tex/hyphen_show/Manifest b/dev-tex/hyphen_show/Manifest
new file mode 100644
index 00000000000..a9cf97a29d8
--- /dev/null
+++ b/dev-tex/hyphen_show/Manifest
@@ -0,0 +1 @@
+DIST hyphen-show_20000425.orig.tar.gz 8723 SHA256 4b2bee9e7f6a6b9e59bc1649b1c2bae42c58920ff0ca7f9728ec3c64f609aa2c SHA512 77904ac52171dd245f900e80c7b7ef48a67fc8dffe13dcb3f321a8582c4fe907295f1f19e8513cc612d2089aedc67c29ba03e1928af94c7009e6fd7327c6552e WHIRLPOOL 059b1d0a6662dc3aa9d5e0e5f2f8ea7ee0111cb5e5464b7adfbba35c6ee8ca82a89ea6e617f461a888096f462bdd1a78e45f0be0bb8d66b53ec1175efda77f53
diff --git a/dev-tex/hyphen_show/files/hyphen_show-gcc34.patch b/dev-tex/hyphen_show/files/hyphen_show-gcc34.patch
new file mode 100644
index 00000000000..9da98c9d100
--- /dev/null
+++ b/dev-tex/hyphen_show/files/hyphen_show-gcc34.patch
@@ -0,0 +1,78 @@
+--- hyphen-show-20000425/hyphen_show.c.orig 2002-01-29 00:08:12.000000000 +0100
++++ hyphen-show-20000425/hyphen_show.c 2005-09-29 09:34:01.000000000 +0200
+@@ -79,9 +79,9 @@
+ Linux (gcc),
+ SGI IRIS 5.2 */
+ #include <sys/fcntl.h>
+- int close(int);
+- int read(int,char *,unsigned);
+- int isalpha(char);
++ #include <unistd.h>
++ #include <stdlib.h>
++ #include <ctype.h>
+ #endif
+
+ int gchar(unsigned char *);
+@@ -106,7 +106,6 @@
+ char zugelassen(char, unsigned char);
+ char* text_clear(char *, int *);
+ void eop(void);
+-long pow(int,int);
+ void eingabe(long *, unsigned char);
+ void right(unsigned char);
+ void w0(void);
+@@ -114,7 +113,7 @@
+ void x0(void);
+ void x(unsigned char);
+ void down(unsigned char);
+-void y0(void);
++void y_0(void);
+ void y(unsigned char);
+ void z0(void);
+ void z(unsigned char);
+@@ -491,24 +490,16 @@
+ s_p = 0;
+ }
+
+-long pow(int b,int p)
+- { int w,k;
+- w = b;
+- for (k=1; k < p; k++) {w = w *b;};
+- return w;
+- }
+-
+ void eingabe(long* dd, unsigned char k)
+- { char neg; unsigned char hk;
++ { unsigned char hk;
+ long hn,hw;
+ hw = (int) e_inbyte();
+- neg = FALSE;
+- if (hw > 127) {neg = TRUE;};
++ if (hw > 127) hw -= 256;
+ for (hn = 2; hn <= (long) k; hn++)
+ { hk = e_inbyte();
+ hw = hw*256+hk;
+ };
+- if (neg == TRUE) {*dd = -(pow(2,k*8))+hw; } else *dd = hw;
++ *dd = hw;
+ }
+
+ void right(unsigned char code)
+@@ -544,7 +535,7 @@
+ if (d_v > v_grenze_zeile) a_outimage();
+ }
+
+-void y0(void)
++void y_0(void)
+ { if (d_y > y_grenze) a_outimage();
+ if (abs(d_y) > y_grenze_zeile) a_outimage();
+ }
+@@ -698,7 +689,7 @@
+ else if (k == 152) {x0();} /* x0 */
+ else if (k <= 156) {x(k);} /* x1 bis x4 */
+ else if (k <= 160) {down(k);} /* down1 bis down4 */
+- else if (k == 161) {y0();} /* y0 */
++ else if (k == 161) {y_0();} /* y0 */
+ else if (k <= 165) {y(k);} /* y1 bis y4 */
+ else if (k == 166) {z0();} /* z0 */
+ else if (k <= 170) {z(k);} /* z1 bis z4 */
diff --git a/dev-tex/hyphen_show/hyphen_show-20000425.ebuild b/dev-tex/hyphen_show/hyphen_show-20000425.ebuild
new file mode 100644
index 00000000000..86ee49bea29
--- /dev/null
+++ b/dev-tex/hyphen_show/hyphen_show-20000425.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit eutils toolchain-funcs
+
+MY_PN=${PN//_/-}
+DESCRIPTION="Show hyphenations in DVI files"
+HOMEPAGE="http://packages.debian.org/stable/tex/hyphen-show"
+SRC_URI="mirror://debian/pool/main/h/${MY_PN}/${MY_PN}_${PV}.orig.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc64 x86"
+IUSE=""
+
+S=${WORKDIR}/${MY_PN}-${PV}
+
+src_unpack() {
+ unpack ${A}
+ epatch "${FILESDIR}"/${PN}-gcc34.patch
+}
+
+src_compile() {
+ $(tc-getCC) ${CFLAGS} ${LDFLAGS} hyphen_show.c -o hyphen_show || die
+}
+
+src_install() {
+ dobin hyphen_show || die
+ doman hyphen_show.1 || die
+ dodoc README.hyphen_show || die
+}
diff --git a/dev-tex/hyphen_show/metadata.xml b/dev-tex/hyphen_show/metadata.xml
new file mode 100644
index 00000000000..daedb32cbf4
--- /dev/null
+++ b/dev-tex/hyphen_show/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>tex</herd>
+<maintainer>
+ <email>ulm@gentoo.org</email>
+</maintainer>
+<longdescription>
+ hyphen_show scans a DVI file, tries to find all hyphenations and writes them
+ to stdout. It is useful to check whether TeX's hyphenation algorithm really
+ did the good job it is supposed to do.
+</longdescription>
+</pkgmetadata>
diff --git a/dev-tex/isotope/Manifest b/dev-tex/isotope/Manifest
new file mode 100644
index 00000000000..88eb372b9a1
--- /dev/null
+++ b/dev-tex/isotope/Manifest
@@ -0,0 +1 @@
+DIST isotope-20040401.zip 3157 SHA256 e02a511095bbe8db02d730efd931baf8ddead418f56e6e85adbcd18416b5b6fc SHA512 3e8971ae3ae6ad3765f8a2d7028c8e9a2f980ae1077daa15ad5d5a0ad877577f8e4c0a9886b48b1525f79bd7df6e2ec28addca019b078eb9bed6dcb77f800037 WHIRLPOOL 09799fe9a665f46c3e90f79516bdfc23e0587eac20cf1626d8e18313cebdff4525282cbce859a340152f78b7be3bf8d59d2dab7c42f5f18d040424dd640ee340
diff --git a/dev-tex/isotope/isotope-20040401.ebuild b/dev-tex/isotope/isotope-20040401.ebuild
new file mode 100644
index 00000000000..6672d06433d
--- /dev/null
+++ b/dev-tex/isotope/isotope-20040401.ebuild
@@ -0,0 +1,19 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit latex-package
+
+DESCRIPTION="Typeset isotopes correctly in LaTeX documents"
+HOMEPAGE="http://www.ctan.org/tex-archive/help/Catalogue/entries/isotope.html"
+SRC_URI="mirror://gentoo/${P}.zip"
+
+LICENSE="LPPL-1.2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="app-arch/unzip"
+RDEPEND=""
+
+S=${WORKDIR}/${PN}
diff --git a/dev-tex/isotope/metadata.xml b/dev-tex/isotope/metadata.xml
new file mode 100644
index 00000000000..e7a2e262c88
--- /dev/null
+++ b/dev-tex/isotope/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>tex</herd>
+ <herd>sci</herd>
+ <longdescription>
+ The package provides a command \isotope for setting the atomic weight and
+ atomic number indications of isotopes. (The naive way of doing the job with
+ (La)TeX mathematics commands produces an unsatisfactory result.)
+ </longdescription>
+</pkgmetadata>
diff --git a/dev-tex/ivritex/Manifest b/dev-tex/ivritex/Manifest
new file mode 100644
index 00000000000..6dc27f987cc
--- /dev/null
+++ b/dev-tex/ivritex/Manifest
@@ -0,0 +1 @@
+DIST ivritex-1.1.2.tar.gz 578083 SHA256 bef3c277e1914f0ae82a13de071670b29ab8493eebcee35fe28337b4cb049333 SHA512 12550ad35bd4a6742159c2e3c8810f3b3f5ab6d93e3b454a028b3cce1a5c3c8a74f53af95df2932f60f2de2573c51895ceaa574f3d4a6301f844008247ea26be WHIRLPOOL 3f36288d581c1db0461d9f614662ef6cb4d46ed141277de231140bf11fe3527f143e953c2f2a228b32fa63c4546f6faf11bad47828c0f89bd84996970065e967
diff --git a/dev-tex/ivritex/ivritex-1.1.2.ebuild b/dev-tex/ivritex/ivritex-1.1.2.ebuild
new file mode 100644
index 00000000000..ff075758ffa
--- /dev/null
+++ b/dev-tex/ivritex/ivritex-1.1.2.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit latex-package
+
+IUSE=""
+
+DESCRIPTION="Hebrew support for TeX"
+HOMEPAGE="http://ivritex.sourceforge.net/"
+SRC_URI="mirror://sourceforge/ivritex/${P}.tar.gz"
+RESTRICT="mirror"
+
+LICENSE="LPPL-1.2"
+
+SLOT="0"
+DEPEND=""
+KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 sparc x86"
+
+src_install () {
+ export VARTEXFONTS="${T}/fonts"
+
+ make TEX_ROOT="${D}"/usr/share/texmf install || die
+
+}
diff --git a/dev-tex/ivritex/metadata.xml b/dev-tex/ivritex/metadata.xml
new file mode 100644
index 00000000000..933d77e4b95
--- /dev/null
+++ b/dev-tex/ivritex/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>tex</herd>
+ <upstream>
+ <remote-id type="sourceforge">ivritex</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-tex/latex-beamer/Manifest b/dev-tex/latex-beamer/Manifest
new file mode 100644
index 00000000000..6447d90270a
--- /dev/null
+++ b/dev-tex/latex-beamer/Manifest
@@ -0,0 +1,2 @@
+DIST latex-beamer-3.33.zip 4345792 SHA256 a0e59f464d69ed49d5998a674671209f6c7c1a6f095446c236b1144462bfa3b6 SHA512 c6fc019be08d9478b3b83a011d2ef726016581d93e67e37f12058ffd4b8c4889c25ab9c9e56f03d09505c5032fb5fccb7d3f9bf548988511aabe9c403afe42a8 WHIRLPOOL ecbf39035d29af073ca2df73a7689ca280f332d226fab5fa3859f332f76b2ca21e81ebd46d53a821892e9a02d2bdbab87a797bc887b8d44b1dbbdcd139fb05c2
+DIST latex-beamer-3.36.zip 4364333 SHA256 5bd5366da9942cec067dcf8a492d713ff45a73a4a48ff56151fd5ce01488bc63 SHA512 b93d91c2eb523d7e30ecee8fa1af625730bb465124da4f856f7708da32d31fc3bc68e5b57e120b8e39b8ed3b74fef0aeb208b92f4bbdf741c8bf377227fa84cf WHIRLPOOL 22df7b9fd3681b7ea0ada51ce1b71c16b3152e85fc52dfb3c096a1771232c3de7d1c0c2baa935b1d0814ce220208f49094a8a6c295a64d4ebcbe3b234eb11100
diff --git a/dev-tex/latex-beamer/latex-beamer-3.33.ebuild b/dev-tex/latex-beamer/latex-beamer-3.33.ebuild
new file mode 100644
index 00000000000..47fa73112f9
--- /dev/null
+++ b/dev-tex/latex-beamer/latex-beamer-3.33.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit latex-package
+
+DESCRIPTION="LaTeX class for creating presentations using a video projector"
+HOMEPAGE="http://bitbucket.org/rivanvx/beamer/wiki/Home"
+SRC_URI="http://dev.gentoo.org/~radhermit/dist/${P}.zip"
+
+LICENSE="GPL-2 FDL-1.2 LPPL-1.3c"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
+IUSE="doc examples"
+
+DEPEND="app-arch/unzip
+ dev-texlive/texlive-latex"
+RDEPEND=">=dev-tex/pgf-1.10
+ dev-tex/xcolor
+ !dev-tex/translator"
+
+S=${WORKDIR}/beamer
+
+src_install() {
+ insinto /usr/share/texmf-site/tex/latex/beamer
+ doins -r base
+
+ dodoc AUTHORS ChangeLog README TODO doc/licenses/LICENSE
+
+ if use doc ; then
+ docinto doc
+ dodoc -r doc/*
+ fi
+
+ use examples && dodoc -r examples solutions
+}
diff --git a/dev-tex/latex-beamer/latex-beamer-3.36.ebuild b/dev-tex/latex-beamer/latex-beamer-3.36.ebuild
new file mode 100644
index 00000000000..04272c71f6c
--- /dev/null
+++ b/dev-tex/latex-beamer/latex-beamer-3.36.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit latex-package
+
+DESCRIPTION="LaTeX class for creating presentations using a video projector"
+HOMEPAGE="http://bitbucket.org/rivanvx/beamer/wiki/Home"
+SRC_URI="http://dev.gentoo.org/~radhermit/dist/${P}.zip"
+
+LICENSE="GPL-2 FDL-1.2 LPPL-1.3c"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
+IUSE="doc examples"
+
+DEPEND="app-arch/unzip
+ dev-texlive/texlive-latex"
+RDEPEND=">=dev-tex/pgf-1.10
+ dev-tex/xcolor
+ !dev-tex/translator"
+
+S=${WORKDIR}/beamer
+
+src_install() {
+ insinto /usr/share/texmf-site/tex/latex/beamer
+ doins -r base
+
+ dodoc AUTHORS ChangeLog README TODO doc/licenses/LICENSE
+
+ if use doc ; then
+ docinto doc
+ dodoc -r doc/*
+ fi
+
+ use examples && dodoc -r examples solutions
+}
diff --git a/dev-tex/latex-beamer/metadata.xml b/dev-tex/latex-beamer/metadata.xml
new file mode 100644
index 00000000000..a77c3792621
--- /dev/null
+++ b/dev-tex/latex-beamer/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>tex</herd>
+ <upstream>
+ <remote-id type="bitbucket">rivanvx/beamer</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-tex/latex-calendar/Manifest b/dev-tex/latex-calendar/Manifest
new file mode 100644
index 00000000000..f1549ea0a81
--- /dev/null
+++ b/dev-tex/latex-calendar/Manifest
@@ -0,0 +1 @@
+DIST latex-calendar-3.1.tar.gz 108537 SHA256 7375725e644dc23a4956409f9ee80f8f5fb679f06663bc439126c21862c20dfd SHA512 bd014b8e0e09f61dfdbcb55903fbd4f797a91c3e47de284bb734e5b574ac2f1b9a1f80a801ca771ccd4056983353a4735b7e24dc448bb0a6eed7e79ceca0cbca WHIRLPOOL ccbcadae32435573f32504198effe0e6ce2c599179f41fa14b7df547f5fd70916b38150f4b3ea18118b4bf9feaff12f6e71424380af6264833dd7089e4643448
diff --git a/dev-tex/latex-calendar/latex-calendar-3.1.ebuild b/dev-tex/latex-calendar/latex-calendar-3.1.ebuild
new file mode 100644
index 00000000000..511913bd3d1
--- /dev/null
+++ b/dev-tex/latex-calendar/latex-calendar-3.1.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit latex-package
+
+MY_P="calendar"
+DESCRIPTION="LaTeX package used to create Calendars. Very flexible and robust"
+HOMEPAGE="http://www.ctan.org/tex-archive/macros/latex/contrib/calendar/"
+SRC_URI="mirror://gentoo/${P}.tar.gz"
+
+LICENSE="LaTeX-Calendar"
+SLOT="0"
+KEYWORDS="x86 sparc ppc amd64"
+IUSE=""
+
+S=${WORKDIR}/${MY_P}
+
+src_compile() {
+ debug-print function $FUNCNAME $*
+ echo "Extracting from allcal.ins"
+ ( yes | latex allcal.ins ) >/dev/null 2>&1
+}
+
+src_install() {
+ texi2dvi -q -c --language=latex calguide.tex &> /dev/null
+ latex-package_src_doinstall styles fonts bin dvi
+ dodoc README MANIFEST CATALOG
+ insinto /usr/share/doc/${P}/samples
+ doins bigdemo.tgz *.cfg *.tex *.cld
+}
diff --git a/dev-tex/latex-calendar/metadata.xml b/dev-tex/latex-calendar/metadata.xml
new file mode 100644
index 00000000000..ba6a8a8800d
--- /dev/null
+++ b/dev-tex/latex-calendar/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>tex</herd>
+</pkgmetadata>
diff --git a/dev-tex/latex-unicode/Manifest b/dev-tex/latex-unicode/Manifest
new file mode 100644
index 00000000000..0bf74779f7e
--- /dev/null
+++ b/dev-tex/latex-unicode/Manifest
@@ -0,0 +1,2 @@
+DIST UnicodeData.txt 897402 SHA256 de54d68f2df927a20ea4a83dfd74a543ca7f3e3df2441576e7f6a185ec6fa217 SHA512 252d082fb82c7d83434cc851ad59af985f5afb24d9b9780085972cfcf20832c9e2bdaa98094dcaeef25e7792db7c689333b0900bbcf789909cab22308d09b239 WHIRLPOOL 212595d5b8a015b1314b71a26c75087f93041126850727ded49430ad12f857c162ca2beb27207e6a527d06f5382ae942806f6bd8271023bbe392f4bca6e200d1
+DIST latex-unicode-20041017.tar.gz 1068123 SHA256 ef8c44735b2501f08f06e6eb074dfb8bf6a7bdfafbfaf65c680eeecbc7899ade SHA512 1f1ae420ec48ea3cb29eb0e335414aa48184dc9ad3575341f244906dce8d11c6a0a93c98d05ad21fadd3f4dee11bcb5cf47275a037a5738e6a8ca9090368bae4 WHIRLPOOL b5440331005e8e023437b2d53e3fd30f0b0984c2e22ce4981900da0f81d497cb9faca52ecd00489ff2915dc251e459659a901736c4a33571cd4cf62baf62e07c
diff --git a/dev-tex/latex-unicode/latex-unicode-20041017.ebuild b/dev-tex/latex-unicode/latex-unicode-20041017.ebuild
new file mode 100644
index 00000000000..6829a0b2537
--- /dev/null
+++ b/dev-tex/latex-unicode/latex-unicode-20041017.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit latex-package
+
+DESCRIPTION="Unicode support for LaTeX"
+HOMEPAGE="http://www.unruh.de/DniQ/latex/unicode/"
+# Taken from
+#SRC_URI="http://www.unruh.de/DniQ/latex/unicode/unicode.tgz"
+SRC_URI="mirror://gentoo/${P}.tar.gz
+ http://www.unicode.org/Public/UNIDATA/UnicodeData.txt"
+
+LICENSE="LPPL-1.2"
+
+SLOT="0"
+KEYWORDS="amd64 ppc ppc64 sparc x86"
+IUSE="cjk"
+
+DEPEND="!dev-texlive/texlive-latexrecommended
+ cjk? ( dev-tex/cjk-latex )"
+
+S=${WORKDIR}/ucs
+
+src_unpack() {
+ unpack ${P}.tar.gz
+ cp "${DISTDIR}"/UnicodeData.txt "${S}"
+}
+
+src_compile() {
+
+ latex-package_src_compile
+
+ if ! use cjk ; then
+ rm -rf data/*
+ perl makeunidef.pl -t data -v --nocomments --exclude cjkbg5,cjkgb,cjkjis,cjkhangul config/* || die "makeunidef.pl failed"
+ fi
+}
+
+src_install() {
+
+ latex-package_src_doinstall
+ pushd contrib
+ latex-package_src_doinstall styles || die
+ popd
+ pushd data
+ latex-package_src_doinstall styles || die
+ popd
+
+ insinto /usr/share/texmf/tex/latex/latex-unicode
+ doins data/uninames.dat
+ doins config/* contrib/cenccmn.tex
+
+ dodoc FAQ README VERSION languages.ps.gz ltxmacrs.txt
+}
+
+pkg_postinst() {
+
+ latex-package_pkg_postinst
+ elog
+ elog "Please refer to the README file in /usr/share/doc/${PF}"
+ elog "and languages.ps in that directory for language-specific examples."
+ elog
+}
diff --git a/dev-tex/latex-unicode/metadata.xml b/dev-tex/latex-unicode/metadata.xml
new file mode 100644
index 00000000000..a5618f4ac96
--- /dev/null
+++ b/dev-tex/latex-unicode/metadata.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>tex</herd>
+<herd>cjk</herd>
+</pkgmetadata>
diff --git a/dev-tex/latex2html/Manifest b/dev-tex/latex2html/Manifest
new file mode 100644
index 00000000000..1a28c856876
--- /dev/null
+++ b/dev-tex/latex2html/Manifest
@@ -0,0 +1,2 @@
+DIST latex2html-2008.tar.gz 1133054 SHA256 59456815a3984250c295d3d5c46b85646038db8db2735cdc0d3780cf4da337ad SHA512 e5a9d1700fcc45e6fcb7bae79e25acd52b7a84b70a75b3c7f1e746f65adbd48219a828420f6a7c437613d5c74dfb0405c91df01ac9c1535e9850f3a3e5c47f60 WHIRLPOOL 3d4dba64a2ce1b548749f5a5d489afba8694b2b6214dc5b7030820898d13a33dd708c751d2dc625a3d93930bcc0e483fa3e6736a2812c3baf395f70bb77404dc
+DIST latex2html-match-multiline.patch.bz2 8147 SHA256 fa4c74b1e6ef3fc337485b7940922aaa1aed0c33a533e75f4a97503547f4570e SHA512 01ec0dd1705f030736432a7fa8bf99c83c9e4f01c9755319d36e65e18737361d23073277692a8c44af529a1c37caabcc9e720a4be57e64300f945060e88f6641 WHIRLPOOL d0f69d16060d9829cafdc266acdb50e2071cf742841e7fcce524d69268c51036665670c0e3111e83dea8271cb0032f2362686c976a8b2c9032b50125ab3a9b2c
diff --git a/dev-tex/latex2html/files/latex2html-convert-length.patch b/dev-tex/latex2html/files/latex2html-convert-length.patch
new file mode 100644
index 00000000000..4171fd7c05e
--- /dev/null
+++ b/dev-tex/latex2html/files/latex2html-convert-length.patch
@@ -0,0 +1,22 @@
+--- latex2html-2002-2-1/versions/html2_2.pl.old 2006-02-21 20:37:50.000000000 +0100
++++ latex2html-2002-2-1/versions/html2_2.pl 2006-02-21 20:38:03.000000000 +0100
+@@ -91,7 +91,7 @@
+ ($pxs,$len);
+ }
+ # should no longer be needed, as this is defined in latex2html.pin
+-if (undefined &convert_length) { sub convert_length {&convert_length_table(@_)} }
++if (!defined (&convert_length)) { sub convert_length {&convert_length_table(@_)} }
+
+ # Translates LaTeX column specifications to HTML. Again, Netscape
+ # needs some extra work with its width attributes in the <td> tags.
+--- latex2html-2002-2-1/versions/table.pl.old 2006-02-21 20:37:54.000000000 +0100
++++ latex2html-2002-2-1/versions/table.pl 2006-02-21 20:38:11.000000000 +0100
+@@ -91,7 +91,7 @@
+ ($pxs,$len);
+ }
+ # should no longer be needed, as this is defined in latex2html.pin
+-if (undefined &convert_length) { sub convert_length {&convert_length_table(@_)} }
++if (!defined (&convert_length)) { sub convert_length {&convert_length_table(@_)} }
+
+ # Translates LaTeX column specifications to HTML. Again, Netscape
+ # needs some extra work with its width attributes in the <td> tags.
diff --git a/dev-tex/latex2html/files/latex2html-destdir.patch b/dev-tex/latex2html/files/latex2html-destdir.patch
new file mode 100644
index 00000000000..2d07beff449
--- /dev/null
+++ b/dev-tex/latex2html/files/latex2html-destdir.patch
@@ -0,0 +1,15 @@
+Index: latex2html-2008/config/install.pl
+===================================================================
+--- latex2html-2008.orig/config/install.pl
++++ latex2html-2008/config/install.pl
+@@ -372,7 +372,9 @@ foreach $item (sort keys %Install_items)
+
+ if($cfg{TEXPATH}) {
+ print "\nNote: trying to install LaTeX2HTML style files in TeX directory tree\n ($cfg{TEXPATH})\n";
+- unless(mkpath($cfg{TEXPATH})) {
++ my $destdir = $cfg{TEXPATH};
++ $destdir = $ENV{'DESTDIR'}.$destdir if($ENV{'DESTDIR'});
++ unless(mkpath($destdir)) {
+ #my $testpath = $cfg{TEXPATH}; # to strip (latex2)html
+ #$testpath =~ s/[$dd$dd][^$dd$dd]*$//;
+ #if((-d $cfg{TEXPATH} && !-w _) || (-d $testpath && !-w _)) {
diff --git a/dev-tex/latex2html/files/latex2html-extract-major-version-2.patch b/dev-tex/latex2html/files/latex2html-extract-major-version-2.patch
new file mode 100644
index 00000000000..11b6685385e
--- /dev/null
+++ b/dev-tex/latex2html/files/latex2html-extract-major-version-2.patch
@@ -0,0 +1,12 @@
+diff -urN latex2html-2002-2-1.orig/config/config.pl latex2html-2002-2-1/config/config.pl
+--- latex2html-2002-2-1.orig/config/config.pl 2006-06-02 20:41:18.000000000 +0200
++++ latex2html-2002-2-1/config/config.pl 2006-06-02 20:42:07.000000000 +0200
+@@ -1275,7 +1275,7 @@
+ ($stat,$msg,$err) = &get_out_err("$pnmcrop -version");
+ my $vers = '';
+ $msg = $msg || $err;
+- if ($msg =~ /(^|\s*)Version.*\s([\d\.]+)\s*([\n\r]|$)/is) { $vers = $2; }
++ if ($msg =~ /(^|\s*)Version: Netpbm (\d+)\..*\s*([\n\r]|$)/is) { $vers = $2; }
+ if ($vers =~ /^199/) {
+ # try left crop
+ &checking('if pnmcrop can crop from one direction');
diff --git a/dev-tex/latex2html/files/latex2html-extract-major-version.patch b/dev-tex/latex2html/files/latex2html-extract-major-version.patch
new file mode 100644
index 00000000000..7340754e5b4
--- /dev/null
+++ b/dev-tex/latex2html/files/latex2html-extract-major-version.patch
@@ -0,0 +1,12 @@
+diff -urN latex2html-2002-2-1.orig/config/config.pl latex2html-2002-2-1/config/config.pl
+--- latex2html-2002-2-1.orig/config/config.pl 2006-06-02 20:41:18.000000000 +0200
++++ latex2html-2002-2-1/config/config.pl 2006-06-02 20:42:07.000000000 +0200
+@@ -1275,7 +1275,7 @@
+ ($stat,$msg,$err) = &get_out_err("$pnmcrop -version");
+ my $vers = '';
+ $msg = $msg || $err;
+- if ($msg =~ /(^|\s*)Version.*\s([\d\.]+)\s*([\n\r]|$)/is) { $vers = $2; }
++ if ($msg =~ /(^|\s*)Version.*\s(\d+)\..*\s*([\n\r]|$)/is) { $vers = $2; }
+ if ($vers =~ /^199/) {
+ # try left crop
+ &checking('if pnmcrop can crop from one direction');
diff --git a/dev-tex/latex2html/files/latex2html-perl_name.patch b/dev-tex/latex2html/files/latex2html-perl_name.patch
new file mode 100644
index 00000000000..cc56f91437f
--- /dev/null
+++ b/dev-tex/latex2html/files/latex2html-perl_name.patch
@@ -0,0 +1,11 @@
+--- latex2html-2002-2-1/config/config.pl 2002-11-29 12:49:01.000000000 +0100
++++ latex2html-2002-2-1/config/config.pl.new 2006-05-23 11:29:10.000000000 +0200
+@@ -617,7 +617,7 @@
+
+ # only perl gets an absolute pathname
+ my $abs_path_names = 1;
+-$newcfg{'PERL'} = &find_prog($^X); # take the perl internal executable name
++$newcfg{'PERL'} = &find_prog("perl"); # take the perl internal executable name
+ &checking('perl version');
+ &result($]);
+
diff --git a/dev-tex/latex2html/latex2html-2008-r1.ebuild b/dev-tex/latex2html/latex2html-2008-r1.ebuild
new file mode 100644
index 00000000000..b5dd764dd30
--- /dev/null
+++ b/dev-tex/latex2html/latex2html-2008-r1.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit base eutils multilib
+
+DESCRIPTION="convertor written in Perl that converts LATEX documents to HTML"
+SRC_URI="http://saftsack.fs.uni-bayreuth.de/~latex2ht/current/${P}.tar.gz
+ http://dev.gentoo.org/~dilfridge/distfiles/${PN}-match-multiline.patch.bz2"
+HOMEPAGE="http://www.latex2html.org/"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
+IUSE="gif png"
+
+DEPEND="app-text/ghostscript-gpl
+ virtual/latex-base
+ media-libs/netpbm
+ dev-lang/perl
+ gif? ( media-libs/giflib )
+ png? ( media-libs/libpng )"
+RDEPEND="${DEPEND}"
+
+PATCHES=( "${FILESDIR}/${PN}"-{convert-length,perl_name,extract-major-version-2,destdir}.patch
+ "${DISTDIR}/${PN}"-match-multiline.patch.bz2 )
+
+src_prepare() {
+ base_src_prepare
+
+ # Dont install old url.sty and other files
+ # Bug #240980
+ rm -f texinputs/url.sty texinputs/latin9.def || die "failed to remove duplicate latex files"
+
+ sed -ie 's%@PERL@%'"${EPREFIX}"'/usr/bin/perl%g' wrapper/unix.pin || die
+}
+
+src_configure() {
+ local myconf
+
+ use gif || use png || myconf="${myconf} --disable-images"
+
+ econf --libdir="${EPREFIX}"/usr/$(get_libdir)/latex2html \
+ --shlibdir="${EPREFIX}"/usr/$(get_libdir)/latex2html \
+ --enable-pk \
+ --enable-eps \
+ --enable-reverse \
+ --enable-pipes \
+ --enable-paths \
+ --enable-wrapper \
+ --with-texpath="${EPREFIX}"/usr/share/texmf-site/tex/latex/html \
+ --without-mktexlsr \
+ $(use_enable gif) \
+ $(use_enable png) \
+ ${myconf} || die "econf failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "make install failed"
+
+ dodoc BUGS Changes FAQ LICENSE.orig MANIFEST README* TODO
+
+ # make /usr/share/latex2html sticky
+ keepdir /usr/share/latex2html
+
+ # clean the perl scripts up to remove references to the sandbox
+ einfo "fixing sandbox references"
+ # pstoimg isn't built unless gif or png useflags are enabled
+ { use png || use gif ; } && sed -i -e "s:${T}:/tmp:g" "${ED}/usr/$(get_libdir)/latex2html/pstoimg.pl"
+ sed -i -e "s:${S}::g" "${ED}/usr/$(get_libdir)/latex2html/latex2html.pl" || die
+ sed -i -e "s:${T}:/tmp:g" "${ED}/usr/$(get_libdir)/latex2html/cfgcache.pm" || die
+ sed -i -e "s:${T}:/tmp:g" "${ED}/usr/$(get_libdir)/latex2html/l2hconf.pm" || die
+}
+
+pkg_postinst() {
+ einfo "Running ${EROOT}usr/bin/mktexlsr to rebuild ls-R database...."
+ "${EROOT}"usr/bin/mktexlsr
+}
+
+pkg_postrm() {
+ einfo "Running ${EROOT}usr/bin/mktexlsr to rebuild ls-R database...."
+ "${EROOT}"usr/bin/mktexlsr
+}
diff --git a/dev-tex/latex2html/latex2html-2008.ebuild b/dev-tex/latex2html/latex2html-2008.ebuild
new file mode 100644
index 00000000000..cef871df980
--- /dev/null
+++ b/dev-tex/latex2html/latex2html-2008.ebuild
@@ -0,0 +1,82 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit eutils multilib
+
+DESCRIPTION="convertor written in Perl that converts LATEX documents to HTML"
+SRC_URI="http://saftsack.fs.uni-bayreuth.de/~latex2ht/current/${P}.tar.gz"
+HOMEPAGE="http://www.latex2html.org/"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
+IUSE="gif png"
+
+DEPEND="app-text/ghostscript-gpl
+ virtual/latex-base
+ media-libs/netpbm
+ dev-lang/perl
+ gif? ( media-libs/giflib )
+ png? ( media-libs/libpng )"
+RDEPEND="${DEPEND}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}/${PN}-convert-length.patch"
+ epatch "${FILESDIR}/${PN}-perl_name.patch"
+ epatch "${FILESDIR}/${PN}-extract-major-version.patch"
+ epatch "${FILESDIR}/${PN}-destdir.patch"
+ # Dont install old url.sty and other files
+ # Bug #240980
+ rm -f texinputs/url.sty texinputs/latin9.def || die "failed to remove duplicate latex files"
+}
+
+src_compile() {
+ local myconf
+
+ use gif || use png || myconf="${myconf} --disable-images"
+
+ econf --libdir=/usr/$(get_libdir)/latex2html \
+ --shlibdir=/usr/$(get_libdir)/latex2html \
+ --enable-pk \
+ --enable-eps \
+ --enable-reverse \
+ --enable-pipes \
+ --enable-paths \
+ --enable-wrapper \
+ --with-texpath=/usr/share/texmf-site/tex/latex/html \
+ --without-mktexlsr \
+ $(use_enable gif) \
+ $(use_enable png) \
+ ${myconf} || die "econf failed"
+ emake || die "make failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "make install failed"
+
+ dodoc BUGS Changes FAQ LICENSE.orig MANIFEST README* TODO
+
+ # make /usr/share/latex2html sticky
+ keepdir /usr/share/latex2html
+
+ # clean the perl scripts up to remove references to the sandbox
+ einfo "fixing sandbox references"
+ # pstoimg isn't built unless gif or png useflags are enabled
+ { use png || use gif ; } && dosed "s:${T}:/tmp:g" /usr/$(get_libdir)/latex2html/pstoimg.pl
+ dosed "s:${S}::g" /usr/$(get_libdir)/latex2html/latex2html.pl
+ dosed "s:${T}:/tmp:g" /usr/$(get_libdir)/latex2html/cfgcache.pm
+ dosed "s:${T}:/tmp:g" /usr/$(get_libdir)/latex2html/l2hconf.pm
+}
+
+pkg_postinst() {
+ einfo "Running ${ROOT}usr/bin/mktexlsr to rebuild ls-R database...."
+ "${ROOT}"usr/bin/mktexlsr
+}
+
+pkg_postrm() {
+ einfo "Running ${ROOT}usr/bin/mktexlsr to rebuild ls-R database...."
+ "${ROOT}"usr/bin/mktexlsr
+}
diff --git a/dev-tex/latex2html/metadata.xml b/dev-tex/latex2html/metadata.xml
new file mode 100644
index 00000000000..ba6a8a8800d
--- /dev/null
+++ b/dev-tex/latex2html/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>tex</herd>
+</pkgmetadata>
diff --git a/dev-tex/latex2rtf/Manifest b/dev-tex/latex2rtf/Manifest
new file mode 100644
index 00000000000..54fd60d7b56
--- /dev/null
+++ b/dev-tex/latex2rtf/Manifest
@@ -0,0 +1,4 @@
+DIST latex2rtf-2.2.1b.tar.gz 1357814 SHA256 d4c062a0b95cfa9ed4169ffd8c9ed67d65649227a19d6a9991597550e3e227a2 SHA512 943a667d65d84db744030f859500eb68095563be3f7fe9ad60201753058185360907557362e48931e37251f8ae9e40ec904ebb90e96c3bdd36c7abf8e9f2956b WHIRLPOOL cfef462a7dce753662ffe8e5ff12971a51fda26b49a891db519412c2e29c65f644545d08c8a43e3d107aaffc9321f53795e859499311c4a601b35eb671d13369
+DIST latex2rtf-2.3.1.tar.gz 1581829 SHA256 38ecf64d2ca1a8cc4e7f17b71e1780c8b96387f5f492ffb0b52d28313d6441be SHA512 0906c310e9b869bfa694fe044f8ec4cbba86f93caa05b22ec3688ecd4088e773c948dc64c7394a082306a6900b8a94f14ad990675132eef30fad6715bacd8220 WHIRLPOOL 6214a99f6ffc195f03c38ef9f8a17b4ab669eb5f892f73745d2af60e283320514736cc1f2feb1e3250688658f7d449236e4d419d8af699e99afd65c2b2d38389
+DIST latex2rtf-2.3.3.tar.gz 1583178 SHA256 f3c75f9e0d22506a005f38805b807ddc77a1cdd0961cf91a1ca3df31cb8fdcc3 SHA512 d14f2ef526cc938438366dd9ced239099a735389fa9515bb62f04038343c43ec64edc45f5df3eb7ded3adb5bc1e7a2ffd0cc3c4d7bfe4af97cd7f6256e66aca0 WHIRLPOOL bded2056cbc6c056aac75621a3a1354296444218f33bbb4a8ffafb7ccc81378d9e4351b1fc0752eb71fda1a5a8f614c98bfd2a4210449d5edf8b38fe4a5ec148
+DIST latex2rtf-2.3.8.tar.gz 1579721 SHA256 5484530de16e96ce76aedf969c464656a5f8834e748849d9009049e26f8c4143 SHA512 c4f0bdca7f1b3e605a07a015bad68193698e43ff2dd561e34eed397d8c92fccc52801fd1c3592592dd63c92a6b60a066904f60f2c4e41778702cc996b9113b0b WHIRLPOOL 6c1372abf67dcfa7c01453c4ded1e69f769d2c6adf544dd0c74211aea2181d45e0917e88ebc378b503c8f323a617ddbfdcc2a817ec72a7eb5b9acb9a323546cd
diff --git a/dev-tex/latex2rtf/files/texinfo5.patch b/dev-tex/latex2rtf/files/texinfo5.patch
new file mode 100644
index 00000000000..d19b0306bf0
--- /dev/null
+++ b/dev-tex/latex2rtf/files/texinfo5.patch
@@ -0,0 +1,25 @@
+From 35224edbb3647c3d0a7828584c952f254ac4eb2d Mon Sep 17 00:00:00 2001
+From: Christopher Meng <i@cicku.me>
+Date: Thu, 28 Aug 2014 17:02:04 +0800
+Subject: [PATCH] Fix-latex2rtf-FTBFS-with-texinfo-5
+
+---
+ doc/latex2rtf.texi | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/doc/latex2rtf.texi b/doc/latex2rtf.texi
+index 9da9180..b6b7a4f 100755
+--- a/doc/latex2rtf.texi
++++ b/doc/latex2rtf.texi
+@@ -1,6 +1,8 @@
++@iftex
+ \def\LaTeX{L\kern-.36em\raise.3ex\hbox{\sc a}\kern-.15em\TeX}
+ \def\LaTeXe{\LaTeX\kern.15em 2$_\varepsilon$}
+ \def\BibTeX{B\kern-.05em{\sc i\kern-.025em b}\kern-.08em\TeX}
++@end iftex
+
+ \input texinfo
+ @c -*-texinfo-*-
+--
+2.1.0
+
diff --git a/dev-tex/latex2rtf/latex2rtf-2.2.1b.ebuild b/dev-tex/latex2rtf/latex2rtf-2.2.1b.ebuild
new file mode 100644
index 00000000000..9fee4953c88
--- /dev/null
+++ b/dev-tex/latex2rtf/latex2rtf-2.2.1b.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit toolchain-funcs
+
+DESCRIPTION="LaTeX to RTF converter"
+HOMEPAGE="http://latex2rtf.sourceforge.net/"
+SRC_URI="mirror://sourceforge/latex2rtf/${P}.tar.gz"
+
+LICENSE="GPL-2"
+KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 sparc x86"
+SLOT="0"
+IUSE="doc test"
+S="${WORKDIR}/${P%b}"
+
+RDEPEND="virtual/latex-base
+ media-gfx/imagemagick"
+DEPEND="${RDEPEND}
+ sys-apps/man
+ doc? ( virtual/texi2dvi )
+ test? (
+ dev-texlive/texlive-langgerman
+ dev-texlive/texlive-fontsrecommended
+ dev-texlive/texlive-latexextra
+ dev-tex/latex2html
+ )"
+
+src_prepare() {
+ # We are case sensitive...
+ mv copyright Copyright || die
+}
+
+src_compile() {
+ export VARTEXFONTS="${T}/fonts"
+ # Set DESTDIR here too so that compiled-in paths are correct.
+ emake DESTDIR="${EPREFIX}/usr" CC="$(tc-getCC)" || die "emake failed"
+ if use doc; then
+ cd "${S}/doc"
+ emake realclean
+ emake -j1
+ fi
+}
+
+src_install() {
+ dodoc README* HACKING ToDo ChangeLog doc/credits
+ emake DESTDIR="${ED}/usr" install
+ # if doc is not used, only the text version is intalled.
+ if use doc; then
+ emake DESTDIR="${ED}/usr" install-info
+ fi
+}
diff --git a/dev-tex/latex2rtf/latex2rtf-2.3.1.ebuild b/dev-tex/latex2rtf/latex2rtf-2.3.1.ebuild
new file mode 100644
index 00000000000..2ff9814fbf1
--- /dev/null
+++ b/dev-tex/latex2rtf/latex2rtf-2.3.1.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit toolchain-funcs
+
+DESCRIPTION="LaTeX to RTF converter"
+HOMEPAGE="http://latex2rtf.sourceforge.net/"
+SRC_URI="mirror://sourceforge/latex2rtf/${P}.tar.gz"
+
+LICENSE="GPL-2"
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+SLOT="0"
+IUSE="doc test"
+S="${WORKDIR}/${P%b}"
+
+RDEPEND="virtual/latex-base
+ media-gfx/imagemagick"
+DEPEND="${RDEPEND}
+ doc? ( virtual/texi2dvi )
+ test? (
+ dev-texlive/texlive-langgerman
+ dev-texlive/texlive-fontsrecommended
+ dev-texlive/texlive-latexextra
+ dev-tex/latex2html
+ )"
+
+src_compile() {
+ export VARTEXFONTS="${T}/fonts"
+ # Set DESTDIR here too so that compiled-in paths are correct.
+ emake DESTDIR="${EPREFIX}/usr" CC="$(tc-getCC)" || die "emake failed"
+ if use doc; then
+ cd "${S}/doc"
+ emake realclean
+ emake -j1
+ fi
+}
+
+src_install() {
+ dodoc README* HACKING ToDo ChangeLog doc/credits
+ emake DESTDIR="${ED}/usr" -j1 install
+ # if doc is not used, only the text version is intalled.
+ if use doc; then
+ emake DESTDIR="${ED}/usr" install-info
+ fi
+}
diff --git a/dev-tex/latex2rtf/latex2rtf-2.3.3.ebuild b/dev-tex/latex2rtf/latex2rtf-2.3.3.ebuild
new file mode 100644
index 00000000000..291727cd359
--- /dev/null
+++ b/dev-tex/latex2rtf/latex2rtf-2.3.3.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit toolchain-funcs
+
+DESCRIPTION="LaTeX to RTF converter"
+HOMEPAGE="http://latex2rtf.sourceforge.net/"
+SRC_URI="mirror://sourceforge/latex2rtf/${P}.tar.gz"
+
+LICENSE="GPL-2"
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+SLOT="0"
+IUSE="doc test"
+S="${WORKDIR}/${P%b}"
+
+RDEPEND="virtual/latex-base
+ media-gfx/imagemagick"
+DEPEND="${RDEPEND}
+ doc? ( virtual/texi2dvi )
+ test? (
+ dev-texlive/texlive-langgerman
+ dev-texlive/texlive-fontsrecommended
+ dev-texlive/texlive-latexextra
+ dev-tex/latex2html
+ )"
+
+src_compile() {
+ export VARTEXFONTS="${T}/fonts"
+ # Set DESTDIR here too so that compiled-in paths are correct.
+ emake DESTDIR="${EPREFIX}/usr" CC="$(tc-getCC)" || die "emake failed"
+ if use doc; then
+ cd "${S}/doc"
+ emake realclean
+ emake -j1
+ fi
+}
+
+src_install() {
+ dodoc README* HACKING ToDo ChangeLog doc/credits
+ emake DESTDIR="${ED}/usr" -j1 install
+ # if doc is not used, only the text version is intalled.
+ if use doc; then
+ emake DESTDIR="${ED}/usr" install-info
+ fi
+}
diff --git a/dev-tex/latex2rtf/latex2rtf-2.3.8.ebuild b/dev-tex/latex2rtf/latex2rtf-2.3.8.ebuild
new file mode 100644
index 00000000000..a8f01621410
--- /dev/null
+++ b/dev-tex/latex2rtf/latex2rtf-2.3.8.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit toolchain-funcs eutils
+
+DESCRIPTION="LaTeX to RTF converter"
+HOMEPAGE="http://latex2rtf.sourceforge.net/"
+SRC_URI="mirror://sourceforge/latex2rtf/${P}.tar.gz"
+
+LICENSE="GPL-2"
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+SLOT="0"
+IUSE="test"
+S="${WORKDIR}/${P%b}"
+
+RDEPEND="virtual/latex-base
+ media-gfx/imagemagick"
+DEPEND="${RDEPEND}
+ virtual/texi2dvi
+ test? (
+ dev-texlive/texlive-langgerman
+ dev-texlive/texlive-fontsrecommended
+ dev-texlive/texlive-latexextra
+ dev-tex/latex2html
+ )"
+
+src_prepare() {
+ epatch "${FILESDIR}/texinfo5.patch"
+}
+
+src_compile() {
+ export VARTEXFONTS="${T}/fonts"
+ tc-export CC
+ # Set DESTDIR here too so that compiled-in paths are correct.
+ emake DESTDIR="${EPREFIX}/usr" || die "emake failed"
+
+ cd "${S}/doc"
+ emake realclean
+ emake -j1
+}
+
+src_install() {
+ dodoc README* HACKING ToDo ChangeLog doc/credits
+ emake DESTDIR="${ED}/usr" -j1 install install-info
+}
diff --git a/dev-tex/latex2rtf/metadata.xml b/dev-tex/latex2rtf/metadata.xml
new file mode 100644
index 00000000000..74cedb528b9
--- /dev/null
+++ b/dev-tex/latex2rtf/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>tex</herd>
+ <upstream>
+ <remote-id type="sourceforge">latex2rtf</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-tex/latexdiff/Manifest b/dev-tex/latexdiff/Manifest
new file mode 100644
index 00000000000..3a6d9e08eed
--- /dev/null
+++ b/dev-tex/latexdiff/Manifest
@@ -0,0 +1,3 @@
+DIST latexdiff-0.5.zip 310412 SHA256 7a99ac274c7552b1acf617d27866b40573469acafde0fb680231e58b2e08ddcf SHA512 fc0ff701f7c79842c0325923389a5118b626cfbea12ede0f98fc5e8311ac63fbc371fb5b1f4b4b50247112e16b0ac2fed8f5513d1c85dc1a69c97eb7f3a78351 WHIRLPOOL 06d0062c01b98f695bda8ee113faf247dae526451701aa91060a8cfacd7a7a13bd2d45235b641260fd2f2ebe9120364fe855c3d7959be45b10fcd7f03092987c
+DIST latexdiff-1.0.4.zip 445374 SHA256 42acfc6e379f61637d2d23f5dd940373cd1f0ef54858eaecb3f6dad250af2db1 SHA512 5ab3e00d94053f4d73e2a0ae47e7e98c2b53d1acd9411c2f2a5f438bc69cd13b1d3be19fe466d63f6fdcec3b132144ffe8409cdc8ff41a9fb0e408767f94ec61 WHIRLPOOL cda44d78a9ca53cb7b9668d31c31da61735f496120ba855fe8c83895907e396b30152ebf2076ec436a9a8454510c2db2229e75d913bba6ed9532e816d7d1221b
+DIST latexdiff-1.1.0.zip 466029 SHA256 9f0cc207d71a2225926cf9b8b87dbc4283c68de12db8a7708e780941516f13f6 SHA512 04af20386b0e611f73d981242747316da6376967fef611a29927b66a7a129bec49c7224655378c6f9fc744f8d69cf2ac977d0f50278d3686c98dcdc4aef0b675 WHIRLPOOL 944fe49aac3aaf8801a1e8c345551cf73ce5d205cd32c0ab5e6f1d1acafcaefb60f0d8a47488e6a7513139de89b7b78b7acc155cac4c328918dc33e79f12a7ed
diff --git a/dev-tex/latexdiff/latexdiff-0.5.ebuild b/dev-tex/latexdiff/latexdiff-0.5.ebuild
new file mode 100644
index 00000000000..eb9f52ffe49
--- /dev/null
+++ b/dev-tex/latexdiff/latexdiff-0.5.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+DESCRIPTION="Compare two latex files and mark up significant differences"
+HOMEPAGE="http://www.ctan.org/tex-archive/support/latexdiff/"
+SRC_URI="mirror://gentoo/${P}.zip"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
+
+IUSE=""
+
+RDEPEND=">=dev-lang/perl-5.8
+ dev-perl/Algorithm-Diff"
+DEPEND="${RDEPEND}
+ app-arch/unzip"
+
+S=${WORKDIR}/${PN}
+
+src_test() {
+ emake test-ext || die "Tests failed!"
+}
+
+src_install() {
+ dobin latexdiff latexrevise latexdiff-vc || die "dobin failed"
+ doman latexdiff.1 latexrevise.1 latexdiff-vc.1 || die "doman failed"
+ dodoc CHANGES README latexdiff-man.pdf || die "dodoc failed"
+}
diff --git a/dev-tex/latexdiff/latexdiff-1.0.4.ebuild b/dev-tex/latexdiff/latexdiff-1.0.4.ebuild
new file mode 100644
index 00000000000..12b68233b2e
--- /dev/null
+++ b/dev-tex/latexdiff/latexdiff-1.0.4.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+DESCRIPTION="Compare two latex files and mark up significant differences"
+HOMEPAGE="http://www.ctan.org/tex-archive/support/latexdiff/ https://github.com/ftilmann/latexdiff/"
+SRC_URI="http://mirror.ctan.org/support/${PN}.zip -> ${P}.zip"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
+
+IUSE=""
+
+RDEPEND=">=dev-lang/perl-5.8
+ dev-perl/Algorithm-Diff"
+DEPEND="${RDEPEND}
+ app-arch/unzip"
+
+S=${WORKDIR}/${PN}
+
+src_test() {
+ emake test-ext
+}
+
+src_install() {
+ dobin latexdiff latexrevise latexdiff-vc
+ doman latexdiff.1 latexrevise.1 latexdiff-vc.1
+ dodoc README doc/latexdiff-man.pdf
+}
diff --git a/dev-tex/latexdiff/latexdiff-1.1.0.ebuild b/dev-tex/latexdiff/latexdiff-1.1.0.ebuild
new file mode 100644
index 00000000000..12b68233b2e
--- /dev/null
+++ b/dev-tex/latexdiff/latexdiff-1.1.0.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+DESCRIPTION="Compare two latex files and mark up significant differences"
+HOMEPAGE="http://www.ctan.org/tex-archive/support/latexdiff/ https://github.com/ftilmann/latexdiff/"
+SRC_URI="http://mirror.ctan.org/support/${PN}.zip -> ${P}.zip"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
+
+IUSE=""
+
+RDEPEND=">=dev-lang/perl-5.8
+ dev-perl/Algorithm-Diff"
+DEPEND="${RDEPEND}
+ app-arch/unzip"
+
+S=${WORKDIR}/${PN}
+
+src_test() {
+ emake test-ext
+}
+
+src_install() {
+ dobin latexdiff latexrevise latexdiff-vc
+ doman latexdiff.1 latexrevise.1 latexdiff-vc.1
+ dodoc README doc/latexdiff-man.pdf
+}
diff --git a/dev-tex/latexdiff/metadata.xml b/dev-tex/latexdiff/metadata.xml
new file mode 100644
index 00000000000..d7b73cd8be8
--- /dev/null
+++ b/dev-tex/latexdiff/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>tex</herd>
+ <upstream>
+ <remote-id type="github">ftilmann/latexdiff</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-tex/latexmk/Manifest b/dev-tex/latexmk/Manifest
new file mode 100644
index 00000000000..b224dc68ffe
--- /dev/null
+++ b/dev-tex/latexmk/Manifest
@@ -0,0 +1,3 @@
+DIST latexmk-435.zip 386766 SHA256 9de9ebdafd5e0cf5c29235ec6316aae2a039a5a6eb6d55e83b4cfbb7374d7fc3 SHA512 ff8f88c261e2b90663d979ddcb373f777fd3ad4b125ab703052867b4896257b34033ed2a07fd4574da526d839449512ccc898bcb9aaf81ae5afb442dcb8622be WHIRLPOOL 0bbf295edd8eb079160af834057abe2e02f536868b3815c265a2f7320eb8122701f062f8c784bf087e1cba9391ff755118c516a9ed1455fbbebab6334c41db6f
+DIST latexmk-441.zip 425737 SHA256 564b56414ab3a71ab39d01becce95deed4f262e061de167d0cca03c8ba8e5d46 SHA512 b9b65ebda1edc6f1f2692f7c8f02eeeac07dc2bd2f5d96c763615a9e27918069ba65809e5e61580e541420bf1f8d7edc451ad3f1753d43e9596175fdb3571a73 WHIRLPOOL bd48511ebf823709e66be3b82d6b0e8038a8450dfc3217b7e4f0612e6f4ee9d286e38696171337e165fb246464160290cd82e35f7a7e74962037821989e32634
+DIST latexmk-443a.zip 434070 SHA256 e410d295c0a47327b953ece5b582c294359bdf89138ef990d5621b020ff2bbe5 SHA512 9791bea6341f92988b6a7bdc4cd1587d1b8c6e013d9e7a3be219ea4045a8f95971072cf6633998839c35a462b2e5843adf3d5893519f1f6c2bd4ecf81314b2c0 WHIRLPOOL 9662ac695de7c3ead43f23abcc92bb611cb089ddaa475b36ab8b3b957cf7e8c864e9cc0d8d037e8fafedc44161112ff868ec3612f84bc3d338c5e2422f49e246
diff --git a/dev-tex/latexmk/files/completion.bash-2 b/dev-tex/latexmk/files/completion.bash-2
new file mode 100644
index 00000000000..a24b7a81915
--- /dev/null
+++ b/dev-tex/latexmk/files/completion.bash-2
@@ -0,0 +1,45 @@
+#! /bin/bash
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+
+# bash_completion for latexmk
+#
+#
+# Author: Christoph Junghans
+# ottxor@gentoo.org
+#
+# Revision history:
+# 0.1 26-05-10 --- initial version
+# 0.2 15-02-11 --- clean up
+#
+# HOWTO:
+# source this file to enable it
+
+_latexmk()
+{
+ local cur output aopts opts prev
+ cur=${COMP_WORDS[COMP_CWORD]}
+ prev=${COMP_WORDS[COMP_CWORD-1]}
+
+ output=$( $1 -help 2> /dev/null)
+ #options with args ,pattern: ^ (-XXX) <YYYY>.*$
+ aopts=" $( echo " $output" | sed -n 's/^[[:space:]]\+\(-[^[:space:]]\+\)[[:space:]]\+<[^>]\+>.*$/\1/p' | sort -u | tr '\n' ' ')"
+ #if previous option in in $aopts
+ if [[ -n "$prev" ]] && [[ -z "${aopts//* $prev *}" ]]; then
+ #argument of $prev ,pattern: ^ -XXX (<YYYY>).*$
+ opts=$(echo "$output" | sed -n "s/^[[:space:]]\+$prev[[:space:]]\+\(<[^>]\+>\).*\$/\1/p")
+ COMPREPLY=( $( compgen -W '$opts' -- $cur ) )
+ elif [[ "$cur" == -* ]]; then
+ #all options, pattern: ^ (-XXX).*$
+ opts=$( echo "$output" | sed -n 's/^[[:space:]]\+\(-[^[:space:]]\+\).*$/\1/p'| sort -u )
+ COMPREPLY=( $( compgen -W '$opts' -- $cur ) )
+ else
+ #filenames *.tex and dirs, rest is done by '-o filenames' below
+ COMPREPLY=( $( eval compgen -f -X "!*.tex" -- ${cur} ) $( compgen -d -- $cur ) )
+ fi
+}
+
+complete -F _latexmk -o filenames latexmk
diff --git a/dev-tex/latexmk/latexmk-435.ebuild b/dev-tex/latexmk/latexmk-435.ebuild
new file mode 100644
index 00000000000..b26297e198c
--- /dev/null
+++ b/dev-tex/latexmk/latexmk-435.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit bash-completion-r1
+
+DESCRIPTION="Perl script for automatically building LaTeX documents"
+HOMEPAGE="http://www.phys.psu.edu/~collins/software/latexmk/"
+SRC_URI="http://www.phys.psu.edu/~collins/software/latexmk/${P}.zip"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~ppc-macos ~x64-macos ~x86-macos"
+IUSE=""
+
+RDEPEND="virtual/latex-base
+ dev-lang/perl"
+DEPEND="${RDEPEND}
+ app-arch/unzip"
+
+S=${WORKDIR}
+
+src_install() {
+ newbin latexmk.pl latexmk
+ doman latexmk.1
+ dodoc CHANGES README latexmk.pdf latexmk.ps latexmk.txt
+ dodoc -r example_rcfiles extra-scripts
+ newbashcomp "${FILESDIR}"/completion.bash-2 ${PN}
+}
diff --git a/dev-tex/latexmk/latexmk-441.ebuild b/dev-tex/latexmk/latexmk-441.ebuild
new file mode 100644
index 00000000000..5f88af142a8
--- /dev/null
+++ b/dev-tex/latexmk/latexmk-441.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit bash-completion-r1
+
+DESCRIPTION="Perl script for automatically building LaTeX documents"
+HOMEPAGE="http://www.phys.psu.edu/~collins/software/latexmk/"
+SRC_URI="http://www.phys.psu.edu/~collins/software/latexmk/${P}.zip"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~ppc-macos ~x64-macos ~x86-macos"
+
+RDEPEND="virtual/latex-base
+ dev-lang/perl"
+DEPEND="${RDEPEND}
+ app-arch/unzip"
+
+S=${WORKDIR}
+
+src_install() {
+ newbin latexmk.pl latexmk
+ doman latexmk.1
+ dodoc CHANGES README latexmk.pdf latexmk.ps latexmk.txt
+ dodoc -r example_rcfiles extra-scripts
+ newbashcomp "${FILESDIR}"/completion.bash-2 ${PN}
+}
diff --git a/dev-tex/latexmk/latexmk-443a.ebuild b/dev-tex/latexmk/latexmk-443a.ebuild
new file mode 100644
index 00000000000..dfedd7bd9d5
--- /dev/null
+++ b/dev-tex/latexmk/latexmk-443a.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit bash-completion-r1
+
+DESCRIPTION="Perl script for automatically building LaTeX documents"
+HOMEPAGE="http://www.phys.psu.edu/~collins/software/latexmk/"
+SRC_URI="http://www.phys.psu.edu/~collins/software/latexmk/${P}.zip"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~ppc-macos ~x64-macos ~x86-macos"
+
+RDEPEND="virtual/latex-base
+ dev-lang/perl"
+DEPEND="${RDEPEND}
+ app-arch/unzip"
+
+S="${WORKDIR}/${PN}"
+
+src_install() {
+ newbin latexmk.pl latexmk
+ doman latexmk.1
+ dodoc CHANGES README latexmk.pdf latexmk.ps latexmk.txt
+ dodoc -r example_rcfiles extra-scripts
+ newbashcomp "${FILESDIR}"/completion.bash-2 ${PN}
+}
diff --git a/dev-tex/latexmk/metadata.xml b/dev-tex/latexmk/metadata.xml
new file mode 100644
index 00000000000..21ff3a53848
--- /dev/null
+++ b/dev-tex/latexmk/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>tex</herd>
+</pkgmetadata>
diff --git a/dev-tex/lazylist/Manifest b/dev-tex/lazylist/Manifest
new file mode 100644
index 00000000000..2c95f71bb7d
--- /dev/null
+++ b/dev-tex/lazylist/Manifest
@@ -0,0 +1 @@
+DIST lazylist-1.0a.tar.bz2 12552 SHA256 b0ed132f992e4a3eb7931894a68f66b6f9dc467ab7fdb3b23419f9604180b532 SHA512 30819ca6a32b7344c8519f67eb3d5fbd5b985cdc52563464671af06e38bd7edcbb7559f8ca3a476a3a9a0ba8c017773cf944e75a2b779c75221b460a022b8ab4 WHIRLPOOL b3d03147c21cf37d88d9bb3eb8b162c68b41c9d1737ab9c3970e13e68957c9fdd36ebebe1cfe6c97f220dd659a23a982e4fabe7d2703defb7b0f31e939028498
diff --git a/dev-tex/lazylist/lazylist-1.0a.ebuild b/dev-tex/lazylist/lazylist-1.0a.ebuild
new file mode 100644
index 00000000000..d703e8757a0
--- /dev/null
+++ b/dev-tex/lazylist/lazylist-1.0a.ebuild
@@ -0,0 +1,18 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit latex-package
+
+DESCRIPTION="Lists in TeX's mouth - lambda-calculus and list-handling macros"
+HOMEPAGE="http://www.ctan.org/tex-archive/macros/latex/contrib/lazylist/"
+# originally from:
+#SRC_URI="http://www.ctan.org/tex-archive/macros/latex/contrib/lazylist/*"
+SRC_URI="mirror://gentoo/${P}.tar.bz2"
+LICENSE="LPPL-1.2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc ppc64 sparc x86"
+IUSE=""
+DEPEND=""
+#RDEPEND=""
+S="${WORKDIR}/${PN}"
diff --git a/dev-tex/lazylist/metadata.xml b/dev-tex/lazylist/metadata.xml
new file mode 100644
index 00000000000..66b9052a990
--- /dev/null
+++ b/dev-tex/lazylist/metadata.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>haskell</herd>
+ <herd>tex</herd>
+</pkgmetadata>
diff --git a/dev-tex/leaflet/Manifest b/dev-tex/leaflet/Manifest
new file mode 100644
index 00000000000..f98c6cc7ea1
--- /dev/null
+++ b/dev-tex/leaflet/Manifest
@@ -0,0 +1 @@
+DIST leaflet-20041222.zip 244748 SHA256 d1dda62cdd764b52f91b239d9b6032cefb4cc478bd89da3b63d6ae0264f499c1 SHA512 1fc94a88dea5400ee014167d43aaccc9f393a36759d7a50b7fb72f4a2f060fda7ea170fb51c5034355fbe46ab55e117fe252b60df8c212a8918ddd699096b67c WHIRLPOOL 496896c7cf0af7efaaf5f788db53c5c1ce6dd7342449aca92b915c7cb881598af85fd0aef43e32a417011655b1a370f6d826b47de00b873795de7b51d380eb4f
diff --git a/dev-tex/leaflet/files/leaflet-20041222-logging.patch b/dev-tex/leaflet/files/leaflet-20041222-logging.patch
new file mode 100644
index 00000000000..daf19d80f76
--- /dev/null
+++ b/dev-tex/leaflet/files/leaflet-20041222-logging.patch
@@ -0,0 +1,14 @@
+\loggingall confuses texi2dvi and it starts an endless loop...
+
+Index: leaflet/leaflet.dtx
+===================================================================
+--- leaflet.orig/leaflet.dtx
++++ leaflet/leaflet.dtx
+@@ -1318,7 +1318,6 @@ this document class.
+ CTAN: \url{macros/latex/contrib/ms/everyshi.dtx}
+ \end{thebibliography}
+
+-\loggingall
+ \end{document}
+ %</manual>
+ \endinput
diff --git a/dev-tex/leaflet/leaflet-20041222.ebuild b/dev-tex/leaflet/leaflet-20041222.ebuild
new file mode 100644
index 00000000000..f48bb604551
--- /dev/null
+++ b/dev-tex/leaflet/leaflet-20041222.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit latex-package eutils
+
+S=${WORKDIR}/leaflet
+
+DESCRIPTION="LaTeX package used to create leaflet-type brochures"
+SRC_URI="mirror://gentoo/${P}.zip"
+HOMEPAGE="http://www.ctan.org/tex-archive/macros/latex/contrib/leaflet/"
+
+LICENSE="LPPL-1.3"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
+IUSE=""
+
+# checksum from official ftp site changes frequently so we mirror it
+
+TEXMF="/usr/share/texmf-site"
+
+RDEPEND="dev-texlive/texlive-fontsrecommended"
+DEPEND="${RDEPEND} app-arch/unzip"
+DOCS="README"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}/${P}-logging.patch"
+}
diff --git a/dev-tex/leaflet/metadata.xml b/dev-tex/leaflet/metadata.xml
new file mode 100644
index 00000000000..ba6a8a8800d
--- /dev/null
+++ b/dev-tex/leaflet/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>tex</herd>
+</pkgmetadata>
diff --git a/dev-tex/lgrind/Manifest b/dev-tex/lgrind/Manifest
new file mode 100644
index 00000000000..aad4be4c58f
--- /dev/null
+++ b/dev-tex/lgrind/Manifest
@@ -0,0 +1 @@
+DIST lgrind.tar.gz 73205 SHA256 234642885100c7e6ddb2be734d652252defd4ccd5d5ae6ef7fc6b56ebbb5b847 SHA512 89dffec60b6cbac82e9633690412961cb619d6d86d39bea2fb6f3026e1317eb00494d7ed68865a943b1872346eaecdc1b8502de41517023a47309e1e803da2c6 WHIRLPOOL f37a086a6ffeb40e6de1105d5fdb715de3d5eb0b5769a9cafc46d569edabbaa7776df187b9710c6b88548adaaafead1bde630ef6671ff7a4c6af3ff4c4b014f7
diff --git a/dev-tex/lgrind/files/lgrind-3.67-fgets.patch b/dev-tex/lgrind/files/lgrind-3.67-fgets.patch
new file mode 100644
index 00000000000..5c8e802dc18
--- /dev/null
+++ b/dev-tex/lgrind/files/lgrind-3.67-fgets.patch
@@ -0,0 +1,13 @@
+Index: lgrind/source/lgutil.c
+===================================================================
+--- lgrind.orig/source/lgutil.c
++++ lgrind/source/lgutil.c
+@@ -113,7 +113,7 @@ void Internal_Help_Language_List()
+ check=0;
+ if (*config=='\n' || config[strlen(config)-2]!='\\')
+ check=1;
+- if (fgets(config, BUFFERSIZE, tf)==NULL) break;
++ if (fgets(config, BUFFERSIZE/4, tf)==NULL) break;
+ if (check!=0) AddToLList(config, &currlch, &llch);
+ } while (strcmp((*currlch).name, "EndOfLanguageDefinitions")!=0);
+ rch=lch;
diff --git a/dev-tex/lgrind/lgrind-3.67-r3.ebuild b/dev-tex/lgrind/lgrind-3.67-r3.ebuild
new file mode 100644
index 00000000000..6b32572bed0
--- /dev/null
+++ b/dev-tex/lgrind/lgrind-3.67-r3.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit latex-package toolchain-funcs eutils
+
+DESCRIPTION="A source pretty printer for LaTeX - styles to stylise your source and code examples"
+SRC_URI="mirror://gentoo/${PN}.tar.gz"
+
+LICENSE="BSD LGrind-Jacobson"
+SLOT="0"
+KEYWORDS="amd64 ppc ~sparc x86"
+IUSE="examples"
+
+S=${WORKDIR}/${PN}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ echo 'CFLAGS+=-DDEFSFILE=\"$(DEFSFILE)\" -DVERSION=\"$(VERSION)\"' > source/Makefile
+ echo 'lgrind: lgrind.o lgrindef.o regexp.o' >> source/Makefile
+ epatch "${FILESDIR}/${P}-fgets.patch"
+}
+
+src_compile() {
+ tc-export CC
+
+ latex-package_src_compile
+ cd "${S}"/source
+ emake DEFSFILE="/usr/share/texmf/tex/latex/${PN}/lgrindef" VERSION="${PV}" || die
+}
+
+src_install() {
+ # binary first
+ dobin source/lgrind
+
+ # then the texmf stuff
+ latex-package_src_install
+ insinto /usr/share/texmf/tex/latex/${PN}
+ doins lgrindef
+
+ # and finally, the documentation
+ dodoc FAQ README
+ if use examples ; then
+ docinto examples
+ dodoc example/*
+ fi
+ cd "${S}"/source
+ doman lgrind.1 lgrindef.5
+}
diff --git a/dev-tex/lgrind/metadata.xml b/dev-tex/lgrind/metadata.xml
new file mode 100644
index 00000000000..ba6a8a8800d
--- /dev/null
+++ b/dev-tex/lgrind/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>tex</herd>
+</pkgmetadata>
diff --git a/dev-tex/luatex/Manifest b/dev-tex/luatex/Manifest
new file mode 100644
index 00000000000..2e43dce9816
--- /dev/null
+++ b/dev-tex/luatex/Manifest
@@ -0,0 +1,4 @@
+DIST luatex-beta-0.70.1-doc.tar.bz2 1048489 SHA256 4f1d24777725a606efbf5d7a59064245c46fb29b8066236c6b48fb423a595606 SHA512 eb4de91a80a6afccf5cca5cb05d5c1378a60ec35763e5ef5e9dbadaa2a276758a446e01d66e76a78e91442274778c10c73458b513af903e7221d90beb644afa9 WHIRLPOOL 97142a3a3c23d01f3b21963690f7362edf0c7f0de1ad77295361122a81c92459cb2ecd36baaea3588b7ad4f8b81c5dfa81d22df7a5529cb5b8b2b39fe6ce84be
+DIST luatex-beta-0.70.1.tar.bz2 8181155 SHA256 c641a4ba1535ede6ee8e2a958d8c4b436f5979c5be6f3f51d3dec5b4df6bb6ed SHA512 e04a9b96f349bf9036ef4c01746dee96ebf245cd4da6b719f546223e05cb98fb844e20878a64f80f42c77e220fac01ee2d97ad56939c1fb3af44faab53c603cb WHIRLPOOL 63dfdf182d3f1aadd6fc802e424b3791eda4df7eb8d707ad719d2ad0f97946b365316f6b9caed2362d5827280e9ddf2e750c8beeb61277dac72bffaed06a4fc9
+DIST luatex-beta-0.76.0-doc.tar.bz2 995143 SHA256 746b8e8092e017b8b2a32dd80981d0ff6731520f49f6b1caa60519c441809638 SHA512 cd64e1fea3f631c7c6e268d01285f96966325fd16971d8840eef178ccc11b001b40ae5cfcc6c7c3bb026a3f04c04a16b90813f0b6818383bb80686a89ea48596 WHIRLPOOL 215a8dec04a91805fe449ee99e8e210298124261258f8a92fb33850dc52695fc1215be3369de52fcb6a078baf52e1f812b4cac7d8611c3565f356d8a3f188c58
+DIST luatex-beta-0.76.0-source.tar.bz2 11748576 SHA256 71a96c927c9d9032e0126f0bc6c679191f0850a4611cd395de69e69a4d3b7716 SHA512 71ea789a95d419bf177f7f9f8d24d00a9d5639665feadac93cc30c86531e4942d29d848ef39ca3698de3efb1b8da9eb19890b1a06b45664641c7e47a79dd80b0 WHIRLPOOL abfa833b2d0457408d3a38a9229d7fd21d8380eb0743b574a318b6bea1d513e51c84367f5f773ef7c965517840735b43210d62c988bbbb6f7ec6293cdcc4e348
diff --git a/dev-tex/luatex/files/includes.patch b/dev-tex/luatex/files/includes.patch
new file mode 100644
index 00000000000..f93c7312b31
--- /dev/null
+++ b/dev-tex/luatex/files/includes.patch
@@ -0,0 +1,25 @@
+Index: source/texk/web2c/luatexdir/image/pdftoepdf.w
+===================================================================
+--- source.orig/texk/web2c/luatexdir/image/pdftoepdf.w
++++ source/texk/web2c/luatexdir/image/pdftoepdf.w
+@@ -26,6 +26,8 @@ static const char _svn_version[] =
+ // define DEBUG
+ #define __STDC_FORMAT_MACROS /* for PRId64 etc. */
+
++#include <stdint.h>
++#include <inttypes.h>
+ #include "image/epdf.h"
+
+ // This file is mostly C and not very much C++; it's just used to interface
+Index: source/texk/web2c/luatexdir/image/writejp2.w
+===================================================================
+--- source.orig/texk/web2c/luatexdir/image/writejp2.w
++++ source/texk/web2c/luatexdir/image/writejp2.w
+@@ -30,6 +30,7 @@ ISO/IEC 15444-1, Second edition, 2004-09
+ @c
+ #include <math.h>
+ #include <assert.h>
++#include <stdint.h>
+ #include "ptexlib.h"
+ #include "image/image.h"
+ #include "image/writejp2.h"
diff --git a/dev-tex/luatex/files/kpathsea2012.patch b/dev-tex/luatex/files/kpathsea2012.patch
new file mode 100644
index 00000000000..80c356d9de8
--- /dev/null
+++ b/dev-tex/luatex/files/kpathsea2012.patch
@@ -0,0 +1,28 @@
+From TeX Live svn rev 23421.
+Remove unnecessary headers. Fixes build with kpathsea from TeX Live 2012.
+
+
+Index: source/texk/web2c/luatexdir/luatex.c
+===================================================================
+--- source/texk/web2c/luatexdir/luatex.c (revision 23420)
++++ source/texk/web2c/luatexdir/luatex.c (revision 23421)
+@@ -32,7 +32,6 @@
+ #include <kpathsea/readable.h>
+ #include <kpathsea/variable.h>
+ #include <kpathsea/absolute.h>
+-#include <kpathsea/recorder.h>
+ #ifdef WIN32
+ #include <kpathsea/concatn.h>
+ #endif
+Index: source/texk/web2c/lib/texmfmp.c
+===================================================================
+--- source/texk/web2c/lib/texmfmp.c (revision 23420)
++++ source/texk/web2c/lib/texmfmp.c (revision 23421)
+@@ -17,7 +17,6 @@
+ #include <kpathsea/readable.h>
+ #include <kpathsea/variable.h>
+ #include <kpathsea/absolute.h>
+-#include <kpathsea/recorder.h>
+ #ifdef WIN32
+ #include <kpathsea/concatn.h>
+ #endif
diff --git a/dev-tex/luatex/files/poppler018.patch b/dev-tex/luatex/files/poppler018.patch
new file mode 100644
index 00000000000..d21253853db
--- /dev/null
+++ b/dev-tex/luatex/files/poppler018.patch
@@ -0,0 +1,160 @@
+by Martin von Gagern
+https://bugs.gentoo.org/show_bug.cgi?id=384875
+http://thread.gmane.org/gmane.comp.tex.luatex/2630
+
+--- luatex-beta-0.70.1/source/texk/web2c/luatexdir/lua/lepdflib.cc
++++ luatex-beta-0.70.1/source/texk/web2c/luatexdir/lua/lepdflib.cc
+@@ -89,7 +89,6 @@ new_poppler_userdata(AnnotBorder);
+ new_poppler_userdata(Annots);
+ new_poppler_userdata(Array);
+ new_poppler_userdata(Catalog);
+-new_poppler_userdata(EmbFile);
+ new_poppler_userdata(Dict);
+ //new_poppler_userdata(GooString);
+ new_poppler_userdata(LinkDest);
+@@ -393,7 +392,7 @@ static int m_Annot__gc(lua_State * L)
+ printf("\n===== Annot GC ===== uin=<%p>\n", uin);
+ #endif
+ if (uin->atype == ALLOC_LEPDF)
+- delete(Annot *) uin->d;
++ ((Annot *) uin->d)->decRefCnt();
+ return 0;
+ }
+
+@@ -408,34 +407,6 @@ static const struct luaL_Reg Annot_m[] =
+ };
+
+ //**********************************************************************
+-// AnnotBorderStyle
+-
+-m_poppler_get_DOUBLE(AnnotBorderStyle, getWidth);
+-
+-m_poppler__tostring(AnnotBorderStyle);
+-
+-static int m_Annots__gc(lua_State * L)
+-{
+- udstruct *uin;
+- uin = (udstruct *) luaL_checkudata(L, 1, M_Annots);
+- if (uin->pd != NULL && uin->pd->pc != uin->pc)
+- pdfdoc_changed_error(L);
+-#ifdef DEBUG
+- printf("\n===== Annots GC ===== uin=<%p>\n", uin);
+-#endif
+- if (uin->atype == ALLOC_LEPDF)
+- delete(Annots *) uin->d;
+- return 0;
+-}
+-
+-static const struct luaL_Reg AnnotBorderStyle_m[] = {
+- {"getWidth", m_AnnotBorderStyle_getWidth},
+- {"__tostring", m_AnnotBorderStyle__tostring},
+- {"__gc", m_Annots__gc},
+- {NULL, NULL} // sentinel
+-};
+-
+-//**********************************************************************
+ // Annots
+
+ m_poppler_get_INT(Annots, getNumAnnots);
+@@ -683,31 +654,6 @@ static int m_Catalog_findDest(lua_State
+
+ m_poppler_get_poppler(Catalog, Object, getDests);
+ m_poppler_get_INT(Catalog, numEmbeddedFiles);
+-
+-static int m_Catalog_embeddedFile(lua_State * L)
+-{
+- EmbFile *ef;
+- int i, len;
+- udstruct *uin, *uout;
+- uin = (udstruct *) luaL_checkudata(L, 1, M_Catalog);
+- if (uin->pd != NULL && uin->pd->pc != uin->pc)
+- pdfdoc_changed_error(L);
+- i = luaL_checkint(L, 2);
+- len = ((Catalog *) uin->d)->numEmbeddedFiles();
+- if (i > 0 && i <= len) {
+- ef = ((Catalog *) uin->d)->embeddedFile(i - 1);
+- if (ef != NULL) {
+- uout = new_EmbFile_userdata(L);
+- uout->d = ef;
+- uout->pc = uin->pc;
+- uout->pd = uin->pd;
+- } else
+- lua_pushnil(L);
+- } else
+- lua_pushnil(L);
+- return 1;
+-}
+-
+ m_poppler_get_INT(Catalog, numJS);
+
+ static int m_Catalog_getJS(lua_State * L)
+@@ -749,7 +695,6 @@ static const struct luaL_Reg Catalog_m[]
+ {"findDest", m_Catalog_findDest},
+ {"getDests", m_Catalog_getDests},
+ {"numEmbeddedFiles", m_Catalog_numEmbeddedFiles},
+- {"embeddedFile", m_Catalog_embeddedFile},
+ {"numJS", m_Catalog_numJS},
+ {"getJS", m_Catalog_getJS},
+ {"getOutline", m_Catalog_getOutline},
+@@ -759,49 +704,6 @@ static const struct luaL_Reg Catalog_m[]
+ };
+
+ //**********************************************************************
+-// EmbFile
+-
+-m_poppler_get_GOOSTRING(EmbFile, name);
+-m_poppler_get_GOOSTRING(EmbFile, description);
+-m_poppler_get_INT(EmbFile, size);
+-m_poppler_get_GOOSTRING(EmbFile, modDate);
+-m_poppler_get_GOOSTRING(EmbFile, createDate);
+-m_poppler_get_GOOSTRING(EmbFile, checksum);
+-m_poppler_get_GOOSTRING(EmbFile, mimeType);
+-
+-static int m_EmbFile_streamObject(lua_State * L)
+-{
+- udstruct *uin, *uout;
+- uin = (udstruct *) luaL_checkudata(L, 1, M_EmbFile);
+- if (uin->pd != NULL && uin->pd->pc != uin->pc)
+- pdfdoc_changed_error(L);
+- uout = new_Object_userdata(L);
+- uout->d = new Object(); // automatic init to type "none"
+- ((EmbFile *) uin->d)->streamObject().copy((Object *) uout->d);
+- uout->pc = uin->pc;
+- uout->pd = uin->pd;
+- return 1;
+-}
+-
+-m_poppler_get_BOOL(EmbFile, isOk);
+-
+-m_poppler__tostring(EmbFile);
+-
+-static const struct luaL_Reg EmbFile_m[] = {
+- {"name", m_EmbFile_name},
+- {"description", m_EmbFile_description},
+- {"size", m_EmbFile_size},
+- {"modDate", m_EmbFile_modDate},
+- {"createDate", m_EmbFile_createDate},
+- {"checksum", m_EmbFile_checksum},
+- {"mimeType", m_EmbFile_mimeType},
+- {"streamObject", m_EmbFile_streamObject},
+- {"isOk", m_EmbFile_isOk},
+- {"__tostring", m_EmbFile__tostring},
+- {NULL, NULL} // sentinel
+-};
+-
+-//**********************************************************************
+ // Dict
+
+ static int m_Dict_incRef(lua_State * L)
+@@ -2683,11 +2585,9 @@ int luaopen_epdf(lua_State * L)
+ {
+ register_meta(Annot);
+ // TODO register_meta(AnnotBorder);
+- register_meta(AnnotBorderStyle);
+ register_meta(Annots);
+ register_meta(Array);
+ register_meta(Catalog);
+- register_meta(EmbFile);
+ register_meta(Dict);
+ register_meta(GooString);
+ register_meta(LinkDest);
diff --git a/dev-tex/luatex/files/poppler020.patch b/dev-tex/luatex/files/poppler020.patch
new file mode 100644
index 00000000000..d3db830d343
--- /dev/null
+++ b/dev-tex/luatex/files/poppler020.patch
@@ -0,0 +1,75 @@
+https://bugs.gentoo.org/show_bug.cgi?id=416545
+build with poppler-0.20 by Rafał Mużyło
+
+--- source/texk/web2c/luatexdir/lua/lepdflib.cc 2012-05-18 16:23:53.000000000 +0200
++++ source/texk/web2c/luatexdir/lua/lepdflib.cc 2012-05-18 17:43:12.959843483 +0200
+@@ -151,7 +151,7 @@ static int l_new_Annot(lua_State * L)
+ pdfdoc_changed_error(L);
+ uout = new_Annot_userdata(L);
+ uout->d =
+- new Annot((XRef *) uxref->d, (Dict *) udict->d, (Catalog *) ucatalog->d,
++ new Annot(udict->pd->doc, (Dict *) udict->d,
+ (Object *) uref->d);
+ uout->atype = ALLOC_LEPDF;
+ uout->pc = uxref->pc;
+@@ -173,7 +173,7 @@ static int l_new_Annots(lua_State * L)
+ pdfdoc_changed_error(L);
+ uout = new_Annots_userdata(L);
+ uout->d =
+- new Annots((XRef *) uxref->d, (Catalog *) ucatalog->d,
++ new Annots(uannotsobj->pd->doc,
+ (Object *) uannotsobj->d);
+ uout->atype = ALLOC_LEPDF;
+ uout->pc = uxref->pc;
+@@ -363,7 +363,7 @@ static int m_##type##__tostring(lua_Stat
+ // Annot
+
+ m_poppler_get_BOOL(Annot, isOk);
+-m_poppler_get_OBJECT(Annot, getAppearance);
++m_poppler_get_OBJECT(Annot, getAppearanceResDict);
+ m_poppler_get_poppler(Annot, AnnotBorder, getBorder);
+
+ static int m_Annot_match(lua_State * L)
+@@ -398,7 +398,7 @@ static int m_Annot__gc(lua_State * L)
+
+ static const struct luaL_Reg Annot_m[] = {
+ {"isOk", m_Annot_isOk},
+- {"getAppearance", m_Annot_getAppearance},
++ {"getAppearanceResDict", m_Annot_getAppearanceResDict},
+ {"getBorder", m_Annot_getBorder},
+ {"match", m_Annot_match},
+ {"__tostring", m_Annot__tostring},
+@@ -1249,7 +1249,7 @@ static int m_Object_getType(lua_State *
+
+ static int m_Object_getTypeName(lua_State * L)
+ {
+- char *s;
++ const char *s;
+ udstruct *uin;
+ uin = (udstruct *) luaL_checkudata(L, 1, M_Object);
+ if (uin->pd != NULL && uin->pd->pc != uin->pc)
+@@ -1936,7 +1936,7 @@ static int m_Page_getLinks(lua_State * L
+ if ((uin->pd != NULL && uin->pd->pc != uin->pc)
+ || (ucat->pd != NULL && ucat->pd->pc != ucat->pd->pc))
+ pdfdoc_changed_error(L);
+- links = ((Page *) uin->d)->getLinks((Catalog *) ucat->d);
++ links = ((Page *) uin->d)->getLinks();
+ if (links != NULL) {
+ uout = new_Links_userdata(L);
+ uout->d = links;
+@@ -2531,7 +2531,6 @@ m_poppler_get_INT(XRef, getNumObjects);
+ m_poppler_get_INT(XRef, getRootNum);
+ m_poppler_get_INT(XRef, getRootGen);
+ // getStreamEnd
+-m_poppler_get_INT(XRef, getSize);
+ // getEntry
+ m_poppler_get_poppler(XRef, Object, getTrailerDict);
+
+@@ -2558,7 +2557,6 @@ static const struct luaL_Reg XRef_m[] =
+ {"getRootNum", m_XRef_getRootNum},
+ {"getRootGen", m_XRef_getRootGen},
+ //
+- {"getSize", m_XRef_getSize},
+ {"getTrailerDict", m_XRef_getTrailerDict},
+ {"__tostring", m_XRef__tostring},
+ {NULL, NULL} // sentinel
diff --git a/dev-tex/luatex/files/poppler022.patch b/dev-tex/luatex/files/poppler022.patch
new file mode 100644
index 00000000000..223cbcb2745
--- /dev/null
+++ b/dev-tex/luatex/files/poppler022.patch
@@ -0,0 +1,388 @@
+Patch updating lepdflib.cc to upstream revision 4415, which basically removes
+part of the exported interface and thereby circumvents the changes in
+poppler-0.20 -> 0.22. Experimental, rebased on our existing Gentoo patches
+poppler-0.18.patch and poppler-0.20.patch. Here to solve bug 449538.
+
+diff -ruN luatex-beta-0.70.1.gentoo/source/texk/web2c/luatexdir/lua/lepdflib.cc
+luatex-beta-0.70.1/source/texk/web2c/luatexdir/lua/lepdflib.cc
+--- luatex-beta-0.70.1.gentoo/source/texk/web2c/luatexdir/lua/lepdflib.cc 2013-03-10 13:31:22.000000000 +0100
++++ luatex-beta-0.70.1/source/texk/web2c/luatexdir/lua/lepdflib.cc 2013-03-10 13:47:24.000000000 +0100
+@@ -1,7 +1,7 @@
+ /* lepdflib.cc
+
+- Copyright 2009-2011 Taco Hoekwater <taco@luatex.org>
+- Copyright 2009-2011 Hartmut Henkel <hartmut@luatex.org>
++ Copyright 2009-2012 Taco Hoekwater <taco@luatex.org>
++ Copyright 2009-2012 Hartmut Henkel <hartmut@luatex.org>
+
+ This file is part of LuaTeX.
+
+@@ -49,15 +49,13 @@
+ //**********************************************************************
+
+ #define M_Annot "Annot"
+-#define M_AnnotBorder "AnnotBorder"
+-#define M_AnnotBorderStyle "AnnotBorderStyle"
+ #define M_Annots "Annots"
+ #define M_Array "Array"
+ #define M_Catalog "Catalog"
+-#define M_EmbFile "EmbFile"
+ #define M_Dict "Dict"
+ #define M_GooString "GooString"
+ #define M_LinkDest "LinkDest"
++#define M_Link "Link"
+ #define M_Links "Links"
+ #define M_Object "Object"
+ #define M_Page "Page"
+@@ -65,8 +63,8 @@
+ #define M_PDFRectangle "PDFRectangle"
+ #define M_Ref "Ref"
+ #define M_Stream "Stream"
+-#define M_XRef "XRef"
+ #define M_XRefEntry "XRefEntry"
++#define M_XRef "XRef"
+
+ //**********************************************************************
+
+@@ -84,13 +82,9 @@
+ new_poppler_userdata(PDFDoc);
+
+ new_poppler_userdata(Annot);
+-new_poppler_userdata(AnnotBorder);
+-//new_poppler_userdata(AnnotBorderStyle);
+-new_poppler_userdata(Annots);
+ new_poppler_userdata(Array);
+ new_poppler_userdata(Catalog);
+ new_poppler_userdata(Dict);
+-//new_poppler_userdata(GooString);
+ new_poppler_userdata(LinkDest);
+ new_poppler_userdata(Links);
+ new_poppler_userdata(Object);
+@@ -99,7 +93,6 @@
+ new_poppler_userdata(Ref);
+ new_poppler_userdata(Stream);
+ new_poppler_userdata(XRef);
+-//new_poppler_userdata(XRefEntry);
+
+ //**********************************************************************
+
+@@ -134,53 +127,6 @@
+ return 1; // doc path
+ }
+
+-static int l_new_Annot(lua_State * L)
+-{
+- udstruct *uxref, *udict, *ucatalog, *uref, *uout;
+- uxref = (udstruct *) luaL_checkudata(L, 1, M_XRef);
+- udict = (udstruct *) luaL_checkudata(L, 2, M_Dict);
+- ucatalog = (udstruct *) luaL_checkudata(L, 3, M_Catalog);
+- uref = (udstruct *) luaL_checkudata(L, 4, M_Ref);
+- if (uxref->pd != ucatalog->pd || uxref->pd != udict->pd
+- || uxref->pd != uref->pd)
+- pdfdoc_differs_error(L);
+- if ((uxref->pd != NULL && uxref->pd->pc != uxref->pc) ||
+- (ucatalog->pd != NULL && ucatalog->pd->pc != ucatalog->pc) ||
+- (udict->pd != NULL && udict->pd->pc != udict->pc) ||
+- (uref->pd != NULL && uref->pd->pc != uref->pc))
+- pdfdoc_changed_error(L);
+- uout = new_Annot_userdata(L);
+- uout->d =
+- new Annot(udict->pd->doc, (Dict *) udict->d,
+- (Object *) uref->d);
+- uout->atype = ALLOC_LEPDF;
+- uout->pc = uxref->pc;
+- uout->pd = uxref->pd;
+- return 1;
+-}
+-
+-static int l_new_Annots(lua_State * L)
+-{
+- udstruct *uxref, *ucatalog, *uannotsobj, *uout;
+- uxref = (udstruct *) luaL_checkudata(L, 1, M_XRef);
+- ucatalog = (udstruct *) luaL_checkudata(L, 2, M_Catalog);
+- uannotsobj = (udstruct *) luaL_checkudata(L, 3, M_Object);
+- if (uxref->pd != ucatalog->pd || uxref->pd != uannotsobj->pd)
+- pdfdoc_differs_error(L);
+- if ((uxref->pd != NULL && uxref->pd->pc != uxref->pc)
+- || (ucatalog->pd != NULL && ucatalog->pd->pc != ucatalog->pc)
+- || (uannotsobj->pd != NULL && uannotsobj->pd->pc != uannotsobj->pc))
+- pdfdoc_changed_error(L);
+- uout = new_Annots_userdata(L);
+- uout->d =
+- new Annots(uannotsobj->pd->doc,
+- (Object *) uannotsobj->d);
+- uout->atype = ALLOC_LEPDF;
+- uout->pc = uxref->pc;
+- uout->pd = uxref->pd;
+- return 1;
+-}
+-
+ static int l_new_Array(lua_State * L)
+ {
+ udstruct *uxref, *uout;
+@@ -235,8 +181,6 @@
+
+ static const struct luaL_Reg epdflib[] = {
+ {"open", l_open_PDFDoc},
+- {"Annot", l_new_Annot},
+- {"Annots", l_new_Annots},
+ {"Array", l_new_Array},
+ {"Dict", l_new_Dict},
+ {"Object", l_new_Object},
+@@ -359,12 +303,26 @@
+ return 1; \
+ }
+
++#define m_poppler_check_string(in, function) \
++static int m_##in##_##function(lua_State * L) \
++{ \
++ const char *s; \
++ udstruct *uin; \
++ uin = (udstruct *) luaL_checkudata(L, 1, M_##in); \
++ if (uin->pd != NULL && uin->pd->pc != uin->pc) \
++ pdfdoc_changed_error(L); \
++ s = luaL_checkstring(L, 2); \
++ if (((in *) uin->d)->function((char *) s)) \
++ lua_pushboolean(L, 1); \
++ else \
++ lua_pushboolean(L, 0); \
++ return 1; \
++}
++
+ //**********************************************************************
+ // Annot
+
+ m_poppler_get_BOOL(Annot, isOk);
+-m_poppler_get_OBJECT(Annot, getAppearanceResDict);
+-m_poppler_get_poppler(Annot, AnnotBorder, getBorder);
+
+ static int m_Annot_match(lua_State * L)
+ {
+@@ -398,8 +356,6 @@
+
+ static const struct luaL_Reg Annot_m[] = {
+ {"isOk", m_Annot_isOk},
+- {"getAppearanceResDict", m_Annot_getAppearanceResDict},
+- {"getBorder", m_Annot_getBorder},
+ {"match", m_Annot_match},
+ {"__tostring", m_Annot__tostring},
+ {"__gc", m_Annot__gc},
+@@ -654,6 +610,7 @@
+
+ m_poppler_get_poppler(Catalog, Object, getDests);
+ m_poppler_get_INT(Catalog, numEmbeddedFiles);
++
+ m_poppler_get_INT(Catalog, numJS);
+
+ static int m_Catalog_getJS(lua_State * L)
+@@ -770,20 +727,7 @@
+ return 0;
+ }
+
+-static int m_Dict_is(lua_State * L)
+-{
+- const char *s;
+- udstruct *uin;
+- uin = (udstruct *) luaL_checkudata(L, 1, M_Dict);
+- if (uin->pd != NULL && uin->pd->pc != uin->pc)
+- pdfdoc_changed_error(L);
+- s = luaL_checkstring(L, 2);
+- if (((Dict *) uin->d)->is((char *) s))
+- lua_pushboolean(L, 1);
+- else
+- lua_pushboolean(L, 0);
+- return 1;
+-}
++m_poppler_check_string(Dict, is);
+
+ static int m_Dict_lookup(lua_State * L)
+ {
+@@ -894,6 +838,8 @@
+ return 1;
+ }
+
++m_poppler_check_string(Dict, hasKey);
++
+ m_poppler__tostring(Dict);
+
+ static const struct luaL_Reg Dict_m[] = {
+@@ -910,6 +856,7 @@
+ {"getKey", m_Dict_getKey},
+ {"getVal", m_Dict_getVal},
+ {"getValNF", m_Dict_getValNF},
++ {"hasKey", m_Dict_hasKey},
+ {"__tostring", m_Dict__tostring},
+ {NULL, NULL} // sentinel
+ };
+@@ -1017,9 +964,13 @@
+ //**********************************************************************
+ // Links
+
++m_poppler_get_INT(Links, getNumLinks);
++
+ m_poppler__tostring(Links);
+
+ static const struct luaL_Reg Links_m[] = {
++ {"getNumLinks", m_Links_getNumLinks},
++ //{"getLink", m_Links_getLink},
+ {"__tostring", m_Links__tostring},
+ {NULL, NULL} // sentinel
+ };
+@@ -1925,28 +1876,6 @@
+ m_poppler_get_poppler(Page, Dict, getResourceDict);
+ m_poppler_get_OBJECT(Page, getAnnots);
+
+-static int m_Page_getLinks(lua_State * L)
+-{
+- Links *links;
+- udstruct *uin, *ucat, *uout;
+- uin = (udstruct *) luaL_checkudata(L, 1, M_Page);
+- ucat = (udstruct *) luaL_checkudata(L, 2, M_Catalog);
+- if (uin->pd != NULL && ucat->pd != NULL && uin->pd != ucat->pd)
+- pdfdoc_differs_error(L);
+- if ((uin->pd != NULL && uin->pd->pc != uin->pc)
+- || (ucat->pd != NULL && ucat->pd->pc != ucat->pd->pc))
+- pdfdoc_changed_error(L);
+- links = ((Page *) uin->d)->getLinks();
+- if (links != NULL) {
+- uout = new_Links_userdata(L);
+- uout->d = links;
+- uout->pc = uin->pc;
+- uout->pd = uin->pd;
+- } else
+- lua_pushnil(L);
+- return 1;
+-}
+-
+ m_poppler_get_OBJECT(Page, getContents);
+
+ m_poppler__tostring(Page);
+@@ -1973,7 +1902,6 @@
+ {"getSeparationInfo", m_Page_getSeparationInfo},
+ {"getResourceDict", m_Page_getResourceDict},
+ {"getAnnots", m_Page_getAnnots},
+- {"getLinks", m_Page_getLinks},
+ {"getContents", m_Page_getContents},
+ {"__tostring", m_Page__tostring},
+ {NULL, NULL} // sentinel
+@@ -2158,19 +2086,23 @@
+
+ static int m_PDFDoc_getLinks(lua_State * L)
+ {
+- int i;
++ int i, pages;
+ Links *links;
+ udstruct *uin, *uout;
+ uin = (udstruct *) luaL_checkudata(L, 1, M_PDFDoc);
+ if (uin->pd != NULL && uin->pd->pc != uin->pc)
+ pdfdoc_changed_error(L);
+ i = luaL_checkint(L, 2);
+- links = ((PdfDocument *) uin->d)->doc->getLinks(i);
+- if (links != NULL) {
+- uout = new_Links_userdata(L);
+- uout->d = links;
+- uout->pc = uin->pc;
+- uout->pd = uin->pd;
++ pages = ((PdfDocument *) uin->d)->doc->getNumPages();
++ if (i > 0 && i <= pages) {
++ links = ((PdfDocument *) uin->d)->doc->getLinks(i);
++ if (links != NULL) {
++ uout = new_Links_userdata(L);
++ uout->d = links;
++ uout->pc = uin->pc;
++ uout->pd = uin->pd;
++ } else
++ lua_pushnil(L);
+ } else
+ lua_pushnil(L);
+ return 1;
+@@ -2249,6 +2181,8 @@
+ m_PDFDoc_INT(getPDFMajorVersion);
+ m_PDFDoc_INT(getPDFMinorVersion);
+
++m_poppler__tostring(PDFDoc);
++
+ static int m_PDFDoc__gc(lua_State * L)
+ {
+ udstruct *uin;
+@@ -2292,6 +2226,7 @@
+ {"getDocInfoNF", m_PDFDoc_getDocInfoNF},
+ {"getPDFMajorVersion", m_PDFDoc_getPDFMajorVersion},
+ {"getPDFMinorVersion", m_PDFDoc_getPDFMinorVersion},
++ {"__tostring", m_PDFDoc__tostring},
+ {"__gc", m_PDFDoc__gc}, // finalizer
+ {NULL, NULL} // sentinel
+ };
+@@ -2437,11 +2372,6 @@
+ "Flate", "JBIG2", "JPX", "Weird", NULL
+ };
+
+-#if 0
+-static const char *StreamColorSpaceModeNames[] =
+- { "CSNone", "CSDeviceGray", "CSDeviceRGB", "CSDeviceCMYK", NULL };
+-#endif
+-
+ m_poppler_get_INT(Stream, getKind);
+
+ static int m_Stream_getKindName(lua_State * L)
+@@ -2527,11 +2457,26 @@
+ m_poppler_get_OBJECT(XRef, getDocInfo);
+ m_poppler_get_OBJECT(XRef, getDocInfoNF);
+ m_poppler_get_INT(XRef, getNumObjects);
+-// getLastXRefPos
+ m_poppler_get_INT(XRef, getRootNum);
+ m_poppler_get_INT(XRef, getRootGen);
+ // getStreamEnd
+-// getEntry
++
++static int m_XRef_getNumEntry(lua_State * L)
++{
++ int i, offset;
++ udstruct *uin;
++ uin = (udstruct *) luaL_checkudata(L, 1, M_XRef);
++ if (uin->pd != NULL && uin->pd->pc != uin->pc)
++ pdfdoc_changed_error(L);
++ offset = luaL_checkint(L, 2);
++ i = ((XRef *) uin->d)->getNumEntry(offset);
++ if (i >= 0)
++ lua_pushinteger(L, i);
++ else
++ lua_pushnil(L);
++ return 1;
++}
++
+ m_poppler_get_poppler(XRef, Object, getTrailerDict);
+
+ m_poppler__tostring(XRef);
+@@ -2553,10 +2498,10 @@
+ {"getDocInfo", m_XRef_getDocInfo},
+ {"getDocInfoNF", m_XRef_getDocInfoNF},
+ {"getNumObjects", m_XRef_getNumObjects},
+- //
+ {"getRootNum", m_XRef_getRootNum},
+ {"getRootGen", m_XRef_getRootGen},
+- //
++ // {"getStreamEnd", m_XRef_getStreamEnd},
++ {"getNumEntry", m_XRef_getNumEntry},
+ {"getTrailerDict", m_XRef_getTrailerDict},
+ {"__tostring", m_XRef__tostring},
+ {NULL, NULL} // sentinel
+@@ -2565,7 +2510,10 @@
+ //**********************************************************************
+ // XRefEntry
+
++m_poppler__tostring(XRefEntry);
++
+ static const struct luaL_Reg XRefEntry_m[] = {
++ {"__tostring", m_XRefEntry__tostring},
+ {NULL, NULL} // sentinel
+ };
+
+@@ -2582,7 +2530,6 @@
+ int luaopen_epdf(lua_State * L)
+ {
+ register_meta(Annot);
+- // TODO register_meta(AnnotBorder);
+ register_meta(Annots);
+ register_meta(Array);
+ register_meta(Catalog);
diff --git a/dev-tex/luatex/files/poppler026-backport.patch b/dev-tex/luatex/files/poppler026-backport.patch
new file mode 100644
index 00000000000..ee151a30b47
--- /dev/null
+++ b/dev-tex/luatex/files/poppler026-backport.patch
@@ -0,0 +1,99 @@
+diff -ruN luatex-beta-0.70.1.patched.orig/source/texk/web2c/luatexdir/image/epdf.h luatex-beta-0.70.1.patched/source/texk/web2c/luatexdir/image/epdf.h
+--- luatex-beta-0.70.1.patched.orig/source/texk/web2c/luatexdir/image/epdf.h 2011-05-19 07:38:37.000000000 +0200
++++ luatex-beta-0.70.1.patched/source/texk/web2c/luatexdir/image/epdf.h 2014-10-11 12:17:00.028331243 +0200
+@@ -33,6 +33,7 @@
+ # include <sys/stat.h>
+ # include <dirent.h>
+ # include <poppler-config.h>
++# include <StructTreeRoot.h>
+ # include <goo/GooString.h>
+ # include <goo/gmem.h>
+ # include <goo/gfile.h>
+diff -ruN luatex-beta-0.70.1.patched.orig/source/texk/web2c/luatexdir/lua/lepdflib.cc luatex-beta-0.70.1.patched/source/texk/web2c/luatexdir/lua/lepdflib.cc
+--- luatex-beta-0.70.1.patched.orig/source/texk/web2c/luatexdir/lua/lepdflib.cc 2014-10-11 12:24:52.509357663 +0200
++++ luatex-beta-0.70.1.patched/source/texk/web2c/luatexdir/lua/lepdflib.cc 2014-10-11 12:42:03.665415321 +0200
+@@ -48,23 +48,24 @@
+
+ //**********************************************************************
+
+-#define M_Annot "Annot"
+-#define M_Annots "Annots"
+-#define M_Array "Array"
+-#define M_Catalog "Catalog"
+-#define M_Dict "Dict"
+-#define M_GooString "GooString"
+-#define M_LinkDest "LinkDest"
+-#define M_Link "Link"
+-#define M_Links "Links"
+-#define M_Object "Object"
+-#define M_Page "Page"
+-#define M_PDFDoc "PDFDoc"
+-#define M_PDFRectangle "PDFRectangle"
+-#define M_Ref "Ref"
+-#define M_Stream "Stream"
+-#define M_XRefEntry "XRefEntry"
+-#define M_XRef "XRef"
++#define M_Annot "epdf.Annot" /* ls-hh: epdf.* gives better protection in registry */
++#define M_Annots "epdf.Annots"
++#define M_Array "epdf.Array"
++#define M_Catalog "epdf.Catalog"
++#define M_Dict "epdf.Dict"
++#define M_GooString "epdf.GooString"
++#define M_LinkDest "epdf.LinkDest"
++#define M_Link "epdf.Link"
++#define M_Links "epdf.Links"
++#define M_Object "epdf.Object"
++#define M_Page "epdf.Page"
++#define M_PDFDoc "epdf.PDFDoc"
++#define M_PDFRectangle "epdf.PDFRectangle"
++#define M_Ref "epdf.Ref"
++#define M_Stream "epdf.Stream"
++#define M_StructTreeRoot "epdf.StructTreeRoot"
++#define M_XRef "epdf.XRef"
++#define M_XRefEntry "epdf.XRefEntry"
+
+ //**********************************************************************
+
+@@ -92,6 +93,7 @@
+ new_poppler_userdata(PDFRectangle);
+ new_poppler_userdata(Ref);
+ new_poppler_userdata(Stream);
++new_poppler_userdata(StructTreeRoot);
+ new_poppler_userdata(XRef);
+
+ //**********************************************************************
+@@ -565,7 +567,11 @@
+
+ m_poppler_get_GOOSTRING(Catalog, getBaseURI);
+ m_poppler_get_GOOSTRING(Catalog, readMetadata);
++#ifdef GETSTRUCTTREEROOT_RETURNS_OBJECT
+ m_poppler_get_poppler(Catalog, Object, getStructTreeRoot);
++#else
++m_poppler_get_poppler(Catalog, StructTreeRoot, getStructTreeRoot);
++#endif
+
+ static int m_Catalog_findPage(lua_State * L)
+ {
+@@ -2048,14 +2054,22 @@
+
+ static int m_PDFDoc_getStructTreeRoot(lua_State * L)
+ {
++#ifdef GETSTRUCTTREEROOT_RETURNS_OBJECT
+ Object *obj;
++#else
++ StructTreeRoot *obj;
++#endif
+ udstruct *uin, *uout;
+ uin = (udstruct *) luaL_checkudata(L, 1, M_PDFDoc);
+ if (uin->pd != NULL && uin->pd->pc != uin->pc)
+ pdfdoc_changed_error(L);
+ if (((PdfDocument *) uin->d)->doc->getCatalog()->isOk()) {
+ obj = ((PdfDocument *) uin->d)->doc->getStructTreeRoot();
++#ifdef GETSTRUCTTREEROOT_RETURNS_OBJECT
+ uout = new_Object_userdata(L);
++#else
++ uout = new_StructTreeRoot_userdata(L);
++#endif
+ uout->d = obj;
+ uout->pc = uin->pc;
+ uout->pd = uin->pd;
diff --git a/dev-tex/luatex/files/poppler026.patch b/dev-tex/luatex/files/poppler026.patch
new file mode 100644
index 00000000000..f7b5ba35b48
--- /dev/null
+++ b/dev-tex/luatex/files/poppler026.patch
@@ -0,0 +1,143 @@
+Source: NetBSD CVS
+http://mail-index.netbsd.org/pkgsrc-bugs/2014/04/29/msg053974.html
+http://cvsweb.de.netbsd.org/cgi-bin/cvsweb.cgi/pkgsrc/print/luatex/patches/
+
+
+diff -ruN luatex-beta-0.76.0.orig/source/texk/web2c/luatexdir/image/epdf.h luatex-beta-0.76.0/source/texk/web2c/luatexdir/image/epdf.h
+--- luatex-beta-0.76.0.orig/source/texk/web2c/luatexdir/image/epdf.h 2013-04-05 12:58:37.000000000 +0200
++++ luatex-beta-0.76.0/source/texk/web2c/luatexdir/image/epdf.h 2014-05-01 01:39:39.838462783 +0200
+@@ -37,6 +37,7 @@
+ # include <sys/stat.h>
+ # include <dirent.h>
+ # include <poppler-config.h>
++# include <StructTreeRoot.h>
+ # include <goo/GooString.h>
+ # include <goo/gmem.h>
+ # include <goo/gfile.h>
+diff -ruN luatex-beta-0.76.0.orig/source/texk/web2c/luatexdir/lua/lepdflib.cc luatex-beta-0.76.0/source/texk/web2c/luatexdir/lua/lepdflib.cc
+--- luatex-beta-0.76.0.orig/source/texk/web2c/luatexdir/lua/lepdflib.cc 2013-04-05 12:58:37.000000000 +0200
++++ luatex-beta-0.76.0/source/texk/web2c/luatexdir/lua/lepdflib.cc 2014-05-01 01:40:15.698461067 +0200
+@@ -48,25 +48,26 @@
+
+ //**********************************************************************
+
+-#define M_Annot "Annot"
+-#define M_Annots "Annots"
+-#define M_Array "Array"
+-#define M_Catalog "Catalog"
+-#define M_Dict "Dict"
+-#define M_EmbFile "EmbFile"
+-#define M_FileSpec "FileSpec"
+-#define M_GooString "GooString"
+-#define M_LinkDest "LinkDest"
+-#define M_Link "Link"
+-#define M_Links "Links"
+-#define M_Object "Object"
+-#define M_Page "Page"
+-#define M_PDFDoc "PDFDoc"
+-#define M_PDFRectangle "PDFRectangle"
+-#define M_Ref "Ref"
+-#define M_Stream "Stream"
+-#define M_XRefEntry "XRefEntry"
+-#define M_XRef "XRef"
++#define M_Annot "epdf.Annot" /* ls-hh: epdf.* gives better protection in registry */
++#define M_Annots "epdf.Annots"
++#define M_Array "epdf.Array"
++#define M_Catalog "epdf.Catalog"
++#define M_Dict "epdf.Dict"
++#define M_EmbFile "epdf.EmbFile"
++#define M_FileSpec "epdf.FileSpec"
++#define M_GooString "epdf.GooString"
++#define M_LinkDest "epdf.LinkDest"
++#define M_Link "epdf.Link"
++#define M_Links "epdf.Links"
++#define M_Object "epdf.Object"
++#define M_Page "epdf.Page"
++#define M_PDFDoc "epdf.PDFDoc"
++#define M_PDFRectangle "epdf.PDFRectangle"
++#define M_Ref "epdf.Ref"
++#define M_Stream "epdf.Stream"
++#define M_StructTreeRoot "epdf.StructTreeRoot"
++#define M_XRefEntry "epdf.XRefEntry"
++#define M_XRef "epdf.XRef"
+
+ //**********************************************************************
+
+@@ -96,6 +97,7 @@
+ new_poppler_userdata(PDFRectangle);
+ new_poppler_userdata(Ref);
+ new_poppler_userdata(Stream);
++new_poppler_userdata(StructTreeRoot);
+ new_poppler_userdata(XRef);
+
+ //**********************************************************************
+@@ -573,7 +575,11 @@
+
+ m_poppler_get_GOOSTRING(Catalog, getBaseURI);
+ m_poppler_get_GOOSTRING(Catalog, readMetadata);
++#ifdef GETSTRUCTTREEROOT_RETURNS_OBJECT
+ m_poppler_get_poppler(Catalog, Object, getStructTreeRoot);
++#else
++m_poppler_get_poppler(Catalog, StructTreeRoot, getStructTreeRoot);
++#endif
+
+ static int m_Catalog_findPage(lua_State * L)
+ {
+@@ -2146,14 +2152,22 @@
+
+ static int m_PDFDoc_getStructTreeRoot(lua_State * L)
+ {
++#ifdef GETSTRUCTTREEROOT_RETURNS_OBJECT
+ Object *obj;
++#else
++ StructTreeRoot *obj;
++#endif
+ udstruct *uin, *uout;
+ uin = (udstruct *) luaL_checkudata(L, 1, M_PDFDoc);
+ if (uin->pd != NULL && uin->pd->pc != uin->pc)
+ pdfdoc_changed_error(L);
+ if (((PdfDocument *) uin->d)->doc->getCatalog()->isOk()) {
+ obj = ((PdfDocument *) uin->d)->doc->getStructTreeRoot();
++#ifdef GETSTRUCTTREEROOT_RETURNS_OBJECT
+ uout = new_Object_userdata(L);
++#else
++ uout = new_StructTreeRoot_userdata(L);
++#endif
+ uout->d = obj;
+ uout->pc = uin->pc;
+ uout->pd = uin->pd;
+@@ -2617,6 +2631,15 @@
+
+ //**********************************************************************
+
++#ifdef LuajitTeX
++#define setfuncs_meta(type) \
++ luaL_newmetatable(L, M_##type); \
++ lua_pushvalue(L, -1); \
++ lua_setfield(L, -2, "__index"); \
++ lua_pushstring(L, "no user access"); \
++ lua_setfield(L, -2, "__metatable"); \
++ luaL_register(L, NULL, type##_m)
++#else
+ #define setfuncs_meta(type) \
+ luaL_newmetatable(L, M_##type); \
+ lua_pushvalue(L, -1); \
+@@ -2624,6 +2647,7 @@
+ lua_pushstring(L, "no user access"); \
+ lua_setfield(L, -2, "__metatable"); \
+ luaL_setfuncs(L, type##_m, 0)
++#endif
+
+ int luaopen_epdf(lua_State * L)
+ {
+@@ -2646,6 +2670,10 @@
+ setfuncs_meta(XRef);
+ setfuncs_meta(XRefEntry);
+
++#ifdef LuajitTeX
++ luaL_register(L, "epdf", epdflib_f);
++#else
+ luaL_newlib(L, epdflib_f);
++#endif
+ return 1;
+ }
diff --git a/dev-tex/luatex/files/remove-zlib-version-check.patch b/dev-tex/luatex/files/remove-zlib-version-check.patch
new file mode 100644
index 00000000000..98508501251
--- /dev/null
+++ b/dev-tex/luatex/files/remove-zlib-version-check.patch
@@ -0,0 +1,23 @@
+Let soname dictate the ABI and do not check for minor/micro which requires
+needless rebuilds after every zlib update. By Ulrich Müller.
+
+https://bugs.gentoo.org/show_bug.cgi?id=310487
+http://www.ntg.nl/pipermail/dev-luatex/2012-July/004534.html
+
+--- luatex-beta-0.70.1-orig/source/texk/web2c/luatexdir/luazlib/lzlib.c
++++ luatex-beta-0.70.1/source/texk/web2c/luatexdir/luazlib/lzlib.c
+@@ -549,14 +549,6 @@
+
+ /* ====================================================================== */
+
+- /* make sure header and library version are consistent */
+- const char* version = zlibVersion();
+- if (strncmp(version, ZLIB_VERSION, 5))
+- {
+- lua_pushfstring(L, "zlib library version does not match - header: %s, library: %s", ZLIB_VERSION, version);
+- lua_error(L);
+- }
+-
+ /* create new metatable for zlib compression structures */
+ luaL_newmetatable(L, ZSTREAMMETA);
+ lua_pushliteral(L, "__index");
diff --git a/dev-tex/luatex/luatex-0.70.1-r2.ebuild b/dev-tex/luatex/luatex-0.70.1-r2.ebuild
new file mode 100644
index 00000000000..3b5cbe5e919
--- /dev/null
+++ b/dev-tex/luatex/luatex-0.70.1-r2.ebuild
@@ -0,0 +1,121 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit libtool eutils texlive-common
+
+DESCRIPTION="An extended version of pdfTeX using Lua as an embedded scripting language"
+HOMEPAGE="http://www.luatex.org/"
+SRC_URI="http://foundry.supelec.fr/gf/download/frsrelease/392/1730/${PN}-beta-${PV}.tar.bz2
+ http://foundry.supelec.fr/gf/download/frsrelease/392/1732/${PN}-beta-${PV}-doc.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE="doc"
+
+RDEPEND="dev-libs/zziplib
+ >=media-libs/libpng-1.4
+ app-text/poppler:=[xpdf-headers(+)]
+ sys-libs/zlib
+ >=dev-libs/kpathsea-6.0.1_p20110627"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+S="${WORKDIR}/${PN}-beta-${PV}/source"
+PRELIBS="libs/obsdcompat"
+#texk/kpathsea"
+#kpathsea_extraconf="--disable-shared --disable-largefile"
+
+src_prepare() {
+ has_version '>=app-text/poppler-0.18.0:0' && epatch "${FILESDIR}/poppler018.patch"
+ has_version '>=app-text/poppler-0.20.0:0' && epatch "${FILESDIR}/poppler020.patch"
+ has_version '>=app-text/poppler-0.22.0:0' && epatch "${FILESDIR}/poppler022.patch"
+ has_version '>=app-text/poppler-0.26.0:0' && epatch "${FILESDIR}/poppler026-backport.patch"
+ epatch "${FILESDIR}/kpathsea2012.patch" \
+ "${FILESDIR}/remove-zlib-version-check.patch"
+ S="${S}/build-aux" elibtoolize --shallow
+}
+
+src_configure() {
+ # Too many regexps use A-Z a-z constructs, what causes problems with locales
+ # that don't have the same alphabetical order than ascii. Bug #244619
+ # So we set LC_ALL to C in order to avoid problems.
+ export LC_ALL=C
+
+ local myconf
+ myconf=""
+ #has_version '>=app-text/texlive-core-2009' && myconf="--with-system-kpathsea"
+
+ cd "${S}/texk/web2c"
+ econf \
+ --disable-cxx-runtime-hack \
+ --disable-all-pkgs \
+ --disable-mp \
+ --disable-ptex \
+ --disable-tex \
+ --disable-mf \
+ --disable-largefile \
+ --disable-ipc \
+ --disable-shared \
+ --enable-luatex \
+ --enable-dump-share \
+ --without-mf-x-toolkit \
+ --without-x \
+ --with-system-kpathsea \
+ --with-kpathsea-includes="${EPREFIX}"/usr/include \
+ --with-system-gd \
+ --with-system-libpng \
+ --with-system-teckit \
+ --with-system-zlib \
+ --with-system-t1lib \
+ --with-system-xpdf \
+ --with-system-poppler \
+ --with-system-zziplib \
+ --disable-multiplatform
+
+ for i in ${PRELIBS} ; do
+ einfo "Configuring $i"
+ local j=$(basename $i)_extraconf
+ local myconf
+ eval myconf=\${$j}
+ cd "${S}/${i}"
+ econf ${myconf}
+ done
+}
+
+src_compile() {
+ texk/web2c/luatexdir/getluatexsvnversion.sh || die
+ for i in ${PRELIBS} ; do
+ cd "${S}/${i}"
+ emake || die "failed to build ${i}"
+ done
+ cd "${WORKDIR}/${PN}-beta-${PV}/source/texk/web2c"
+ emake luatex || die "failed to build luatex"
+}
+
+src_install() {
+ cd "${WORKDIR}/${PN}-beta-${PV}/source/texk/web2c"
+ emake DESTDIR="${D}" bin_PROGRAMS="luatex" SUBDIRS="" nodist_man_MANS="" \
+ install-exec-am || die
+
+ dodoc "${WORKDIR}/${PN}-beta-${PV}/README" || die
+ doman "${WORKDIR}/texmf/doc/man/man1/"*.1 || die
+ if use doc ; then
+ dodoc "${WORKDIR}/${PN}-beta-${PV}/manual/"*.pdf || die
+ dodoc "${WORKDIR}/texmf/doc/man/man1/"*.pdf || die
+ fi
+}
+
+pkg_postinst() {
+ if ! has_version '>=dev-texlive/texlive-basic-2008' ; then
+ elog "Note that this package does not install many files, mainly just the"
+ elog "${PN} executable, which needs other files in order to be"
+ elog "useful. Please consider installing a recent TeX distribution such as"
+ elog "TeX Live 2008 or later to take advantage of the full power of"
+ elog "${PN} ."
+ fi
+ efmtutil-sys
+}
diff --git a/dev-tex/luatex/luatex-0.76.0.ebuild b/dev-tex/luatex/luatex-0.76.0.ebuild
new file mode 100644
index 00000000000..81c3919f3c0
--- /dev/null
+++ b/dev-tex/luatex/luatex-0.76.0.ebuild
@@ -0,0 +1,104 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit libtool eutils texlive-common
+
+MY_P=${PN}-beta-${PV}
+DESCRIPTION="An extended version of pdfTeX using Lua as an embedded scripting language"
+HOMEPAGE="http://www.luatex.org/"
+SRC_URI="
+ http://foundry.supelec.fr/frs/download.php/file/15745/${MY_P}-source.tar.bz2
+ http://foundry.supelec.fr/frs/download.php/file/15747/${MY_P}-doc.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE="doc"
+
+RDEPEND="dev-libs/zziplib
+ >=media-libs/libpng-1.4:0=
+ >=x11-libs/cairo-1.12
+ >x11-libs/pixman-0.18
+ app-text/poppler:=[xpdf-headers(+)]
+ sys-libs/zlib
+ >=dev-libs/kpathsea-6.1.0_p20120701"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+S="${WORKDIR}/${MY_P}/source"
+
+src_prepare() {
+ has_version '>=app-text/poppler-0.26.0:0' && epatch "${FILESDIR}/poppler026.patch"
+ epatch "${FILESDIR}/remove-zlib-version-check.patch" \
+ "${FILESDIR}/includes.patch"
+ S="${S}/build-aux" elibtoolize --shallow
+}
+
+src_configure() {
+ # Too many regexps use A-Z a-z constructs, what causes problems with locales
+ # that don't have the same alphabetical order than ascii. Bug #244619
+ # So we set LC_ALL to C in order to avoid problems.
+ export LC_ALL=C
+
+ cd "${S}/texk/web2c"
+ econf \
+ --disable-cxx-runtime-hack \
+ --disable-all-pkgs \
+ --disable-mp \
+ --disable-ptex \
+ --disable-tex \
+ --disable-mf \
+ --disable-largefile \
+ --disable-ipc \
+ --disable-shared \
+ --enable-luatex \
+ --enable-dump-share \
+ --without-mf-x-toolkit \
+ --without-x \
+ --with-system-kpathsea \
+ --with-kpathsea-includes="${EPREFIX}"/usr/include \
+ --with-system-cairo \
+ --with-system-pixman \
+ --with-system-gd \
+ --with-system-libpng \
+ --with-system-teckit \
+ --with-system-zlib \
+ --with-system-t1lib \
+ --with-system-xpdf \
+ --with-system-poppler \
+ --with-system-zziplib \
+ --with-system-ptexenc \
+ --disable-multiplatform
+}
+
+src_compile() {
+ texk/web2c/luatexdir/getluatexsvnversion.sh || die
+ cd "${WORKDIR}/${MY_P}/source/texk/web2c"
+ emake luatex
+}
+
+src_install() {
+ cd "${WORKDIR}/${MY_P}/source/texk/web2c"
+ emake DESTDIR="${D}" bin_PROGRAMS="luatex" SUBDIRS="" nodist_man_MANS="" \
+ install-exec-am
+
+ dodoc "${WORKDIR}/${MY_P}/README" luatexdir/NEWS
+ cp source/texk/web2c/man
+ cp man/luatex.man "${T}/luatex.1"
+ doman "${T}/luatex.1"
+ use doc && dodoc "${WORKDIR}/${MY_P}/manual/"*.pdf
+}
+
+pkg_postinst() {
+ if ! has_version '>=dev-texlive/texlive-basic-2008' ; then
+ elog "Note that this package does not install many files, mainly just the"
+ elog "${PN} executable, which needs other files in order to be"
+ elog "useful. Please consider installing a recent TeX distribution such as"
+ elog "TeX Live 2008 or later to take advantage of the full power of"
+ elog "${PN} ."
+ fi
+ efmtutil-sys
+}
diff --git a/dev-tex/luatex/metadata.xml b/dev-tex/luatex/metadata.xml
new file mode 100644
index 00000000000..1d2fc95bdaa
--- /dev/null
+++ b/dev-tex/luatex/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>tex</herd>
+<longdescription lang="en">
+An experimental pdfTeX extension that is to eventually
+become its successor. It is developed by a subset of the
+current pdfTeX team.
+</longdescription>
+</pkgmetadata>
diff --git a/dev-tex/metadata.xml b/dev-tex/metadata.xml
new file mode 100644
index 00000000000..d8460974704
--- /dev/null
+++ b/dev-tex/metadata.xml
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE catmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<catmetadata>
+ <longdescription lang="en">
+ The dev-tex category contains libraries and tools useful when working
+ with TeX and TeX-based environments such as LaTeX.
+ </longdescription>
+ <longdescription lang="de">
+ Die Kategorie dev-tex enthält Bibliotheken und Werkzeuge für TeX und
+ TeX-basierte Umgebungen wie beispielsweise LaTeX.
+ </longdescription>
+ <longdescription lang="es">
+ La categoría dev-tex contiene librerias y herramientas útiles para
+ trabajar con TeX y ambientes basados en TeX como LaTeX.
+ </longdescription>
+ <longdescription lang="ja">
+ dev-texカテゴリーにはTeXやLaTeXの様なTeXを基礎にした環境下での作業に
+ 便利なライブラリーとツールが含まれます。
+ </longdescription>
+ <longdescription lang="nl">
+ De dev-tex categorie bevat bibliotheken en hulpmiddelen voor het werken met
+ TeX en op TeX gebaseerde omgevingen zoals LaTeX.
+ </longdescription>
+ <longdescription lang="vi">
+ Nhóm dev-tex chứa các thư viện và tiện ích liên quan
+ đến ngôn ngữ lập trình TeX và các môi trường dựa trên
+ TeX như LaTeX.
+ </longdescription>
+ <longdescription lang="it">
+ La categoria dev-tex contiene librerie e utilità utili in ambiente TeX e LaTeX.
+ </longdescription>
+ <longdescription lang="pt">
+ A categoria dev-tex contém bibliotecas e ferramentas úteis para
+ trabalhar com TeX e ambientes baseados em TeX como LaTeX.
+ </longdescription>
+ <longdescription lang="pl">
+ Kategoria dev-tex zawiera biblioteki i narzędzia przydatne w pracy z
+ TeX-em i środowiskami na nim opartymi, takimi jak np. LaTeX.
+ </longdescription>
+</catmetadata>
+
diff --git a/dev-tex/metapost/Manifest b/dev-tex/metapost/Manifest
new file mode 100644
index 00000000000..50d94eb9938
--- /dev/null
+++ b/dev-tex/metapost/Manifest
@@ -0,0 +1,3 @@
+DIST metapost-1.780-src.tar.bz2 7723409 SHA256 aca382bb1c6b4f52d389c0170cad57c4961fa8de634de34ea47b0a37cfabde58 SHA512 3002da0706fcd33a2d183f42b770b7c2d72759a8ba0e49ae24e4a5cee5dd9cd0842e7e8d854e22962beaff4dfd1b943a63f41ee07a7743bb7d50a0cdfb4dd4ff WHIRLPOOL 3095ac3cda9bd65487074882c6cc9d8bf2210d04b69ed741290054f1622a5c29ce9af986cc5b819b910db2757eb14565e1ce9a1968a2f29ae72bca50ce2c90d1
+DIST metapost-1.803-src.tar.bz2 8140579 SHA256 436c57c8f8753b6829a1df575cbc3af553b6df42c51abd5c420117ad4c6cdeb3 SHA512 7f59e93f73c9f9c6fe547028dd22527c948ea171c235758e1acf9477c85d2fb2cc145b3bd707646a4b5317e57ce5d49160ff347cdecca599b6e0da8a8f679d99 WHIRLPOOL cc999052d994f8d1c21c1a843696097cca10ae4fd794a761a916618021dc9e1dd300305c220b30da8de1f2a8b7c35a91dfc22da8666d366e01948d0e34edfdb3
+DIST metapost-1.902-src.tar.bz2 6170876 SHA256 3e26ec212e0cbd29c6c38985026c8c229df6432c7066f2c7e9c1fbec1f0dda9d SHA512 d1e38d9f6f16b6815999c1d05b70ece50668962660af0800c105075522a2d943156986aa8df76d7bd2b6d04f657295c15a04a6e67772ce1d8546b885c355aea3 WHIRLPOOL 0f15cfe404cf42e534111fa88832e7ed62d59b68f14bd18961f8fa55ede9ad4c0debb4acae22af2fda780b72e0812e4f2285435dec299d17a18604aa30ac1b9f
diff --git a/dev-tex/metapost/files/invocname.patch b/dev-tex/metapost/files/invocname.patch
new file mode 100644
index 00000000000..f269957c2b2
--- /dev/null
+++ b/dev-tex/metapost/files/invocname.patch
@@ -0,0 +1,13 @@
+Index: source/texk/web2c/lib/setupvar.c
+===================================================================
+--- source/texk/web2c/lib/setupvar.c (revision 21623)
++++ source/texk/web2c/lib/setupvar.c (revision 21624)
+@@ -23,7 +23,7 @@
+ if (conf_val < 0 || (conf_val == 0 && dflt > 0)) {
+ fprintf (stderr,
+ "%s: Bad value (%ld) in texmf.cnf for %s, keeping %ld.\n",
+- program_invocation_name,
++ kpse_invocation_name,
+ (long) conf_val, var_name, (long) dflt);
+ } else {
+ *var = conf_val; /* We'll make further checks later. */
diff --git a/dev-tex/metapost/metadata.xml b/dev-tex/metapost/metadata.xml
new file mode 100644
index 00000000000..ba6a8a8800d
--- /dev/null
+++ b/dev-tex/metapost/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>tex</herd>
+</pkgmetadata>
diff --git a/dev-tex/metapost/metapost-1.780.ebuild b/dev-tex/metapost/metapost-1.780.ebuild
new file mode 100644
index 00000000000..3e04839c74e
--- /dev/null
+++ b/dev-tex/metapost/metapost-1.780.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+DESCRIPTION="System for producing graphics"
+HOMEPAGE="http://tug.org/metapost.html"
+SRC_URI="http://foundry.supelec.fr/gf/download/frsrelease/395/1879/${P}-src.tar.bz2"
+
+LICENSE="GPL-2 LGPL-3"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+RDEPEND="dev-libs/kpathsea
+ >=app-eselect/eselect-mpost-0.3
+ x11-libs/cairo
+ x11-libs/pixman
+ media-libs/libpng"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+S=${WORKDIR}/${P}/source/texk/web2c
+
+src_configure() {
+ econf \
+ --disable-all-pkgs \
+ --enable-shared \
+ --disable-largefile \
+ --disable-ptex \
+ --enable-mp \
+ --with-system-cairo \
+ --with-system-libpng \
+ --without-ptexenc \
+ --with-system-kpathsea \
+ --with-system-xpdf \
+ --with-system-freetype \
+ --with-system-freetype2 \
+ --with-system-gd \
+ --with-system-teckit \
+ --with-system-t1lib \
+ --with-system-icu \
+ --with-system-graphite \
+ --with-system-zziplib \
+ --with-system-poppler \
+ --with-system-zlib \
+ --with-system-pixman \
+ --disable-native-texlive-build \
+ --without-mf-x-toolkit --without-x
+}
+
+src_compile() {
+ emake mpost
+}
+
+src_install() {
+ emake DESTDIR="${D}" \
+ SUBDIRS="" \
+ bin_PROGRAMS="mpost" \
+ nodist_man_MANS="" \
+ dist_man_MANS="" \
+ install-binPROGRAMS
+ # Rename it
+ mv "${D}/usr/bin/mpost" "${D}/usr/bin/mpost-${P}" || die "renaming failed"
+
+ cd "${WORKDIR}/${P}"
+ dodoc README CHANGES
+}
+
+pkg_postinst(){
+ einfo "Calling eselect mpost update"
+ eselect mpost update
+}
diff --git a/dev-tex/metapost/metapost-1.803.ebuild b/dev-tex/metapost/metapost-1.803.ebuild
new file mode 100644
index 00000000000..841442d8415
--- /dev/null
+++ b/dev-tex/metapost/metapost-1.803.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+DESCRIPTION="System for producing graphics"
+HOMEPAGE="http://tug.org/metapost.html"
+SRC_URI="https://foundry.supelec.fr/frs/download.php/file/15750/${P}-src.tar.bz2"
+
+LICENSE="GPL-2 LGPL-3"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+RDEPEND=">=dev-libs/kpathsea-6.1.0_p20120701
+ >=app-eselect/eselect-mpost-0.3
+ >=x11-libs/cairo-1.12
+ >x11-libs/pixman-0.18
+ media-libs/libpng:0="
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+S=${WORKDIR}/${P}/source/texk/web2c
+
+src_configure() {
+ econf \
+ --disable-all-pkgs \
+ --enable-shared \
+ --disable-largefile \
+ --disable-ptex \
+ --enable-mp \
+ --with-system-cairo \
+ --with-system-libpng \
+ --without-ptexenc \
+ --with-system-kpathsea \
+ --with-system-xpdf \
+ --with-system-freetype \
+ --with-system-freetype2 \
+ --with-system-gd \
+ --with-system-teckit \
+ --with-system-t1lib \
+ --with-system-icu \
+ --with-system-graphite \
+ --with-system-zziplib \
+ --with-system-poppler \
+ --with-system-zlib \
+ --with-system-pixman \
+ --disable-native-texlive-build \
+ --without-mf-x-toolkit --without-x
+}
+
+src_compile() {
+ emake mpost
+}
+
+src_install() {
+ emake DESTDIR="${D}" \
+ SUBDIRS="" \
+ bin_PROGRAMS="mpost" \
+ nodist_man_MANS="" \
+ dist_man_MANS="" \
+ install-binPROGRAMS
+ # Rename it
+ mv "${D}/usr/bin/mpost" "${D}/usr/bin/mpost-${P}" || die "renaming failed"
+
+ cd "${WORKDIR}/${P}"
+ dodoc README CHANGES
+}
+
+pkg_postinst(){
+ einfo "Calling eselect mpost update"
+ eselect mpost update
+}
diff --git a/dev-tex/metapost/metapost-1.902.ebuild b/dev-tex/metapost/metapost-1.902.ebuild
new file mode 100644
index 00000000000..6a3ebd9783c
--- /dev/null
+++ b/dev-tex/metapost/metapost-1.902.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit flag-o-matic toolchain-funcs
+
+DESCRIPTION="System for producing graphics"
+HOMEPAGE="http://tug.org/metapost.html"
+SRC_URI="https://foundry.supelec.fr/frs/download.php/file/15766/${P}-src.tar.bz2"
+
+LICENSE="GPL-2 LGPL-3"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+RDEPEND=">=dev-libs/kpathsea-6.1.0_p20120701
+ >=app-eselect/eselect-mpost-0.3
+ >=x11-libs/cairo-1.12
+ >x11-libs/pixman-0.18
+ media-libs/libpng:0="
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+S=${WORKDIR}/${P}/source/texk/web2c
+
+src_configure() {
+ has_version '>=dev-libs/kpathsea-6.2.1' && append-cppflags "$($(tc-getPKG_CONFIG) --cflags kpathsea)"
+ econf \
+ --disable-all-pkgs \
+ --enable-shared \
+ --disable-largefile \
+ --disable-ptex \
+ --enable-mp \
+ --with-system-cairo \
+ --with-system-libpng \
+ --without-ptexenc \
+ --with-system-kpathsea \
+ --with-system-xpdf \
+ --with-system-freetype \
+ --with-system-freetype2 \
+ --with-system-gd \
+ --with-system-teckit \
+ --with-system-t1lib \
+ --with-system-icu \
+ --with-system-graphite \
+ --with-system-zziplib \
+ --with-system-poppler \
+ --with-system-zlib \
+ --with-system-pixman \
+ --disable-native-texlive-build \
+ --without-mf-x-toolkit --without-x
+}
+
+src_compile() {
+ emake mpost
+}
+
+src_install() {
+ emake DESTDIR="${D}" \
+ SUBDIRS="" \
+ bin_PROGRAMS="mpost" \
+ nodist_man_MANS="" \
+ dist_man_MANS="" \
+ install-binPROGRAMS
+ # Rename it
+ mv "${D}/usr/bin/mpost" "${D}/usr/bin/mpost-${P}" || die "renaming failed"
+
+ cd "${WORKDIR}/${P}"
+ dodoc README CHANGES
+}
+
+pkg_postinst(){
+ einfo "Calling eselect mpost update"
+ eselect mpost update
+}
diff --git a/dev-tex/minted/Manifest b/dev-tex/minted/Manifest
new file mode 100644
index 00000000000..a1c73b06c8c
--- /dev/null
+++ b/dev-tex/minted/Manifest
@@ -0,0 +1,2 @@
+DIST minted-2.0.tar.gz 1039735 SHA256 a54daeb9d5e5d1150bb75f252d5f81ff5b3d13b1d6528261ac80dd9245813fe7 SHA512 1e874a865da24d9d890d68f9a7d7fed710746993534903cd04a518e3d65003f65efca47c4cd563bda70b3eb1356e609f5e662a0d762248c7b722b8c5aebda6de WHIRLPOOL dd01416ea13e7f862de3ee8ee84b28b5f5d1f9020b5c01afb40c382016053bd79beed86b1500328bc29e95161dfed0e179df9e311e3d338f12d8f62b18549e80
+DIST minted-v1.7.zip 363605 SHA256 71113736bbc44fdf619dce95fdd3b0f5d870117574212bd9dbe08ef95547790e SHA512 6f1b3af3d5bd3fb8d3c2a9c6ae595a28a69cc733106d241cb258d61a89da70866eeeed7f3b6023c64246161c2c10689cac5ae56fcde73cea891133d08e521d63 WHIRLPOOL d74cb7eea25b19c96770a4d6e50c44bf7b11bb68d3ab5575b2cf30036187baaac51ba8026342308bbbac20783d2659c0347d16d0ef5ae2ee0fac4c0aa248ce0f
diff --git a/dev-tex/minted/metadata.xml b/dev-tex/minted/metadata.xml
new file mode 100644
index 00000000000..948f2f07b8a
--- /dev/null
+++ b/dev-tex/minted/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>sci</herd>
+ <maintainer>
+ <email>sci@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">gpoore/minted</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-tex/minted/minted-1.7.ebuild b/dev-tex/minted/minted-1.7.ebuild
new file mode 100644
index 00000000000..7a9530b5719
--- /dev/null
+++ b/dev-tex/minted/minted-1.7.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit latex-package
+
+DESCRIPTION="LaTeX package that facilitates expressive syntax highlighting in using the powerful Pygments library"
+HOMEPAGE="https://code.google.com/p/minted/"
+SRC_URI="https://minted.googlecode.com/files/${PN}-v${PV}.zip"
+
+SLOT="0"
+LICENSE="BSD"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE=""
+
+DEPEND="app-arch/unzip"
+RDEPEND="
+ dev-texlive/texlive-latexextra
+ dev-python/pygments"
+
+S="${WORKDIR}"/
+
+src_install() {
+ latex-package_src_install
+ dodoc README
+}
diff --git a/dev-tex/minted/minted-2.0.ebuild b/dev-tex/minted/minted-2.0.ebuild
new file mode 100644
index 00000000000..092029f8db0
--- /dev/null
+++ b/dev-tex/minted/minted-2.0.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit latex-package
+
+DESCRIPTION="LaTeX package that facilitates expressive syntax highlighting in using the powerful Pygments library"
+HOMEPAGE="https://github.com/gpoore/minted"
+SRC_URI="https://github.com/gpoore/minted/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+SLOT="0"
+LICENSE="BSD"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE=""
+
+DEPEND="app-arch/unzip"
+RDEPEND="
+ dev-texlive/texlive-latexextra
+ dev-python/pygments"
+
+S="${WORKDIR}"/${P}/source
+
+src_install() {
+ latex-package_src_install
+ dodoc "${S}"/../*md
+}
diff --git a/dev-tex/newlfm/Manifest b/dev-tex/newlfm/Manifest
new file mode 100644
index 00000000000..7d1e8d781dd
--- /dev/null
+++ b/dev-tex/newlfm/Manifest
@@ -0,0 +1 @@
+DIST newlfm-8.3.tar.gz 878748 SHA256 990a5ae3349312cbc9b50be1516e579898a067c1bba2c892681321288dc93fc9 SHA512 f9765a10d3ee627ed748ce541ad1f52d259beff178ded37fe97bcb4ce7fb5139581cb328f5c4f8160ccba2f471cd8ad525386389aaab806d1d350354dbe8474c WHIRLPOOL 9ff10961f10495431d0b9bac5c8fc92fcbe9ef19dc1369627ffecfc9f1b3b6b36c98d8f99d0c8f24e7cc5b46b8a9249a01e73e4c61796253c08990e2c78e4b26
diff --git a/dev-tex/newlfm/metadata.xml b/dev-tex/newlfm/metadata.xml
new file mode 100644
index 00000000000..ba6a8a8800d
--- /dev/null
+++ b/dev-tex/newlfm/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>tex</herd>
+</pkgmetadata>
diff --git a/dev-tex/newlfm/newlfm-8.3-r1.ebuild b/dev-tex/newlfm/newlfm-8.3-r1.ebuild
new file mode 100644
index 00000000000..6e94bfb5498
--- /dev/null
+++ b/dev-tex/newlfm/newlfm-8.3-r1.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit latex-package
+
+DESCRIPTION="Extensive LaTeX class for writing letters"
+HOMEPAGE="http://www.ctan.org/tex-archive/help/Catalogue/entries/newlfm.html"
+# Downloaded from:
+# ftp://ftp.dante.de/tex-archive/macros/latex/contrib/newlfm.tar.gz
+SRC_URI="mirror://gentoo/${P}.tar.gz"
+
+LICENSE="LPPL-1.2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+IUSE=""
+
+DEPEND="dev-texlive/texlive-latexextra"
+RDEPEND="${DEPEND}"
+S="${WORKDIR}/${PN}"
+
+src_compile() {
+ latex newlfm.ins || die
+}
+
+src_install() {
+ insinto /usr/share/texmf/tex/latex/newlfm
+ doins *.sty *.cls letrinfo.tex lvb.* palm.* wine.*
+
+ dosym palm.eps /usr/share/texmf/tex/latex/newlfm/palmb.eps
+ dosym palm.pdf /usr/share/texmf/tex/latex/newlfm/palmb.pdf
+
+ insinto /usr/share/doc/${PF}/tests
+ doins test* extracd.tex # letrx.tex
+
+ dodoc manual.pdf README # README.uploads
+}
diff --git a/dev-tex/notoccite/Manifest b/dev-tex/notoccite/Manifest
new file mode 100644
index 00000000000..b056362699e
--- /dev/null
+++ b/dev-tex/notoccite/Manifest
@@ -0,0 +1 @@
+DIST notoccite-20000720.tbz2 1127 SHA256 ae333e27275b474d8a1d582714ef665fe14ac6d7080e3f5dd9593fca614d325f SHA512 838974315a892289e51c1112fd80bc709efb7040522b40b42914ba57010bfa43371c1cd2f6fe4700411c18ad14db13df841ccabdd681b5d6312dcf9cb748950e WHIRLPOOL c771c713020b42651a83ebddfa4d362b4f84605f69fbdaa324c522e31876d721462b6bfd010b6b55c6f55746ddea166ad5fa8a7a79c26f493cfe3842cf2b6a0b
diff --git a/dev-tex/notoccite/metadata.xml b/dev-tex/notoccite/metadata.xml
new file mode 100644
index 00000000000..b8c7fc83102
--- /dev/null
+++ b/dev-tex/notoccite/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>tex</herd>
+ <longdescription>
+ If you have \cite commands in \section-like commands, or in \caption, the
+ citation will also appear in the table of contents, or list of whatever. If
+ you are also using an unsrt-like bibliography style, these citations will
+ come at the very start of the bibliography, which is confusing. This package
+ suppresses the effect.
+ </longdescription>
+</pkgmetadata>
diff --git a/dev-tex/notoccite/notoccite-20000720.ebuild b/dev-tex/notoccite/notoccite-20000720.ebuild
new file mode 100644
index 00000000000..b13aad23c10
--- /dev/null
+++ b/dev-tex/notoccite/notoccite-20000720.ebuild
@@ -0,0 +1,18 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit latex-package
+
+DESCRIPTION="Stop citations in figures, tables and contents changing citation
+order"
+HOMEPAGE="http://www.ctan.org/tex-archive/help/Catalogue/entries/notoccite.html"
+SRC_URI="mirror://gentoo/${P}.tbz2"
+
+LICENSE="public-domain"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
diff --git a/dev-tex/oesch/Manifest b/dev-tex/oesch/Manifest
new file mode 100644
index 00000000000..ceef5378b93
--- /dev/null
+++ b/dev-tex/oesch/Manifest
@@ -0,0 +1 @@
+DIST oesch-20080712.zip 23245 SHA256 7fd5c3c663c2f7893b7761519a2f612a36c6c72e2ea5630bd2dc7838d390b1ca SHA512 8cb2beae77abaa32be881e5d4acef3fbec9d08750d87b2af826f3e1340f323e5d199af5788c1c6aa8d8924caaf1ed0ebb74a4ef4d59c4526f9c5946208362ac5 WHIRLPOOL 75f6657319e1f8e02d1b0194fd15a5d8d4dd2a0d6d37f5c58a862b3aac58dd4cf4cfffa12f1a6ac69a7d210217f1416191afbf78e90740b1020b606734267b83
diff --git a/dev-tex/oesch/metadata.xml b/dev-tex/oesch/metadata.xml
new file mode 100644
index 00000000000..ba6a8a8800d
--- /dev/null
+++ b/dev-tex/oesch/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>tex</herd>
+</pkgmetadata>
diff --git a/dev-tex/oesch/oesch-20080712.ebuild b/dev-tex/oesch/oesch-20080712.ebuild
new file mode 100644
index 00000000000..d31b8cb1e26
--- /dev/null
+++ b/dev-tex/oesch/oesch-20080712.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit latex-package
+
+DESCRIPTION="Metafont font used in Austrian schools for hand writing"
+HOMEPAGE="http://www.ctan.org/tex-archive/fonts/oesch/"
+# taken from http://www.ctan.org/tex-archive/fonts/oesch.zip
+SRC_URI="mirror://gentoo/${P}.zip"
+
+LICENSE="freedist"
+SLOT="0"
+KEYWORDS="~amd64 ~x86-fbsd"
+IUSE="examples"
+
+RDEPEND="!<dev-texlive/texlive-fontsextra-2007-r1"
+DEPEND="${RDEPEND}
+ app-arch/unzip"
+
+TEXMF="/usr/share/texmf-site"
+
+S=${WORKDIR}/${PN}
+
+src_install() {
+ export VARTEXFONTS="${T}/fonts"
+ latex-package_src_install
+ insinto "${TEXMF}/fonts/source/public"
+ doins *.mf || die "failed to install metafont sources"
+ dodoc README LIESMICH
+ if use examples ; then
+ insinto /usr/share/doc/${PF}
+ doins *.tex || die "failed to install examples"
+ fi
+}
diff --git a/dev-tex/pdfannotextractor/Manifest b/dev-tex/pdfannotextractor/Manifest
new file mode 100644
index 00000000000..f851c780bf8
--- /dev/null
+++ b/dev-tex/pdfannotextractor/Manifest
@@ -0,0 +1 @@
+DIST pdfannotextractor-0.1l.zip 48496 SHA256 e57e5fdb844bb74f8bf99b0ccd199db7ad2f7c1d11fe48b0b14ec81b7a28f66f SHA512 043a12545889cbdf9309024bcb381a70eef6ac1c1a3214d678b606c97102dde6cfd473fbd8057f9ed7badebd0fc85db0ce0e05f361a71f8b8c3f71e523f8beba WHIRLPOOL 611cfa374c3833707b71c14bfc8a75d82ff6ae394c99cabc6ddee1a3aade3aedede15921bdcf9a98b16df415cb49ae819dc0911aa5a550764795b1be1b4ce54d
diff --git a/dev-tex/pdfannotextractor/files/javajars.patch b/dev-tex/pdfannotextractor/files/javajars.patch
new file mode 100644
index 00000000000..bc52050e7b0
--- /dev/null
+++ b/dev-tex/pdfannotextractor/files/javajars.patch
@@ -0,0 +1,13 @@
+Index: work/scripts/pax/pdfannotextractor.pl
+===================================================================
+--- work.orig/scripts/pax/pdfannotextractor.pl
++++ work/scripts/pax/pdfannotextractor.pl
+@@ -84,6 +84,8 @@ my @jar_pdfbox = qw[
+ PDFBox-0.7.2.jar
+ ];
+ my @dir_jar = qw[
++ /usr/share/pdfannotextractor/lib
++ /usr/share/pdfbox/lib
+ /usr/share/java
+ /usr/local/share/java
+ ];
diff --git a/dev-tex/pdfannotextractor/metadata.xml b/dev-tex/pdfannotextractor/metadata.xml
new file mode 100644
index 00000000000..ba6a8a8800d
--- /dev/null
+++ b/dev-tex/pdfannotextractor/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>tex</herd>
+</pkgmetadata>
diff --git a/dev-tex/pdfannotextractor/pdfannotextractor-0.1l.ebuild b/dev-tex/pdfannotextractor/pdfannotextractor-0.1l.ebuild
new file mode 100644
index 00000000000..3691bb94f5b
--- /dev/null
+++ b/dev-tex/pdfannotextractor/pdfannotextractor-0.1l.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=3
+
+inherit latex-package java-utils-2 java-pkg-2 java-ant-2 eutils
+
+DESCRIPTION="Extract annotations from pdf files"
+HOMEPAGE="http://www.ctan.org/tex-archive/macros/latex/contrib/pax/"
+SRC_URI="mirror://gentoo/${P}.zip"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc ppc64 x86 ~amd64-fbsd ~x86-fbsd ~x64-macos"
+IUSE=""
+
+CDEPEND="virtual/latex-base
+ dev-java/pdfbox
+ dev-java/fontbox"
+DEPEND="${CDEPEND}
+ app-arch/unzip
+ >=virtual/jdk-1.5"
+RDEPEND="${CDEPEND}
+ virtual/perl-Getopt-Long
+ dev-perl/File-Which
+ >=virtual/jre-1.5
+ !<=dev-texlive/texlive-latexextra-2010"
+
+TEXMF=/usr/share/texmf-site
+S=${WORKDIR}
+
+JAVA_ANT_REWRITE_CLASSPATH="true"
+EANT_GENTOO_CLASSPATH="pdfbox fontbox"
+
+src_prepare() {
+ epatch "${FILESDIR}/javajars.patch"
+ java-pkg-2_src_prepare
+}
+
+src_compile() {
+ cd "${S}/source/latex/pax"
+ eant || die
+}
+
+src_install() {
+ newbin scripts/pax/pdfannotextractor.pl pdfannotextractor || die
+ java-pkg_dojar "${S}/source/latex/pax/pax.jar" || die
+ insinto ${TEXMF}
+ doins -r tex || die
+ dodoc doc/latex/pax/README || die
+}
diff --git a/dev-tex/pgf/Manifest b/dev-tex/pgf/Manifest
new file mode 100644
index 00000000000..99e88bd31e5
--- /dev/null
+++ b/dev-tex/pgf/Manifest
@@ -0,0 +1,2 @@
+DIST pgf_2.10.tds.zip 6943790 SHA256 6d197e2a6a7bdadc81d180ef58ad2ef3e446fb07e05ac52821047d8c31b90b95 SHA512 d10385a259cf5100a5c3929b48f007b796e1313730e579748fb1f6afa0957320867a000dc54edd7595f9d84926adb7b28fd7be079fed32d12bf6aee00294b16b WHIRLPOOL bfe770bbd775ec607cfbe48051a4d08e0d936afa98e075d43f70de1bfa61bbcaf5e591988b16cc9d6bfb8bffab749d74fc0b2e9ddeb127485e7075cdeac2532e
+DIST pgf_3.0.0.tds.zip 11384771 SHA256 672b15d0a73fcaee1efefdaf396db1d8313e08d91db9b15bfde293eb6132474e SHA512 c0d801855e9fb0325a4caf4dbdf30c82a39b8f2543234f04127355dc5eb22493bbe95c6d9757df122bf80ccb07f6d5a92736a3a8f67523b3a43115b6a9ae1f56 WHIRLPOOL c451b562daf3b2aa8d6fce9852d7db3a5c34a449ec544dec7865587f4281c203b40275e184f82812f49365c075f51387115d026274833713fc96958c528dd98e
diff --git a/dev-tex/pgf/metadata.xml b/dev-tex/pgf/metadata.xml
new file mode 100644
index 00000000000..b2459483268
--- /dev/null
+++ b/dev-tex/pgf/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>tex</herd>
+ <upstream>
+ <remote-id type="sourceforge">pgf</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-tex/pgf/pgf-2.10.ebuild b/dev-tex/pgf/pgf-2.10.ebuild
new file mode 100644
index 00000000000..3d5552b2ca9
--- /dev/null
+++ b/dev-tex/pgf/pgf-2.10.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit latex-package
+
+DESCRIPTION="pgf -- The TeX Portable Graphic Format"
+HOMEPAGE="http://sourceforge.net/projects/pgf"
+SRC_URI="mirror://sourceforge/pgf/${PN}_${PV}.tds.zip"
+
+LICENSE="GPL-2 LPPL-1.3c FDL-1.2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
+IUSE="doc source"
+
+RDEPEND="dev-texlive/texlive-latexrecommended
+ >=dev-tex/xcolor-2.11"
+DEPEND="${RDEPEND}
+ app-arch/unzip"
+
+TEXMF="/usr/share/texmf-site"
+S=${WORKDIR}
+
+src_install() {
+ insinto ${TEXMF}
+ doins -r tex || die
+
+ if use source ; then
+ doins -r source || die
+ fi
+
+ cd "${S}/doc/generic/pgf"
+ dodoc AUTHORS ChangeLog README TODO licenses/LICENSE || die
+ if use doc ; then
+ insinto /usr/share/doc/${PF}
+ doins pgfmanual.pdf || die
+ doins -r images macros text-en version-for-dvipdfm version-for-dvips \
+ version-for-pdftex version-for-tex4ht version-for-vtex || die \
+ "Failed to install documentation"
+ fi
+}
diff --git a/dev-tex/pgf/pgf-3.0.0.ebuild b/dev-tex/pgf/pgf-3.0.0.ebuild
new file mode 100644
index 00000000000..57c390eac4e
--- /dev/null
+++ b/dev-tex/pgf/pgf-3.0.0.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit latex-package
+
+DESCRIPTION="pgf -- The TeX Portable Graphic Format"
+HOMEPAGE="http://sourceforge.net/projects/pgf"
+SRC_URI="mirror://sourceforge/pgf/${PN}_${PV}.tds.zip"
+
+LICENSE="GPL-2 LPPL-1.3c FDL-1.2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
+IUSE="doc source"
+
+RDEPEND="dev-texlive/texlive-latexrecommended
+ >=dev-tex/xcolor-2.11"
+DEPEND="${RDEPEND}
+ app-arch/unzip"
+
+S=${WORKDIR}
+
+src_install() {
+ insinto ${TEXMF}
+ doins -r tex || die
+
+ if use source ; then
+ doins -r source || die
+ fi
+
+ cd "${S}/doc/generic/pgf"
+ dodoc AUTHORS ChangeLog README || die
+ if use doc ; then
+ insinto /usr/share/doc/${PF}/texdoc
+ doins pgfmanual.pdf || die
+ doins -r images macros text-en version-* || die
+ dosym /usr/share/doc/${PF}/texdoc ${TEXMF}/doc/latex/${PN} || die
+ fi
+}
diff --git a/dev-tex/polytable/Manifest b/dev-tex/polytable/Manifest
new file mode 100644
index 00000000000..7b5fedfbaeb
--- /dev/null
+++ b/dev-tex/polytable/Manifest
@@ -0,0 +1 @@
+DIST polytable-0.8.2.tar.gz 23443 SHA256 0bb4adc399ede88816eb50fd0deff278c9ca2246540e06599fc68cfb3d2c9b0f SHA512 5fea2db7467817d13055124f8b2d1b8ee26d7edfae7fcc3a21c1cf44b4d22f6bbfa53fe47f71a02c0e9da3d6bf8ebf486dae88723676a76fbbb7818d6fb17c9e WHIRLPOOL 2351da79101432342250d9edbc8228f72772460a5b79504c627108597fd4fc11d1347891dd326fd665757f7f8ff32d736765b980d617c7eb1bce67f7abd7e08a
diff --git a/dev-tex/polytable/metadata.xml b/dev-tex/polytable/metadata.xml
new file mode 100644
index 00000000000..66b9052a990
--- /dev/null
+++ b/dev-tex/polytable/metadata.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>haskell</herd>
+ <herd>tex</herd>
+</pkgmetadata>
diff --git a/dev-tex/polytable/polytable-0.8.2.ebuild b/dev-tex/polytable/polytable-0.8.2.ebuild
new file mode 100644
index 00000000000..72ddf5ef197
--- /dev/null
+++ b/dev-tex/polytable/polytable-0.8.2.ebuild
@@ -0,0 +1,18 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit latex-package
+
+DESCRIPTION="tabular-like environments with named columns"
+HOMEPAGE="http://www.ctan.org/tex-archive/macros/latex/contrib/polytable/"
+# originally from:
+#SRC_URI="http://www.ctan.org/tex-archive/macros/latex/contrib/polytable/*"
+SRC_URI="mirror://gentoo/${P}.tar.gz"
+LICENSE="LPPL-1.2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc ppc64 sparc x86"
+IUSE=""
+DEPEND=">=dev-tex/lazylist-1.0a"
+RDEPEND="${DEPEND}"
+S="${WORKDIR}/${PN}"
diff --git a/dev-tex/ppower4/Manifest b/dev-tex/ppower4/Manifest
new file mode 100644
index 00000000000..08c64120c33
--- /dev/null
+++ b/dev-tex/ppower4/Manifest
@@ -0,0 +1 @@
+DIST ppower4-0.9.6.tar.gz 379282 SHA256 92602c3f31c925ee37dbde7a7639e8d74e52c1e6087874d8cde7eb9516c4a3a2 SHA512 edade748c33006a20535a663904adccfd8196eb96bcd963d3512a4e416e2747231101756396af7b4eb2395c4bfa1338b73fd77bb1c1e9addfcf57cf8d0beadcd WHIRLPOOL 900ea951bd33cd505807eccf444a1ca944eebfef53da1bdae48dbb60fbec5d8d060642d70b6c38110bd12919a6be29c565843239773136e825e579877a5c0749
diff --git a/dev-tex/ppower4/files/ppower4-gentoo.patch b/dev-tex/ppower4/files/ppower4-gentoo.patch
new file mode 100644
index 00000000000..f9afa86a9bd
--- /dev/null
+++ b/dev-tex/ppower4/files/ppower4-gentoo.patch
@@ -0,0 +1,11 @@
+--- ppower4 2003-08-16 19:43:09.000000000 +0200
++++ ppower4 2003-08-16 19:46:24.000000000 +0200
+@@ -14,7 +14,7 @@
+ # Modify this script such that jarfile contains the full path
+ # of the pp4p.jar file.
+ #
+-jarfile=/common/Java/lib/ppower4/pp4p.jar
++jarfile=/usr/lib/ppower4/pp4p.jar
+ #
+ # If you use a web2c distribution, you can place pp4p.jar
+ # e.g. into the directory texmf/java/ppower4, run mktexlsr,
diff --git a/dev-tex/ppower4/metadata.xml b/dev-tex/ppower4/metadata.xml
new file mode 100644
index 00000000000..ba6a8a8800d
--- /dev/null
+++ b/dev-tex/ppower4/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>tex</herd>
+</pkgmetadata>
diff --git a/dev-tex/ppower4/ppower4-0.9.6.ebuild b/dev-tex/ppower4/ppower4-0.9.6.ebuild
new file mode 100644
index 00000000000..fe66458205d
--- /dev/null
+++ b/dev-tex/ppower4/ppower4-0.9.6.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit latex-package eutils
+
+DESCRIPTION="Post-process presentations in PDF format which were prepared using (La)TeX to add dynamic effects"
+
+# Taken from:
+#SRC_URI="http://www.tex.ac.uk/tex-archive/support/ppower4/pp4sty.zip
+# http://www.tex.ac.uk/tex-archive/support/ppower4/pp4p.jar
+# http://www.tex.ac.uk/tex-archive/support/ppower4/ppower4
+# http://www.tex.ac.uk/tex-archive/support/ppower4/manual.pdf"
+SRC_URI="mirror://gentoo/${P}.tar.gz"
+
+HOMEPAGE="http://www.tex.ac.uk/tex-archive/support/ppower4/index.html"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ppc x86"
+
+IUSE=""
+DEPEND="app-arch/unzip"
+RDEPEND="${DEPEND}
+ virtual/jre"
+
+src_unpack() {
+
+ unpack ${A}
+ cd "${S}"
+ unzip pp4sty.zip
+
+ epatch "${FILESDIR}/${PN}-gentoo.patch"
+}
+
+src_install() {
+
+ latex-package_src_install || die
+
+ dobin ppower4
+
+ insinto /usr/lib/${PN}
+ doins pp4p.jar
+
+ insinto /usr/share/doc/${PF}
+ doins manual.pdf
+}
diff --git a/dev-tex/prosper/Manifest b/dev-tex/prosper/Manifest
new file mode 100644
index 00000000000..c0d739253a5
--- /dev/null
+++ b/dev-tex/prosper/Manifest
@@ -0,0 +1,2 @@
+DIST contrib-prosper-1.0.0.tar.gz 78708 SHA256 eb14450e2ad1c4f0cca63a5eebf067c85aea71b270f64a39f468481ff03574dc SHA512 39e5bcbd492e8fd4b88692715b9d0b7c098f1c49443114ed9f37cb880c9cb25179d1da87ebb31a7b0826a298ac279885eef11101bcfb999fb72d3e8ef14cff52 WHIRLPOOL c6dfbf8f7899325b74f51bd6db412b0df9ad265960afbef234752cad4538c231f17c7f5a588f9d95bba0ff3e452d686f16de76b2859c0e8a13a114e62309d716
+DIST prosper-1.5.tar.gz 543515 SHA256 20283bfdc63c261d36c423048398aee5eeab443f79e62c4923d1c27ac876e86b SHA512 14ddbcd3636b307a460a024f5d1551b0504e83e50f4fc1801be3ed206e009a362d0181acade69be8c6e5dc517683e06f2ce9ce44c30778aa51b79df1135acadd WHIRLPOOL 3869cfe21e0c0ab9edb9cd2810c703137719d2e0a137c6983e16ae9f087999d75bf2accc0bedda38a483e3b360fe13305dfdbd21e50cfbec7b853f3b891e9388
diff --git a/dev-tex/prosper/metadata.xml b/dev-tex/prosper/metadata.xml
new file mode 100644
index 00000000000..d145b3f3222
--- /dev/null
+++ b/dev-tex/prosper/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>tex</herd>
+ <upstream>
+ <remote-id type="sourceforge">prosper</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-tex/prosper/prosper-1.5-r1.ebuild b/dev-tex/prosper/prosper-1.5-r1.ebuild
new file mode 100644
index 00000000000..fa74d540229
--- /dev/null
+++ b/dev-tex/prosper/prosper-1.5-r1.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit latex-package
+
+CONTRIB="contrib-prosper-1.0.0"
+
+DESCRIPTION="Prosper is a LaTeX class for writing transparencies"
+HOMEPAGE="http://prosper.sf.net/"
+# Taken from: ftp://ftp.dante.de/tex-archive/macros/latex/contrib/${PN}.tar.gz
+SRC_URI="mirror://gentoo/${P}.tar.gz
+ mirror://sourceforge/prosper/${CONTRIB}.tar.gz"
+LICENSE="LPPL-1.2" # has been changed since 1.5
+SLOT="0"
+KEYWORDS="amd64 ppc sparc x86 ~amd64-linux ~x86-linux ~ppc-macos"
+S=${WORKDIR}/${PN}
+IUSE=""
+DEPEND=""
+RDEPEND="dev-texlive/texlive-pstricks"
+
+src_install(){
+ latex-package_src_doinstall styles
+ insinto ${TEXMF}/tex/latex/${PN}/img/
+ doins img/*.{ps,gif}
+ for i in `find ./contrib/ -maxdepth 1 -type f -name "*.sty"`
+ do
+ insinto ${TEXMF}/tex/latex/${PN}/contrib/
+ doins $i
+ done
+ insinto ${TEXMF}/tex/latex/${PN}/contrib/img/
+ doins ./contrib/img/*.{ps,eps}
+ dodoc README TODO NEWS FAQ AUTHORS ChangeLog
+ dodoc doc/*.{eps,pdf,tex,ps}
+ docinto doc-examples/
+ dodoc doc/doc-examples/*.tex
+ docinto contrib/
+ dodoc contrib/*.{ps,tex}
+}
diff --git a/dev-tex/pscyr/Manifest b/dev-tex/pscyr/Manifest
new file mode 100644
index 00000000000..e8c99ba50eb
--- /dev/null
+++ b/dev-tex/pscyr/Manifest
@@ -0,0 +1,2 @@
+DIST PSCyr-0.4-beta9-tex.tar.gz 535507 SHA256 d55fcbb113b5b5bad566f2d25b2249ef8e8be3fe77936a15359f650f8b9411c1 SHA512 2cd1c99b4a85e72cda7824869036374436b82fe787eaa2307263e64237ad5955b22279c33c436e4b1d4c0d065751984f57bbbb91422f1055b1bdff6581631429 WHIRLPOOL 48a109f38d667b7fc81047ad093cb033fc6f9b66febc8d2d0d7dc3ab66eee3c9e64f414794ece3b93b547b181a1c903ce33bb7159c18197c2e26a6de6f48177b
+DIST PSCyr-0.4-beta9-type1.tar.gz 2041127 SHA256 dae8bbd0b8782e0ab7bdd2d55238d9b97a6657452e4136109f7a49b10a34c7f0 SHA512 b648a60a768f14102e30dcc6d628d1a0f3cf1e2351d973621d3468c2bdf502726f12089cf0ac2d129ca6fbd694b78a48f184ce02e19d4d5641adebfea2e382f2 WHIRLPOOL e12c90fd1d905092c063fa2e5dbc32cda34e884bb8676e4bbadb1aa20da8aa25d3e2ebbe1340844ad927d4fcebe76458774a578d431ebbf46ee95b6fdf21e117
diff --git a/dev-tex/pscyr/files/90pscyr.cfg b/dev-tex/pscyr/files/90pscyr.cfg
new file mode 100644
index 00000000000..8a721064fad
--- /dev/null
+++ b/dev-tex/pscyr/files/90pscyr.cfg
@@ -0,0 +1,2 @@
+# PSCyr fonts
+Map pscyr.map
diff --git a/dev-tex/pscyr/metadata.xml b/dev-tex/pscyr/metadata.xml
new file mode 100644
index 00000000000..940b48761f8
--- /dev/null
+++ b/dev-tex/pscyr/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>tex</herd>
+ <maintainer>
+ <email>alexxy@gentoo.org</email>
+ <name>Alexey Shvetsov</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-tex/pscyr/pscyr-0.4d_beta9.ebuild b/dev-tex/pscyr/pscyr-0.4d_beta9.ebuild
new file mode 100644
index 00000000000..fa93bdf32ff
--- /dev/null
+++ b/dev-tex/pscyr/pscyr-0.4d_beta9.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit latex-package
+
+DESCRIPTION="Type1 cyrillic fonts collection"
+HOMEPAGE="ftp://scon155.phys.msu.su/pub/russian/psfonts/"
+SRC_URI="ftp://scon155.phys.msu.su/pub/russian/psfonts/0.4d-beta/PSCyr-0.4-beta9-tex.tar.gz
+ ftp://scon155.phys.msu.su/pub/russian/psfonts/0.4d-beta/PSCyr-0.4-beta9-type1.tar.gz"
+LICENSE="LPPL-1.2"
+
+SLOT="0"
+IUSE=""
+KEYWORDS="~amd64 ~x86"
+
+SUPPLIER="public"
+
+S="${WORKDIR}/PSCyr"
+
+src_install() {
+
+ for each in dvips/pscyr tex/latex/pscyr fonts/tfm/public/pscyr \
+ fonts/vf/public/pscyr fonts/type1/public/pscyr fonts/afm/public/pscyr; do
+ cd "${S}"
+ cd "$each"
+ latex-package_src_install
+ done
+ cd "${S}"
+ insinto "${TEXMF}/fonts/map/dvips/pscyr"
+ doins dvips/pscyr/pscyr.map || die "doins $i failed"
+
+ for each in dvips/pscyr/*.enc; do
+ insinto "${TEXMF}/fonts/enc/dvips/pscyr"
+ doins "$each" || die "doins $i failed"
+ done
+
+ insinto /etc/texmf/updmap.d
+ doins "${FILESDIR}/90pscyr.cfg"
+
+ dodoc doc/README.* doc/PROBLEMS ChangeLog
+}
diff --git a/dev-tex/pstplus/Manifest b/dev-tex/pstplus/Manifest
new file mode 100644
index 00000000000..0b5f78fcfa8
--- /dev/null
+++ b/dev-tex/pstplus/Manifest
@@ -0,0 +1 @@
+DIST pstplus-1.6.tar.bz2 434500 SHA256 01bf1ddffb5b0ea032806981c54a6956953c032f4de092707fdbdcd8d8f3dd70 SHA512 5abb97f240db3244350e77c404ef4ebcb65f6baa00d6975e161d7fb03132631c9b09ac9dbf56cd3e6f418bfedb69746fee91f980b6ad55a6f6ab16c5ec0e5e69 WHIRLPOOL 4e79e4e93067761a92d0ffebc954b6cc9f145a80c1098aed0af449cddcdf583898877d59f0b608eaf75039372e58b37cd046b8872067c6cd864d6c2747620a58
diff --git a/dev-tex/pstplus/metadata.xml b/dev-tex/pstplus/metadata.xml
new file mode 100644
index 00000000000..ba6a8a8800d
--- /dev/null
+++ b/dev-tex/pstplus/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>tex</herd>
+</pkgmetadata>
diff --git a/dev-tex/pstplus/pstplus-1.6.ebuild b/dev-tex/pstplus/pstplus-1.6.ebuild
new file mode 100644
index 00000000000..a6b3e8f2e6d
--- /dev/null
+++ b/dev-tex/pstplus/pstplus-1.6.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit eutils qt4-r2
+
+DESCRIPTION="A PSTricks GUI"
+HOMEPAGE="http://www.xm1math.net/pstplus/"
+SRC_URI="http://www.xm1math.net/pstplus/${P}.tar.bz2"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="dev-qt/qtgui:4
+ dev-qt/qtcore:4
+ app-text/poppler[qt4]"
+RDEPEND="${DEPEND}
+ virtual/latex-base
+ dev-texlive/texlive-pstricks
+ app-text/psutils
+ sci-visualization/gnuplot
+ app-text/ghostscript-gpl
+ media-libs/netpbm"
+
+DOCS="utilities/AUTHORS"
+
+src_install() {
+ qt4-r2_src_install
+
+ newicon utilities/pstplus48x48.png pstplus.png
+ make_desktop_entry pstplus Pstplus "pstplus" Office
+}
+
+pkg_postinst() {
+ elog "Examples are available at:"
+ elog "/usr/share/${PN}/"
+}
diff --git a/dev-tex/qtexengine/Manifest b/dev-tex/qtexengine/Manifest
new file mode 100644
index 00000000000..122cc6b2af9
--- /dev/null
+++ b/dev-tex/qtexengine/Manifest
@@ -0,0 +1 @@
+DIST QTeXEngine-0.3-opensource.zip 146118 SHA256 fc60c18bd0af5947d2d7dbc3d1b5b16ed251d9f317cc548228347f081a0b67d5 SHA512 e8a2fa9733f4b9833d7648015af5a514d103fbb3d17ec4fbbceb16b5088781b37b28bf732f17e501fcec9e77ba642326006a194a64982ef645bb15914e4ea773 WHIRLPOOL 6444f75d7eec493eb2522ca55d677fc2cc866e1635c747c20a3345110aa750d907a82a94f136206c9e96d45b50526bd3a12a0046d2a3364eed86dfca79f206ab
diff --git a/dev-tex/qtexengine/files/qtexengine-0.3-dynlib.patch b/dev-tex/qtexengine/files/qtexengine-0.3-dynlib.patch
new file mode 100644
index 00000000000..856e5fe6135
--- /dev/null
+++ b/dev-tex/qtexengine/files/qtexengine-0.3-dynlib.patch
@@ -0,0 +1,21 @@
+--- config.pri
++++ config.pri
+@@ -2,7 +2,7 @@
+ CONFIG += release
+
+ # Comment the lines bellow if you want to build QTeXEngine statically
+-#CONFIG += QTeXEngineDll
++CONFIG += QTeXEngineDll
+
+
+
+--- test/test.pro
++++ test/test.pro
+@@ -7,6 +7,6 @@
+ DESTDIR = ./
+
+ INCLUDEPATH += ../src
+-LIBS += ../libQTeXEngine.a
++LIBS += ../libQTeXEngine.so
+
+ SOURCES += test.cpp
diff --git a/dev-tex/qtexengine/metadata.xml b/dev-tex/qtexengine/metadata.xml
new file mode 100644
index 00000000000..31a8c55cde2
--- /dev/null
+++ b/dev-tex/qtexengine/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>qt</herd>
+ <upstream>
+ <remote-id type="sourceforge">qtiplot.berlios</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-tex/qtexengine/qtexengine-0.3.ebuild b/dev-tex/qtexengine/qtexengine-0.3.ebuild
new file mode 100644
index 00000000000..e2be59ed23e
--- /dev/null
+++ b/dev-tex/qtexengine/qtexengine-0.3.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit qt4-r2
+
+MY_PN=QTeXEngine
+
+DESCRIPTION="TeX support for Qt"
+HOMEPAGE="http://soft.proindependent.com/qtexengine/"
+SRC_URI="mirror://sourceforge/qtiplot.berlios/${MY_PN}-${PV}-opensource.zip"
+
+KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux"
+SLOT="0"
+LICENSE="GPL-3"
+IUSE=""
+
+RDEPEND="dev-qt/qtcore:4
+ dev-qt/qtgui:4"
+DEPEND="${RDEPEND}
+ app-arch/unzip"
+
+S=${WORKDIR}/${MY_PN}
+
+PATCHES=(
+ "${FILESDIR}/${P}-dynlib.patch"
+)
+
+src_compile() {
+ emake sub-src-all
+}
+
+src_test() {
+ emake sub-test-all
+}
+
+src_install() {
+ dolib.so lib${MY_PN}.so*
+ doheader src/${MY_PN}.h
+ dodoc CHANGES.txt
+ dodoc -r doc/html
+}
diff --git a/dev-tex/quotchap/Manifest b/dev-tex/quotchap/Manifest
new file mode 100644
index 00000000000..dafed2fe0a6
--- /dev/null
+++ b/dev-tex/quotchap/Manifest
@@ -0,0 +1 @@
+DIST quotchap-0.9f.zip 276748 SHA256 e5e0b8ba9f403109c4abbf72c5ab8c5dc135074c0cc09fec743ebf18de1f6adb SHA512 4dc999ac61633d37afd4db699084edbebfb633dc23823c8c90b7477470281a158db1197231d8aedf82b5e75d697aae80b8026be13c5d49490d0b8f171874a6fe WHIRLPOOL 0d17c24e3ed39ca9cb239f346758f43f53930a2af0cfc53e3468a4eed1a8809b3462190c96fa68fd1d123f56883131d21888d4be2cd52d025d1fd19b26c1c3d8
diff --git a/dev-tex/quotchap/metadata.xml b/dev-tex/quotchap/metadata.xml
new file mode 100644
index 00000000000..ba6a8a8800d
--- /dev/null
+++ b/dev-tex/quotchap/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>tex</herd>
+</pkgmetadata>
diff --git a/dev-tex/quotchap/quotchap-0.9f.ebuild b/dev-tex/quotchap/quotchap-0.9f.ebuild
new file mode 100644
index 00000000000..8392084b4f0
--- /dev/null
+++ b/dev-tex/quotchap/quotchap-0.9f.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit latex-package
+
+S=${WORKDIR}/quotchap
+
+DESCRIPTION="LaTeX package used to add quotes to chapters"
+# Taken from http://theory.uwinnipeg.ca/scripts/CTAN/macros/latex/contrib/quotchap.zip
+SRC_URI="mirror://gentoo/${P}.zip"
+HOMEPAGE="ftp://ftp.dante.de/tex-archive/help/Catalogue/entries/quotchap.html"
+LICENSE="LPPL-1.2"
+SLOT="0"
+KEYWORDS="x86 ppc ~amd64"
+IUSE=""
+
+DEPEND="app-arch/unzip"
+RDEPEND=""
+
+src_install () {
+ export VARTEXFONTS="${T}/fonts"
+ latex-package_src_doinstall all
+ cd "${S}"
+ dodoc 00readme.txt document.pdf document.tex
+}
diff --git a/dev-tex/rail/Manifest b/dev-tex/rail/Manifest
new file mode 100644
index 00000000000..d25efe0fc7e
--- /dev/null
+++ b/dev-tex/rail/Manifest
@@ -0,0 +1 @@
+DIST rail-1.2_p1.zip 107773 SHA256 960238a6c344f044b3f1ab441f6cfbc9ad9aaffe407d44bd15627ef40ce6725c SHA512 8d0178b7beb0f212eb34487b6a285f41d10e776d4294c945e2cc1c163bde44b4d6a38afca952ed0fb9759962f565002d3591f4e098d78d60eb03ae30469483c8 WHIRLPOOL 93b07fea285aab3aed9172a06794e9706dd0606db24337d5d0dfcb1efabb4816d1f44720852268850214cdaafb8161ec625bb61483d69fa0e17d0175f7216a15
diff --git a/dev-tex/rail/metadata.xml b/dev-tex/rail/metadata.xml
new file mode 100644
index 00000000000..73ea9d016da
--- /dev/null
+++ b/dev-tex/rail/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>tex</herd>
+<longdescription lang='en'>
+A C program and LaTeX package to draw syntax diagrams specified in EBNF.
+</longdescription>
+</pkgmetadata>
diff --git a/dev-tex/rail/rail-1.2_p1.ebuild b/dev-tex/rail/rail-1.2_p1.ebuild
new file mode 100644
index 00000000000..43ba894387d
--- /dev/null
+++ b/dev-tex/rail/rail-1.2_p1.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+
+inherit latex-package
+
+DESCRIPTION="Offers syntax/railroad diagrams"
+HOMEPAGE="http://www.ctan.org/tex-archive/support/rail/"
+SRC_URI="http://mirror.ctan.org/support/${PN}.zip
+ -> ${P}.zip"
+
+LICENSE="LPPL-1.2"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE=""
+
+RDEPEND="app-text/texlive"
+DEPEND="${RDEPEND}
+ app-arch/unzip
+ sys-devel/bison
+ sys-devel/flex"
+
+S=${WORKDIR}/${PN}
+
+src_compile() {
+ emake -j 1 || die "make failed"
+}
+
+src_install() {
+ latex-package_src_doinstall sty doc
+
+ dobin rail || die "Installing the rail tool failed"
+
+ newman rail.man rail.1 || die "Installing the manpage failed"
+}
diff --git a/dev-tex/rcsinfo/Manifest b/dev-tex/rcsinfo/Manifest
new file mode 100644
index 00000000000..705d3fb99b1
--- /dev/null
+++ b/dev-tex/rcsinfo/Manifest
@@ -0,0 +1 @@
+DIST rcsinfo-1.9.tar.gz 15709 SHA256 0c95f9e4a179ec578e67e0590d2411dda95dd88ab505ea5d87e7c344c4301e20 SHA512 9cd79b79ea1f12bfe1e1545e4f9599ed5cb2b2f87f5077c14402a99fe1cf64ab2d4fc60a1351a781582d6b23a406ad74cce827f5efed9adb484b0f4391bca5b5 WHIRLPOOL 239f40629a74418fbe1d832773f01ae58f783405aaace9e966f25abfacb3c7a9630b6659cf9d4d0b0ed2ff758d5e57555e26f7ebc1b983cca2c7f55e59ee2463
diff --git a/dev-tex/rcsinfo/metadata.xml b/dev-tex/rcsinfo/metadata.xml
new file mode 100644
index 00000000000..ba6a8a8800d
--- /dev/null
+++ b/dev-tex/rcsinfo/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>tex</herd>
+</pkgmetadata>
diff --git a/dev-tex/rcsinfo/rcsinfo-1.9.ebuild b/dev-tex/rcsinfo/rcsinfo-1.9.ebuild
new file mode 100644
index 00000000000..85be637552a
--- /dev/null
+++ b/dev-tex/rcsinfo/rcsinfo-1.9.ebuild
@@ -0,0 +1,18 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit latex-package
+
+S="${WORKDIR}/${PN}"
+LICENSE="LPPL-1.2"
+DESCRIPTION="A LaTeX module to acces RCS/CVS version info"
+HOMEPAGE="http://www.cvsnt.org/manual/rcsinfo.html"
+# downloaded from
+# ftp://ftp.ctan.org/pub/tex-archive/macros/latex/contrib/${PN}.tar.gz
+SRC_URI="mirror://gentoo/${P}.tar.gz"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE=""
+
+DOCS="README-1.9"
diff --git a/dev-tex/revtex/Manifest b/dev-tex/revtex/Manifest
new file mode 100644
index 00000000000..22b170781c3
--- /dev/null
+++ b/dev-tex/revtex/Manifest
@@ -0,0 +1,2 @@
+DIST revtex-4.1_p2.zip 4168885 SHA256 64b5b8cf97df6a8ff6c24adcd827cf4028d5b984cebc84f06e4b9d1f7f99a08a SHA512 df093543af1274fd218ee9d430da76aff07174d122b446abef1bf0c0333e154bd2c4e1db06dd178c82a0f1cdf83355faffa2dee18f19d18cd7e848a06b748d2d WHIRLPOOL 179404b043e087c281fa4c33be58c46a43b9d31cecc509b55d60042571b4db0bff135d07b72a6142474872b2c24e6c2b5b3311e8327ee44d79b56cc9fa2a872e
+DIST revtex4.zip 957277 SHA256 0f0bc5a635209b8aab0856a8f97e5eb4ca8105014143383234db823bbb3028c2 SHA512 816960d3f12dbdac0d9fb762ab2fff4e88fc0d436bf70101f172440b0eac90686517a3f857a6cf072b0344273b8eb3b4dd3c7c5d33c927e75183989cf14263fc WHIRLPOOL b6c4af7d53307055318a42a2839dbfec315135e379cf279d92af235f5fbdccf3373af1046b61c91a74fa8af2960deda500313edad9486a2943bc27e6e3fca759
diff --git a/dev-tex/revtex/metadata.xml b/dev-tex/revtex/metadata.xml
new file mode 100644
index 00000000000..64ebb139fe4
--- /dev/null
+++ b/dev-tex/revtex/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>tex</herd>
+<herd>sci</herd>
+<maintainer><email>dilfridge@gentoo.org</email></maintainer>
+</pkgmetadata>
diff --git a/dev-tex/revtex/revtex-4.1_p2-r1.ebuild b/dev-tex/revtex/revtex-4.1_p2-r1.ebuild
new file mode 100644
index 00000000000..3b674cbe488
--- /dev/null
+++ b/dev-tex/revtex/revtex-4.1_p2-r1.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=2
+
+inherit versionator latex-package
+
+MY_P="${PN}$(version_format_string '$1-$2')"
+
+DESCRIPTION="LaTeX2e macros for journals of the American Physical Society and the American Institute of Physics"
+HOMEPAGE="http://authors.aps.org/revtex4/"
+
+SRC_URI="http://authors.aps.org/revtex4/${MY_P}.zip -> ${P}.zip"
+
+LICENSE="LPPL-1.3c"
+SLOT="0"
+KEYWORDS="amd64 x86"
+
+RDEPEND=">=dev-texlive/texlive-latex-2012"
+DEPEND="app-arch/unzip"
+
+IUSE=""
+
+S="${WORKDIR}/${MY_P}"
+
+TEXMF=/usr/share/texmf-site
+
+src_unpack() {
+ default
+ cd "${S}"
+ unzip -o -j "${S}/${MY_P}-tds.zip"
+}
+
+src_install() {
+ latex-package_src_install
+
+ # we need the revtex-specific rtx files in the same dir as the class files
+ insinto ${TEXMF}/tex/latex/${PN}
+ for i in `find . -maxdepth 1 -type f -name "*.rtx"` ; do
+ doins $i || die "doins $i failed"
+ done
+}
diff --git a/dev-tex/revtex/revtex-4.ebuild b/dev-tex/revtex/revtex-4.ebuild
new file mode 100644
index 00000000000..e018e15a2d2
--- /dev/null
+++ b/dev-tex/revtex/revtex-4.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit latex-package
+
+DESCRIPTION="LaTeX2e macros for journals of the American Physical Society and the American Institute of Physics"
+HOMEPAGE="http://authors.aps.org/revtex4/"
+
+SRC_URI="http://publish.aps.org/files/revtex/4/revtex4.zip"
+
+LICENSE="LPPL-1.3c"
+SLOT="4"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND=">=dev-texlive/texlive-latex-2012"
+DEPEND="app-arch/unzip"
+
+IUSE=""
+
+S="${WORKDIR}/revtex4/src"
+
+TEXMF=/usr/share/texmf-site
+
+src_install() {
+ latex-package_src_install
+
+ # we need the revtex-specific rtx files in the same dir as the class files
+ insinto ${TEXMF}/tex/latex/${PN}
+ for i in `find . -maxdepth 1 -type f -name "*.rtx"` ; do
+ doins $i || die "doins $i failed"
+ done
+
+ # remove duplicate docu files to allow concurrent install with revtex-4.1
+ rm -fv "${ED}/${TEXMF}/doc/latex/revtex/"{ltxdocext.pdf,ltxgrid.pdf,ltxutil.pdf,ltxutil.dvi}
+ rm -fv "${ED}/usr/share/doc/${P}/"{textcase.dvi,revtex4.dvi,ltxgrid.dvi,ltxdocext.dvi}
+}
diff --git a/dev-tex/rubber/Manifest b/dev-tex/rubber/Manifest
new file mode 100644
index 00000000000..94b2f8be030
--- /dev/null
+++ b/dev-tex/rubber/Manifest
@@ -0,0 +1 @@
+DIST rubber-20090819.tar.gz 87066 SHA256 f271971a282a9aeed179dd510410be8ac4e3f324312d1367fdca0018a14d89c7 SHA512 7ce37f37406c88172195e738f860fe32b81a9e88026526aa5f2f765eed94205507972ccff11fbe9248c5b93d7f37a3e532089806983711e5dfa72cf5a97a6115 WHIRLPOOL 38a27d408607480b0ae73c3da690f39b49781ef1c71cc666c9c4d532b637136aa357876da5216f0632a580526c2212e3da43bb22cec9c6745d5a53f7d811bb88
diff --git a/dev-tex/rubber/metadata.xml b/dev-tex/rubber/metadata.xml
new file mode 100644
index 00000000000..21ff3a53848
--- /dev/null
+++ b/dev-tex/rubber/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>tex</herd>
+</pkgmetadata>
diff --git a/dev-tex/rubber/rubber-1.1_p20090819.ebuild b/dev-tex/rubber/rubber-1.1_p20090819.ebuild
new file mode 100644
index 00000000000..9892b139a28
--- /dev/null
+++ b/dev-tex/rubber/rubber-1.1_p20090819.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="3"
+PYTHON_DEPEND="2:2.5"
+
+inherit distutils
+
+IUSE=""
+
+MY_P=${PN}-${PV/*_p/}
+
+DESCRIPTION="A LaTeX wrapper for automatically building documents"
+HOMEPAGE="http://iml.univ-mrs.fr/~beffara/soft/rubber/"
+SRC_URI="http://iml.univ-mrs.fr/~beffara/soft/rubber/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+
+DEPEND="virtual/latex-base"
+
+S=${WORKDIR}/${P/_p*/}
+
+pkg_setup() {
+ python_set_active_version 2
+ python_pkg_setup
+}
+
+src_configure() {
+ # configure script is not created by GNU autoconf
+ ./configure --prefix=/usr \
+ --bindir=/usr/bin \
+ --datadir=/usr/share \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info || die
+}
+
+src_compile() {
+ distutils_src_compile
+
+ cd doc
+ emake all || die "emake failed"
+}
diff --git a/dev-tex/serienbrief/Manifest b/dev-tex/serienbrief/Manifest
new file mode 100644
index 00000000000..ff918863b53
--- /dev/null
+++ b/dev-tex/serienbrief/Manifest
@@ -0,0 +1 @@
+DIST serienbrief-0.2.4.tar.gz 16666 SHA256 0ba8d11f8ab4dd7212a3beec94e721d7de93fc5713cbce758f51b82bc9fe8051 SHA512 9c941712086b52fc19761872628bb2546b638cdc4d72c02687af2a79e789b8b5ee4c321176f8b94016b7ba80b772633c0ecfcc8ece850396fbaed9da20262627 WHIRLPOOL 4f2c99b45b6178af27155d89a47ccf65a1d9259a14d55cf4c1a4be58c4e34cc393b1da7bcfc37b12c7da54b3e4637f68d54a86eecba90cdc559fd3dec16a9a20
diff --git a/dev-tex/serienbrief/metadata.xml b/dev-tex/serienbrief/metadata.xml
new file mode 100644
index 00000000000..ba6a8a8800d
--- /dev/null
+++ b/dev-tex/serienbrief/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>tex</herd>
+</pkgmetadata>
diff --git a/dev-tex/serienbrief/serienbrief-0.2.4.ebuild b/dev-tex/serienbrief/serienbrief-0.2.4.ebuild
new file mode 100644
index 00000000000..c2c8087858a
--- /dev/null
+++ b/dev-tex/serienbrief/serienbrief-0.2.4.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+DESCRIPTION="Easy creation of form letters written in LaTeX"
+HOMEPAGE="http://nasauber.de/opensource/serienbrief/"
+SRC_URI="http://nasauber.de/opensource/serienbrief/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE=""
+LINS=("de")
+
+for ((i=0; i<${#LINS[@]}; i++)) do
+ IUSE="${IUSE} linguas_${LINS[$i]}"
+done
+
+KEYWORDS="~amd64 ~x86"
+
+DEPEND=""
+RDEPEND=">=dev-lang/perl-5.8.6
+ virtual/perl-Getopt-Long
+ >=virtual/perl-Term-ANSIColor-1.08
+ >=dev-perl/libintl-perl-1.16
+ virtual/latex-base"
+
+src_install() {
+ dobin bin/serienbrief
+ doman doc/serienbrief.1
+ if use linguas_de; then
+ mv po/de.mo serienbrief.mo
+ insinto /usr/share/locale/de/LC_MESSAGES
+ doins serienbrief.mo
+ fi
+ dodoc ChangeLog doc/example/*
+}
diff --git a/dev-tex/sketch/Manifest b/dev-tex/sketch/Manifest
new file mode 100644
index 00000000000..43bb088835e
--- /dev/null
+++ b/dev-tex/sketch/Manifest
@@ -0,0 +1 @@
+DIST sketch-0.3.7.tgz 2882384 SHA256 12962ad5fe5a0f7c9fc6d84bd4d09b879bbf604975c839405f1613be657ba804 SHA512 efa827ab2427177ea83dd153f1f99c8e8eb339220b5edd68bfb3854d2280287158967e8b024cf0ebd92b18627183efba34693e84cec4431de0f323fe468342d3 WHIRLPOOL 693fb5c3e54f3c152ef9be9d86a6027443bb35ed8e67a3d3641ffd1ef41dc41479530fc53ccc2671145515057bf6824daf794c64318fb22a15a2ff500ea696b0
diff --git a/dev-tex/sketch/metadata.xml b/dev-tex/sketch/metadata.xml
new file mode 100644
index 00000000000..cf72776fa56
--- /dev/null
+++ b/dev-tex/sketch/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>tex</herd>
+<herd>proxy-maintainers</herd>
+<maintainer>
+ <email>aballier@gentoo.org</email>
+ <name>Alexis Ballier</name>
+</maintainer>
+<maintainer>
+ <email>dima@sphinx.net.ru</email>
+ <name>Dmitry Dzhus</name>
+</maintainer>
+</pkgmetadata>
diff --git a/dev-tex/sketch/sketch-0.3.7.ebuild b/dev-tex/sketch/sketch-0.3.7.ebuild
new file mode 100644
index 00000000000..7f6c48c22ae
--- /dev/null
+++ b/dev-tex/sketch/sketch-0.3.7.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Produces drawings of two- or three-dimensional solid objects and scenes for TeX"
+HOMEPAGE="http://www.frontiernet.net/~eugene.ressler/"
+SRC_URI="http://www.frontiernet.net/~eugene.ressler/${P}.tgz"
+LICENSE="GPL-3"
+
+SLOT="0"
+KEYWORDS="~amd64 ~ppc64 ~x86"
+IUSE="doc examples"
+
+DEPEND="dev-lang/perl"
+RDEPEND=""
+
+src_unpack() {
+ unpack ${A}
+
+ cd "${S}"
+ sed -i -e "s:\$(CC):\$(CC) \$(LDFLAGS):" makefile
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" LDFLAGS="${LDFLAGS}" || die "emake failed"
+}
+
+src_install() {
+ dobin sketch || die
+ edos2unix Doc/sketch.info
+ doinfo Doc/sketch.info || die
+ dohtml updates.htm || die
+ if use doc ; then
+ insinto /usr/share/doc/${PF}
+ doins Doc/sketch.pdf || die
+ dohtml Doc/sketch/* || die
+ fi
+ if use examples ; then
+ insinto /usr/share/doc/${PF}/examples
+ doins Data/* || die "Failed to install examples"
+ fi
+}
diff --git a/dev-tex/slatex/Manifest b/dev-tex/slatex/Manifest
new file mode 100644
index 00000000000..7962682eb15
--- /dev/null
+++ b/dev-tex/slatex/Manifest
@@ -0,0 +1 @@
+DIST slatex-20090928.tar.bz2 47891 SHA256 6d65765d7a88b8859342bfcc9ae59779fab7afaa4ee8e4f59d22ebd8a6a3885b SHA512 4b289ba86d4e157319436d55cf7951dc5493c40bf3901fe16b879db68a234bfbd71d6dc21b18f43d77a637c973df126709a8e63086507af6ae3b2f3dc712abb1 WHIRLPOOL f9a1f1c0ee3b36ef5f608fb0f844071abe943e12e3ef0504746f8bd9100ed050bd4b73110f30d713b228adb89b40d43319bb9a178e5b3ceeb432b1fc82e4a9a3
diff --git a/dev-tex/slatex/metadata.xml b/dev-tex/slatex/metadata.xml
new file mode 100644
index 00000000000..40280b1e69c
--- /dev/null
+++ b/dev-tex/slatex/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>scheme</herd>
+ <maintainer>
+ <email>hkBst@gentoo.org</email>
+ <name>Marijn Schouten</name>
+ </maintainer>
+ <longdescription lang="en">
+SLaTeX is a Scheme program that allows you to write programs or program fragments ``as is'' in your TeX or LaTeX source. It is particularly geared to the programming languages Scheme and other Lisps, eg, Common Lisp. The formatting of the code includes assigning appropriate fonts and colors to the various tokens in the code (keywords, variables, constants, data), at the same time retaining the proper indentation when going to the non-monospace (non-typewriter) fonts provided by TeX. SLaTeX comes with two databases that recognize the identifier conventions of Scheme and Common Lisp respectively. These can be modified by the user with easy TeX commands. In addition, the user can tell SLaTeX to typeset certain identifiers as specially suited TeX expressions (ie, beyond just fonting them). All this is done without interfering with the identifier conventions of the language of the programming code. In sum, no change need be made to your (presumably running) program code in order to get a typeset version with a desired look: You can get a spectrum of styles ranging from no fonting through basic default fonting to various ``mathematical''-looking output for pedagogic or other reasons.
+ </longdescription>
+</pkgmetadata>
diff --git a/dev-tex/slatex/slatex-20090928.ebuild b/dev-tex/slatex/slatex-20090928.ebuild
new file mode 100644
index 00000000000..ed0523ae777
--- /dev/null
+++ b/dev-tex/slatex/slatex-20090928.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="3"
+
+# for updating the texmf database, id est latex-package_rehash
+inherit latex-package
+
+DESCRIPTION="SLaTeX is a Scheme program that allows you to write Scheme code in your (La)TeX source"
+HOMEPAGE="http://www.ccs.neu.edu/home/dorai/slatex/slatxdoc.html"
+SRC_URI="http://evalwhen.com/slatex/slatex.tar.bz2 -> ${P}.tar.bz2"
+
+LICENSE="freedist" # license doesn't grant the right for modifications
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+CDEPEND="dev-scheme/guile"
+DEPEND="${CDEPEND} dev-scheme/scmxlate !dev-scheme/plt-scheme"
+RDEPEND="${CDEPEND}"
+
+S="${WORKDIR}/${PN}"
+
+TARGET_DIR="/usr/share/${PN}"
+
+src_prepare() {
+ sed "s:\"/home/dorai/.www/slatex/slatex.scm\":\"${TARGET_DIR}/slatex.scm\":" \
+ -i scmxlate-slatex-src.scm || die "sed failed"
+}
+
+src_compile() {
+ local command="(load \"/usr/share/scmxlate/scmxlate.scm\")"
+ guile -c "${command}" <<< "guile" || die
+}
+
+src_install() {
+ insinto "${TARGET_DIR}"
+ doins ${PN}.scm || die "doins failed"
+ insinto /usr/share/texmf/tex/latex/slatex/
+ doins ${PN}.sty || die "doins failed"
+ dobin ${PN} || die "dobin failed"
+}
diff --git a/dev-tex/style-check/Manifest b/dev-tex/style-check/Manifest
new file mode 100644
index 00000000000..cb5fa32926b
--- /dev/null
+++ b/dev-tex/style-check/Manifest
@@ -0,0 +1 @@
+DIST style-check-0.14.tar.gz 31699 SHA256 2ae806fcce9e3b80162c64634422dc32d7f0e6f8a81ba5bc7879358744b4e119 SHA512 80c2ff47a4b00783a34e96e3015277108bd784806139a126bc84488944a725e7a4e33bedce00dda1c58c76e5540234863919d2564b53a534e5a25a12e9ee237d WHIRLPOOL 37f47917ac2b65ed38ad6fb5a484630230a03543129690fcf8e179bb4a0cce65034070435845d6d974619b43cc288ad18c45535ada2246ba0adae6817f69e37d
diff --git a/dev-tex/style-check/metadata.xml b/dev-tex/style-check/metadata.xml
new file mode 100644
index 00000000000..ba6a8a8800d
--- /dev/null
+++ b/dev-tex/style-check/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>tex</herd>
+</pkgmetadata>
diff --git a/dev-tex/style-check/style-check-0.14.ebuild b/dev-tex/style-check/style-check-0.14.ebuild
new file mode 100644
index 00000000000..619678d4d45
--- /dev/null
+++ b/dev-tex/style-check/style-check-0.14.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+DESCRIPTION="Parses latex-formatted text in search of forbidden phrases"
+HOMEPAGE="http://www.cs.umd.edu/~nspring/software/style-check-readme.html"
+SRC_URI="http://www.cs.umd.edu/~nspring/software/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc x86"
+IUSE="test"
+
+RDEPEND="dev-lang/ruby"
+DEPEND="test? ( dev-lang/ruby )"
+
+src_install() {
+ dodir /etc/style-check.d
+ emake PREFIX="${EPREFIX}/usr" DESTDIR="${ED}" install
+ dohtml README.html
+}
diff --git a/dev-tex/svninfo/Manifest b/dev-tex/svninfo/Manifest
new file mode 100644
index 00000000000..d4cde8e6f4a
--- /dev/null
+++ b/dev-tex/svninfo/Manifest
@@ -0,0 +1 @@
+DIST svninfo-0.7.4.tar.gz 14666 SHA256 aa4cec5058211e2841ad1850fc0f2394ca6806603d4190be95c0bfad4d15f698 SHA512 453874d185fba9bacda7f3454ea942b378fa3797e66204c5a26e78ad33b472dfcfdb874d864f534f7f5c49ca67becf029811b5677fb310525505362419dfb51c WHIRLPOOL 2b6a3758369da881f2f8b02a8731eb0bfe846be9587ad849f7e68abb8a45622fa29ee866963057e42e6e20cddea02195ffa1cd216d92546b102535cd5d269ed7
diff --git a/dev-tex/svninfo/files/svninfo-0.5-latex-compile.patch b/dev-tex/svninfo/files/svninfo-0.5-latex-compile.patch
new file mode 100644
index 00000000000..201256fc653
--- /dev/null
+++ b/dev-tex/svninfo/files/svninfo-0.5-latex-compile.patch
@@ -0,0 +1,11 @@
+--- svninfo/Makefile.old 2006-02-11 23:57:52.000000000 +0100
++++ svninfo/Makefile 2006-02-11 23:58:10.000000000 +0100
+@@ -74,7 +74,7 @@
+ $(PDFLATEX) $*.tex
+
+ %.ps:%.dvi
+- $(DVIPS) $*.dvi
++ $(DVIPS) -o $@ $<
+
+ html: svninfo.perl svninfo2html.tex
+ rm -fr $(HTML_DIR)
diff --git a/dev-tex/svninfo/metadata.xml b/dev-tex/svninfo/metadata.xml
new file mode 100644
index 00000000000..ba6a8a8800d
--- /dev/null
+++ b/dev-tex/svninfo/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>tex</herd>
+</pkgmetadata>
diff --git a/dev-tex/svninfo/svninfo-0.7.4.ebuild b/dev-tex/svninfo/svninfo-0.7.4.ebuild
new file mode 100644
index 00000000000..369f28086b4
--- /dev/null
+++ b/dev-tex/svninfo/svninfo-0.7.4.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit latex-package eutils
+
+LICENSE="LPPL-1.2"
+DESCRIPTION="A LaTeX module to access SVN version info"
+HOMEPAGE="http://www.brucker.ch/projects/svninfo/index.en.html"
+SRC_URI="http://www.brucker.ch/projects/svninfo/download/${P}.tar.gz"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
+IUSE=""
+
+DOCS="README"
+
+TEXMF=/usr/share/texmf-site
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}/${PN}-0.5-latex-compile.patch"
+}
+
+src_compile() {
+ export VARTEXFONTS="${T}/fonts"
+ emake -j1 || die "compilation failed"
+}
diff --git a/dev-tex/tex4ht/Manifest b/dev-tex/tex4ht/Manifest
new file mode 100644
index 00000000000..d9e1cb95878
--- /dev/null
+++ b/dev-tex/tex4ht/Manifest
@@ -0,0 +1 @@
+DIST tex4ht-1.0.2009_06_11_1038.tar.gz 2576719 SHA256 9f3e259641bb7d5f32b8efaa85cb7c1a9f1a17f5fc6a859c81449d9984ec91a3 SHA512 868961c16da63ef20a8af3ec3e56a2b6c518a291cdbc3974f701773dbb55b844f0df06aae4c7b481c96b9e2ba29cb0f1ed1279b6f32340e4708e31bb67170963 WHIRLPOOL 3fd49876e0cc19432c0ba5142848dd034a528441586550c49d04187a301ceb44a7d4374ef57a5b658a19e32b039ce1cdaa742331baf0008d51098567556e46cd
diff --git a/dev-tex/tex4ht/files/50tex4ht.cnf b/dev-tex/tex4ht/files/50tex4ht.cnf
new file mode 100644
index 00000000000..a6adf9281c8
--- /dev/null
+++ b/dev-tex/tex4ht/files/50tex4ht.cnf
@@ -0,0 +1,4 @@
+% -- tex4ht configuration params added by texmf-update --
+TEX4HTINPUTS=.;$TEXMF/tex4ht/base//;$TEXMF/tex4ht/ht-fonts//
+T4HTINPUTS=.;$TEXMF/tex4ht/base//
+% -- tex4ht configuration ends here --
diff --git a/dev-tex/tex4ht/files/tex4ht-texlive-updates.patch b/dev-tex/tex4ht/files/tex4ht-texlive-updates.patch
new file mode 100644
index 00000000000..dc0a1591215
--- /dev/null
+++ b/dev-tex/tex4ht/files/tex4ht-texlive-updates.patch
@@ -0,0 +1,428 @@
+diff -ur texmf/tex/generic/tex4ht/biblatex.4ht texmf-dist/tex/generic/tex4ht/biblatex.4ht
+--- texmf/tex/generic/tex4ht/biblatex.4ht 2009-06-11 11:20:16.000000000 -0300
++++ texmf-dist/tex/generic/tex4ht/biblatex.4ht 2011-09-18 20:09:39.000000000 -0300
+@@ -1,6 +1,7 @@
+ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+-% biblatex.4ht 2009-05-21-09:32 %
++% biblatex.4ht 2011-09-18-16:07 %
+ % Copyright (C) 2007--2009 Eitan M. Gurari %
++% 2009--2011 TeX Users Group %
+ % %
+ % This work may be distributed and/or modified under the %
+ % conditions of the LaTeX Project Public License, either %
+@@ -14,24 +15,39 @@
+ % This work has the LPPL maintenance status "maintained".%
+ % %
+ % This Current Maintainer of this work %
+-% is Eitan M. Gurari. %
++% is the TeX4ht Project <tex4ht@tug.org>. %
+ % %
+ % If you modify this program your changing its signature %
+ % with a directive of the following form will be %
+ % appreciated. %
+ % \message{signature} %
+ % %
+-% gurari@cse.ohio-state.edu %
+-% http://www.cse.ohio-state.edu/~gurari %
++% tex4ht@tug.org %
++% http://www.tug.org/tex4ht %
+ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+-\immediate\write-1{version 2009-05-21-09:32}
+-
++\immediate\write-1{version 2011-09-18-16:07}
++%
++% This work may be distributed and/or modified under the
++% conditions of the LaTeX Project Public License, either
++% version 1.3c of this license or (at your option) any
++% later version. The latest version of this license is in
++% http://www.latex-project.org/lppl.txt
++% and version 1.3c or later is part of all distributions
++% of LaTeX version 2005/12/01 or later.
++%
++% This work has the LPPL maintenance status "maintained".
++%
++% The Current Maintainer of this work
++% is the TeX4ht Project <http://tug.org/tex4ht>.
++%
++% If you modify this program, changing the
++% version identification would be appreciated.
+ \ifx \blx@startbib\:UnDef
+ \pend:def\blx@shorthands{%
+ \pend:def\blx@bibinit{%
+ \HAssign\shorthands:cnt=0
+ \NewConfigure{printfield-shorthand}{2}%
+- \Configure{printfield-shorthand}
++ \Configure{printfield-shorthand}%
+ {\gHAdvance\shorthands:cnt by 1\relax
+ \ifnum \shorthands:cnt=1 \a:printshorthands
+ \else \c:printshorthands \fi
+@@ -50,10 +66,10 @@
+ \@nameuse {blx@rerun}}
+ \pend:def\blx@bibliography{%
+ \pend:def\blx@bibinit{%
+- \ConfigureList{thebibliography}
+- {\a:thebibliography}
+- {\b:thebibliography}
+- {\c:thebibliography}
++ \ConfigureList{thebibliography}%
++ {\a:thebibliography}%
++ {\b:thebibliography}%
++ {\c:thebibliography}%
+ {\d:thebibliography}%
+ \csname onthebibliography:list\endcsname
+ }%
+@@ -75,8 +91,8 @@
+ \NewConfigure{printfield-#2}{2}%
+ \a:printfield{printfield-#2}%
+ \fi
+- \Configure{blx@unit}
+- {\csname a:printfield-#2\endcsname}
++ \Configure{blx@unit}%
++ {\csname a:printfield-#2\endcsname}%
+ {\csname b:printfield-#2\endcsname}%
+ \csname o:\string\blx@printfield:\endcsname[#1]{#2}%
+ }
+@@ -92,8 +108,8 @@
+ \NewConfigure{bibstring-#2}{2}%
+ \a:printfield{bibstring-#2}%
+ \fi
+- \Configure{blx@unit}
+- {\csname a:bibstring-#2\endcsname}
++ \Configure{blx@unit}%
++ {\csname a:bibstring-#2\endcsname}%
+ {\csname b:bibstring-#2\endcsname}%
+ \csname o:\string\blx@bibstring:\endcsname[#1]{#2}%
+ }
+@@ -103,8 +119,8 @@
+ \NewConfigure{bibcpstring-#2}{2}%
+ \a:printfield{bibcpstring-#2}%
+ \fi
+- \Configure{blx@unit}
+- {\csname a:bibcpstring-#2\endcsname}
++ \Configure{blx@unit}%
++ {\csname a:bibcpstring-#2\endcsname}%
+ {\csname b:bibcpstring-#2\endcsname}%
+ \csname o:\string\blx@bibcpstring:\endcsname[#1]{#2}%
+ }
+@@ -114,8 +130,8 @@
+ \NewConfigure{biblcstring-#2}{2}%
+ \a:printfield{biblcstring-#2}%
+ \fi
+- \Configure{blx@unit}
+- {\csname a:biblcstring-#2\endcsname}
++ \Configure{blx@unit}%
++ {\csname a:biblcstring-#2\endcsname}%
+ {\csname b:biblcstring-#2\endcsname}%
+ \csname o:\string\blx@biblcstring:\endcsname[#1]{#2}%
+ }
+@@ -125,13 +141,13 @@
+ \NewConfigure{bibucstring-#2}{2}%
+ \a:printfield{bibucstring-#2}%
+ \fi
+- \Configure{blx@unit}
+- {\csname a:bibucstring-#2\endcsname}
++ \Configure{blx@unit}%
++ {\csname a:bibucstring-#2\endcsname}%
+ {\csname b:bibucstring-#2\endcsname}%
+ \csname o:\string\blx@bibucstring:\endcsname[#1]{#2}%
+ }
+ \expandafter\HLet\csname\string\blx@bibucstring\endcsname\:tempc
+-\NewConfigure{biblatex-style}[2]{
++\NewConfigure{biblatex-style}[2]{%
+ \def\:temp{#1}%
+ \ifx \:temp\blx@cbxfile
+ #2%
+@@ -149,10 +165,19 @@
+ \blx:item[#1]%
+ \ifhmode \spacefactor\blx@sf@par\fi
+ }
++\newskip\blx@unitmark
++\blx@unitmark=10pt plus 1pt minus 1pt
++\let\abx@aux@page\@gobbletwo
++\AtEndDocument{%
++ \def\abx@aux@page#1#2{\blx@addpagesum{#1}{#2}}%
++ \def\abx@aux@fnpage#1#2{\blx@addpagesum{#1}{#2}}}
++%
++\let\blx@resetpuncthook\@empty
++\let\blx@csq@ifkernmark\@empty
+ \def\blx@begunit{%
+ \toggletrue{blx@tempa}%
+- \iftoggle{blx@insert}
+- {\iftoggle{blx@unit}
++ \iftoggle{blx@insert}%
++ {\iftoggle{blx@unit}%
+ {\begingroup
+ \let\blx@begunit\@empty
+ \let\blx@endunit\@empty
+@@ -161,25 +186,25 @@
+ \global\togglefalse{blx@unit}%
+ \togglefalse{blx@tempa}}
+ {\blx@postpunct}%
+- \iftoggle{blx@block}
++ \iftoggle{blx@block}%
+ {\begingroup
+ \let\blx@begunit\@empty
+ \let\blx@endunit\@empty
+ \newblockpunct
+ \endgroup
+ \global\togglefalse{blx@block}%
+- \togglefalse{blx@tempa}}
+- {}}
++ \togglefalse{blx@tempa}}%
++ {}}%
+ {}%
+ \blx@postpunct
+ \blx@resetpuncthook
+- \iftoggle{blx@tempa}
+- {}
++ \iftoggle{blx@tempa}%
++ {}%
+ {\global\togglefalse{blx@insert}}%
+ \csname a:blx@unit\endcsname
+ \blx@leavevmode
+ \blx@csq@ifkernmark
+- {}
++ {}%
+ {\penalty\@M
+ \hskip-\blx@unitmark\relax
+ \hskip\blx@unitmark\relax}%
+@@ -204,14 +229,15 @@
+
+ \fi
+ \NewConfigure{thebibliography}{4}
+-\append:def\blx@bibinit{\a:bibinit}
+-\NewConfigure{bibinit}{1}
++\append:def\blx@bibinit{\a:bibinit}%
++\NewConfigure{bibinit}{1}%
+
+ \let\blx@anchors\@empty
++\let\bib@field@entrykey\@empty
+ \protected\def\blx@anchor{%
+ \xifinlist{X\the\c@refsection -%@
+-\bib@field@entrykey}{\blx@anchors}
+- {}
++\bib@field@entrykey}{\blx@anchors}%
++ {}%
+ {\listxadd\blx@anchors{X\the\c@refsection -%@
+ \bib@field@entrykey}%
+ \hyper:natanchorstart{X\the\c@refsection -%@
+@@ -219,22 +245,22 @@
+ \hyper:natanchorend}}
+ \protected\def\blx@bibhyperref{%
+ \@ifnextchar[%]
+- {\blx@bibhyperref@i}
++ {\blx@bibhyperref@i}%
+ {\blx@bibhyperref@i[\bib@field@entrykey]}}%
+ \long\def\blx@bibhyperref@i[#1]#2{%
+ \hyper:natlinkstart{X\the\c@refsection -%@
+ #1}%
+- #2\hyper:natlinkend}
++ #2\hyper:natlinkend}%
+ \protected\long\def\blx@bibhyperlink#1#2{%
+ \hyper:natlinkstart{X\the\c@refsection --%:
+ #1}%
+- #2\hyper:natlinkend}
++ #2\hyper:natlinkend}%
+ \protected\long\def\blx@bibhypertarget#1#2{%
+ \@bsphack
+ \hyper:natanchorstart{X\the\c@refsection --%:
+ #1}%
+ \@esphack
+- #2\hyper:natanchorend}
++ #2\hyper:natanchorend}%
+ \let\blx@ifhyperref\@firstoftwo
+ \def\hyper:natanchorstart#1{\Link{}{#1}\EndLink}
+ \def\hyper:natanchorend{}
+@@ -244,9 +270,9 @@
+ \let\:temp\do
+ \def\do#1{%
+ \patchcmd#1%
+- {\color@begingroup}
+- {\color@begingroup\toggletrue{blx@footnote}}
+- {\togglefalse{blx@tempa}\listbreak}
++ {\color@begingroup}%
++ {\color@begingroup\toggletrue{blx@footnote}}%
++ {\togglefalse{blx@tempa}\listbreak}%
+ {}}%
+ \docsvlist{%
+ \@footnotetext,% latex
+diff -ur texmf/tex/generic/tex4ht/hyperref.4ht texmf-dist/tex/generic/tex4ht/hyperref.4ht
+--- texmf/tex/generic/tex4ht/hyperref.4ht 2009-06-11 11:20:21.000000000 -0300
++++ texmf-dist/tex/generic/tex4ht/hyperref.4ht 2011-02-02 13:45:16.000000000 -0200
+@@ -1,6 +1,7 @@
+ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+-% hyperref.4ht 2009-05-21-09:32 %
++% hyperref.4ht 2011-01-30-16:01 %
+ % Copyright (C) 1999--2009 Eitan M. Gurari %
++% 2009--2011 TeX Users Group %
+ % %
+ % This work may be distributed and/or modified under the %
+ % conditions of the LaTeX Project Public License, either %
+@@ -14,17 +15,17 @@
+ % This work has the LPPL maintenance status "maintained".%
+ % %
+ % This Current Maintainer of this work %
+-% is Eitan M. Gurari. %
++% is the TeX4ht Project <tex4ht@tug.org>. %
+ % %
+ % If you modify this program your changing its signature %
+ % with a directive of the following form will be %
+ % appreciated. %
+ % \message{signature} %
+ % %
+-% gurari@cse.ohio-state.edu %
+-% http://www.cse.ohio-state.edu/~gurari %
++% tex4ht@tug.org %
++% http://www.tug.org/tex4ht %
+ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+-\immediate\write-1{version 2009-05-21-09:32}
++\immediate\write-1{version 2011-01-30-16:01}
+
+ \csname end:hyperref\endcsname
+ \@ifpackageloaded{nameref}{}
+@@ -297,6 +298,26 @@
+ \expandafter\:tempa
+ \fi}
+
++\def\Hy@MakeCurrentHref#1{%
++ \edef\HyperLocalCurrentHref{#1}%
++ \@onelevel@sanitize\HyperLocalCurrentHref
++ \global\let\HyperGlobalCurrentHref\HyperLocalCurrentHref
++ \let\HyperLocalCurrentHref\HyperGlobalCurrentHref
++ \ifHy@localanchorname
++ \let\@currentHref\HyperLocalCurrentHref
++ \else
++ \global\let\@currentHref\HyperGlobalCurrentHref
++ \fi
++}
++
++\let\Hy@SectionAnchorHref\@gobble
++\newlength\Hy@SectionHShift
++
++\def\Hy@MakeCurrentHrefAuto#1{%
++ \Hy@GlobalStepCount\Hy@linkcounter
++ \Hy@MakeCurrentHref{#1.\the\Hy@linkcounter}%
++}
++
+ \def\hyper@makecurrent#1{%
+ \begingroup
+ \edef\Hy@param{#1}%
+diff -ur texmf/tex/generic/tex4ht/nameref.4ht texmf-dist/tex/generic/tex4ht/nameref.4ht
+--- texmf/tex/generic/tex4ht/nameref.4ht 2009-06-11 11:20:24.000000000 -0300
++++ texmf-dist/tex/generic/tex4ht/nameref.4ht 2010-09-26 19:41:25.000000000 -0300
+@@ -1,6 +1,6 @@
+ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+-% nameref.4ht 2009-05-21-09:32 %
+-% Copyright (C) 2005--2009 Eitan M. Gurari %
++% nameref.4ht 2010-09-04-21:02 %
++% Copyright (C) 2005--2010 Eitan M. Gurari %
+ % %
+ % This work may be distributed and/or modified under the %
+ % conditions of the LaTeX Project Public License, either %
+@@ -14,24 +14,27 @@
+ % This work has the LPPL maintenance status "maintained".%
+ % %
+ % This Current Maintainer of this work %
+-% is Eitan M. Gurari. %
++% is the TeX4ht Project <tex4ht@tug.org>. %
+ % %
+ % If you modify this program your changing its signature %
+ % with a directive of the following form will be %
+ % appreciated. %
+ % \message{signature} %
+ % %
+-% gurari@cse.ohio-state.edu %
+-% http://www.cse.ohio-state.edu/~gurari %
++% tex4ht@tug.org %
++% http://www.tug.org/tex4ht %
+ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+-\immediate\write-1{version 2009-05-21-09:32}
++\immediate\write-1{version 2010-09-04-21:02}
+
+ \let\ltx@label\label
+ \def\prf:label{{\ifx \NR:Title\:UnDef \else \NR:Title\fi}%
+ {\ifx \NR:Type\:UnDef \else \NR:Type .1\fi}{}}%
+ \let\NR:StartSec\:StartSec
++\let\NR:no@sect\no@sect
++\def\no@sect#1#2#3#4#5#6[#7]#8{\gdef\NR:Title{\a:newlabel{#7}}%
++ \NR:no@sect{#1}{#2}{#3}{#4}{#5}{#6}[#7]{#8}}
+ \def\:StartSec#1#2#3{%
+- \gdef\NR:Title{\a:newlabel{#3}}%
++% \gdef\NR:Title{\a:newlabel{#3}}%
+ \gdef\NR:Type{#1}%
+ \NR:StartSec{#1}{#2}{#3}%
+ \gdef\@currentlabelname{#1}%
+diff -ur texmf/tex/generic/tex4ht/unicode.4ht texmf-dist/tex/generic/tex4ht/unicode.4ht
+--- texmf/tex/generic/tex4ht/unicode.4ht 2009-06-11 11:20:28.000000000 -0300
++++ texmf-dist/tex/generic/tex4ht/unicode.4ht 2011-09-18 20:09:39.000000000 -0300
+@@ -1,30 +1,22 @@
+-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+-% unicode.4ht 2009-02-23-20:45 %
+-% Copyright (C) 1998--2009 Eitan M. Gurari %
+-% %
+-% This work may be distributed and/or modified under the %
+-% conditions of the LaTeX Project Public License, either %
+-% version 1.3 of this license or (at your option) any %
+-% later version. The latest version of this license is %
+-% in %
+-% http://www.latex-project.org/lppl.txt %
+-% and version 1.3 or later is part of all distributions %
+-% of LaTeX version 2003/12/01 or later. %
+-% %
+-% This work has the LPPL maintenance status "maintained".%
+-% %
+-% This Current Maintainer of this work %
+-% is Eitan M. Gurari. %
+-% %
+-% If you modify this program your changing its signature %
+-% with a directive of the following form will be %
+-% appreciated. %
+-% \message{signature} %
+-% %
+-% gurari@cse.ohio-state.edu %
+-% http://www.cse.ohio-state.edu/~gurari %
+-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+-\immediate\write-1{version 2009-02-23-20:45}
++% unicode.4ht (2010-12-18-17:40), generated from tex4ht-unicode.tex
++% Copyright (C) 1998-2009 Eitan M. Gurari
++%
++% This work may be distributed and/or modified under the
++% conditions of the LaTeX Project Public License, either
++% version 1.3c of this license or (at your option) any
++% later version. The latest version of this license is in
++% http://www.latex-project.org/lppl.txt
++% and version 1.3c or later is part of all distributions
++% of LaTeX version 2005/12/01 or later.
++%
++% This work has the LPPL maintenance status "maintained".
++%
++% The Current Maintainer of this work
++% is the TeX4ht Project <http://tug.org/tex4ht>.
++%
++% If you modify this program, changing the
++% version identification would be appreciated.
++\immediate\write-1{version 2010-12-18-17:40}
+
+ \exit:ifnot{8859-6,%
+ SIunits,%
+@@ -1282,6 +1274,11 @@
+
+
+
++
++
++
++
++
+ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ \ConfigureHinput{eurosym}
+ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+@@ -1678,7 +1675,7 @@
+ {\a:accents{}{#1}} {\b:accents{udot}{#1}{#2}}
+ \expand:after{\expand:after{\Configure{accent}}%
+ \csname OT1\string\H\endcsname}%
+- \csname OT1\string\H\endcsname{o{0151}O{0151}U{0170}u{0171}%
++ \csname OT1\string\H\endcsname{o{0151}O{0150}U{0170}u{0171}%
+ {}{}}
+ {\a:accents{}{#1}} {\b:accents{Huml}{#1}{#2}}
+ \Configure{accent}\dot\dot{C{010A}c{010B}E{0116}e{0117}G{0120}g{0121}%
diff --git a/dev-tex/tex4ht/metadata.xml b/dev-tex/tex4ht/metadata.xml
new file mode 100644
index 00000000000..ba6a8a8800d
--- /dev/null
+++ b/dev-tex/tex4ht/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>tex</herd>
+</pkgmetadata>
diff --git a/dev-tex/tex4ht/tex4ht-20090611_p1038-r1.ebuild b/dev-tex/tex4ht/tex4ht-20090611_p1038-r1.ebuild
new file mode 100644
index 00000000000..de7acbe1e0a
--- /dev/null
+++ b/dev-tex/tex4ht/tex4ht-20090611_p1038-r1.ebuild
@@ -0,0 +1,113 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit latex-package toolchain-funcs java-pkg-opt-2
+
+IUSE=""
+
+# tex4ht-20050331_p2350 -> tex4ht-1.0.2005_03_31_2350
+MY_P="${PN}-1.0.${PV:0:4}_${PV:4:2}_${PV:6:2}_${PV/*_p/}"
+
+DESCRIPTION="Converts (La)TeX to (X)HTML, XML and OO.org"
+HOMEPAGE="http://www.cse.ohio-state.edu/~gurari/TeX4ht/
+ http://www.cse.ohio-state.edu/~gurari/TeX4ht/bugfixes.html"
+SRC_URI="http://www.cse.ohio-state.edu/~gurari/TeX4ht/fix/${MY_P}.tar.gz"
+
+LICENSE="LPPL-1.2"
+KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux"
+SLOT="0"
+
+DEPEND=">=sys-apps/sed-4
+ java? ( >=virtual/jdk-1.5 )"
+
+RDEPEND="app-text/ghostscript-gpl
+ media-gfx/imagemagick
+ java? ( >=virtual/jre-1.5 )"
+
+IUSE="java"
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+ cd "${S}/texmf/tex4ht/base/unix"
+ sed -i \
+ -e "s#~/tex4ht.dir#${EPREFIX}/usr/share#" \
+ -e "s#tpath/tex/texmf/fonts/tfm/!#t${EPREFIX}/usr/share/texmf/fonts/tfm/!\nt${EPREFIX}/usr/local/share/texmf/fonts/tfm/!\nt${EPREFIX}/var/cache/fonts/tfm/!#" \
+ -e "s#%%~/texmf-dist#${EPREFIX}/usr/share/texmf#g" tex4ht.env \
+ || die "sed of tex4ht.env failed"
+
+ einfo "Removing precompiled java stuff"
+ find "${S}" '(' -name '*.class' -o -name '*.jar' ')' -print -delete
+}
+
+src_compile() {
+ cd "${S}/src/"
+ einfo "Compiling postprocessor sources..."
+ for f in tex4ht t4ht htcmd ; do
+ $(tc-getCC) ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -o $f $f.c \
+ -DENVFILE="\"${EPREFIX}/usr/share/texmf/tex4ht/base/tex4ht.env\"" \
+ -DHAVE_DIRENT_H -DKPATHSEA -lkpathsea \
+ || die "Compiling $f failed"
+ done
+ if use java; then
+ einfo "Compiling java files..."
+ cd java
+ ejavac *.java */*.java */*/*.java -d ../../texmf/tex4ht/bin
+ cd "${S}/texmf/tex4ht/bin"
+ # Create the jar needed by oolatex
+ jar -cf "${S}/${PN}.jar" * || die "failed to create jar"
+ fi
+}
+
+src_install () {
+ # install the binaries
+ dobin "${S}/src/tex4ht" "${S}/src/t4ht" "${S}/src/htcmd"
+ # install the scripts
+ if ! use java; then
+ rm -f "${S}"/bin/unix/oo*
+ rm -f "${S}"/bin/unix/jh*
+ fi
+ dobin "${S}"/bin/unix/mk4ht || die
+
+ # install the .4ht scripts
+ insinto /usr/share/texmf/tex/generic/tex4ht
+ doins "${S}"/texmf/tex/generic/tex4ht/* || die
+
+ # install the special htf fonts
+ insinto /usr/share/texmf/tex4ht
+ doins -r "${S}/texmf/tex4ht/ht-fonts" || die
+
+ if use java; then
+ # install the java files
+ doins -r "${S}/texmf/tex4ht/bin"
+ java-pkg_jarinto /usr/share/texmf/tex4ht/bin
+ java-pkg_dojar "${S}/${PN}.jar"
+ fi
+
+ # install the .4xt files
+ doins -r "${S}/texmf/tex4ht/xtpipes" || die
+
+ # install the env file
+ insinto /usr/share/texmf/tex4ht/base
+ newins "${S}/texmf/tex4ht/base/unix/tex4ht.env" tex4ht.env || die
+
+ if latex-package_has_tetex_3 ; then
+ insinto /etc/texmf/texmf.d
+ doins "${FILESDIR}/50tex4ht.cnf" || die
+ fi
+
+ insinto /usr/share/texmf/tex/generic/${PN}
+ insopts -m755
+ doins "${S}"/bin/ht/unix/* || die
+}
+
+pkg_postinst() {
+ use java || elog 'ODF converters (oolatex & friends) require the java use flag'
+ latex-package_pkg_postinst
+ elog "In order to avoid collisions with multiple packages"
+ elog "We are not installing the scripts in /usr/bin anymore"
+ elog "If you want to use, say, htlatex, you can use 'mk4ht htlatex file'"
+}
diff --git a/dev-tex/tex4ht/tex4ht-20090611_p1038-r2.ebuild b/dev-tex/tex4ht/tex4ht-20090611_p1038-r2.ebuild
new file mode 100644
index 00000000000..f3a8664a1bd
--- /dev/null
+++ b/dev-tex/tex4ht/tex4ht-20090611_p1038-r2.ebuild
@@ -0,0 +1,114 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit latex-package toolchain-funcs java-pkg-opt-2
+
+IUSE=""
+
+# tex4ht-20050331_p2350 -> tex4ht-1.0.2005_03_31_2350
+MY_P="${PN}-1.0.${PV:0:4}_${PV:4:2}_${PV:6:2}_${PV/*_p/}"
+
+DESCRIPTION="Converts (La)TeX to (X)HTML, XML and OO.org"
+HOMEPAGE="http://www.cse.ohio-state.edu/~gurari/TeX4ht/
+ http://www.cse.ohio-state.edu/~gurari/TeX4ht/bugfixes.html"
+SRC_URI="http://www.cse.ohio-state.edu/~gurari/TeX4ht/fix/${MY_P}.tar.gz"
+
+LICENSE="LPPL-1.2"
+KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux"
+SLOT="0"
+
+DEPEND=">=sys-apps/sed-4
+ java? ( >=virtual/jdk-1.5 )"
+
+RDEPEND="app-text/ghostscript-gpl
+ media-gfx/imagemagick
+ java? ( >=virtual/jre-1.5 )"
+
+IUSE="java"
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+ epatch "${FILESDIR}/${PN}-texlive-updates.patch"
+ cd "${S}/texmf/tex4ht/base/unix"
+ sed -i \
+ -e "s#~/tex4ht.dir#${EPREFIX}/usr/share#" \
+ -e "s#tpath/tex/texmf/fonts/tfm/!#t${EPREFIX}/usr/share/texmf/fonts/tfm/!\nt${EPREFIX}/usr/local/share/texmf/fonts/tfm/!\nt${EPREFIX}/var/cache/fonts/tfm/!#" \
+ -e "s#%%~/texmf-dist#${EPREFIX}/usr/share/texmf#g" tex4ht.env \
+ || die "sed of tex4ht.env failed"
+
+ einfo "Removing precompiled java stuff"
+ find "${S}" '(' -name '*.class' -o -name '*.jar' ')' -print -delete
+}
+
+src_compile() {
+ cd "${S}/src/"
+ einfo "Compiling postprocessor sources..."
+ for f in tex4ht t4ht htcmd ; do
+ $(tc-getCC) ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -o $f $f.c \
+ -DENVFILE="\"${EPREFIX}/usr/share/texmf/tex4ht/base/tex4ht.env\"" \
+ -DHAVE_DIRENT_H -DKPATHSEA -lkpathsea \
+ || die "Compiling $f failed"
+ done
+ if use java; then
+ einfo "Compiling java files..."
+ cd java
+ ejavac *.java */*.java */*/*.java -d ../../texmf/tex4ht/bin
+ cd "${S}/texmf/tex4ht/bin"
+ # Create the jar needed by oolatex
+ jar -cf "${S}/${PN}.jar" * || die "failed to create jar"
+ fi
+}
+
+src_install () {
+ # install the binaries
+ dobin "${S}/src/tex4ht" "${S}/src/t4ht" "${S}/src/htcmd"
+ # install the scripts
+ if ! use java; then
+ rm -f "${S}"/bin/unix/oo*
+ rm -f "${S}"/bin/unix/jh*
+ fi
+ dobin "${S}"/bin/unix/mk4ht || die
+
+ # install the .4ht scripts
+ insinto /usr/share/texmf/tex/generic/tex4ht
+ doins "${S}"/texmf/tex/generic/tex4ht/* || die
+
+ # install the special htf fonts
+ insinto /usr/share/texmf/tex4ht
+ doins -r "${S}/texmf/tex4ht/ht-fonts" || die
+
+ if use java; then
+ # install the java files
+ doins -r "${S}/texmf/tex4ht/bin"
+ java-pkg_jarinto /usr/share/texmf/tex4ht/bin
+ java-pkg_dojar "${S}/${PN}.jar"
+ fi
+
+ # install the .4xt files
+ doins -r "${S}/texmf/tex4ht/xtpipes" || die
+
+ # install the env file
+ insinto /usr/share/texmf/tex4ht/base
+ newins "${S}/texmf/tex4ht/base/unix/tex4ht.env" tex4ht.env || die
+
+ if latex-package_has_tetex_3 ; then
+ insinto /etc/texmf/texmf.d
+ doins "${FILESDIR}/50tex4ht.cnf" || die
+ fi
+
+ insinto /usr/share/texmf/tex/generic/${PN}
+ insopts -m755
+ doins "${S}"/bin/ht/unix/* || die
+}
+
+pkg_postinst() {
+ use java || elog 'ODF converters (oolatex & friends) require the java use flag'
+ latex-package_pkg_postinst
+ elog "In order to avoid collisions with multiple packages"
+ elog "We are not installing the scripts in /usr/bin anymore"
+ elog "If you want to use, say, htlatex, you can use 'mk4ht htlatex file'"
+}
diff --git a/dev-tex/tex4ht/tex4ht-20090611_p1038-r3.ebuild b/dev-tex/tex4ht/tex4ht-20090611_p1038-r3.ebuild
new file mode 100644
index 00000000000..1a44dc9cdba
--- /dev/null
+++ b/dev-tex/tex4ht/tex4ht-20090611_p1038-r3.ebuild
@@ -0,0 +1,121 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit latex-package toolchain-funcs java-pkg-opt-2 flag-o-matic
+
+IUSE=""
+
+# tex4ht-20050331_p2350 -> tex4ht-1.0.2005_03_31_2350
+MY_P="${PN}-1.0.${PV:0:4}_${PV:4:2}_${PV:6:2}_${PV/*_p/}"
+
+DESCRIPTION="Converts (La)TeX to (X)HTML, XML and OO.org"
+HOMEPAGE="http://www.cse.ohio-state.edu/~gurari/TeX4ht/
+ http://www.cse.ohio-state.edu/~gurari/TeX4ht/bugfixes.html"
+SRC_URI="http://www.cse.ohio-state.edu/~gurari/TeX4ht/fix/${MY_P}.tar.gz"
+
+LICENSE="LPPL-1.2"
+KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ppc ~ppc64 ~s390 ~sh ~sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux"
+SLOT="0"
+
+DEPEND=">=sys-apps/sed-4
+ virtual/pkgconfig
+ dev-libs/kpathsea
+ java? ( >=virtual/jdk-1.5 )"
+
+RDEPEND="app-text/ghostscript-gpl
+ media-gfx/imagemagick
+ dev-libs/kpathsea
+ java? ( >=virtual/jre-1.5 )"
+
+IUSE="java"
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+ epatch "${FILESDIR}/${PN}-texlive-updates.patch"
+ cd "${S}/texmf/tex4ht/base/unix"
+ sed -i \
+ -e "s#~/tex4ht.dir#${EPREFIX}/usr/share#" \
+ -e "s#tpath/tex/texmf/fonts/tfm/!#t${EPREFIX}/usr/share/texmf-dist/fonts/tfm/!\nt${EPREFIX}/usr/local/share/texmf/fonts/tfm/!\nt${EPREFIX}/var/cache/fonts/tfm/!\nt${EPREFIX}${TEXMF}/fonts/tfm/!#" \
+ -e "s#%%~/texmf-dist#${EPREFIX}${TEXMF}#g" \
+ -e "s#/usr/share/texmf/#${EPREFIX}${TEXMF}/#" \
+ tex4ht.env \
+ || die "sed of tex4ht.env failed"
+
+ einfo "Removing precompiled java stuff"
+ find "${S}" '(' -name '*.class' -o -name '*.jar' ')' -print -delete
+}
+
+src_compile() {
+ has_version '>=dev-libs/kpathsea-6.2.1' && append-cppflags "$($(tc-getPKG_CONFIG) --cflags kpathsea)"
+
+ cd "${S}/src/"
+ einfo "Compiling postprocessor sources..."
+ for f in tex4ht t4ht htcmd ; do
+ $(tc-getCC) ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -o $f $f.c \
+ -DENVFILE="\"${EPREFIX}${TEXMF}/tex4ht/base/tex4ht.env\"" \
+ -DHAVE_DIRENT_H -DKPATHSEA -lkpathsea \
+ || die "Compiling $f failed"
+ done
+ if use java; then
+ einfo "Compiling java files..."
+ cd java
+ ejavac *.java */*.java */*/*.java -d ../../texmf/tex4ht/bin
+ cd "${S}/texmf/tex4ht/bin"
+ # Create the jar needed by oolatex
+ jar -cf "${S}/${PN}.jar" * || die "failed to create jar"
+ fi
+}
+
+src_install () {
+ # install the binaries
+ dobin "${S}/src/tex4ht" "${S}/src/t4ht" "${S}/src/htcmd"
+ # install the scripts
+ if ! use java; then
+ rm -f "${S}"/bin/unix/oo*
+ rm -f "${S}"/bin/unix/jh*
+ fi
+ dobin "${S}"/bin/unix/mk4ht || die
+
+ # install the .4ht scripts
+ insinto ${TEXMF}/tex/generic/tex4ht
+ doins "${S}"/texmf/tex/generic/tex4ht/* || die
+
+ # install the special htf fonts
+ insinto ${TEXMF}/tex4ht
+ doins -r "${S}/texmf/tex4ht/ht-fonts" || die
+
+ if use java; then
+ # install the java files
+ doins -r "${S}/texmf/tex4ht/bin"
+ java-pkg_jarinto ${TEXMF}/tex4ht/bin
+ java-pkg_dojar "${S}/${PN}.jar"
+ fi
+
+ # install the .4xt files
+ doins -r "${S}/texmf/tex4ht/xtpipes" || die
+
+ # install the env file
+ insinto ${TEXMF}/tex4ht/base
+ newins "${S}/texmf/tex4ht/base/unix/tex4ht.env" tex4ht.env || die
+
+ if latex-package_has_tetex_3 ; then
+ insinto /etc/texmf/texmf.d
+ doins "${FILESDIR}/50tex4ht.cnf" || die
+ fi
+
+ insinto ${TEXMF}/tex/generic/${PN}
+ insopts -m755
+ doins "${S}"/bin/ht/unix/* || die
+}
+
+pkg_postinst() {
+ use java || elog 'ODF converters (oolatex & friends) require the java use flag'
+ latex-package_pkg_postinst
+ elog "In order to avoid collisions with multiple packages"
+ elog "We are not installing the scripts in /usr/bin anymore"
+ elog "If you want to use, say, htlatex, you can use 'mk4ht htlatex file'"
+}
diff --git a/dev-tex/texamator/Manifest b/dev-tex/texamator/Manifest
new file mode 100644
index 00000000000..6d20cb571b7
--- /dev/null
+++ b/dev-tex/texamator/Manifest
@@ -0,0 +1 @@
+DIST TeXamator.v.1.7.5.tar.gz 784894 SHA256 b81298658c370e0695dcdce109144037836bc830a7ffcc15f38c30aec0fbb0ad SHA512 a0b05364ac1a65250a2b493616d618b1bd57950681b8f9b60200790572c1bac86dcc86fb922bb0d26bfe49f4d076a5d2f109761a4cdd5630807db03ea7928bb1 WHIRLPOOL 4e299251264cb116c38e3f8abf324a9c24235845384705b78a57766cde5b2197e51f0a17f04513520d18b19e2fd94cf745a94287c919074ee4963d32e722ff6a
diff --git a/dev-tex/texamator/files/texamator b/dev-tex/texamator/files/texamator
new file mode 100644
index 00000000000..93e860dc09c
--- /dev/null
+++ b/dev-tex/texamator/files/texamator
@@ -0,0 +1,3 @@
+#!/bin/sh
+cd /usr/lib/TeXamator
+exec python2 TeXamator.py
diff --git a/dev-tex/texamator/metadata.xml b/dev-tex/texamator/metadata.xml
new file mode 100644
index 00000000000..ed0568d85e7
--- /dev/null
+++ b/dev-tex/texamator/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>tex</herd>
+</pkgmetadata>
diff --git a/dev-tex/texamator/texamator-1.7.5.ebuild b/dev-tex/texamator/texamator-1.7.5.ebuild
new file mode 100644
index 00000000000..df0e135ca3c
--- /dev/null
+++ b/dev-tex/texamator/texamator-1.7.5.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+PYTHON_DEPEND="2"
+
+inherit multilib python
+
+MY_PN=TeXamator
+
+DESCRIPTION="A program aimed at helping you making your exercise sheets"
+HOMEPAGE="http://snouffy.free.fr/blog-en/index.php/category/TeXamator"
+SRC_URI="http://snouffy.free.fr/blog-en/public/${MY_PN}/${MY_PN}.v.${PV}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="app-text/dvipng
+ dev-python/PyQt4
+ virtual/latex-base"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/${MY_PN}
+
+pkg_setup() {
+ python_set_active_version 2
+ python_pkg_setup
+}
+
+src_install() {
+ python_need_rebuild
+
+ dobin "${FILESDIR}"/${PN}
+
+ insinto /usr/$(get_libdir)/${MY_PN}
+ doins -r ${MY_PN}.py partielatormods {ts,ui}_files
+}
+
+pkg_postinst() {
+ python_mod_optimize /usr/$(get_libdir)/${MY_PN}
+}
+
+pkg_postrm() {
+ python_mod_cleanup /usr/$(get_libdir)/${MY_PN}
+}
diff --git a/dev-tex/texmfind/Manifest b/dev-tex/texmfind/Manifest
new file mode 100644
index 00000000000..b63c6bf83d9
--- /dev/null
+++ b/dev-tex/texmfind/Manifest
@@ -0,0 +1 @@
+DIST texmfind-2010.1.tar.bz2 297318 SHA256 c139f96059c0cacaf654bdb57757589014203d3fcc4420ce66e108f5d98b6be4 SHA512 0f36d3036f39fdc24d742cc601712ea7fe91e3f29b5042f87523dd5a004acdb0e9be00f8d017a6f1761afd8c053ff33b9920535770c788acd0e97354bbc7153f WHIRLPOOL 88cdbf8cf57971779a41a1e6d1fac653249b4855f0c262708fec9a5e955c1a44cf8ddecf4c751bb33adfe499dee6815077add05e1e6715a9d37875047e2fdb7f
diff --git a/dev-tex/texmfind/metadata.xml b/dev-tex/texmfind/metadata.xml
new file mode 100644
index 00000000000..105baf33972
--- /dev/null
+++ b/dev-tex/texmfind/metadata.xml
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>tex</herd>
+ <herd>proxy-maintainers</herd>
+ <maintainer>
+ <email>etux@bluewin.ch</email>
+ <name>Alexandre -- Untux</name>
+ </maintainer>
+ <maintainer>
+ <email>aballier@gentoo.org</email>
+ <name>Alexis Ballier</name>
+ </maintainer>
+ <maintainer>
+ <email>fauli@gentoo.org</email>
+ <name>Christian Faulhammer</name>
+ </maintainer>
+ <longdescription lang="en">
+ Little CLI utility for Gentoo-texlive end-users. Search for texmf-files
+ matching a grep regexp and get the corresponding ebuild. It consists of
+ a small Bash script, wrapping grep, and a flat data file containing (a
+ good chunk of) the texmf-files that can be installed from the main
+ portage tree.
+ </longdescription>
+ <upstream>
+ <remote-id type="launchpad">texmfind</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-tex/texmfind/texmfind-2010.1.ebuild b/dev-tex/texmfind/texmfind-2010.1.ebuild
new file mode 100644
index 00000000000..7e539e3c171
--- /dev/null
+++ b/dev-tex/texmfind/texmfind-2010.1.ebuild
@@ -0,0 +1,17 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+DESCRIPTION="Locate the ebuild providing a certain texmf file through regexp"
+HOMEPAGE="https://launchpad.net/texmfind/
+ http://home.gna.org/texmfind"
+SRC_URI="http://launchpad.net/texmfind/2010/${PV}/+download/texmfind-${PV}.tar.bz2"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 ~mips ~ppc ~ppc64 ~sparc x86"
+IUSE=""
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+}
diff --git a/dev-tex/texpower/Manifest b/dev-tex/texpower/Manifest
new file mode 100644
index 00000000000..72467e2595c
--- /dev/null
+++ b/dev-tex/texpower/Manifest
@@ -0,0 +1 @@
+DIST texpower-0-2.tar.gz 176307 SHA256 2c310b7f158599b4f020c7cf0a589ee2def57ee144d6317636f364774a2e1543 SHA512 4ab22dc2f1ebfe1d5aa59a1ea6f374af13a7d86c042b58a1eb49c09b7043e776975be5d8026082fa75f9da5a487c87252d12de6fae9cd9ab482b8f8b7d344a19 WHIRLPOOL eb9ccee35d49c5d1b50f93984aa937aa90df2b121de05f8b6bb60a2ad673f01551183dd19de6e04036a9aa528606e96c81eb9ac7dcbeb94efa2880439eda93b6
diff --git a/dev-tex/texpower/metadata.xml b/dev-tex/texpower/metadata.xml
new file mode 100644
index 00000000000..15ddb18755a
--- /dev/null
+++ b/dev-tex/texpower/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>tex</herd>
+ <upstream>
+ <remote-id type="sourceforge">texpower</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-tex/texpower/texpower-0.2.ebuild b/dev-tex/texpower/texpower-0.2.ebuild
new file mode 100644
index 00000000000..00ea55618da
--- /dev/null
+++ b/dev-tex/texpower/texpower-0.2.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit latex-package
+
+IUSE="doc"
+MY_P="${P/./-}"
+
+DESCRIPTION="A bundle of style and class files for creating dynamic online presentations"
+SRC_URI="mirror://sourceforge/texpower/${MY_P}.tar.gz"
+HOMEPAGE="http://texpower.sourceforge.net/"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc sparc x86"
+
+S="${WORKDIR}/${MY_P}"
+
+src_compile() {
+
+ latex-package_src_compile
+
+ cd tpslifonts
+ latex-package_src_compile
+ cp tpslifonts.sty ../ || die
+ cd ../
+
+ if use doc
+ then
+ for file in FAQ-display.tex FAQ-printout.tex fulldemo.tex
+ do
+ einfo "Making documentation: ${file}"
+ VARTEXFONTS=${T}/fonts texi2pdf -q -c \
+ --language=latex ${file} &> /dev/null
+ done
+ fi
+}
+
+src_install() {
+
+ latex-package_src_doinstall styles pdf
+
+ insinto /usr/share/texmf/tex/latex/${PN}/contrib
+ doins contrib/config.landscapeplus contrib/tpmultiinc.tar || die
+
+ dodoc 00readme.txt 01install.txt || die
+ newdoc tpslifonts/00readme.txt 00readme-tpslifonts.txt || die
+ newdoc contrib/00readme.txt 00readme-contrib.txt
+}
diff --git a/dev-tex/tipa/Manifest b/dev-tex/tipa/Manifest
new file mode 100644
index 00000000000..8ec759954b4
--- /dev/null
+++ b/dev-tex/tipa/Manifest
@@ -0,0 +1 @@
+DIST tipa-1.3.tar.gz 3099058 SHA256 a07e3b3c7bab4c84d01faf1800de4c2a45b0e09a71c9eb595e24f187b6b28807 SHA512 b07b445e9760603f991c7ca4cd1c3358b071e21975a5e051c6ba1186cda2880c80cd874e8cee285a6b7a9ca890bc35e4e4285c12e22cdfa474920c55cebe64ed WHIRLPOOL d5fa70b2cf2fd81c9aee7f5fc7d1fbcd1dd0b50cb8c4cfda967b84275811d10fd9a0cc0ca1eb88ec9f3bca065d4eb8bc71a7f69403976058726f1e107ebecd70
diff --git a/dev-tex/tipa/metadata.xml b/dev-tex/tipa/metadata.xml
new file mode 100644
index 00000000000..ba6a8a8800d
--- /dev/null
+++ b/dev-tex/tipa/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>tex</herd>
+</pkgmetadata>
diff --git a/dev-tex/tipa/tipa-1.3.ebuild b/dev-tex/tipa/tipa-1.3.ebuild
new file mode 100644
index 00000000000..3c64797900d
--- /dev/null
+++ b/dev-tex/tipa/tipa-1.3.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+DESCRIPTION="International Phonetic Alphabet package for LaTeX"
+HOMEPAGE="http://www.l.u-tokyo.ac.jp/~fkr/"
+SRC_URI="http://www.l.u-tokyo.ac.jp/~fkr/tipa/${P}.tar.gz"
+
+LICENSE="LPPL-1.2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+
+IUSE=""
+
+DEPEND="virtual/latex-base"
+RDEPEND="${DEPEND}"
+
+src_compile() {
+ # install files under /usr/share/texmf/
+ sed -e 's@PREFIX=/usr/local/teTeX/share/texmf@PREFIX=/usr/share/texmf@' \
+ -i Makefile || die "sed failed"
+
+ sed -e 's/\($(TEXDIR)\)/$(DESTDIR)\/\1/' \
+ -e 's/\($(FONTDIR)\)/$(DESTDIR)\/\1/g' \
+ -e 's/\($(MAPDIR)\)/$(DESTDIR)\/\1/' \
+ -i Makefile || die "sed failed"
+
+ # removing `mktexlsr` from Makefile (leads to access violation)
+ sed -e 's/-mktexlsr//' -i Makefile || die "sed failed"
+}
+
+src_install() {
+ make DESTDIR="${D}" install || die "make install failed."
+ dodoc doc/*.{tex,sty,bib,bbl} || die "dodoc failed."
+
+ elog "A huge documentation can be found in '/usr/share/doc/${P}'."
+}
+
+pkg_postinst() {
+ einfo "Running mktexlsr..."
+ mktexlsr || die "mktexlsr failed"
+
+ elog
+ elog "Append the line"
+ elog "p +tipa.map"
+ elog "to /usr/share/texmf/dvips/config/config.ps"
+ elog
+}
+
+pkg_postrm() {
+ einfo "Running mktexlsr..."
+ mktexlsr || die "mktexlsr failed"
+}
diff --git a/dev-tex/translator/Manifest b/dev-tex/translator/Manifest
new file mode 100644
index 00000000000..e4b09ed01ec
--- /dev/null
+++ b/dev-tex/translator/Manifest
@@ -0,0 +1 @@
+DIST translator-1.00.tar.gz 178794 SHA256 08e14042fdca9381da777729ab0dde32b6f3b70479daf00152044fe1b5bd40fa SHA512 045b09ef303fe8f7bbbbc3f6b4175da4ba0d72d1d359281fbd316ef32eb369c627f708a19a5bade1abb4d0bc6a6320f081ccead1173665c483ce882b44013038 WHIRLPOOL 66332df456f97a25e7f9037100325e0a5c6140534a5dec2b8e5ef1bee631d6cfd96ce39fd8deff22f51fa2fd4004985ce945fb17cbf2387cb37b388f7d8e0ad9
diff --git a/dev-tex/translator/metadata.xml b/dev-tex/translator/metadata.xml
new file mode 100644
index 00000000000..f9f92d93428
--- /dev/null
+++ b/dev-tex/translator/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>tex</herd>
+ <upstream>
+ <remote-id type="sourceforge">latex-beamer</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-tex/translator/translator-1.00.ebuild b/dev-tex/translator/translator-1.00.ebuild
new file mode 100644
index 00000000000..ecb51a79ba7
--- /dev/null
+++ b/dev-tex/translator/translator-1.00.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit latex-package
+
+DESCRIPTION="A package for translating words in TeX"
+HOMEPAGE="http://latex-beamer.sourceforge.net/"
+SRC_URI="mirror://sourceforge/latex-beamer/${P}.tar.gz"
+
+LICENSE="GPL-2 LPPL-1.3c"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 s390 sh sparc x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux"
+IUSE="doc"
+
+TEXMF="/usr/share/texmf-site"
+
+src_install() {
+ insinto ${TEXMF}/tex/latex/${PN}
+ doins base/* || die "Failed to install the package"
+ doins -r dicts/* || die "Failed to install dictonaries"
+ dodoc ChangeLog README || die "dodoc failed"
+ if use doc ; then
+ insinto /usr/share/doc/${PF}
+ doins -r doc/* || die "Failed to install documentation"
+ fi
+}
diff --git a/dev-tex/tth/Manifest b/dev-tex/tth/Manifest
new file mode 100644
index 00000000000..a24fdb6a02f
--- /dev/null
+++ b/dev-tex/tth/Manifest
@@ -0,0 +1 @@
+DIST tth-3.77.tgz 322313 SHA256 2ac11c76cbe21879b8ca3cbd47dd6349adfca869a465870c79f87046432fc28c SHA512 8fabe24172b1ba6ac275e0d3cd8fbb88fbd8fcf15eb7a8a7f99a3f483629d51587f0f97fdca84d86bff9ef57829415e5f026c24338bef75ba867d3a3dfb3bb87 WHIRLPOOL db03565233ce591b100a895aa0f86fa3c78a7b68db8b070634637849bb8b0fb6a1f2eed9c3e7c820ab5f6b38412babe30b5616f46c306da438b1d85804263ebd
diff --git a/dev-tex/tth/metadata.xml b/dev-tex/tth/metadata.xml
new file mode 100644
index 00000000000..21ff3a53848
--- /dev/null
+++ b/dev-tex/tth/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>tex</herd>
+</pkgmetadata>
diff --git a/dev-tex/tth/tth-3.77.ebuild b/dev-tex/tth/tth-3.77.ebuild
new file mode 100644
index 00000000000..ea7b29a8f4a
--- /dev/null
+++ b/dev-tex/tth/tth-3.77.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit toolchain-funcs
+
+DESCRIPTION="Translate TEX into HTML"
+HOMEPAGE="http://hutchinson.belmont.ma.us/tth/"
+SRC_URI="mirror://gentoo/${P}.tgz"
+
+SLOT="0"
+LICENSE="free-noncomm"
+KEYWORDS="amd64 ~arm hppa ppc ppc64 x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND="
+ app-text/ghostscript-gpl
+ media-libs/netpbm"
+
+S="${WORKDIR}/tth_C"
+
+src_compile() {
+ echo 'all: tth' > Makefile || die
+ tc-export CC
+ emake
+}
+
+src_install() {
+ dobin tth latex2gif ps2gif ps2png
+ dodoc CHANGES
+ doman tth.1
+ dohtml *
+}
diff --git a/dev-tex/xcolor/Manifest b/dev-tex/xcolor/Manifest
new file mode 100644
index 00000000000..836e109ffcb
--- /dev/null
+++ b/dev-tex/xcolor/Manifest
@@ -0,0 +1 @@
+DIST xcolor211.zip 745959 SHA256 509cc5725339caa2ea5d2fe75cd69e96bb8b95ba2d8c1294ed6915c171c9ab3d SHA512 bd504ad3ffce1e9c53dd8588e19568f673f92100a3aded5278ed6893525cc68e505eacce99b563bd94e8844ba6d3bc443c529a2d46505897daa6d30b6d61f430 WHIRLPOOL 25abb29d034a274f0f970534807ea139fbd452777046166bfa2e0f0ceb5fec6699cac79103503e97db13b4a39c55e46f0114de189d9b5b46840f2a71f64d84e2
diff --git a/dev-tex/xcolor/metadata.xml b/dev-tex/xcolor/metadata.xml
new file mode 100644
index 00000000000..ba6a8a8800d
--- /dev/null
+++ b/dev-tex/xcolor/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>tex</herd>
+</pkgmetadata>
diff --git a/dev-tex/xcolor/xcolor-2.11.ebuild b/dev-tex/xcolor/xcolor-2.11.ebuild
new file mode 100644
index 00000000000..e88a8f7c423
--- /dev/null
+++ b/dev-tex/xcolor/xcolor-2.11.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit latex-package
+
+DESCRIPTION="xcolor -- easy driver-independent access to colors"
+HOMEPAGE="http://www.ukern.de/tex/xcolor.html"
+SRC_URI="http://www.ukern.de/tex/xcolor/ctan/${P//[.-]/}.zip"
+
+LICENSE="LPPL-1.2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
+IUSE=""
+
+RDEPEND="dev-texlive/texlive-latex"
+
+DEPEND="${RDEPEND}
+ app-arch/unzip"
+
+S="${WORKDIR}/${PN}"
+
+TEXMF="/usr/share/texmf-site"
+
+src_install() {
+ export VARTEXFONTS="${T}/fonts"
+
+ latex-package_src_install || die
+
+ dodoc README ChangeLog
+}
diff --git a/dev-tex/xmltex/Manifest b/dev-tex/xmltex/Manifest
new file mode 100644
index 00000000000..83df2b57778
--- /dev/null
+++ b/dev-tex/xmltex/Manifest
@@ -0,0 +1 @@
+DIST xmltex-1.9.tar.gz 110592 SHA256 ef0ab55d7ec091c0b02cc0f6fb7308fc625fb857f8c2a0c7cd0a7929c872f3a2 SHA512 8f8c3ebb56c602365607a8ef7f245404c2f83863e5efc113a7a7fc23772d95cf2d08e0d3e7696c2c18ee1a99aa1d7dde62f4cfbeb5c84dec81d843aebeb21b30 WHIRLPOOL dfaada1ff3f09eafd689f93f159f9214b2438ef809e84aeffd15cd1de8d74cfe5e3062b3530ff9f4cd8bd8e424fda28684991509256377abfc47c44d1e82e276
diff --git a/dev-tex/xmltex/files/format.xmltex.cnf b/dev-tex/xmltex/files/format.xmltex.cnf
new file mode 100644
index 00000000000..f7d0235f29d
--- /dev/null
+++ b/dev-tex/xmltex/files/format.xmltex.cnf
@@ -0,0 +1,2 @@
+xmltex pdftex language.dat &latex xmltex.ini
+pdfxmltex pdftex language.dat &pdflatex pdfxmltex.ini
diff --git a/dev-tex/xmltex/metadata.xml b/dev-tex/xmltex/metadata.xml
new file mode 100644
index 00000000000..ba6a8a8800d
--- /dev/null
+++ b/dev-tex/xmltex/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>tex</herd>
+</pkgmetadata>
diff --git a/dev-tex/xmltex/xmltex-1.9-r2.ebuild b/dev-tex/xmltex/xmltex-1.9-r2.ebuild
new file mode 100644
index 00000000000..2d3a4214fb2
--- /dev/null
+++ b/dev-tex/xmltex/xmltex-1.9-r2.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit latex-package texlive-common
+
+IUSE=""
+
+DESCRIPTION="A non validating namespace aware XML parser implemented in TeX"
+HOMEPAGE="http://www.dcarlisle.demon.co.uk/xmltex/manual.html"
+# Taken from: ftp://www.ctan.org/tex-archive/macros/xmltex.tar.gz
+SRC_URI="mirror://gentoo/${P}.tar.gz"
+
+LICENSE="LPPL-1.2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~x86-solaris"
+
+S=${WORKDIR}/${PN}/base
+
+TEXMF=/usr/share/texmf-site
+
+DEPEND="virtual/latex-base"
+
+RDEPEND="${DEPEND}
+ !=dev-texlive/texlive-htmlxml-2007*"
+
+src_compile() {
+ TEXMFHOME="${S}" fmtutil --cnffile "${FILESDIR}/format.${PN}.cnf" --fmtdir "${S}/texmf-var/web2c" --all\
+ || die "failed to build format ${PN}"
+}
+
+src_install() {
+ insinto /var/lib/texmf
+ doins -r texmf-var/*
+
+ insinto ${TEXMF}/tex/xmltex/base
+ doins *.{xmt,cfg,xml,tex}
+ insinto ${TEXMF}/tex/xmltex/config
+ doins *.ini
+
+ etexlinks "${FILESDIR}/format.${PN}.cnf"
+ insinto /etc/texmf/fmtutil.d
+ doins "${FILESDIR}/format.${PN}.cnf"
+
+ dohtml *.html
+ dodoc readme.txt
+}
diff --git a/dev-tex/xymtex/Manifest b/dev-tex/xymtex/Manifest
new file mode 100644
index 00000000000..1d6d1334f43
--- /dev/null
+++ b/dev-tex/xymtex/Manifest
@@ -0,0 +1 @@
+DIST xymtex500a.zip 8362958 SHA256 f7f472e3a47988c6ced0f781b280bea54fa5c6337004d23e1fcf56da58564ebd SHA512 5ee0c13443084dce896d2560561c423d94b1d5e2ab10bd120a957e798de7c11efd192872de2b4b8d7df60a1f126a368e5d1dbdb90ce6055b9ab6067a71668fe3 WHIRLPOOL d769a243b3da5483652ebe165fc15e34bc9f78f2fbdbd83c380da7b4a15ab72f467911dc43e9eba1b1512eff7f7981b0d82c49a239824fab333cb2bc9641a052
diff --git a/dev-tex/xymtex/metadata.xml b/dev-tex/xymtex/metadata.xml
new file mode 100644
index 00000000000..a6a645317df
--- /dev/null
+++ b/dev-tex/xymtex/metadata.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>tex</herd>
+<herd>sci</herd>
+</pkgmetadata>
diff --git a/dev-tex/xymtex/xymtex-5.00a.ebuild b/dev-tex/xymtex/xymtex-5.00a.ebuild
new file mode 100644
index 00000000000..14b68cc6912
--- /dev/null
+++ b/dev-tex/xymtex/xymtex-5.00a.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit latex-package versionator
+
+DESCRIPTION="LaTeX package for rendering high-quality chemical structure diagrams"
+HOMEPAGE="http://xymtex.com/"
+MY_PV="$(delete_all_version_separators)"
+SRC_URI="${HOMEPAGE}/fujitas3/${PN}/xym${MY_PV}/xym-up/${PN}${MY_PV}.zip"
+LICENSE="LPPL-1.3"
+
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="app-arch/unzip"
+RDEPEND=""
+
+S="${WORKDIR}/${PN}"
+
+TEXMF=/usr/share/texmf-site
+
+src_compile() {
+ local subdir
+ for subdir in base chemist xymtxpdf xymtxps; do
+ cd "${S}/${subdir}" || die
+ latex-package_src_compile
+ done
+}
+
+src_install() {
+ local subdir
+ for subdir in base chemist xymtxpdf xymtxps; do
+ cd "${S}/${subdir}" || die
+ latex-package_src_install
+ done
+
+ # cd "${S}/doc/doc${MY_PV}/" || die
+ cd "${S}/doc/doc500/" || die
+ latex-package_src_doinstall pdf
+}