1 |
commit: c10bb44ea735ea2c9eaeba57f8a63a49e0866508 |
2 |
Author: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Feb 8 17:40:48 2017 +0000 |
4 |
Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Feb 8 17:41:02 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c10bb44e |
7 |
|
8 |
app-text/texlive-core: remove overshadowed versions |
9 |
|
10 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
11 |
|
12 |
app-text/texlive-core/Manifest | 5 - |
13 |
app-text/texlive-core/texlive-core-2012.ebuild | 343 --------------------- |
14 |
app-text/texlive-core/texlive-core-2013-r1.ebuild | 354 ---------------------- |
15 |
app-text/texlive-core/texlive-core-2014-r1.ebuild | 336 -------------------- |
16 |
app-text/texlive-core/texlive-core-2014-r3.ebuild | 336 -------------------- |
17 |
app-text/texlive-core/texlive-core-2014.ebuild | 334 -------------------- |
18 |
app-text/texlive-core/texlive-core-2015.ebuild | 347 --------------------- |
19 |
7 files changed, 2055 deletions(-) |
20 |
|
21 |
diff --git a/app-text/texlive-core/Manifest b/app-text/texlive-core/Manifest |
22 |
index 5b084e71aa..c07ab7c36d 100644 |
23 |
--- a/app-text/texlive-core/Manifest |
24 |
+++ b/app-text/texlive-core/Manifest |
25 |
@@ -3,15 +3,10 @@ DIST texlive-20130530-source.tar.xz 179963948 SHA256 a905832e4c04dd1cb16db4bb7ba |
26 |
DIST texlive-20140525-source.tar.xz 41657688 SHA256 08bb4eb02923ac65ce1183612c6b64da185904f26a1660f5ca4f902d055795be SHA512 09169af15d806abd721e55ffc20ed684c0a7ad60783272d49fabfe9c88857c4abd15b60f30e3f5511ceda1982fdc1d33db8265f97e374bfa5b250dbb5612f8ad WHIRLPOOL fd7fffeeaf319bca5333f6d5d8d9cc6517f76ffe5b2793a73604d844cb7474d83c23826f98d4d11ea5e1a35c0f273e12b2fe6f5945f9880a9577fedad6625014 |
27 |
DIST texlive-20150521-source.tar.xz 45459552 SHA256 ed9bcd7bdce899c3c27c16a8c5c3017c4f09e1d7fd097038351b72497e9d4669 SHA512 9d06bb88c489715787ce619c4c6b5e2d4251e1db8d48ae7fe2d1a253634c76bc6d7282ef9c93c77847845cae01eafb58dfb37ba3fb83a6d223f0d7fe8f5d3855 WHIRLPOOL e19e4cf9c6122e8a2e80d3ad62171591a2d53317792ce69d7b2afdd6978d397c873565d597b1457d23ba6f5b5de33750955690a92fb6c34d814c075397b67a0b |
28 |
DIST texlive-20160523-source.tar.xz 45941100 SHA256 a8b32ca47f0a403661a09e202f4567a995beb718c18d8f81ca6d76daa1da21ed SHA512 915fa2f5e2099dd385ef81033db7aafdf09558c0c200fed0748a8a42fd61f69d3eaac9decea334e30981af739dd81061a9b1d6853c7f6d00285fe0be40e26c3e WHIRLPOOL 25d27fb7a7bdb47d40ddf951394e36546b184d71f2e09adb20698bd0f960e54841ddd0313a87510cb2ef43953eb4d9d05d30b88d25d15762dd774575c88fedbe |
29 |
-DIST texlive-core-patches-36.tar.xz 2200 SHA256 409d48ef65032ec3c335be09ba8eaa5e746a02ed88cc13c0b0b0a5de4007652e SHA512 2e09516ec005a76d0c1fad8edf5930dcd57c77983ec2d8f4b0a020f5a95799797190d95e0e0bfdb1ce378df2337de64967d814cc807630666200ade71c2bf571 WHIRLPOOL d6dc2cf107b128ddb334a28b55da1440cfd249f69a7bbbc3860a1e57a3d22cd2e2c12f429c481f953590528955b491c8fa0b0eb14298ff7913d04b7e33570a84 |
30 |
DIST texlive-core-patches-39.tar.xz 3056 SHA256 685705f1994b751df42738cb542a6ca0b4adbc013275318667c634665b8bd25b SHA512 95e7161820a648d667c2a69bd74c1d24a20670128889d1ebbec2e700b0459d84bb4d96b2d9f355e519d9efe0e126689b29225af1a184e5a06e0cb398fefc7cc3 WHIRLPOOL 24359dbca04f3e9f9c09a9afc195dd6858da2284947cbebaa770e73ef78276059f9d2e3c8a95c5005971fa64be76367a55887f1f94e423e7d0ca227d5573dc95 |
31 |
-DIST texlive-core-patches-41.tar.xz 2340 SHA256 64f914d6e32c1d91cd484b230e651a2646f94c90e94b8ca5b5accf634bf3905d SHA512 e829c9c68c6f9e7edbf582c6820d5b42483b9411754fcddc6a076ad4790497ef3ea30babbd4950451b543e3b0d960561d6cc099feb54282325040a8009b506b5 WHIRLPOOL d606d537f80aa30bdb05dd5a60afdcf23f9b863fdcc62aa22f1bb5a34ec89b79960efdc89fc19351e6d1f69236363a246cffe9059ee3df67d82308616dfb4bc4 |
32 |
-DIST texlive-core-patches-42.tar.xz 2508 SHA256 e3b4d4de520ff58420a7b695491ffd780d88621c5bef135e59f35e3112ed5fec SHA512 fb5753a25a07f8f9a42494ed96c29f01f11c3f1a070972eafceb8c5ab5fa598c4d7fd5d7533608e6595621394f71563c187e3aaa1e2ba7a6b4e09fe2ae273991 WHIRLPOOL f31aefa1fad71bc294b18655e2db222ce272b6e286693bb62a880a25493d5eed933a3ef549a7a6a814c12677833110f77dcb71f36792aad8755a900a4aba9193 |
33 |
-DIST texlive-core-patches-47.tar.xz 4556 SHA256 9a5f220e25a8d9980486d5599d38e14dc5fc19892354fac92ff890c9e788bcfe SHA512 737a959df416a013a7a1970f5d0c4a6ea3798825375bcd22e532fb0ded4e06c9c21890817d9abf16c6aa3d9e69f082930207c86c4bd7046456eadaa0907f7079 WHIRLPOOL caff55f3a250e38f21c4ef82689fc8273644c51d368ce05509e4e3b521ded826b2c8fcd03363c7c70fd3278101d1a3028eaeee383a65664c7c6d1d8d86cb3046 |
34 |
DIST texlive-core-patches-48.tar.xz 3528 SHA256 521bffc6a9d3a79fe157855f6a58954b26308230ab2d4daa382f5c101e836177 SHA512 af7e3de4ab378e837a07bf5cd1e0db0bffd043273cc90b6d93484a1a4dfdee52df9846d656ab7821a2b3af82ccdc8ea6f86f35fea97a846166a9cd92e0f06021 WHIRLPOOL 5a5151960dea201cf87fada0a3e3cf297580d6a9b92ed5cc97ee49c0dd8d473798ddc858a4301b16c15dff71d1aafe663ab3017f0f391ea3aad1f0de8506ddc6 |
35 |
DIST texlive-core-patches-49.tar.xz 2796 SHA256 2c17e0b8d24dd007e86ff7fbe7ef14d42f1b5287e08c133ab2c5c82cedc16709 SHA512 4faf0b9653b9a5335e4b210d15200b4118245687ff12e617f181bdece5d2b5cd827247fc72bdc304722f72d8f017804b8026300a9be18f7663749ddc82c7bb17 WHIRLPOOL 8145a9d5d4fa2713a1aaf0e51f546a20a844d1a12306d7f2b82e66ece961edafd34f9e6aebfc3f3110a23366dc1d43a13cc4fa7fc69c9f67fd300c55f7bb7b92 |
36 |
DIST texlive-core-patches-50.tar.xz 4632 SHA256 417d50014d1701bb75aee0cfcae95716926fefdc7d0057c9784ba68bd1eab2e4 SHA512 f8fab7940b417b7065c9c467f7a9612e161a1a44db50a4523ee4a092ba381f7580adf1c3d75375165795dfc3f23d005028d67351815481dbdbd6edb13f376b64 WHIRLPOOL 9611be98c2fe494c1d354a23a1c1dfcaf30ca9e6f321056dbe34b99eef64dc8fbcc59428cf5ef8099584968b0b574d0e3e6acac87e37c5583e78eb87f87733b6 |
37 |
-DIST texlive-core-patches-51.tar.xz 3040 SHA256 7edcc57ba831f040a5fcd07080c6e197955c9b979c81c6722c3914fff9ed9a03 SHA512 a1b7132bf25ab0e374e232351cbe64f509a7aab4e795b2d1fb03cd59f7dd0ed87f34c4ee5058dcb544f4b6d7e50d1cf22db29fbb65bde8fe213963856cb486f2 WHIRLPOOL 2c5db621b11cc6c93d0f58aef0221f3a4ace13352fc2de86df89ceeb137edda53fa7f44cb1052570d7a1053417c60910c61b214a61713b9b10c9684fc1983f03 |
38 |
DIST texlive-core-patches-52.tar.xz 3376 SHA256 294f44d6b24801206eec23a497d0b17f68ed88f8ef3d33492efd75e889db309f SHA512 fbc84217911d797373ad03e3da3bcb2277d74edf3a9fd77a5bf67bed7fb207d1cd3d9c9c7947c906ee10989fe6ceb6c263a4002a592217bce7e873db813dc367 WHIRLPOOL e249a1aa3c563beb14ebe88f93c2b144dfa6de3b7d47b502a9a7e18a8a0f39ab399925a47bd7e4406ecf2010589791fee09a71b6db48a04beadac18294cb0474 |
39 |
DIST texlive-core-patches-64.tar.xz 4084 SHA256 3c851c4ccf8bdc6b4b2446dd0e490da64a88907c06eee34af7d438aa3727cc34 SHA512 188b64a027eebaa47e803a847c183985daf83c86dcfee85f61f9e608c614391d03b070405355159813d11ec48c10709be12455696320ddcd0bcb3f98cd906c82 WHIRLPOOL 9c935339c10c73fba88a4d9cc8df1b8b6382d3788178fe6842497fb15542f47511fdccceede050ca883b976bdb3303a77ddb0b65f4a6e741d57cfd986d9f05d5 |
40 |
DIST texlive-module-a2ping-2012.tar.xz 31124 SHA256 37b769091af7c7c9f95c52f92cbc26b22f72dc0de5ecb0e9e37cf1482438605a SHA512 b4f74f037d1113d204d3f0e34c8418e354ae002ab09e8c326458bf7c9c9a9bfa3211317e03bb7e69d7f2e83a2b22851410287477176dab5288dacf5a9ec4a8a6 WHIRLPOOL 5e76ab0e818c3e20d8211c35230a9ee1084f1de830c988b1ed9707036481582540aa97c6ee9e31b0dd1ee2a8346dc3b81197d8c0489563122bba2dd7dffe5fe1 |
41 |
|
42 |
diff --git a/app-text/texlive-core/texlive-core-2012.ebuild b/app-text/texlive-core/texlive-core-2012.ebuild |
43 |
deleted file mode 100644 |
44 |
index 5eabb670a4..0000000000 |
45 |
--- a/app-text/texlive-core/texlive-core-2012.ebuild |
46 |
+++ /dev/null |
47 |
@@ -1,343 +0,0 @@ |
48 |
-# Copyright 1999-2016 Gentoo Foundation |
49 |
-# Distributed under the terms of the GNU General Public License v2 |
50 |
-# $Id$ |
51 |
- |
52 |
-EAPI=3 |
53 |
- |
54 |
-#TL_UPSTREAM_PATCHLEVEL="1" |
55 |
-PATCHLEVEL="36" |
56 |
-TL_SOURCE_VERSION=20120701 |
57 |
- |
58 |
-inherit eutils flag-o-matic toolchain-funcs libtool texlive-common |
59 |
- |
60 |
-MY_PV=${PN%-core}-${TL_SOURCE_VERSION}-source |
61 |
- |
62 |
-DESCRIPTION="A complete TeX distribution" |
63 |
-HOMEPAGE="http://tug.org/texlive/" |
64 |
-SLOT="0" |
65 |
-LICENSE="GPL-2 LPPL-1.3c TeX" |
66 |
- |
67 |
-SRC_URI="mirror://gentoo/${MY_PV}.tar.xz" |
68 |
- |
69 |
-# Fetch patches |
70 |
-SRC_URI="${SRC_URI} mirror://gentoo/${PN}-patches-${PATCHLEVEL}.tar.xz" |
71 |
-# mirror://gentoo/texlive-core-upstream-patches-${TL_UPSTREAM_PATCHLEVEL}.tar.xz" |
72 |
- |
73 |
-TL_CORE_BINEXTRA_MODULES=" |
74 |
- a2ping asymptote bibtex8 bundledoc ctanify ctanupload ctie cweb de-macro dtl |
75 |
- dvi2tty dviasm dvicopy dvidvi dviljk dvipng dvipos findhyph fragmaster |
76 |
- hyphenex installfont lacheck latex2man latexfileversion latexpand |
77 |
- listings-ext match_parens mkjobtexmf patgen pdfcrop pdftools pkfix |
78 |
- pkfix-helper purifyeps seetexk sty2dtx synctex texcount texdef texdiff |
79 |
- texdirflatten texdoc texliveonfly texloganalyser texware tie tpic2pdftex |
80 |
- typeoutfileinfo web collection-binextra |
81 |
- " |
82 |
-TL_CORE_BINEXTRA_DOC_MODULES=" |
83 |
- a2ping.doc asymptote.doc bibtex8.doc bundledoc.doc ctanify.doc |
84 |
- ctanupload.doc ctie.doc cweb.doc de-macro.doc dvi2tty.doc dvicopy.doc |
85 |
- dviljk.doc dvipng.doc dvipos.doc findhyph.doc fragmaster.doc installfont.doc |
86 |
- latex2man.doc latexfileversion.doc latexpand.doc listings-ext.doc |
87 |
- match_parens.doc mkjobtexmf.doc patgen.doc pdfcrop.doc pdftools.doc |
88 |
- pkfix.doc pkfix-helper.doc purifyeps.doc sty2dtx.doc synctex.doc |
89 |
- texcount.doc texdef.doc texdiff.doc texdirflatten.doc texdoc.doc |
90 |
- texliveonfly.doc texloganalyser.doc texware.doc tie.doc tpic2pdftex.doc |
91 |
- typeoutfileinfo web.doc |
92 |
- " |
93 |
-TL_CORE_BINEXTRA_SRC_MODULES="hyphenex.source listings-ext.source mkjobtexmf.source texdef.source" |
94 |
- |
95 |
-TL_CORE_EXTRA_MODULES="tetex hyphen-base texconfig gsftopk texlive.infra ${TL_CORE_BINEXTRA_MODULES}" |
96 |
-TL_CORE_EXTRA_DOC_MODULES="tetex.doc texconfig.doc gsftopk.doc texlive.infra.doc ${TL_CORE_BINEXTRA_DOC_MODULES}" |
97 |
-TL_CORE_EXTRA_SRC_MODULES="${TL_CORE_BINEXTRA_SRC_MODULES}" |
98 |
- |
99 |
-for i in ${TL_CORE_EXTRA_MODULES}; do |
100 |
- SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.tar.xz" |
101 |
-done |
102 |
- |
103 |
-SRC_URI="${SRC_URI} doc? ( " |
104 |
-for i in ${TL_CORE_EXTRA_DOC_MODULES}; do |
105 |
- SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.tar.xz" |
106 |
-done |
107 |
-SRC_URI="${SRC_URI} )" |
108 |
-SRC_URI="${SRC_URI} source? ( " |
109 |
-for i in ${TL_CORE_EXTRA_SRC_MODULES}; do |
110 |
- SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.tar.xz" |
111 |
-done |
112 |
-SRC_URI="${SRC_URI} )" |
113 |
- |
114 |
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd" |
115 |
-IUSE="cjk X doc source tk xetex" |
116 |
- |
117 |
-MODULAR_X_DEPEND="X? ( |
118 |
- x11-libs/libXmu |
119 |
- x11-libs/libXp |
120 |
- x11-libs/libXpm |
121 |
- x11-libs/libXaw |
122 |
- )" |
123 |
- |
124 |
-COMMON_DEPEND="${MODULAR_X_DEPEND} |
125 |
- !app-text/ptex |
126 |
- !app-text/tetex |
127 |
- !<app-text/texlive-2007 |
128 |
- !app-text/xetex |
129 |
- !<dev-texlive/texlive-basic-2009 |
130 |
- !<dev-texlive/texlive-metapost-2011 |
131 |
- !app-text/dvibook |
132 |
- sys-libs/zlib |
133 |
- >=media-libs/libpng-1.2.43-r2:0 |
134 |
- >=app-text/poppler-0.12.3-r3 |
135 |
- xetex? ( |
136 |
- app-text/teckit |
137 |
- media-libs/fontconfig |
138 |
- media-libs/freetype:2 |
139 |
- media-libs/silgraphite |
140 |
- ) |
141 |
- >=dev-libs/kpathsea-6.1.0_p20120701 |
142 |
- cjk? ( >=dev-libs/ptexenc-1.2.0_p20120701 )" |
143 |
- |
144 |
-DEPEND="${COMMON_DEPEND} |
145 |
- virtual/pkgconfig |
146 |
- sys-apps/ed |
147 |
- sys-devel/flex |
148 |
- app-arch/xz-utils" |
149 |
- |
150 |
-RDEPEND="${COMMON_DEPEND} |
151 |
- >=app-text/ps2pkm-1.5_p20120701 |
152 |
- >=app-text/dvipsk-5.992_p20120701 |
153 |
- >=dev-tex/bibtexu-3.71_p20120701 |
154 |
- virtual/perl-Getopt-Long |
155 |
- xetex? ( >=app-text/xdvipdfmx-0.7.8_p20120701 ) |
156 |
- tk? ( dev-perl/Tk )" |
157 |
- |
158 |
-# texdoc needs luatex. |
159 |
-PDEPEND=">=dev-tex/luatex-0.70" |
160 |
- |
161 |
-S="${WORKDIR}/${P}_build" |
162 |
-B="${WORKDIR}/${MY_PV}" |
163 |
- |
164 |
-src_prepare() { |
165 |
- mkdir -p "${S}" || die "failed to create build dir" |
166 |
- mv "${WORKDIR}"/texmf* "${B}" || die "failed to move texmf files" |
167 |
- |
168 |
- cd "${B}" |
169 |
- #EPATCH_MULTI_MSG="Applying patches from upstream bugfix branch..." EPATCH_SUFFIX="patch" epatch "${WORKDIR}/gentoo_branch2011_patches" |
170 |
- EPATCH_SUFFIX="patch" epatch "${WORKDIR}/patches" |
171 |
- |
172 |
- elibtoolize |
173 |
-} |
174 |
- |
175 |
-src_configure() { |
176 |
- # It fails on alpha without this |
177 |
- use alpha && append-ldflags "-Wl,--no-relax" |
178 |
- |
179 |
- # Bug #265232 and bug #414271: |
180 |
- if use hppa; then |
181 |
- append-cppflags "-DU_IS_BIG_ENDIAN=1" |
182 |
- fi |
183 |
- |
184 |
- # Too many regexps use A-Z a-z constructs, what causes problems with locales |
185 |
- # that don't have the same alphabetical order than ascii. Bug #242430 |
186 |
- # So we set LC_ALL to C in order to avoid problems. |
187 |
- export LC_ALL=C |
188 |
- tc-export CC CXX AR |
189 |
- ECONF_SOURCE="${B}" \ |
190 |
- econf -C \ |
191 |
- --bindir=/usr/bin \ |
192 |
- --datadir="${S}" \ |
193 |
- --with-system-freetype2 \ |
194 |
- --with-freetype2-include=/usr/include \ |
195 |
- --with-system-zlib \ |
196 |
- --with-system-libpng \ |
197 |
- --with-system-xpdf \ |
198 |
- --with-system-poppler \ |
199 |
- --with-system-teckit \ |
200 |
- --with-teckit-includes=/usr/include/teckit \ |
201 |
- --with-system-graphite \ |
202 |
- --with-system-kpathsea \ |
203 |
- --with-system-icu \ |
204 |
- --with-system-ptexenc \ |
205 |
- --without-texinfo \ |
206 |
- --disable-dialog \ |
207 |
- --disable-multiplatform \ |
208 |
- --enable-epsfwin \ |
209 |
- --enable-mftalkwin \ |
210 |
- --enable-regiswin \ |
211 |
- --enable-tektronixwin \ |
212 |
- --enable-unitermwin \ |
213 |
- --with-ps=gs \ |
214 |
- --disable-psutils \ |
215 |
- --disable-t1utils \ |
216 |
- --enable-ipc \ |
217 |
- --disable-biber \ |
218 |
- --disable-bibtexu \ |
219 |
- --disable-dvipng \ |
220 |
- --disable-dvipsk \ |
221 |
- --disable-dvipdfmx \ |
222 |
- --disable-chktex \ |
223 |
- --disable-lcdf-typetools \ |
224 |
- --disable-pdfopen \ |
225 |
- --disable-ps2eps \ |
226 |
- --disable-ps2pkm \ |
227 |
- --disable-detex \ |
228 |
- --disable-ttf2pk \ |
229 |
- --disable-tex4htk \ |
230 |
- --disable-cjkutils \ |
231 |
- --disable-xdvik \ |
232 |
- --disable-xindy \ |
233 |
- --disable-luatex \ |
234 |
- --disable-dvi2tty \ |
235 |
- --disable-dvisvgm \ |
236 |
- --disable-vlna \ |
237 |
- --disable-xdvipdfmx \ |
238 |
- --enable-shared \ |
239 |
- --disable-native-texlive-build \ |
240 |
- --disable-largefile \ |
241 |
- $(use_enable xetex) \ |
242 |
- $(use_enable cjk ptex) \ |
243 |
- $(use_enable cjk eptex) \ |
244 |
- $(use_enable cjk uptex) \ |
245 |
- $(use_enable cjk euptex) \ |
246 |
- $(use_enable cjk mendexk) \ |
247 |
- $(use_enable cjk makejvf) \ |
248 |
- $(use_with X x) |
249 |
-} |
250 |
- |
251 |
-src_compile() { |
252 |
- emake SHELL=/bin/sh texmf=${TEXMF_PATH:-/usr/share/texmf} || die "emake failed" |
253 |
- |
254 |
- cd "${B}" |
255 |
- # Mimic updmap --syncwithtrees to enable only fonts installed |
256 |
- # Code copied from updmap script |
257 |
- for i in `egrep '^(Mixed)?Map' "texmf/web2c/updmap.cfg" | sed 's@.* @@'`; do |
258 |
- texlive-common_is_file_present_in_texmf "$i" || echo "$i" |
259 |
- done > "${T}/updmap_update" |
260 |
- { |
261 |
- sed 's@/@\\/@g; s@^@/^MixedMap[ ]*@; s@$@$/s/^/#! /@' <"${T}/updmap_update" |
262 |
- sed 's@/@\\/@g; s@^@/^Map[ ]*@; s@$@$/s/^/#! /@' <"${T}/updmap_update" |
263 |
- } > "${T}/updmap_update2" |
264 |
- sed -f "${T}/updmap_update2" "texmf/web2c/updmap.cfg" > "${T}/updmap_update3"\ |
265 |
- && cat "${T}/updmap_update3" > "texmf/web2c/updmap.cfg" |
266 |
-} |
267 |
- |
268 |
-src_test() { |
269 |
- ewarn "Due to modular layout of texlive ebuilds," |
270 |
- ewarn "It would not make much sense to use tests into the ebuild" |
271 |
- ewarn "And tests would fail anyway" |
272 |
- ewarn "Alternatively you can try to compile any tex file" |
273 |
- ewarn "Tex warnings should be considered as errors and reported" |
274 |
- ewarn "You can also run fmtutil-sys --all and check for errors/warnings there" |
275 |
-} |
276 |
- |
277 |
-src_install() { |
278 |
- dodir ${TEXMF_PATH:-/usr/share/texmf}/web2c |
279 |
- emake DESTDIR="${D}" texmf="${D}${TEXMF_PATH:-/usr/share/texmf}" run_texlinks="true" run_mktexlsr="true" install || die "install failed" |
280 |
- |
281 |
- cd "${B}" |
282 |
- dodir /usr/share # just in case |
283 |
- cp -pR texmf{,-dist} "${D}/usr/share/" || die "failed to install texmf trees" |
284 |
- cp -pR "${WORKDIR}"/tlpkg "${D}/usr/share/" || die "failed to install tlpkg files" |
285 |
- |
286 |
- newsbin "${FILESDIR}/texmf-update2010" texmf-update |
287 |
- |
288 |
- # When X is disabled mf-nowin doesn't exist but some scripts expect it to |
289 |
- # exist. Instead, it is called mf, so we symlink it to please everything. |
290 |
- use X || dosym mf /usr/bin/mf-nowin |
291 |
- |
292 |
- docinto texk |
293 |
- cd "${B}/texk" |
294 |
- dodoc ChangeLog README || die "failed to install texk docs" |
295 |
- |
296 |
- docinto dviljk |
297 |
- cd "${B}/texk/dviljk" |
298 |
- dodoc ChangeLog README NEWS || die "failed to install dviljk docs" |
299 |
- |
300 |
- docinto makeindexk |
301 |
- cd "${B}/texk/makeindexk" |
302 |
- dodoc ChangeLog NOTES README || die "failed to install makeindexk docs" |
303 |
- |
304 |
- docinto web2c |
305 |
- cd "${B}/texk/web2c" |
306 |
- dodoc ChangeLog NEWS PROJECTS README || die "failed to install web2c docs" |
307 |
- |
308 |
- use doc || rm -rf "${D}/usr/share/texmf/doc" |
309 |
- use doc || rm -rf "${D}/usr/share/texmf-dist/doc" |
310 |
- |
311 |
- dodir /etc/env.d |
312 |
- echo 'CONFIG_PROTECT_MASK="/etc/texmf/web2c /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d"' > "${D}/etc/env.d/98texlive" |
313 |
- # populate /etc/texmf |
314 |
- keepdir /etc/texmf/web2c |
315 |
- |
316 |
- # take care of updmap.cfg and language.d files |
317 |
- keepdir /etc/texmf/{updmap.d,language.dat.d,language.def.d,language.dat.lua.d} |
318 |
- |
319 |
- mv "${D}${TEXMF_PATH}/web2c/updmap.cfg" "${D}/etc/texmf/updmap.d/00updmap.cfg" || die "moving updmap.cfg failed" |
320 |
- |
321 |
- # Remove fmtutil.cnf, it will be regenerated from /etc/texmf/fmtutil.d files |
322 |
- # by texmf-update |
323 |
- rm -f "${D}${TEXMF_PATH}/web2c/fmtutil.cnf" |
324 |
- # Remove bundled and invalid updmap.cfg |
325 |
- rm -f "${D}/usr/share/texmf-dist/web2c/updmap.cfg" |
326 |
- |
327 |
- texlive-common_handle_config_files |
328 |
- |
329 |
- keepdir /usr/share/texmf-site |
330 |
- |
331 |
- # the virtex symlink is not installed |
332 |
- # The links has to be relative, since the targets |
333 |
- # is not present at this stage and MacOS doesn't |
334 |
- # like non-existing targets |
335 |
- dosym tex /usr/bin/virtex |
336 |
- dosym pdftex /usr/bin/pdfvirtex |
337 |
- |
338 |
- # Remove texdoctk if we don't want it |
339 |
- if ! use tk ; then |
340 |
- rm -f "${D}/usr/bin/texdoctk" "${D}/usr/share/texmf/scripts/tetex/texdoctk.pl" "${D}/usr/share/man/man1/texdoctk.1" || die "failed to remove texdoc tk!" |
341 |
- fi |
342 |
- |
343 |
- # Rename mpost to leave room for mplib |
344 |
- mv "${D}/usr/bin/mpost" "${D}/usr/bin/mpost-${P}" |
345 |
- dosym "mpost-${P}" /usr/bin/mpost |
346 |
- |
347 |
- # Ditto for pdftex |
348 |
- mv "${D}/usr/bin/pdftex" "${D}/usr/bin/pdftex-${P}" |
349 |
- dosym "pdftex-${P}" /usr/bin/pdftex |
350 |
-} |
351 |
- |
352 |
-pkg_preinst() { |
353 |
- # Remove stray files to keep the upgrade path sane |
354 |
- if has_version =app-text/texlive-core-2007* ; then |
355 |
- for i in pdftex/pdflatex aleph/aleph aleph/lamed omega/lambda omega/omega xetex/xetex xetex/xelatex tex/tex pdftex/etex pdftex/pdftex pdftex/pdfetex ; do |
356 |
- for j in log fmt ; do |
357 |
- local file="${ROOT}/var/lib/texmf/web2c/${i}.${j}" |
358 |
- if [ -f "${file}" ] ; then |
359 |
- elog "Removing stray ${file} from TeXLive 2007 install." |
360 |
- rm -f "${file}" |
361 |
- fi |
362 |
- done |
363 |
- done |
364 |
- for j in base log ; do |
365 |
- local file="${ROOT}/var/lib/texmf/web2c/metafont/mf.${j}" |
366 |
- if [ -f "${file}" ] ; then |
367 |
- elog "Removing stray ${file} from TeXLive 2007 install." |
368 |
- rm -f "${file}" |
369 |
- fi |
370 |
- done |
371 |
- fi |
372 |
-} |
373 |
- |
374 |
-pkg_postinst() { |
375 |
- etexmf-update |
376 |
- |
377 |
- elog |
378 |
- elog "If you have configuration files in /etc/texmf to merge," |
379 |
- elog "please update them and run /usr/sbin/texmf-update." |
380 |
- elog |
381 |
- ewarn "If you are migrating from an older TeX distribution" |
382 |
- ewarn "Please make sure you have read:" |
383 |
- ewarn "https://wiki.gentoo.org/wiki/Project:TeX/Tex_Live_Migration_Guide" |
384 |
- ewarn "in order to avoid possible problems" |
385 |
- elog |
386 |
- elog "TeXLive has been split in various ebuilds. If you are missing a" |
387 |
- elog "package to process your TeX documents, you can install" |
388 |
- elog "dev-tex/texmfind to easily search for them." |
389 |
- elog |
390 |
-} |
391 |
|
392 |
diff --git a/app-text/texlive-core/texlive-core-2013-r1.ebuild b/app-text/texlive-core/texlive-core-2013-r1.ebuild |
393 |
deleted file mode 100644 |
394 |
index 73ee55a5b7..0000000000 |
395 |
--- a/app-text/texlive-core/texlive-core-2013-r1.ebuild |
396 |
+++ /dev/null |
397 |
@@ -1,354 +0,0 @@ |
398 |
-# Copyright 1999-2017 Gentoo Foundation |
399 |
-# Distributed under the terms of the GNU General Public License v2 |
400 |
-# $Id$ |
401 |
- |
402 |
-EAPI=5 |
403 |
- |
404 |
-#TL_UPSTREAM_PATCHLEVEL="1" |
405 |
-PATCHLEVEL="41" |
406 |
-TL_SOURCE_VERSION=20130530 |
407 |
- |
408 |
-inherit eutils flag-o-matic toolchain-funcs libtool texlive-common |
409 |
- |
410 |
-MY_PV=${PN%-core}-${TL_SOURCE_VERSION}-source |
411 |
- |
412 |
-DESCRIPTION="A complete TeX distribution" |
413 |
-HOMEPAGE="http://tug.org/texlive/" |
414 |
-SLOT="0" |
415 |
-LICENSE="GPL-2 LPPL-1.3c TeX" |
416 |
- |
417 |
-SRC_URI="mirror://gentoo/${MY_PV}.tar.xz" |
418 |
- |
419 |
-# Fetch patches |
420 |
-SRC_URI="${SRC_URI} mirror://gentoo/${PN}-patches-${PATCHLEVEL}.tar.xz" |
421 |
-# mirror://gentoo/texlive-core-upstream-patches-${TL_UPSTREAM_PATCHLEVEL}.tar.xz" |
422 |
- |
423 |
-TL_CORE_BINEXTRA_MODULES=" |
424 |
- a2ping adhocfilelist asymptote bundledoc ctanify ctanupload ctie cweb |
425 |
- de-macro dtl dtxgen dvi2tty dviasm dvicopy dvidvi dviljk dvipos findhyph |
426 |
- fragmaster hyphenex installfont lacheck latex2man latexfileversion |
427 |
- latexpand ltxfileinfo listings-ext match_parens mkjobtexmf patgen pdfcrop |
428 |
- pdftools pfarrei pkfix pkfix-helper purifyeps seetexk sty2dtx synctex |
429 |
- texcount texdef texdiff texdirflatten texdoc texliveonfly texloganalyser |
430 |
- texware tie tpic2pdftex typeoutfileinfo web collection-binextra |
431 |
- " |
432 |
-TL_CORE_BINEXTRA_DOC_MODULES=" |
433 |
- a2ping.doc adhocfilelist.doc asymptote.doc bundledoc.doc ctanify.doc |
434 |
- ctanupload.doc ctie.doc cweb.doc de-macro.doc dtxgen.doc dvi2tty.doc |
435 |
- dvicopy.doc dviljk.doc dvipos.doc findhyph.doc fragmaster.doc |
436 |
- installfont.doc latex2man.doc latexfileversion.doc latexpand.doc |
437 |
- ltxfileinfo.doc listings-ext.doc match_parens.doc mkjobtexmf.doc patgen.doc |
438 |
- pdfcrop.doc pdftools.doc pfarrei.doc pkfix.doc pkfix-helper.doc |
439 |
- purifyeps.doc sty2dtx.doc synctex.doc texcount.doc texdef.doc texdiff.doc |
440 |
- texdirflatten.doc texdoc.doc texliveonfly.doc texloganalyser.doc texware.doc |
441 |
- tie.doc tpic2pdftex.doc typeoutfileinfo web.doc |
442 |
- " |
443 |
-TL_CORE_BINEXTRA_SRC_MODULES=" |
444 |
- adhocfilelist.source hyphenex.source listings-ext.source mkjobtexmf.source |
445 |
- pfarrei.source texdef.source |
446 |
- " |
447 |
- |
448 |
-TL_CORE_EXTRA_MODULES="tetex hyphen-base texconfig gsftopk texlive.infra ${TL_CORE_BINEXTRA_MODULES}" |
449 |
-TL_CORE_EXTRA_DOC_MODULES="tetex.doc texconfig.doc gsftopk.doc texlive.infra.doc ${TL_CORE_BINEXTRA_DOC_MODULES}" |
450 |
-TL_CORE_EXTRA_SRC_MODULES="${TL_CORE_BINEXTRA_SRC_MODULES}" |
451 |
- |
452 |
-for i in ${TL_CORE_EXTRA_MODULES}; do |
453 |
- SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.tar.xz" |
454 |
-done |
455 |
- |
456 |
-SRC_URI="${SRC_URI} doc? ( " |
457 |
-for i in ${TL_CORE_EXTRA_DOC_MODULES}; do |
458 |
- SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.tar.xz" |
459 |
-done |
460 |
-SRC_URI="${SRC_URI} )" |
461 |
-SRC_URI="${SRC_URI} source? ( " |
462 |
-for i in ${TL_CORE_EXTRA_SRC_MODULES}; do |
463 |
- SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.tar.xz" |
464 |
-done |
465 |
-SRC_URI="${SRC_URI} )" |
466 |
- |
467 |
-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 ~sparc-solaris ~x64-solaris ~x86-solaris" |
468 |
-IUSE="cjk X doc source tk xetex" |
469 |
- |
470 |
-TEXMF_PATH=/usr/share/texmf-dist |
471 |
- |
472 |
-MODULAR_X_DEPEND="X? ( |
473 |
- x11-libs/libXmu |
474 |
- x11-libs/libXp |
475 |
- x11-libs/libXpm |
476 |
- x11-libs/libXaw |
477 |
- )" |
478 |
- |
479 |
-COMMON_DEPEND="${MODULAR_X_DEPEND} |
480 |
- !app-text/ptex |
481 |
- !app-text/tetex |
482 |
- !<app-text/texlive-2007 |
483 |
- !app-text/xetex |
484 |
- !<dev-texlive/texlive-basic-2013 |
485 |
- !<dev-texlive/texlive-metapost-2011 |
486 |
- !app-text/dvibook |
487 |
- sys-libs/zlib |
488 |
- >=media-libs/libpng-1.2.43-r2:0= |
489 |
- >=app-text/poppler-0.12.3-r3:= |
490 |
- >=x11-libs/cairo-1.12 |
491 |
- >=x11-libs/pixman-0.18 |
492 |
- xetex? ( |
493 |
- >=media-libs/harfbuzz-0.9.20[icu,graphite] |
494 |
- >=dev-libs/icu-50:= |
495 |
- app-text/teckit |
496 |
- media-libs/fontconfig |
497 |
- media-gfx/graphite2 |
498 |
- media-libs/freetype:2 |
499 |
- ) |
500 |
- >=dev-libs/kpathsea-6.1.1_p20130530 |
501 |
- cjk? ( >=dev-libs/ptexenc-1.3.1_p20130530 )" |
502 |
- |
503 |
-DEPEND="${COMMON_DEPEND} |
504 |
- virtual/pkgconfig |
505 |
- sys-apps/ed |
506 |
- sys-devel/flex |
507 |
- app-arch/xz-utils" |
508 |
- |
509 |
-RDEPEND="${COMMON_DEPEND} |
510 |
- >=app-text/ps2pkm-1.5_p20130530 |
511 |
- >=app-text/dvipsk-5.993_p20130530 |
512 |
- >=dev-tex/bibtexu-3.71_p20130530 |
513 |
- virtual/perl-Getopt-Long |
514 |
- xetex? ( >=app-text/xdvipdfmx-0.7.9_p20130530 ) |
515 |
- tk? ( dev-perl/Tk )" |
516 |
- |
517 |
-# texdoc needs luatex. |
518 |
-PDEPEND=">=dev-tex/luatex-0.76" |
519 |
- |
520 |
-S="${WORKDIR}/${P}_build" |
521 |
-B="${WORKDIR}/${MY_PV}" |
522 |
- |
523 |
-src_unpack() { |
524 |
- unpack ${A} |
525 |
- mkdir -p "${S}" || die "failed to create build dir" |
526 |
-} |
527 |
- |
528 |
-RELOC_TARGET=texmf-dist |
529 |
- |
530 |
-src_prepare() { |
531 |
- cd "${WORKDIR}" |
532 |
- # From texlive-module.eclass. |
533 |
- grep -H RELOC tlpkg/tlpobj/* | awk '{print $2}' | sed 's#^RELOC/##' > "${T}/reloclist" |
534 |
- { for i in $(<"${T}/reloclist"); do dirname $i; done; } | uniq > "${T}/dirlist" |
535 |
- for i in $(<"${T}/dirlist"); do |
536 |
- [ -d "${RELOC_TARGET}/${i}" ] || mkdir -p "${RELOC_TARGET}/${i}" |
537 |
- done |
538 |
- for i in $(<"${T}/reloclist"); do |
539 |
- mv "${i}" "${RELOC_TARGET}"/$(dirname "${i}") || die "failed to relocate ${i} to ${RELOC_TARGET}/$(dirname ${i})" |
540 |
- done |
541 |
- |
542 |
- mv "${WORKDIR}"/texmf* "${B}" || die "failed to move texmf files" |
543 |
- |
544 |
- cd "${B}" |
545 |
- #EPATCH_MULTI_MSG="Applying patches from upstream bugfix branch..." EPATCH_SUFFIX="patch" epatch "${WORKDIR}/gentoo_branch2011_patches" |
546 |
- EPATCH_SUFFIX="patch" epatch "${WORKDIR}/patches" |
547 |
- |
548 |
- elibtoolize |
549 |
-} |
550 |
- |
551 |
-src_configure() { |
552 |
- # It fails on alpha without this |
553 |
- use alpha && append-ldflags "-Wl,--no-relax" |
554 |
- |
555 |
- # Too many regexps use A-Z a-z constructs, what causes problems with locales |
556 |
- # that don't have the same alphabetical order than ascii. Bug #242430 |
557 |
- # So we set LC_ALL to C in order to avoid problems. |
558 |
- export LC_ALL=C |
559 |
- tc-export CC CXX AR RANLIB |
560 |
- ECONF_SOURCE="${B}" \ |
561 |
- econf -C \ |
562 |
- --bindir="${EPREFIX}"/usr/bin \ |
563 |
- --datadir="${S}" \ |
564 |
- --with-system-freetype2 \ |
565 |
- --with-system-zlib \ |
566 |
- --with-system-libpng \ |
567 |
- --with-system-xpdf \ |
568 |
- --with-system-poppler \ |
569 |
- --with-system-teckit \ |
570 |
- --with-teckit-includes="${EPREFIX}"/usr/include/teckit \ |
571 |
- --with-system-kpathsea \ |
572 |
- --with-kpathsea-includes="${EPREFIX}"/usr/include \ |
573 |
- --with-system-icu \ |
574 |
- --with-system-ptexenc \ |
575 |
- --with-system-harfbuzz \ |
576 |
- --with-system-icu \ |
577 |
- --with-system-graphite2 \ |
578 |
- --with-system-cairo \ |
579 |
- --with-system-pixman \ |
580 |
- --without-texinfo \ |
581 |
- --disable-dialog \ |
582 |
- --disable-multiplatform \ |
583 |
- --enable-epsfwin \ |
584 |
- --enable-mftalkwin \ |
585 |
- --enable-regiswin \ |
586 |
- --enable-tektronixwin \ |
587 |
- --enable-unitermwin \ |
588 |
- --with-ps=gs \ |
589 |
- --disable-psutils \ |
590 |
- --disable-t1utils \ |
591 |
- --enable-ipc \ |
592 |
- --disable-biber \ |
593 |
- --disable-bibtex-x \ |
594 |
- --disable-dvipng \ |
595 |
- --disable-dvipsk \ |
596 |
- --disable-dvipdfmx \ |
597 |
- --disable-chktex \ |
598 |
- --disable-lcdf-typetools \ |
599 |
- --disable-pdfopen \ |
600 |
- --disable-ps2eps \ |
601 |
- --disable-ps2pkm \ |
602 |
- --disable-detex \ |
603 |
- --disable-ttf2pk \ |
604 |
- --disable-tex4htk \ |
605 |
- --disable-cjkutils \ |
606 |
- --disable-xdvik \ |
607 |
- --disable-xindy \ |
608 |
- --disable-luatex \ |
609 |
- --disable-dvi2tty \ |
610 |
- --disable-dvisvgm \ |
611 |
- --disable-vlna \ |
612 |
- --disable-xdvipdfmx \ |
613 |
- --enable-shared \ |
614 |
- --disable-native-texlive-build \ |
615 |
- --disable-largefile \ |
616 |
- $(use_enable xetex) \ |
617 |
- $(use_enable cjk ptex) \ |
618 |
- $(use_enable cjk eptex) \ |
619 |
- $(use_enable cjk uptex) \ |
620 |
- $(use_enable cjk euptex) \ |
621 |
- $(use_enable cjk mendexk) \ |
622 |
- $(use_enable cjk makejvf) \ |
623 |
- $(use_enable tk texdoctk) \ |
624 |
- $(use_with X x) |
625 |
-} |
626 |
- |
627 |
-src_compile() { |
628 |
- tc-export CC CXX AR RANLIB |
629 |
- emake SHELL="${EPREFIX}"/bin/sh texmf="${EPREFIX}"${TEXMF_PATH:-/usr/share/texmf-dist} || die "emake failed" |
630 |
- |
631 |
- cd "${B}" |
632 |
- # Mimic updmap --syncwithtrees to enable only fonts installed |
633 |
- # Code copied from updmap script |
634 |
- for i in `egrep '^(Mixed|Kanji)?Map' "texmf-dist/web2c/updmap.cfg" | sed 's@.* @@'`; do |
635 |
- texlive-common_is_file_present_in_texmf "$i" || echo "$i" |
636 |
- done > "${T}/updmap_update" |
637 |
- { |
638 |
- sed 's@/@\\/@g; s@^@/^MixedMap[ ]*@; s@$@$/s/^/#! /@' <"${T}/updmap_update" |
639 |
- sed 's@/@\\/@g; s@^@/^Map[ ]*@; s@$@$/s/^/#! /@' <"${T}/updmap_update" |
640 |
- sed 's@/@\\/@g; s@^@/^KanjiMap[ ]*@; s@$@$/s/^/#! /@' <"${T}/updmap_update" |
641 |
- } > "${T}/updmap_update2" |
642 |
- sed -f "${T}/updmap_update2" "texmf-dist/web2c/updmap.cfg" > "${T}/updmap_update3"\ |
643 |
- && cat "${T}/updmap_update3" > "texmf-dist/web2c/updmap.cfg" |
644 |
-} |
645 |
- |
646 |
-src_install() { |
647 |
- dodir ${TEXMF_PATH:-/usr/share/texmf-dist}/web2c |
648 |
- emake DESTDIR="${D}" texmf="${ED}${TEXMF_PATH:-/usr/share/texmf-dist}" run_texlinks="true" run_mktexlsr="true" install || die "install failed" |
649 |
- |
650 |
- cd "${B}" |
651 |
- dodir /usr/share # just in case |
652 |
- cp -pR texmf-dist "${ED}/usr/share/" || die "failed to install texmf trees" |
653 |
- cp -pR "${WORKDIR}"/tlpkg "${ED}/usr/share/" || die "failed to install tlpkg files" |
654 |
- |
655 |
- # When X is disabled mf-nowin doesn't exist but some scripts expect it to |
656 |
- # exist. Instead, it is called mf, so we symlink it to please everything. |
657 |
- use X || dosym mf /usr/bin/mf-nowin |
658 |
- |
659 |
- docinto texk |
660 |
- cd "${B}/texk" |
661 |
- dodoc ChangeLog README || die "failed to install texk docs" |
662 |
- |
663 |
- docinto dviljk |
664 |
- cd "${B}/texk/dviljk" |
665 |
- dodoc ChangeLog README NEWS || die "failed to install dviljk docs" |
666 |
- |
667 |
- docinto makeindexk |
668 |
- cd "${B}/texk/makeindexk" |
669 |
- dodoc ChangeLog NOTES README || die "failed to install makeindexk docs" |
670 |
- |
671 |
- docinto web2c |
672 |
- cd "${B}/texk/web2c" |
673 |
- dodoc ChangeLog NEWS PROJECTS README || die "failed to install web2c docs" |
674 |
- |
675 |
- use doc || rm -rf "${ED}/usr/share/texmf-dist/doc" |
676 |
- |
677 |
- dodir /etc/env.d |
678 |
- echo 'CONFIG_PROTECT_MASK="/etc/texmf/web2c /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d"' > "${ED}/etc/env.d/98texlive" |
679 |
- # populate /etc/texmf |
680 |
- keepdir /etc/texmf/web2c |
681 |
- |
682 |
- # take care of updmap.cfg and language.d files |
683 |
- keepdir /etc/texmf/{updmap.d,language.dat.d,language.def.d,language.dat.lua.d} |
684 |
- |
685 |
- mv "${ED}${TEXMF_PATH}/web2c/updmap.cfg" "${ED}/etc/texmf/updmap.d/00updmap.cfg" || die "moving updmap.cfg failed" |
686 |
- |
687 |
- # Remove fmtutil.cnf, it will be regenerated from /etc/texmf/fmtutil.d files |
688 |
- # by texmf-update |
689 |
- rm -f "${ED}${TEXMF_PATH}/web2c/fmtutil.cnf" |
690 |
- # Remove bundled and invalid updmap.cfg |
691 |
- rm -f "${ED}/usr/share/texmf-dist/web2c/updmap.cfg" |
692 |
- |
693 |
- texlive-common_handle_config_files |
694 |
- |
695 |
- keepdir /usr/share/texmf-site |
696 |
- |
697 |
- # the virtex symlink is not installed |
698 |
- # The links has to be relative, since the targets |
699 |
- # is not present at this stage and MacOS doesn't |
700 |
- # like non-existing targets |
701 |
- dosym tex /usr/bin/virtex |
702 |
- dosym pdftex /usr/bin/pdfvirtex |
703 |
- |
704 |
- # Rename mpost to leave room for mplib |
705 |
- mv "${ED}/usr/bin/mpost" "${ED}/usr/bin/mpost-${P}" |
706 |
- dosym "mpost-${P}" /usr/bin/mpost |
707 |
- |
708 |
- # Ditto for pdftex |
709 |
- mv "${ED}/usr/bin/pdftex" "${ED}/usr/bin/pdftex-${P}" |
710 |
- dosym "pdftex-${P}" /usr/bin/pdftex |
711 |
-} |
712 |
- |
713 |
-pkg_preinst() { |
714 |
- # Remove stray files to keep the upgrade path sane |
715 |
- if has_version =app-text/texlive-core-2007* ; then |
716 |
- for i in pdftex/pdflatex aleph/aleph aleph/lamed omega/lambda omega/omega xetex/xetex xetex/xelatex tex/tex pdftex/etex pdftex/pdftex pdftex/pdfetex ; do |
717 |
- for j in log fmt ; do |
718 |
- local file="${EROOT}/var/lib/texmf/web2c/${i}.${j}" |
719 |
- if [ -f "${file}" ] ; then |
720 |
- elog "Removing stray ${file} from TeXLive 2007 install." |
721 |
- rm -f "${file}" |
722 |
- fi |
723 |
- done |
724 |
- done |
725 |
- for j in base log ; do |
726 |
- local file="${EROOT}/var/lib/texmf/web2c/metafont/mf.${j}" |
727 |
- if [ -f "${file}" ] ; then |
728 |
- elog "Removing stray ${file} from TeXLive 2007 install." |
729 |
- rm -f "${file}" |
730 |
- fi |
731 |
- done |
732 |
- fi |
733 |
-} |
734 |
- |
735 |
-pkg_postinst() { |
736 |
- etexmf-update |
737 |
- |
738 |
- elog |
739 |
- elog "If you have configuration files in ${EPREFIX}/etc/texmf to merge," |
740 |
- elog "please update them and run ${EPREFIX}/usr/sbin/texmf-update." |
741 |
- elog |
742 |
- ewarn "If you are migrating from an older TeX distribution" |
743 |
- ewarn "Please make sure you have read:" |
744 |
- ewarn "https://wiki.gentoo.org/wiki/Project:TeX/Tex_Live_Migration_Guide" |
745 |
- ewarn "in order to avoid possible problems" |
746 |
- elog |
747 |
- elog "TeXLive has been split in various ebuilds. If you are missing a" |
748 |
- elog "package to process your TeX documents, you can install" |
749 |
- elog "dev-tex/texmfind to easily search for them." |
750 |
- elog |
751 |
-} |
752 |
|
753 |
diff --git a/app-text/texlive-core/texlive-core-2014-r1.ebuild b/app-text/texlive-core/texlive-core-2014-r1.ebuild |
754 |
deleted file mode 100644 |
755 |
index af04449573..0000000000 |
756 |
--- a/app-text/texlive-core/texlive-core-2014-r1.ebuild |
757 |
+++ /dev/null |
758 |
@@ -1,336 +0,0 @@ |
759 |
-# Copyright 1999-2017 Gentoo Foundation |
760 |
-# Distributed under the terms of the GNU General Public License v2 |
761 |
-# $Id$ |
762 |
- |
763 |
-EAPI=5 |
764 |
- |
765 |
-#TL_UPSTREAM_PATCHLEVEL="1" |
766 |
-PATCHLEVEL="42" |
767 |
-TL_SOURCE_VERSION=20140525 |
768 |
- |
769 |
-inherit eutils flag-o-matic toolchain-funcs libtool texlive-common |
770 |
- |
771 |
-MY_PV=${PN%-core}-${TL_SOURCE_VERSION}-source |
772 |
- |
773 |
-DESCRIPTION="A complete TeX distribution" |
774 |
-HOMEPAGE="http://tug.org/texlive/" |
775 |
-SLOT="0" |
776 |
-LICENSE="GPL-2 LPPL-1.3c TeX" |
777 |
- |
778 |
-SRC_URI="mirror://gentoo/${MY_PV}.tar.xz" |
779 |
- |
780 |
-# Fetch patches |
781 |
-SRC_URI="${SRC_URI} mirror://gentoo/${PN}-patches-${PATCHLEVEL}.tar.xz" |
782 |
-# mirror://gentoo/texlive-core-upstream-patches-${TL_UPSTREAM_PATCHLEVEL}.tar.xz" |
783 |
- |
784 |
-TL_CORE_BINEXTRA_MODULES=" |
785 |
- a2ping adhocfilelist asymptote bundledoc ctanify ctanupload ctie cweb |
786 |
- de-macro dtl dtxgen dvi2tty dviasm dvicopy dvidvi dviljk dvipos findhyph |
787 |
- fragmaster hyphenex installfont lacheck latex-git-log latex2man |
788 |
- latexfileversion latexpand latexindent ltxfileinfo ltximg listings-ext |
789 |
- match_parens mkjobtexmf patgen pdfcrop pdftools pfarrei pkfix pkfix-helper |
790 |
- purifyeps seetexk sty2dtx synctex texcount texdef texdiff texdirflatten |
791 |
- texdoc texliveonfly texloganalyser texware tie tpic2pdftex typeoutfileinfo |
792 |
- web collection-binextra |
793 |
- " |
794 |
-TL_CORE_BINEXTRA_DOC_MODULES=" |
795 |
- a2ping.doc adhocfilelist.doc asymptote.doc bundledoc.doc ctanify.doc |
796 |
- ctanupload.doc ctie.doc cweb.doc de-macro.doc dtxgen.doc dvi2tty.doc |
797 |
- dvicopy.doc dviljk.doc dvipos.doc findhyph.doc fragmaster.doc |
798 |
- installfont.doc latex-git-log.doc latex2man.doc latexfileversion.doc |
799 |
- latexpand.doc latexindent.doc ltxfileinfo.doc ltximg.doc listings-ext.doc |
800 |
- match_parens.doc mkjobtexmf.doc patgen.doc pdfcrop.doc pdftools.doc |
801 |
- pfarrei.doc pkfix.doc pkfix-helper.doc purifyeps.doc sty2dtx.doc synctex.doc |
802 |
- texcount.doc texdef.doc texdiff.doc texdirflatten.doc texdoc.doc |
803 |
- texliveonfly.doc texloganalyser.doc texware.doc tie.doc tpic2pdftex.doc |
804 |
- typeoutfileinfo.doc web.doc |
805 |
- " |
806 |
-TL_CORE_BINEXTRA_SRC_MODULES=" |
807 |
- adhocfilelist.source hyphenex.source listings-ext.source mkjobtexmf.source |
808 |
- pfarrei.source texdef.source |
809 |
- " |
810 |
- |
811 |
-TL_CORE_EXTRA_MODULES="tetex hyphen-base texconfig gsftopk texlive.infra ${TL_CORE_BINEXTRA_MODULES}" |
812 |
-TL_CORE_EXTRA_DOC_MODULES="tetex.doc texconfig.doc gsftopk.doc texlive.infra.doc ${TL_CORE_BINEXTRA_DOC_MODULES}" |
813 |
-TL_CORE_EXTRA_SRC_MODULES="${TL_CORE_BINEXTRA_SRC_MODULES}" |
814 |
- |
815 |
-for i in ${TL_CORE_EXTRA_MODULES}; do |
816 |
- SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.tar.xz" |
817 |
-done |
818 |
- |
819 |
-SRC_URI="${SRC_URI} doc? ( " |
820 |
-for i in ${TL_CORE_EXTRA_DOC_MODULES}; do |
821 |
- SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.tar.xz" |
822 |
-done |
823 |
-SRC_URI="${SRC_URI} )" |
824 |
-SRC_URI="${SRC_URI} source? ( " |
825 |
-for i in ${TL_CORE_EXTRA_SRC_MODULES}; do |
826 |
- SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.tar.xz" |
827 |
-done |
828 |
-SRC_URI="${SRC_URI} )" |
829 |
- |
830 |
-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 ~sparc-solaris ~x64-solaris ~x86-solaris" |
831 |
-IUSE="cjk X doc source tk xetex" |
832 |
- |
833 |
-TEXMF_PATH=/usr/share/texmf-dist |
834 |
- |
835 |
-MODULAR_X_DEPEND="X? ( |
836 |
- x11-libs/libXmu |
837 |
- x11-libs/libXp |
838 |
- x11-libs/libXpm |
839 |
- x11-libs/libXaw |
840 |
- )" |
841 |
- |
842 |
-COMMON_DEPEND="${MODULAR_X_DEPEND} |
843 |
- !app-text/ptex |
844 |
- !app-text/tetex |
845 |
- !<app-text/texlive-2007 |
846 |
- !app-text/xetex |
847 |
- !<dev-texlive/texlive-basic-2014 |
848 |
- !<dev-texlive/texlive-metapost-2011 |
849 |
- !app-text/dvibook |
850 |
- !dev-tex/luatex |
851 |
- !app-text/dvipdfm |
852 |
- !app-text/dvipdfmx |
853 |
- !app-text/xdvipdfmx |
854 |
- sys-libs/zlib |
855 |
- >=media-libs/libpng-1.2.43-r2:0= |
856 |
- >=app-text/poppler-0.12.3-r3:= |
857 |
- >=x11-libs/cairo-1.12 |
858 |
- >=x11-libs/pixman-0.18 |
859 |
- dev-libs/zziplib |
860 |
- app-text/libpaper |
861 |
- xetex? ( |
862 |
- >=media-libs/harfbuzz-0.9.20[icu,graphite] |
863 |
- >=dev-libs/icu-50:= |
864 |
- app-text/teckit |
865 |
- media-libs/fontconfig |
866 |
- media-gfx/graphite2 |
867 |
- ) |
868 |
- media-libs/freetype:2 |
869 |
- >=dev-libs/kpathsea-6.2.0 |
870 |
- cjk? ( >=dev-libs/ptexenc-1.3.2_p20140525-r1 )" |
871 |
- |
872 |
-DEPEND="${COMMON_DEPEND} |
873 |
- virtual/pkgconfig |
874 |
- sys-apps/ed |
875 |
- sys-devel/flex |
876 |
- app-arch/xz-utils" |
877 |
- |
878 |
-RDEPEND="${COMMON_DEPEND} |
879 |
- >=app-text/ps2pkm-1.5_p20130530 |
880 |
- >=app-text/dvipsk-5.993_p20130530 |
881 |
- >=dev-tex/bibtexu-3.71_p20130530 |
882 |
- virtual/perl-Getopt-Long |
883 |
- tk? ( dev-perl/Tk )" |
884 |
- |
885 |
-S="${WORKDIR}/${P}_build" |
886 |
-B="${WORKDIR}/${MY_PV}" |
887 |
- |
888 |
-src_unpack() { |
889 |
- unpack ${A} |
890 |
- mkdir -p "${S}" || die "failed to create build dir" |
891 |
-} |
892 |
- |
893 |
-RELOC_TARGET=texmf-dist |
894 |
- |
895 |
-src_prepare() { |
896 |
- cd "${WORKDIR}" |
897 |
- # From texlive-module.eclass. |
898 |
- grep -H RELOC tlpkg/tlpobj/* | awk '{print $2}' | sed 's#^RELOC/##' > "${T}/reloclist" |
899 |
- { for i in $(<"${T}/reloclist"); do dirname $i; done; } | uniq > "${T}/dirlist" |
900 |
- for i in $(<"${T}/dirlist"); do |
901 |
- [ -d "${RELOC_TARGET}/${i}" ] || mkdir -p "${RELOC_TARGET}/${i}" |
902 |
- done |
903 |
- for i in $(<"${T}/reloclist"); do |
904 |
- mv "${i}" "${RELOC_TARGET}"/$(dirname "${i}") || die "failed to relocate ${i} to ${RELOC_TARGET}/$(dirname ${i})" |
905 |
- done |
906 |
- |
907 |
- mv "${WORKDIR}"/texmf* "${B}" || die "failed to move texmf files" |
908 |
- |
909 |
- cd "${B}" |
910 |
- #EPATCH_MULTI_MSG="Applying patches from upstream bugfix branch..." EPATCH_SUFFIX="patch" epatch "${WORKDIR}/gentoo_branch2011_patches" |
911 |
- EPATCH_SUFFIX="patch" epatch "${WORKDIR}/patches" |
912 |
- |
913 |
- elibtoolize |
914 |
-} |
915 |
- |
916 |
-src_configure() { |
917 |
- # It fails on alpha without this |
918 |
- use alpha && append-ldflags "-Wl,--no-relax" |
919 |
- |
920 |
- # Too many regexps use A-Z a-z constructs, what causes problems with locales |
921 |
- # that don't have the same alphabetical order than ascii. Bug #242430 |
922 |
- # So we set LC_ALL to C in order to avoid problems. |
923 |
- export LC_ALL=C |
924 |
- tc-export CC CXX AR RANLIB |
925 |
- ECONF_SOURCE="${B}" \ |
926 |
- econf -C \ |
927 |
- --bindir="${EPREFIX}"/usr/bin \ |
928 |
- --datadir="${S}" \ |
929 |
- --with-system-freetype2 \ |
930 |
- --with-system-zlib \ |
931 |
- --with-system-libpng \ |
932 |
- --with-system-xpdf \ |
933 |
- --with-system-poppler \ |
934 |
- --with-system-teckit \ |
935 |
- --with-teckit-includes="${EPREFIX}"/usr/include/teckit \ |
936 |
- --with-system-kpathsea \ |
937 |
- --with-kpathsea-includes="${EPREFIX}"/usr/include \ |
938 |
- --with-system-icu \ |
939 |
- --with-system-ptexenc \ |
940 |
- --with-system-harfbuzz \ |
941 |
- --with-system-icu \ |
942 |
- --with-system-graphite2 \ |
943 |
- --with-system-cairo \ |
944 |
- --with-system-pixman \ |
945 |
- --with-system-zziplib \ |
946 |
- --with-system-libpaper \ |
947 |
- --without-texinfo \ |
948 |
- --disable-dialog \ |
949 |
- --disable-multiplatform \ |
950 |
- --enable-epsfwin \ |
951 |
- --enable-mftalkwin \ |
952 |
- --enable-regiswin \ |
953 |
- --enable-tektronixwin \ |
954 |
- --enable-unitermwin \ |
955 |
- --with-ps=gs \ |
956 |
- --disable-psutils \ |
957 |
- --disable-t1utils \ |
958 |
- --enable-ipc \ |
959 |
- --disable-biber \ |
960 |
- --disable-bibtex-x \ |
961 |
- --disable-dvipng \ |
962 |
- --disable-dvipsk \ |
963 |
- --disable-chktex \ |
964 |
- --disable-lcdf-typetools \ |
965 |
- --disable-pdfopen \ |
966 |
- --disable-ps2eps \ |
967 |
- --disable-ps2pkm \ |
968 |
- --disable-detex \ |
969 |
- --disable-ttf2pk2 \ |
970 |
- --disable-tex4htk \ |
971 |
- --disable-cjkutils \ |
972 |
- --disable-xdvik \ |
973 |
- --disable-xindy \ |
974 |
- --enable-luatex \ |
975 |
- --disable-dvi2tty \ |
976 |
- --disable-dvisvgm \ |
977 |
- --disable-vlna \ |
978 |
- --enable-shared \ |
979 |
- --disable-native-texlive-build \ |
980 |
- --disable-largefile \ |
981 |
- $(use_enable xetex) \ |
982 |
- $(use_enable cjk ptex) \ |
983 |
- $(use_enable cjk eptex) \ |
984 |
- $(use_enable cjk uptex) \ |
985 |
- $(use_enable cjk euptex) \ |
986 |
- $(use_enable cjk mendexk) \ |
987 |
- $(use_enable cjk makejvf) \ |
988 |
- $(use_enable tk texdoctk) \ |
989 |
- $(use_with X x) |
990 |
-} |
991 |
- |
992 |
-src_compile() { |
993 |
- tc-export CC CXX AR RANLIB |
994 |
- emake SHELL="${EPREFIX}"/bin/sh texmf="${EPREFIX}"${TEXMF_PATH:-/usr/share/texmf-dist} || die "emake failed" |
995 |
- |
996 |
- cd "${B}" |
997 |
- # Mimic updmap --syncwithtrees to enable only fonts installed |
998 |
- # Code copied from updmap script |
999 |
- for i in `egrep '^(Mixed|Kanji)?Map' "texmf-dist/web2c/updmap.cfg" | sed 's@.* @@'`; do |
1000 |
- texlive-common_is_file_present_in_texmf "$i" || echo "$i" |
1001 |
- done > "${T}/updmap_update" |
1002 |
- { |
1003 |
- sed 's@/@\\/@g; s@^@/^MixedMap[ ]*@; s@$@$/s/^/#! /@' <"${T}/updmap_update" |
1004 |
- sed 's@/@\\/@g; s@^@/^Map[ ]*@; s@$@$/s/^/#! /@' <"${T}/updmap_update" |
1005 |
- sed 's@/@\\/@g; s@^@/^KanjiMap[ ]*@; s@$@$/s/^/#! /@' <"${T}/updmap_update" |
1006 |
- } > "${T}/updmap_update2" |
1007 |
- sed -f "${T}/updmap_update2" "texmf-dist/web2c/updmap.cfg" > "${T}/updmap_update3"\ |
1008 |
- && cat "${T}/updmap_update3" > "texmf-dist/web2c/updmap.cfg" |
1009 |
-} |
1010 |
- |
1011 |
-src_install() { |
1012 |
- dodir ${TEXMF_PATH:-/usr/share/texmf-dist}/web2c |
1013 |
- emake DESTDIR="${D}" texmf="${ED}${TEXMF_PATH:-/usr/share/texmf-dist}" run_texlinks="true" run_mktexlsr="true" install || die "install failed" |
1014 |
- |
1015 |
- cd "${B}" |
1016 |
- dodir /usr/share # just in case |
1017 |
- cp -pR texmf-dist "${ED}/usr/share/" || die "failed to install texmf trees" |
1018 |
- cp -pR "${WORKDIR}"/tlpkg "${ED}/usr/share/" || die "failed to install tlpkg files" |
1019 |
- |
1020 |
- # When X is disabled mf-nowin doesn't exist but some scripts expect it to |
1021 |
- # exist. Instead, it is called mf, so we symlink it to please everything. |
1022 |
- use X || dosym mf /usr/bin/mf-nowin |
1023 |
- |
1024 |
- docinto texk |
1025 |
- cd "${B}/texk" |
1026 |
- dodoc ChangeLog README || die "failed to install texk docs" |
1027 |
- |
1028 |
- docinto dviljk |
1029 |
- cd "${B}/texk/dviljk" |
1030 |
- dodoc ChangeLog README NEWS || die "failed to install dviljk docs" |
1031 |
- |
1032 |
- docinto makeindexk |
1033 |
- cd "${B}/texk/makeindexk" |
1034 |
- dodoc ChangeLog NOTES README || die "failed to install makeindexk docs" |
1035 |
- |
1036 |
- docinto web2c |
1037 |
- cd "${B}/texk/web2c" |
1038 |
- dodoc ChangeLog NEWS PROJECTS README || die "failed to install web2c docs" |
1039 |
- |
1040 |
- use doc || rm -rf "${ED}/usr/share/texmf-dist/doc" |
1041 |
- |
1042 |
- dodir /etc/env.d |
1043 |
- echo 'CONFIG_PROTECT_MASK="/etc/texmf/web2c /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d"' > "${ED}/etc/env.d/98texlive" |
1044 |
- # populate /etc/texmf |
1045 |
- keepdir /etc/texmf/web2c |
1046 |
- |
1047 |
- # take care of updmap.cfg and language.d files |
1048 |
- keepdir /etc/texmf/{updmap.d,language.dat.d,language.def.d,language.dat.lua.d} |
1049 |
- |
1050 |
- mv "${ED}${TEXMF_PATH}/web2c/updmap.cfg" "${ED}/etc/texmf/updmap.d/00updmap.cfg" || die "moving updmap.cfg failed" |
1051 |
- |
1052 |
- # Remove fmtutil.cnf, it will be regenerated from /etc/texmf/fmtutil.d files |
1053 |
- # by texmf-update |
1054 |
- rm -f "${ED}${TEXMF_PATH}/web2c/fmtutil.cnf" |
1055 |
- # Remove bundled and invalid updmap.cfg |
1056 |
- rm -f "${ED}/usr/share/texmf-dist/web2c/updmap.cfg" |
1057 |
- |
1058 |
- texlive-common_handle_config_files |
1059 |
- |
1060 |
- keepdir /usr/share/texmf-site |
1061 |
- |
1062 |
- # the virtex symlink is not installed |
1063 |
- # The links has to be relative, since the targets |
1064 |
- # is not present at this stage and MacOS doesn't |
1065 |
- # like non-existing targets |
1066 |
- dosym tex /usr/bin/virtex |
1067 |
- dosym pdftex /usr/bin/pdfvirtex |
1068 |
- |
1069 |
- # Rename mpost to leave room for mplib |
1070 |
- mv "${ED}/usr/bin/mpost" "${ED}/usr/bin/mpost-${P}" |
1071 |
- dosym "mpost-${P}" /usr/bin/mpost |
1072 |
- |
1073 |
- # Ditto for pdftex |
1074 |
- mv "${ED}/usr/bin/pdftex" "${ED}/usr/bin/pdftex-${P}" |
1075 |
- dosym "pdftex-${P}" /usr/bin/pdftex |
1076 |
-} |
1077 |
- |
1078 |
-pkg_postinst() { |
1079 |
- etexmf-update |
1080 |
- |
1081 |
- elog |
1082 |
- elog "If you have configuration files in ${EPREFIX}/etc/texmf to merge," |
1083 |
- elog "please update them and run ${EPREFIX}/usr/sbin/texmf-update." |
1084 |
- elog |
1085 |
- ewarn "If you are migrating from an older TeX distribution" |
1086 |
- ewarn "Please make sure you have read:" |
1087 |
- ewarn "https://wiki.gentoo.org/wiki/Project:TeX/Tex_Live_Migration_Guide" |
1088 |
- ewarn "in order to avoid possible problems" |
1089 |
- elog |
1090 |
- elog "TeXLive has been split in various ebuilds. If you are missing a" |
1091 |
- elog "package to process your TeX documents, you can install" |
1092 |
- elog "dev-tex/texmfind to easily search for them." |
1093 |
- elog |
1094 |
-} |
1095 |
|
1096 |
diff --git a/app-text/texlive-core/texlive-core-2014-r3.ebuild b/app-text/texlive-core/texlive-core-2014-r3.ebuild |
1097 |
deleted file mode 100644 |
1098 |
index 3e439e3383..0000000000 |
1099 |
--- a/app-text/texlive-core/texlive-core-2014-r3.ebuild |
1100 |
+++ /dev/null |
1101 |
@@ -1,336 +0,0 @@ |
1102 |
-# Copyright 1999-2017 Gentoo Foundation |
1103 |
-# Distributed under the terms of the GNU General Public License v2 |
1104 |
-# $Id$ |
1105 |
- |
1106 |
-EAPI=5 |
1107 |
- |
1108 |
-#TL_UPSTREAM_PATCHLEVEL="1" |
1109 |
-PATCHLEVEL="47" |
1110 |
-TL_SOURCE_VERSION=20140525 |
1111 |
- |
1112 |
-inherit eutils flag-o-matic toolchain-funcs libtool texlive-common |
1113 |
- |
1114 |
-MY_PV=${PN%-core}-${TL_SOURCE_VERSION}-source |
1115 |
- |
1116 |
-DESCRIPTION="A complete TeX distribution" |
1117 |
-HOMEPAGE="http://tug.org/texlive/" |
1118 |
-SLOT="0" |
1119 |
-LICENSE="GPL-2 LPPL-1.3c TeX" |
1120 |
- |
1121 |
-SRC_URI="mirror://gentoo/${MY_PV}.tar.xz" |
1122 |
- |
1123 |
-# Fetch patches |
1124 |
-SRC_URI="${SRC_URI} mirror://gentoo/${PN}-patches-${PATCHLEVEL}.tar.xz" |
1125 |
-# mirror://gentoo/texlive-core-upstream-patches-${TL_UPSTREAM_PATCHLEVEL}.tar.xz" |
1126 |
- |
1127 |
-TL_CORE_BINEXTRA_MODULES=" |
1128 |
- a2ping adhocfilelist asymptote bundledoc ctanify ctanupload ctie cweb |
1129 |
- de-macro dtl dtxgen dvi2tty dviasm dvicopy dvidvi dviljk dvipos findhyph |
1130 |
- fragmaster hyphenex installfont lacheck latex-git-log latex2man |
1131 |
- latexfileversion latexpand latexindent ltxfileinfo ltximg listings-ext |
1132 |
- match_parens mkjobtexmf patgen pdfcrop pdftools pfarrei pkfix pkfix-helper |
1133 |
- purifyeps seetexk sty2dtx synctex texcount texdef texdiff texdirflatten |
1134 |
- texdoc texliveonfly texloganalyser texware tie tpic2pdftex typeoutfileinfo |
1135 |
- web collection-binextra |
1136 |
- " |
1137 |
-TL_CORE_BINEXTRA_DOC_MODULES=" |
1138 |
- a2ping.doc adhocfilelist.doc asymptote.doc bundledoc.doc ctanify.doc |
1139 |
- ctanupload.doc ctie.doc cweb.doc de-macro.doc dtxgen.doc dvi2tty.doc |
1140 |
- dvicopy.doc dviljk.doc dvipos.doc findhyph.doc fragmaster.doc |
1141 |
- installfont.doc latex-git-log.doc latex2man.doc latexfileversion.doc |
1142 |
- latexpand.doc latexindent.doc ltxfileinfo.doc ltximg.doc listings-ext.doc |
1143 |
- match_parens.doc mkjobtexmf.doc patgen.doc pdfcrop.doc pdftools.doc |
1144 |
- pfarrei.doc pkfix.doc pkfix-helper.doc purifyeps.doc sty2dtx.doc synctex.doc |
1145 |
- texcount.doc texdef.doc texdiff.doc texdirflatten.doc texdoc.doc |
1146 |
- texliveonfly.doc texloganalyser.doc texware.doc tie.doc tpic2pdftex.doc |
1147 |
- typeoutfileinfo.doc web.doc |
1148 |
- " |
1149 |
-TL_CORE_BINEXTRA_SRC_MODULES=" |
1150 |
- adhocfilelist.source hyphenex.source listings-ext.source mkjobtexmf.source |
1151 |
- pfarrei.source texdef.source |
1152 |
- " |
1153 |
- |
1154 |
-TL_CORE_EXTRA_MODULES="tetex hyphen-base texconfig gsftopk texlive.infra ${TL_CORE_BINEXTRA_MODULES}" |
1155 |
-TL_CORE_EXTRA_DOC_MODULES="tetex.doc texconfig.doc gsftopk.doc texlive.infra.doc ${TL_CORE_BINEXTRA_DOC_MODULES}" |
1156 |
-TL_CORE_EXTRA_SRC_MODULES="${TL_CORE_BINEXTRA_SRC_MODULES}" |
1157 |
- |
1158 |
-for i in ${TL_CORE_EXTRA_MODULES}; do |
1159 |
- SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.tar.xz" |
1160 |
-done |
1161 |
- |
1162 |
-SRC_URI="${SRC_URI} doc? ( " |
1163 |
-for i in ${TL_CORE_EXTRA_DOC_MODULES}; do |
1164 |
- SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.tar.xz" |
1165 |
-done |
1166 |
-SRC_URI="${SRC_URI} )" |
1167 |
-SRC_URI="${SRC_URI} source? ( " |
1168 |
-for i in ${TL_CORE_EXTRA_SRC_MODULES}; do |
1169 |
- SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.tar.xz" |
1170 |
-done |
1171 |
-SRC_URI="${SRC_URI} )" |
1172 |
- |
1173 |
-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 ~sparc-solaris ~x64-solaris ~x86-solaris" |
1174 |
-IUSE="cjk X doc source tk xetex" |
1175 |
- |
1176 |
-TEXMF_PATH=/usr/share/texmf-dist |
1177 |
- |
1178 |
-MODULAR_X_DEPEND="X? ( |
1179 |
- x11-libs/libXmu |
1180 |
- x11-libs/libXp |
1181 |
- x11-libs/libXpm |
1182 |
- x11-libs/libXaw |
1183 |
- )" |
1184 |
- |
1185 |
-COMMON_DEPEND="${MODULAR_X_DEPEND} |
1186 |
- !app-text/ptex |
1187 |
- !app-text/tetex |
1188 |
- !<app-text/texlive-2007 |
1189 |
- !app-text/xetex |
1190 |
- !<dev-texlive/texlive-basic-2014 |
1191 |
- !<dev-texlive/texlive-metapost-2011 |
1192 |
- !app-text/dvibook |
1193 |
- !dev-tex/luatex |
1194 |
- !app-text/dvipdfm |
1195 |
- !app-text/dvipdfmx |
1196 |
- !app-text/xdvipdfmx |
1197 |
- sys-libs/zlib |
1198 |
- >=media-libs/libpng-1.2.43-r2:0= |
1199 |
- >=app-text/poppler-0.12.3-r3:= |
1200 |
- >=x11-libs/cairo-1.12 |
1201 |
- >=x11-libs/pixman-0.18 |
1202 |
- dev-libs/zziplib |
1203 |
- app-text/libpaper |
1204 |
- xetex? ( |
1205 |
- >=media-libs/harfbuzz-0.9.20[icu,graphite] |
1206 |
- >=dev-libs/icu-50:= |
1207 |
- app-text/teckit |
1208 |
- media-libs/fontconfig |
1209 |
- media-gfx/graphite2 |
1210 |
- ) |
1211 |
- media-libs/freetype:2 |
1212 |
- >=dev-libs/kpathsea-6.2.0 |
1213 |
- cjk? ( >=dev-libs/ptexenc-1.3.2_p20140525-r1 )" |
1214 |
- |
1215 |
-DEPEND="${COMMON_DEPEND} |
1216 |
- virtual/pkgconfig |
1217 |
- sys-apps/ed |
1218 |
- sys-devel/flex |
1219 |
- app-arch/xz-utils" |
1220 |
- |
1221 |
-RDEPEND="${COMMON_DEPEND} |
1222 |
- >=app-text/ps2pkm-1.5_p20130530 |
1223 |
- >=app-text/dvipsk-5.993_p20130530 |
1224 |
- >=dev-tex/bibtexu-3.71_p20130530 |
1225 |
- virtual/perl-Getopt-Long |
1226 |
- tk? ( dev-perl/Tk )" |
1227 |
- |
1228 |
-S="${WORKDIR}/${P}_build" |
1229 |
-B="${WORKDIR}/${MY_PV}" |
1230 |
- |
1231 |
-src_unpack() { |
1232 |
- unpack ${A} |
1233 |
- mkdir -p "${S}" || die "failed to create build dir" |
1234 |
-} |
1235 |
- |
1236 |
-RELOC_TARGET=texmf-dist |
1237 |
- |
1238 |
-src_prepare() { |
1239 |
- cd "${WORKDIR}" |
1240 |
- # From texlive-module.eclass. |
1241 |
- grep -H RELOC tlpkg/tlpobj/* | awk '{print $2}' | sed 's#^RELOC/##' > "${T}/reloclist" |
1242 |
- { for i in $(<"${T}/reloclist"); do dirname $i; done; } | uniq > "${T}/dirlist" |
1243 |
- for i in $(<"${T}/dirlist"); do |
1244 |
- [ -d "${RELOC_TARGET}/${i}" ] || mkdir -p "${RELOC_TARGET}/${i}" |
1245 |
- done |
1246 |
- for i in $(<"${T}/reloclist"); do |
1247 |
- mv "${i}" "${RELOC_TARGET}"/$(dirname "${i}") || die "failed to relocate ${i} to ${RELOC_TARGET}/$(dirname ${i})" |
1248 |
- done |
1249 |
- |
1250 |
- mv "${WORKDIR}"/texmf* "${B}" || die "failed to move texmf files" |
1251 |
- |
1252 |
- cd "${B}" |
1253 |
- #EPATCH_MULTI_MSG="Applying patches from upstream bugfix branch..." EPATCH_SUFFIX="patch" epatch "${WORKDIR}/gentoo_branch2011_patches" |
1254 |
- EPATCH_SUFFIX="patch" epatch "${WORKDIR}/patches" |
1255 |
- |
1256 |
- elibtoolize |
1257 |
-} |
1258 |
- |
1259 |
-src_configure() { |
1260 |
- # It fails on alpha without this |
1261 |
- use alpha && append-ldflags "-Wl,--no-relax" |
1262 |
- |
1263 |
- # Too many regexps use A-Z a-z constructs, what causes problems with locales |
1264 |
- # that don't have the same alphabetical order than ascii. Bug #242430 |
1265 |
- # So we set LC_ALL to C in order to avoid problems. |
1266 |
- export LC_ALL=C |
1267 |
- tc-export CC CXX AR RANLIB |
1268 |
- ECONF_SOURCE="${B}" \ |
1269 |
- econf -C \ |
1270 |
- --bindir="${EPREFIX}"/usr/bin \ |
1271 |
- --datadir="${S}" \ |
1272 |
- --with-system-freetype2 \ |
1273 |
- --with-system-zlib \ |
1274 |
- --with-system-libpng \ |
1275 |
- --with-system-xpdf \ |
1276 |
- --with-system-poppler \ |
1277 |
- --with-system-teckit \ |
1278 |
- --with-teckit-includes="${EPREFIX}"/usr/include/teckit \ |
1279 |
- --with-system-kpathsea \ |
1280 |
- --with-kpathsea-includes="${EPREFIX}"/usr/include \ |
1281 |
- --with-system-icu \ |
1282 |
- --with-system-ptexenc \ |
1283 |
- --with-system-harfbuzz \ |
1284 |
- --with-system-icu \ |
1285 |
- --with-system-graphite2 \ |
1286 |
- --with-system-cairo \ |
1287 |
- --with-system-pixman \ |
1288 |
- --with-system-zziplib \ |
1289 |
- --with-system-libpaper \ |
1290 |
- --without-texinfo \ |
1291 |
- --disable-dialog \ |
1292 |
- --disable-multiplatform \ |
1293 |
- --enable-epsfwin \ |
1294 |
- --enable-mftalkwin \ |
1295 |
- --enable-regiswin \ |
1296 |
- --enable-tektronixwin \ |
1297 |
- --enable-unitermwin \ |
1298 |
- --with-ps=gs \ |
1299 |
- --disable-psutils \ |
1300 |
- --disable-t1utils \ |
1301 |
- --enable-ipc \ |
1302 |
- --disable-biber \ |
1303 |
- --disable-bibtex-x \ |
1304 |
- --disable-dvipng \ |
1305 |
- --disable-dvipsk \ |
1306 |
- --disable-chktex \ |
1307 |
- --disable-lcdf-typetools \ |
1308 |
- --disable-pdfopen \ |
1309 |
- --disable-ps2eps \ |
1310 |
- --disable-ps2pkm \ |
1311 |
- --disable-detex \ |
1312 |
- --disable-ttf2pk2 \ |
1313 |
- --disable-tex4htk \ |
1314 |
- --disable-cjkutils \ |
1315 |
- --disable-xdvik \ |
1316 |
- --disable-xindy \ |
1317 |
- --enable-luatex \ |
1318 |
- --disable-dvi2tty \ |
1319 |
- --disable-dvisvgm \ |
1320 |
- --disable-vlna \ |
1321 |
- --enable-shared \ |
1322 |
- --disable-native-texlive-build \ |
1323 |
- --disable-largefile \ |
1324 |
- $(use_enable xetex) \ |
1325 |
- $(use_enable cjk ptex) \ |
1326 |
- $(use_enable cjk eptex) \ |
1327 |
- $(use_enable cjk uptex) \ |
1328 |
- $(use_enable cjk euptex) \ |
1329 |
- $(use_enable cjk mendexk) \ |
1330 |
- $(use_enable cjk makejvf) \ |
1331 |
- $(use_enable tk texdoctk) \ |
1332 |
- $(use_with X x) |
1333 |
-} |
1334 |
- |
1335 |
-src_compile() { |
1336 |
- tc-export CC CXX AR RANLIB |
1337 |
- emake SHELL="${EPREFIX}"/bin/sh texmf="${EPREFIX}"${TEXMF_PATH:-/usr/share/texmf-dist} |
1338 |
- |
1339 |
- cd "${B}" || die |
1340 |
- # Mimic updmap --syncwithtrees to enable only fonts installed |
1341 |
- # Code copied from updmap script |
1342 |
- for i in `egrep '^(Mixed|Kanji)?Map' "texmf-dist/web2c/updmap.cfg" | sed 's@.* @@'`; do |
1343 |
- texlive-common_is_file_present_in_texmf "$i" || echo "$i" |
1344 |
- done > "${T}/updmap_update" |
1345 |
- { |
1346 |
- sed 's@/@\\/@g; s@^@/^MixedMap[ ]*@; s@$@$/s/^/#! /@' <"${T}/updmap_update" |
1347 |
- sed 's@/@\\/@g; s@^@/^Map[ ]*@; s@$@$/s/^/#! /@' <"${T}/updmap_update" |
1348 |
- sed 's@/@\\/@g; s@^@/^KanjiMap[ ]*@; s@$@$/s/^/#! /@' <"${T}/updmap_update" |
1349 |
- } > "${T}/updmap_update2" |
1350 |
- sed -f "${T}/updmap_update2" "texmf-dist/web2c/updmap.cfg" > "${T}/updmap_update3"\ |
1351 |
- && cat "${T}/updmap_update3" > "texmf-dist/web2c/updmap.cfg" |
1352 |
-} |
1353 |
- |
1354 |
-src_install() { |
1355 |
- dodir ${TEXMF_PATH:-/usr/share/texmf-dist}/web2c |
1356 |
- emake DESTDIR="${D}" texmf="${ED}${TEXMF_PATH:-/usr/share/texmf-dist}" run_texlinks="true" run_mktexlsr="true" install |
1357 |
- |
1358 |
- cd "${B}" || die |
1359 |
- dodir /usr/share # just in case |
1360 |
- cp -pR texmf-dist "${ED}/usr/share/" || die "failed to install texmf trees" |
1361 |
- cp -pR "${WORKDIR}"/tlpkg "${ED}/usr/share/" || die "failed to install tlpkg files" |
1362 |
- |
1363 |
- # When X is disabled mf-nowin doesn't exist but some scripts expect it to |
1364 |
- # exist. Instead, it is called mf, so we symlink it to please everything. |
1365 |
- use X || dosym mf /usr/bin/mf-nowin |
1366 |
- |
1367 |
- docinto texk |
1368 |
- cd "${B}/texk" |
1369 |
- dodoc ChangeLog README |
1370 |
- |
1371 |
- docinto dviljk |
1372 |
- cd "${B}/texk/dviljk" |
1373 |
- dodoc ChangeLog README NEWS |
1374 |
- |
1375 |
- docinto makeindexk |
1376 |
- cd "${B}/texk/makeindexk" |
1377 |
- dodoc ChangeLog NOTES README |
1378 |
- |
1379 |
- docinto web2c |
1380 |
- cd "${B}/texk/web2c" |
1381 |
- dodoc ChangeLog NEWS PROJECTS README |
1382 |
- |
1383 |
- use doc || rm -rf "${ED}/usr/share/texmf-dist/doc" |
1384 |
- |
1385 |
- dodir /etc/env.d |
1386 |
- echo 'CONFIG_PROTECT_MASK="/etc/texmf/web2c /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d"' > "${ED}/etc/env.d/98texlive" |
1387 |
- # populate /etc/texmf |
1388 |
- keepdir /etc/texmf/web2c |
1389 |
- |
1390 |
- # take care of updmap.cfg and language.d files |
1391 |
- keepdir /etc/texmf/{updmap.d,language.dat.d,language.def.d,language.dat.lua.d} |
1392 |
- |
1393 |
- mv "${ED}${TEXMF_PATH}/web2c/updmap.cfg" "${ED}/etc/texmf/updmap.d/00updmap.cfg" || die "moving updmap.cfg failed" |
1394 |
- |
1395 |
- # Remove fmtutil.cnf, it will be regenerated from /etc/texmf/fmtutil.d files |
1396 |
- # by texmf-update |
1397 |
- rm -f "${ED}${TEXMF_PATH}/web2c/fmtutil.cnf" |
1398 |
- # Remove bundled and invalid updmap.cfg |
1399 |
- rm -f "${ED}/usr/share/texmf-dist/web2c/updmap.cfg" |
1400 |
- |
1401 |
- texlive-common_handle_config_files |
1402 |
- |
1403 |
- keepdir /usr/share/texmf-site |
1404 |
- |
1405 |
- # the virtex symlink is not installed |
1406 |
- # The links has to be relative, since the targets |
1407 |
- # is not present at this stage and MacOS doesn't |
1408 |
- # like non-existing targets |
1409 |
- dosym tex /usr/bin/virtex |
1410 |
- dosym pdftex /usr/bin/pdfvirtex |
1411 |
- |
1412 |
- # Rename mpost to leave room for mplib |
1413 |
- mv "${ED}/usr/bin/mpost" "${ED}/usr/bin/mpost-${P}" |
1414 |
- dosym "mpost-${P}" /usr/bin/mpost |
1415 |
- |
1416 |
- # Ditto for pdftex |
1417 |
- mv "${ED}/usr/bin/pdftex" "${ED}/usr/bin/pdftex-${P}" |
1418 |
- dosym "pdftex-${P}" /usr/bin/pdftex |
1419 |
-} |
1420 |
- |
1421 |
-pkg_postinst() { |
1422 |
- etexmf-update |
1423 |
- |
1424 |
- elog |
1425 |
- elog "If you have configuration files in ${EPREFIX}/etc/texmf to merge," |
1426 |
- elog "please update them and run ${EPREFIX}/usr/sbin/texmf-update." |
1427 |
- elog |
1428 |
- ewarn "If you are migrating from an older TeX distribution" |
1429 |
- ewarn "Please make sure you have read:" |
1430 |
- ewarn "https://wiki.gentoo.org/wiki/Project:TeX/Tex_Live_Migration_Guide" |
1431 |
- ewarn "in order to avoid possible problems" |
1432 |
- elog |
1433 |
- elog "TeXLive has been split in various ebuilds. If you are missing a" |
1434 |
- elog "package to process your TeX documents, you can install" |
1435 |
- elog "dev-tex/texmfind to easily search for them." |
1436 |
- elog |
1437 |
-} |
1438 |
|
1439 |
diff --git a/app-text/texlive-core/texlive-core-2014.ebuild b/app-text/texlive-core/texlive-core-2014.ebuild |
1440 |
deleted file mode 100644 |
1441 |
index 80048ab96a..0000000000 |
1442 |
--- a/app-text/texlive-core/texlive-core-2014.ebuild |
1443 |
+++ /dev/null |
1444 |
@@ -1,334 +0,0 @@ |
1445 |
-# Copyright 1999-2017 Gentoo Foundation |
1446 |
-# Distributed under the terms of the GNU General Public License v2 |
1447 |
-# $Id$ |
1448 |
- |
1449 |
-EAPI=5 |
1450 |
- |
1451 |
-#TL_UPSTREAM_PATCHLEVEL="1" |
1452 |
-PATCHLEVEL="42" |
1453 |
-TL_SOURCE_VERSION=20140525 |
1454 |
- |
1455 |
-inherit eutils flag-o-matic toolchain-funcs libtool texlive-common |
1456 |
- |
1457 |
-MY_PV=${PN%-core}-${TL_SOURCE_VERSION}-source |
1458 |
- |
1459 |
-DESCRIPTION="A complete TeX distribution" |
1460 |
-HOMEPAGE="http://tug.org/texlive/" |
1461 |
-SLOT="0" |
1462 |
-LICENSE="GPL-2 LPPL-1.3c TeX" |
1463 |
- |
1464 |
-SRC_URI="mirror://gentoo/${MY_PV}.tar.xz" |
1465 |
- |
1466 |
-# Fetch patches |
1467 |
-SRC_URI="${SRC_URI} mirror://gentoo/${PN}-patches-${PATCHLEVEL}.tar.xz" |
1468 |
-# mirror://gentoo/texlive-core-upstream-patches-${TL_UPSTREAM_PATCHLEVEL}.tar.xz" |
1469 |
- |
1470 |
-TL_CORE_BINEXTRA_MODULES=" |
1471 |
- a2ping adhocfilelist asymptote bundledoc ctanify ctanupload ctie cweb |
1472 |
- de-macro dtl dtxgen dvi2tty dviasm dvicopy dvidvi dviljk dvipos findhyph |
1473 |
- fragmaster hyphenex installfont lacheck latex-git-log latex2man |
1474 |
- latexfileversion latexpand latexindent ltxfileinfo ltximg listings-ext |
1475 |
- match_parens mkjobtexmf patgen pdfcrop pdftools pfarrei pkfix pkfix-helper |
1476 |
- purifyeps seetexk sty2dtx synctex texcount texdef texdiff texdirflatten |
1477 |
- texdoc texliveonfly texloganalyser texware tie tpic2pdftex typeoutfileinfo |
1478 |
- web collection-binextra |
1479 |
- " |
1480 |
-TL_CORE_BINEXTRA_DOC_MODULES=" |
1481 |
- a2ping.doc adhocfilelist.doc asymptote.doc bundledoc.doc ctanify.doc |
1482 |
- ctanupload.doc ctie.doc cweb.doc de-macro.doc dtxgen.doc dvi2tty.doc |
1483 |
- dvicopy.doc dviljk.doc dvipos.doc findhyph.doc fragmaster.doc |
1484 |
- installfont.doc latex-git-log.doc latex2man.doc latexfileversion.doc |
1485 |
- latexpand.doc latexindent.doc ltxfileinfo.doc ltximg.doc listings-ext.doc |
1486 |
- match_parens.doc mkjobtexmf.doc patgen.doc pdfcrop.doc pdftools.doc |
1487 |
- pfarrei.doc pkfix.doc pkfix-helper.doc purifyeps.doc sty2dtx.doc synctex.doc |
1488 |
- texcount.doc texdef.doc texdiff.doc texdirflatten.doc texdoc.doc |
1489 |
- texliveonfly.doc texloganalyser.doc texware.doc tie.doc tpic2pdftex.doc |
1490 |
- typeoutfileinfo.doc web.doc |
1491 |
- " |
1492 |
-TL_CORE_BINEXTRA_SRC_MODULES=" |
1493 |
- adhocfilelist.source hyphenex.source listings-ext.source mkjobtexmf.source |
1494 |
- pfarrei.source texdef.source |
1495 |
- " |
1496 |
- |
1497 |
-TL_CORE_EXTRA_MODULES="tetex hyphen-base texconfig gsftopk texlive.infra ${TL_CORE_BINEXTRA_MODULES}" |
1498 |
-TL_CORE_EXTRA_DOC_MODULES="tetex.doc texconfig.doc gsftopk.doc texlive.infra.doc ${TL_CORE_BINEXTRA_DOC_MODULES}" |
1499 |
-TL_CORE_EXTRA_SRC_MODULES="${TL_CORE_BINEXTRA_SRC_MODULES}" |
1500 |
- |
1501 |
-for i in ${TL_CORE_EXTRA_MODULES}; do |
1502 |
- SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.tar.xz" |
1503 |
-done |
1504 |
- |
1505 |
-SRC_URI="${SRC_URI} doc? ( " |
1506 |
-for i in ${TL_CORE_EXTRA_DOC_MODULES}; do |
1507 |
- SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.tar.xz" |
1508 |
-done |
1509 |
-SRC_URI="${SRC_URI} )" |
1510 |
-SRC_URI="${SRC_URI} source? ( " |
1511 |
-for i in ${TL_CORE_EXTRA_SRC_MODULES}; do |
1512 |
- SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.tar.xz" |
1513 |
-done |
1514 |
-SRC_URI="${SRC_URI} )" |
1515 |
- |
1516 |
-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 ~sparc-solaris ~x64-solaris ~x86-solaris" |
1517 |
-IUSE="cjk X doc source tk xetex" |
1518 |
- |
1519 |
-TEXMF_PATH=/usr/share/texmf-dist |
1520 |
- |
1521 |
-MODULAR_X_DEPEND="X? ( |
1522 |
- x11-libs/libXmu |
1523 |
- x11-libs/libXp |
1524 |
- x11-libs/libXpm |
1525 |
- x11-libs/libXaw |
1526 |
- )" |
1527 |
- |
1528 |
-COMMON_DEPEND="${MODULAR_X_DEPEND} |
1529 |
- !app-text/ptex |
1530 |
- !app-text/tetex |
1531 |
- !<app-text/texlive-2007 |
1532 |
- !app-text/xetex |
1533 |
- !<dev-texlive/texlive-basic-2014 |
1534 |
- !<dev-texlive/texlive-metapost-2011 |
1535 |
- !app-text/dvibook |
1536 |
- !dev-tex/luatex |
1537 |
- !app-text/dvipdfm |
1538 |
- !app-text/dvipdfmx |
1539 |
- !app-text/xdvipdfmx |
1540 |
- sys-libs/zlib |
1541 |
- >=media-libs/libpng-1.2.43-r2:0= |
1542 |
- >=app-text/poppler-0.12.3-r3:= |
1543 |
- >=x11-libs/cairo-1.12 |
1544 |
- >=x11-libs/pixman-0.18 |
1545 |
- dev-libs/zziplib |
1546 |
- xetex? ( |
1547 |
- >=media-libs/harfbuzz-0.9.20[icu,graphite] |
1548 |
- >=dev-libs/icu-50:= |
1549 |
- app-text/teckit |
1550 |
- media-libs/fontconfig |
1551 |
- media-gfx/graphite2 |
1552 |
- ) |
1553 |
- media-libs/freetype:2 |
1554 |
- >=dev-libs/kpathsea-6.2.0 |
1555 |
- cjk? ( >=dev-libs/ptexenc-1.3.2_p20140525-r1 )" |
1556 |
- |
1557 |
-DEPEND="${COMMON_DEPEND} |
1558 |
- virtual/pkgconfig |
1559 |
- sys-apps/ed |
1560 |
- sys-devel/flex |
1561 |
- app-arch/xz-utils" |
1562 |
- |
1563 |
-RDEPEND="${COMMON_DEPEND} |
1564 |
- >=app-text/ps2pkm-1.5_p20130530 |
1565 |
- >=app-text/dvipsk-5.993_p20130530 |
1566 |
- >=dev-tex/bibtexu-3.71_p20130530 |
1567 |
- virtual/perl-Getopt-Long |
1568 |
- tk? ( dev-perl/Tk )" |
1569 |
- |
1570 |
-S="${WORKDIR}/${P}_build" |
1571 |
-B="${WORKDIR}/${MY_PV}" |
1572 |
- |
1573 |
-src_unpack() { |
1574 |
- unpack ${A} |
1575 |
- mkdir -p "${S}" || die "failed to create build dir" |
1576 |
-} |
1577 |
- |
1578 |
-RELOC_TARGET=texmf-dist |
1579 |
- |
1580 |
-src_prepare() { |
1581 |
- cd "${WORKDIR}" |
1582 |
- # From texlive-module.eclass. |
1583 |
- grep -H RELOC tlpkg/tlpobj/* | awk '{print $2}' | sed 's#^RELOC/##' > "${T}/reloclist" |
1584 |
- { for i in $(<"${T}/reloclist"); do dirname $i; done; } | uniq > "${T}/dirlist" |
1585 |
- for i in $(<"${T}/dirlist"); do |
1586 |
- [ -d "${RELOC_TARGET}/${i}" ] || mkdir -p "${RELOC_TARGET}/${i}" |
1587 |
- done |
1588 |
- for i in $(<"${T}/reloclist"); do |
1589 |
- mv "${i}" "${RELOC_TARGET}"/$(dirname "${i}") || die "failed to relocate ${i} to ${RELOC_TARGET}/$(dirname ${i})" |
1590 |
- done |
1591 |
- |
1592 |
- mv "${WORKDIR}"/texmf* "${B}" || die "failed to move texmf files" |
1593 |
- |
1594 |
- cd "${B}" |
1595 |
- #EPATCH_MULTI_MSG="Applying patches from upstream bugfix branch..." EPATCH_SUFFIX="patch" epatch "${WORKDIR}/gentoo_branch2011_patches" |
1596 |
- EPATCH_SUFFIX="patch" epatch "${WORKDIR}/patches" |
1597 |
- |
1598 |
- elibtoolize |
1599 |
-} |
1600 |
- |
1601 |
-src_configure() { |
1602 |
- # It fails on alpha without this |
1603 |
- use alpha && append-ldflags "-Wl,--no-relax" |
1604 |
- |
1605 |
- # Too many regexps use A-Z a-z constructs, what causes problems with locales |
1606 |
- # that don't have the same alphabetical order than ascii. Bug #242430 |
1607 |
- # So we set LC_ALL to C in order to avoid problems. |
1608 |
- export LC_ALL=C |
1609 |
- tc-export CC CXX AR RANLIB |
1610 |
- ECONF_SOURCE="${B}" \ |
1611 |
- econf -C \ |
1612 |
- --bindir="${EPREFIX}"/usr/bin \ |
1613 |
- --datadir="${S}" \ |
1614 |
- --with-system-freetype2 \ |
1615 |
- --with-system-zlib \ |
1616 |
- --with-system-libpng \ |
1617 |
- --with-system-xpdf \ |
1618 |
- --with-system-poppler \ |
1619 |
- --with-system-teckit \ |
1620 |
- --with-teckit-includes="${EPREFIX}"/usr/include/teckit \ |
1621 |
- --with-system-kpathsea \ |
1622 |
- --with-kpathsea-includes="${EPREFIX}"/usr/include \ |
1623 |
- --with-system-icu \ |
1624 |
- --with-system-ptexenc \ |
1625 |
- --with-system-harfbuzz \ |
1626 |
- --with-system-icu \ |
1627 |
- --with-system-graphite2 \ |
1628 |
- --with-system-cairo \ |
1629 |
- --with-system-pixman \ |
1630 |
- --with-system-zziplib \ |
1631 |
- --without-texinfo \ |
1632 |
- --disable-dialog \ |
1633 |
- --disable-multiplatform \ |
1634 |
- --enable-epsfwin \ |
1635 |
- --enable-mftalkwin \ |
1636 |
- --enable-regiswin \ |
1637 |
- --enable-tektronixwin \ |
1638 |
- --enable-unitermwin \ |
1639 |
- --with-ps=gs \ |
1640 |
- --disable-psutils \ |
1641 |
- --disable-t1utils \ |
1642 |
- --enable-ipc \ |
1643 |
- --disable-biber \ |
1644 |
- --disable-bibtex-x \ |
1645 |
- --disable-dvipng \ |
1646 |
- --disable-dvipsk \ |
1647 |
- --disable-chktex \ |
1648 |
- --disable-lcdf-typetools \ |
1649 |
- --disable-pdfopen \ |
1650 |
- --disable-ps2eps \ |
1651 |
- --disable-ps2pkm \ |
1652 |
- --disable-detex \ |
1653 |
- --disable-ttf2pk2 \ |
1654 |
- --disable-tex4htk \ |
1655 |
- --disable-cjkutils \ |
1656 |
- --disable-xdvik \ |
1657 |
- --disable-xindy \ |
1658 |
- --enable-luatex \ |
1659 |
- --disable-dvi2tty \ |
1660 |
- --disable-dvisvgm \ |
1661 |
- --disable-vlna \ |
1662 |
- --enable-shared \ |
1663 |
- --disable-native-texlive-build \ |
1664 |
- --disable-largefile \ |
1665 |
- $(use_enable xetex) \ |
1666 |
- $(use_enable cjk ptex) \ |
1667 |
- $(use_enable cjk eptex) \ |
1668 |
- $(use_enable cjk uptex) \ |
1669 |
- $(use_enable cjk euptex) \ |
1670 |
- $(use_enable cjk mendexk) \ |
1671 |
- $(use_enable cjk makejvf) \ |
1672 |
- $(use_enable tk texdoctk) \ |
1673 |
- $(use_with X x) |
1674 |
-} |
1675 |
- |
1676 |
-src_compile() { |
1677 |
- tc-export CC CXX AR RANLIB |
1678 |
- emake SHELL="${EPREFIX}"/bin/sh texmf="${EPREFIX}"${TEXMF_PATH:-/usr/share/texmf-dist} || die "emake failed" |
1679 |
- |
1680 |
- cd "${B}" |
1681 |
- # Mimic updmap --syncwithtrees to enable only fonts installed |
1682 |
- # Code copied from updmap script |
1683 |
- for i in `egrep '^(Mixed|Kanji)?Map' "texmf-dist/web2c/updmap.cfg" | sed 's@.* @@'`; do |
1684 |
- texlive-common_is_file_present_in_texmf "$i" || echo "$i" |
1685 |
- done > "${T}/updmap_update" |
1686 |
- { |
1687 |
- sed 's@/@\\/@g; s@^@/^MixedMap[ ]*@; s@$@$/s/^/#! /@' <"${T}/updmap_update" |
1688 |
- sed 's@/@\\/@g; s@^@/^Map[ ]*@; s@$@$/s/^/#! /@' <"${T}/updmap_update" |
1689 |
- sed 's@/@\\/@g; s@^@/^KanjiMap[ ]*@; s@$@$/s/^/#! /@' <"${T}/updmap_update" |
1690 |
- } > "${T}/updmap_update2" |
1691 |
- sed -f "${T}/updmap_update2" "texmf-dist/web2c/updmap.cfg" > "${T}/updmap_update3"\ |
1692 |
- && cat "${T}/updmap_update3" > "texmf-dist/web2c/updmap.cfg" |
1693 |
-} |
1694 |
- |
1695 |
-src_install() { |
1696 |
- dodir ${TEXMF_PATH:-/usr/share/texmf-dist}/web2c |
1697 |
- emake DESTDIR="${D}" texmf="${ED}${TEXMF_PATH:-/usr/share/texmf-dist}" run_texlinks="true" run_mktexlsr="true" install || die "install failed" |
1698 |
- |
1699 |
- cd "${B}" |
1700 |
- dodir /usr/share # just in case |
1701 |
- cp -pR texmf-dist "${ED}/usr/share/" || die "failed to install texmf trees" |
1702 |
- cp -pR "${WORKDIR}"/tlpkg "${ED}/usr/share/" || die "failed to install tlpkg files" |
1703 |
- |
1704 |
- # When X is disabled mf-nowin doesn't exist but some scripts expect it to |
1705 |
- # exist. Instead, it is called mf, so we symlink it to please everything. |
1706 |
- use X || dosym mf /usr/bin/mf-nowin |
1707 |
- |
1708 |
- docinto texk |
1709 |
- cd "${B}/texk" |
1710 |
- dodoc ChangeLog README || die "failed to install texk docs" |
1711 |
- |
1712 |
- docinto dviljk |
1713 |
- cd "${B}/texk/dviljk" |
1714 |
- dodoc ChangeLog README NEWS || die "failed to install dviljk docs" |
1715 |
- |
1716 |
- docinto makeindexk |
1717 |
- cd "${B}/texk/makeindexk" |
1718 |
- dodoc ChangeLog NOTES README || die "failed to install makeindexk docs" |
1719 |
- |
1720 |
- docinto web2c |
1721 |
- cd "${B}/texk/web2c" |
1722 |
- dodoc ChangeLog NEWS PROJECTS README || die "failed to install web2c docs" |
1723 |
- |
1724 |
- use doc || rm -rf "${ED}/usr/share/texmf-dist/doc" |
1725 |
- |
1726 |
- dodir /etc/env.d |
1727 |
- echo 'CONFIG_PROTECT_MASK="/etc/texmf/web2c /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d"' > "${ED}/etc/env.d/98texlive" |
1728 |
- # populate /etc/texmf |
1729 |
- keepdir /etc/texmf/web2c |
1730 |
- |
1731 |
- # take care of updmap.cfg and language.d files |
1732 |
- keepdir /etc/texmf/{updmap.d,language.dat.d,language.def.d,language.dat.lua.d} |
1733 |
- |
1734 |
- mv "${ED}${TEXMF_PATH}/web2c/updmap.cfg" "${ED}/etc/texmf/updmap.d/00updmap.cfg" || die "moving updmap.cfg failed" |
1735 |
- |
1736 |
- # Remove fmtutil.cnf, it will be regenerated from /etc/texmf/fmtutil.d files |
1737 |
- # by texmf-update |
1738 |
- rm -f "${ED}${TEXMF_PATH}/web2c/fmtutil.cnf" |
1739 |
- # Remove bundled and invalid updmap.cfg |
1740 |
- rm -f "${ED}/usr/share/texmf-dist/web2c/updmap.cfg" |
1741 |
- |
1742 |
- texlive-common_handle_config_files |
1743 |
- |
1744 |
- keepdir /usr/share/texmf-site |
1745 |
- |
1746 |
- # the virtex symlink is not installed |
1747 |
- # The links has to be relative, since the targets |
1748 |
- # is not present at this stage and MacOS doesn't |
1749 |
- # like non-existing targets |
1750 |
- dosym tex /usr/bin/virtex |
1751 |
- dosym pdftex /usr/bin/pdfvirtex |
1752 |
- |
1753 |
- # Rename mpost to leave room for mplib |
1754 |
- mv "${ED}/usr/bin/mpost" "${ED}/usr/bin/mpost-${P}" |
1755 |
- dosym "mpost-${P}" /usr/bin/mpost |
1756 |
- |
1757 |
- # Ditto for pdftex |
1758 |
- mv "${ED}/usr/bin/pdftex" "${ED}/usr/bin/pdftex-${P}" |
1759 |
- dosym "pdftex-${P}" /usr/bin/pdftex |
1760 |
-} |
1761 |
- |
1762 |
-pkg_postinst() { |
1763 |
- etexmf-update |
1764 |
- |
1765 |
- elog |
1766 |
- elog "If you have configuration files in ${EPREFIX}/etc/texmf to merge," |
1767 |
- elog "please update them and run ${EPREFIX}/usr/sbin/texmf-update." |
1768 |
- elog |
1769 |
- ewarn "If you are migrating from an older TeX distribution" |
1770 |
- ewarn "Please make sure you have read:" |
1771 |
- ewarn "https://wiki.gentoo.org/wiki/Project:TeX/Tex_Live_Migration_Guide" |
1772 |
- ewarn "in order to avoid possible problems" |
1773 |
- elog |
1774 |
- elog "TeXLive has been split in various ebuilds. If you are missing a" |
1775 |
- elog "package to process your TeX documents, you can install" |
1776 |
- elog "dev-tex/texmfind to easily search for them." |
1777 |
- elog |
1778 |
-} |
1779 |
|
1780 |
diff --git a/app-text/texlive-core/texlive-core-2015.ebuild b/app-text/texlive-core/texlive-core-2015.ebuild |
1781 |
deleted file mode 100644 |
1782 |
index 148fd5a38a..0000000000 |
1783 |
--- a/app-text/texlive-core/texlive-core-2015.ebuild |
1784 |
+++ /dev/null |
1785 |
@@ -1,347 +0,0 @@ |
1786 |
-# Copyright 1999-2017 Gentoo Foundation |
1787 |
-# Distributed under the terms of the GNU General Public License v2 |
1788 |
-# $Id$ |
1789 |
- |
1790 |
-EAPI=5 |
1791 |
- |
1792 |
-#TL_UPSTREAM_PATCHLEVEL="1" |
1793 |
-PATCHLEVEL="51" |
1794 |
-TL_SOURCE_VERSION=20150521 |
1795 |
- |
1796 |
-inherit eutils flag-o-matic toolchain-funcs libtool texlive-common |
1797 |
- |
1798 |
-MY_PV=${PN%-core}-${TL_SOURCE_VERSION}-source |
1799 |
- |
1800 |
-DESCRIPTION="A complete TeX distribution" |
1801 |
-HOMEPAGE="http://tug.org/texlive/" |
1802 |
-SLOT="0" |
1803 |
-LICENSE="GPL-2 LPPL-1.3c TeX" |
1804 |
- |
1805 |
-SRC_URI="mirror://gentoo/${MY_PV}.tar.xz" |
1806 |
- |
1807 |
-# Fetch patches |
1808 |
-SRC_URI="${SRC_URI} mirror://gentoo/${PN}-patches-${PATCHLEVEL}.tar.xz" |
1809 |
-# mirror://gentoo/texlive-core-upstream-patches-${TL_UPSTREAM_PATCHLEVEL}.tar.xz" |
1810 |
- |
1811 |
-TL_CORE_BINEXTRA_MODULES=" |
1812 |
- a2ping adhocfilelist asymptote bundledoc ctanify ctanupload ctie cweb |
1813 |
- de-macro dtl dtxgen dvi2tty dviasm dvicopy dvidvi dviljk dvipos findhyph |
1814 |
- fragmaster hyphenex installfont lacheck latex-git-log latex2man |
1815 |
- latexfileversion latexpand latexindent ltxfileinfo ltximg listings-ext |
1816 |
- match_parens mkjobtexmf patgen pdfcrop pdftools pfarrei pkfix pkfix-helper |
1817 |
- purifyeps seetexk sty2dtx synctex texcount texdef texdiff texdirflatten |
1818 |
- texdoc texliveonfly texloganalyser texware tie tpic2pdftex typeoutfileinfo |
1819 |
- web collection-binextra |
1820 |
- " |
1821 |
-TL_CORE_BINEXTRA_DOC_MODULES=" |
1822 |
- a2ping.doc adhocfilelist.doc asymptote.doc bundledoc.doc ctanify.doc |
1823 |
- ctanupload.doc ctie.doc cweb.doc de-macro.doc dtxgen.doc dvi2tty.doc |
1824 |
- dvicopy.doc dviljk.doc dvipos.doc findhyph.doc fragmaster.doc |
1825 |
- installfont.doc latex-git-log.doc latex2man.doc latexfileversion.doc |
1826 |
- latexpand.doc latexindent.doc ltxfileinfo.doc ltximg.doc listings-ext.doc |
1827 |
- match_parens.doc mkjobtexmf.doc patgen.doc pdfcrop.doc pdftools.doc |
1828 |
- pfarrei.doc pkfix.doc pkfix-helper.doc purifyeps.doc sty2dtx.doc synctex.doc |
1829 |
- texcount.doc texdef.doc texdiff.doc texdirflatten.doc texdoc.doc |
1830 |
- texliveonfly.doc texloganalyser.doc texware.doc tie.doc tpic2pdftex.doc |
1831 |
- typeoutfileinfo.doc web.doc |
1832 |
- " |
1833 |
-TL_CORE_BINEXTRA_SRC_MODULES=" |
1834 |
- adhocfilelist.source hyphenex.source listings-ext.source mkjobtexmf.source |
1835 |
- pfarrei.source texdef.source |
1836 |
- " |
1837 |
- |
1838 |
-TL_CORE_EXTRA_MODULES="tetex hyphen-base texconfig gsftopk texlive.infra ${TL_CORE_BINEXTRA_MODULES}" |
1839 |
-TL_CORE_EXTRA_DOC_MODULES="tetex.doc texconfig.doc gsftopk.doc texlive.infra.doc ${TL_CORE_BINEXTRA_DOC_MODULES}" |
1840 |
-TL_CORE_EXTRA_SRC_MODULES="${TL_CORE_BINEXTRA_SRC_MODULES}" |
1841 |
- |
1842 |
-for i in ${TL_CORE_EXTRA_MODULES}; do |
1843 |
- SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.tar.xz" |
1844 |
-done |
1845 |
- |
1846 |
-SRC_URI="${SRC_URI} doc? ( " |
1847 |
-for i in ${TL_CORE_EXTRA_DOC_MODULES}; do |
1848 |
- SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.tar.xz" |
1849 |
-done |
1850 |
-SRC_URI="${SRC_URI} )" |
1851 |
-SRC_URI="${SRC_URI} source? ( " |
1852 |
-for i in ${TL_CORE_EXTRA_SRC_MODULES}; do |
1853 |
- SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.tar.xz" |
1854 |
-done |
1855 |
-SRC_URI="${SRC_URI} )" |
1856 |
- |
1857 |
-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 ~sparc-solaris ~x64-solaris ~x86-solaris" |
1858 |
-IUSE="cjk X doc source tk +luajittex xetex" |
1859 |
- |
1860 |
-TEXMF_PATH=/usr/share/texmf-dist |
1861 |
- |
1862 |
-MODULAR_X_DEPEND="X? ( |
1863 |
- x11-libs/libXmu |
1864 |
- x11-libs/libXp |
1865 |
- x11-libs/libXpm |
1866 |
- x11-libs/libXaw |
1867 |
- )" |
1868 |
- |
1869 |
-COMMON_DEPEND="${MODULAR_X_DEPEND} |
1870 |
- !app-text/ptex |
1871 |
- !app-text/tetex |
1872 |
- !<app-text/texlive-2007 |
1873 |
- !app-text/xetex |
1874 |
- !<dev-texlive/texlive-basic-2014 |
1875 |
- !<dev-texlive/texlive-metapost-2011 |
1876 |
- !app-text/dvibook |
1877 |
- !dev-tex/luatex |
1878 |
- !app-text/dvipdfm |
1879 |
- !app-text/dvipdfmx |
1880 |
- !app-text/xdvipdfmx |
1881 |
- sys-libs/zlib |
1882 |
- >=media-libs/libpng-1.2.43-r2:0= |
1883 |
- >=app-text/poppler-0.12.3-r3:= |
1884 |
- >=x11-libs/cairo-1.12 |
1885 |
- >=x11-libs/pixman-0.18 |
1886 |
- dev-libs/zziplib |
1887 |
- app-text/libpaper |
1888 |
- dev-libs/gmp:0 |
1889 |
- dev-libs/mpfr:0 |
1890 |
- xetex? ( |
1891 |
- >=media-libs/harfbuzz-0.9.20[icu,graphite] |
1892 |
- >=dev-libs/icu-50:= |
1893 |
- >=app-text/teckit-2.5.3 |
1894 |
- media-libs/fontconfig |
1895 |
- media-gfx/graphite2 |
1896 |
- ) |
1897 |
- media-libs/freetype:2 |
1898 |
- >=dev-libs/kpathsea-6.2.1 |
1899 |
- cjk? ( >=dev-libs/ptexenc-1.3.3_p20150521 )" |
1900 |
- |
1901 |
-DEPEND="${COMMON_DEPEND} |
1902 |
- virtual/pkgconfig |
1903 |
- sys-apps/ed |
1904 |
- sys-devel/flex |
1905 |
- app-arch/xz-utils" |
1906 |
- |
1907 |
-RDEPEND="${COMMON_DEPEND} |
1908 |
- >=app-text/ps2pkm-1.7_p20150521 |
1909 |
- >=app-text/dvipsk-5.995_p20150521 |
1910 |
- >=dev-tex/bibtexu-3.71_p20150521 |
1911 |
- virtual/perl-Getopt-Long |
1912 |
- tk? ( dev-perl/Tk )" |
1913 |
- |
1914 |
-S="${WORKDIR}/${P}_build" |
1915 |
-B="${WORKDIR}/${MY_PV}" |
1916 |
- |
1917 |
-src_unpack() { |
1918 |
- unpack ${A} |
1919 |
- mkdir -p "${S}" || die "failed to create build dir" |
1920 |
-} |
1921 |
- |
1922 |
-RELOC_TARGET=texmf-dist |
1923 |
- |
1924 |
-src_prepare() { |
1925 |
- cd "${WORKDIR}" |
1926 |
- # From texlive-module.eclass. |
1927 |
- grep -H RELOC tlpkg/tlpobj/* | awk '{print $2}' | sed 's#^RELOC/##' > "${T}/reloclist" |
1928 |
- { for i in $(<"${T}/reloclist"); do dirname $i; done; } | uniq > "${T}/dirlist" |
1929 |
- for i in $(<"${T}/dirlist"); do |
1930 |
- [ -d "${RELOC_TARGET}/${i}" ] || mkdir -p "${RELOC_TARGET}/${i}" |
1931 |
- done |
1932 |
- for i in $(<"${T}/reloclist"); do |
1933 |
- mv "${i}" "${RELOC_TARGET}"/$(dirname "${i}") || die "failed to relocate ${i} to ${RELOC_TARGET}/$(dirname ${i})" |
1934 |
- done |
1935 |
- |
1936 |
- mv "${WORKDIR}"/texmf* "${B}" || die "failed to move texmf files" |
1937 |
- |
1938 |
- cd "${B}" |
1939 |
- #EPATCH_MULTI_MSG="Applying patches from upstream bugfix branch..." EPATCH_SUFFIX="patch" epatch "${WORKDIR}/gentoo_branch2011_patches" |
1940 |
- EPATCH_SUFFIX="patch" epatch "${WORKDIR}/patches" |
1941 |
- |
1942 |
- sed -i \ |
1943 |
- -e "s,/usr/include /usr/local/include.*echo \$KPATHSEA_INCLUDES.*,${EPREFIX}/usr/include\"," \ |
1944 |
- texk/web2c/configure || die |
1945 |
- |
1946 |
- elibtoolize |
1947 |
-} |
1948 |
- |
1949 |
-src_configure() { |
1950 |
- # It fails on alpha without this |
1951 |
- use alpha && append-ldflags "-Wl,--no-relax" |
1952 |
- |
1953 |
- # Too many regexps use A-Z a-z constructs, what causes problems with locales |
1954 |
- # that don't have the same alphabetical order than ascii. Bug #242430 |
1955 |
- # So we set LC_ALL to C in order to avoid problems. |
1956 |
- export LC_ALL=C |
1957 |
- tc-export CC CXX AR RANLIB |
1958 |
- ECONF_SOURCE="${B}" \ |
1959 |
- econf -C \ |
1960 |
- --bindir="${EPREFIX}"/usr/bin \ |
1961 |
- --datadir="${S}" \ |
1962 |
- --with-system-freetype2 \ |
1963 |
- --with-system-zlib \ |
1964 |
- --with-system-libpng \ |
1965 |
- --with-system-xpdf \ |
1966 |
- --with-system-poppler \ |
1967 |
- --with-system-teckit \ |
1968 |
- --with-teckit-includes="${EPREFIX}"/usr/include/teckit \ |
1969 |
- --with-system-kpathsea \ |
1970 |
- --with-kpathsea-includes="${EPREFIX}"/usr/include \ |
1971 |
- --with-system-icu \ |
1972 |
- --with-system-ptexenc \ |
1973 |
- --with-system-harfbuzz \ |
1974 |
- --with-system-icu \ |
1975 |
- --with-system-graphite2 \ |
1976 |
- --with-system-cairo \ |
1977 |
- --with-system-pixman \ |
1978 |
- --with-system-zziplib \ |
1979 |
- --with-system-libpaper \ |
1980 |
- --with-system-gmp \ |
1981 |
- --with-system-mpfr \ |
1982 |
- --without-texinfo \ |
1983 |
- --disable-dialog \ |
1984 |
- --disable-multiplatform \ |
1985 |
- --enable-epsfwin \ |
1986 |
- --enable-mftalkwin \ |
1987 |
- --enable-regiswin \ |
1988 |
- --enable-tektronixwin \ |
1989 |
- --enable-unitermwin \ |
1990 |
- --with-ps=gs \ |
1991 |
- --disable-psutils \ |
1992 |
- --disable-t1utils \ |
1993 |
- --enable-ipc \ |
1994 |
- --disable-biber \ |
1995 |
- --disable-bibtex-x \ |
1996 |
- --disable-dvipng \ |
1997 |
- --disable-dvipsk \ |
1998 |
- --disable-chktex \ |
1999 |
- --disable-lcdf-typetools \ |
2000 |
- --disable-pdfopen \ |
2001 |
- --disable-ps2eps \ |
2002 |
- --disable-ps2pk \ |
2003 |
- --disable-detex \ |
2004 |
- --disable-ttf2pk2 \ |
2005 |
- --disable-tex4htk \ |
2006 |
- --disable-cjkutils \ |
2007 |
- --disable-xdvik \ |
2008 |
- --disable-xindy \ |
2009 |
- --enable-luatex \ |
2010 |
- --disable-dvi2tty \ |
2011 |
- --disable-dvisvgm \ |
2012 |
- --disable-vlna \ |
2013 |
- --enable-shared \ |
2014 |
- --disable-native-texlive-build \ |
2015 |
- --disable-largefile \ |
2016 |
- $(use_enable luajittex) \ |
2017 |
- $(use_enable xetex) \ |
2018 |
- $(use_enable cjk ptex) \ |
2019 |
- $(use_enable cjk eptex) \ |
2020 |
- $(use_enable cjk uptex) \ |
2021 |
- $(use_enable cjk euptex) \ |
2022 |
- $(use_enable cjk mendexk) \ |
2023 |
- $(use_enable cjk makejvf) \ |
2024 |
- $(use_enable cjk pmp) \ |
2025 |
- $(use_enable cjk upmp) \ |
2026 |
- $(use_enable tk texdoctk) \ |
2027 |
- $(use_with X x) |
2028 |
-} |
2029 |
- |
2030 |
-src_compile() { |
2031 |
- tc-export CC CXX AR RANLIB |
2032 |
- emake SHELL="${EPREFIX}"/bin/sh texmf="${EPREFIX}"${TEXMF_PATH:-/usr/share/texmf-dist} |
2033 |
- |
2034 |
- cd "${B}" || die |
2035 |
- # Mimic updmap --syncwithtrees to enable only fonts installed |
2036 |
- # Code copied from updmap script |
2037 |
- for i in `egrep '^(Mixed|Kanji)?Map' "texmf-dist/web2c/updmap.cfg" | sed 's@.* @@'`; do |
2038 |
- texlive-common_is_file_present_in_texmf "$i" || echo "$i" |
2039 |
- done > "${T}/updmap_update" |
2040 |
- { |
2041 |
- sed 's@/@\\/@g; s@^@/^MixedMap[ ]*@; s@$@$/s/^/#! /@' <"${T}/updmap_update" |
2042 |
- sed 's@/@\\/@g; s@^@/^Map[ ]*@; s@$@$/s/^/#! /@' <"${T}/updmap_update" |
2043 |
- sed 's@/@\\/@g; s@^@/^KanjiMap[ ]*@; s@$@$/s/^/#! /@' <"${T}/updmap_update" |
2044 |
- } > "${T}/updmap_update2" |
2045 |
- sed -f "${T}/updmap_update2" "texmf-dist/web2c/updmap.cfg" > "${T}/updmap_update3"\ |
2046 |
- && cat "${T}/updmap_update3" > "texmf-dist/web2c/updmap.cfg" |
2047 |
-} |
2048 |
- |
2049 |
-src_install() { |
2050 |
- dodir ${TEXMF_PATH:-/usr/share/texmf-dist}/web2c |
2051 |
- emake DESTDIR="${D}" texmf="${ED}${TEXMF_PATH:-/usr/share/texmf-dist}" run_texlinks="true" run_mktexlsr="true" install |
2052 |
- |
2053 |
- cd "${B}" || die |
2054 |
- dodir /usr/share # just in case |
2055 |
- cp -pR texmf-dist "${ED}/usr/share/" || die "failed to install texmf trees" |
2056 |
- cp -pR "${WORKDIR}"/tlpkg "${ED}/usr/share/" || die "failed to install tlpkg files" |
2057 |
- |
2058 |
- # When X is disabled mf-nowin doesn't exist but some scripts expect it to |
2059 |
- # exist. Instead, it is called mf, so we symlink it to please everything. |
2060 |
- use X || dosym mf /usr/bin/mf-nowin |
2061 |
- |
2062 |
- docinto texk |
2063 |
- cd "${B}/texk" |
2064 |
- dodoc ChangeLog README |
2065 |
- |
2066 |
- docinto dviljk |
2067 |
- cd "${B}/texk/dviljk" |
2068 |
- dodoc ChangeLog README NEWS |
2069 |
- |
2070 |
- docinto makeindexk |
2071 |
- cd "${B}/texk/makeindexk" |
2072 |
- dodoc ChangeLog NOTES README |
2073 |
- |
2074 |
- docinto web2c |
2075 |
- cd "${B}/texk/web2c" |
2076 |
- dodoc ChangeLog NEWS PROJECTS README |
2077 |
- |
2078 |
- use doc || rm -rf "${ED}/usr/share/texmf-dist/doc" |
2079 |
- |
2080 |
- dodir /etc/env.d |
2081 |
- echo 'CONFIG_PROTECT_MASK="/etc/texmf/web2c /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d"' > "${ED}/etc/env.d/98texlive" |
2082 |
- # populate /etc/texmf |
2083 |
- keepdir /etc/texmf/web2c |
2084 |
- |
2085 |
- # take care of updmap.cfg and language.d files |
2086 |
- keepdir /etc/texmf/{updmap.d,language.dat.d,language.def.d,language.dat.lua.d} |
2087 |
- |
2088 |
- mv "${ED}${TEXMF_PATH}/web2c/updmap.cfg" "${ED}/etc/texmf/updmap.d/00updmap.cfg" || die "moving updmap.cfg failed" |
2089 |
- |
2090 |
- # Remove fmtutil.cnf, it will be regenerated from /etc/texmf/fmtutil.d files |
2091 |
- # by texmf-update |
2092 |
- rm -f "${ED}${TEXMF_PATH}/web2c/fmtutil.cnf" |
2093 |
- # Remove bundled and invalid updmap.cfg |
2094 |
- rm -f "${ED}/usr/share/texmf-dist/web2c/updmap.cfg" |
2095 |
- |
2096 |
- texlive-common_handle_config_files |
2097 |
- |
2098 |
- keepdir /usr/share/texmf-site |
2099 |
- |
2100 |
- # the virtex symlink is not installed |
2101 |
- # The links has to be relative, since the targets |
2102 |
- # is not present at this stage and MacOS doesn't |
2103 |
- # like non-existing targets |
2104 |
- dosym tex /usr/bin/virtex |
2105 |
- dosym pdftex /usr/bin/pdfvirtex |
2106 |
- |
2107 |
- # Rename mpost to leave room for mplib |
2108 |
- mv "${ED}/usr/bin/mpost" "${ED}/usr/bin/mpost-${P}" |
2109 |
- dosym "mpost-${P}" /usr/bin/mpost |
2110 |
- |
2111 |
- # Ditto for pdftex |
2112 |
- mv "${ED}/usr/bin/pdftex" "${ED}/usr/bin/pdftex-${P}" |
2113 |
- dosym "pdftex-${P}" /usr/bin/pdftex |
2114 |
-} |
2115 |
- |
2116 |
-pkg_postinst() { |
2117 |
- etexmf-update |
2118 |
- |
2119 |
- elog |
2120 |
- elog "If you have configuration files in ${EPREFIX}/etc/texmf to merge," |
2121 |
- elog "please update them and run ${EPREFIX}/usr/sbin/texmf-update." |
2122 |
- elog |
2123 |
- ewarn "If you are migrating from an older TeX distribution" |
2124 |
- ewarn "Please make sure you have read:" |
2125 |
- ewarn "https://wiki.gentoo.org/wiki/Project:TeX/Tex_Live_Migration_Guide" |
2126 |
- ewarn "in order to avoid possible problems" |
2127 |
- elog |
2128 |
- elog "TeXLive has been split in various ebuilds. If you are missing a" |
2129 |
- elog "package to process your TeX documents, you can install" |
2130 |
- elog "dev-tex/texmfind to easily search for them." |
2131 |
- elog |
2132 |
-} |