1 |
blueness 15/04/28 10:35:48 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: texlive-core-2012-r3.ebuild |
5 |
texlive-core-2013-r3.ebuild |
6 |
texlive-core-2014-r4.ebuild |
7 |
Removed: texlive-core-2014-r2.ebuild |
8 |
texlive-core-2012-r2.ebuild |
9 |
texlive-core-2013-r2.ebuild |
10 |
Log: |
11 |
Fix bump 2012/2013/2014 for bug #510770. |
12 |
|
13 |
(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 0xF52D4BBA) |
14 |
|
15 |
Revision Changes Path |
16 |
1.223 app-text/texlive-core/ChangeLog |
17 |
|
18 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/texlive-core/ChangeLog?rev=1.223&view=markup |
19 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/texlive-core/ChangeLog?rev=1.223&content-type=text/plain |
20 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/texlive-core/ChangeLog?r1=1.222&r2=1.223 |
21 |
|
22 |
Index: ChangeLog |
23 |
=================================================================== |
24 |
RCS file: /var/cvsroot/gentoo-x86/app-text/texlive-core/ChangeLog,v |
25 |
retrieving revision 1.222 |
26 |
retrieving revision 1.223 |
27 |
diff -u -r1.222 -r1.223 |
28 |
--- ChangeLog 11 Mar 2015 11:22:57 -0000 1.222 |
29 |
+++ ChangeLog 28 Apr 2015 10:35:48 -0000 1.223 |
30 |
@@ -1,6 +1,16 @@ |
31 |
# ChangeLog for app-text/texlive-core |
32 |
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 |
33 |
-# $Header: /var/cvsroot/gentoo-x86/app-text/texlive-core/ChangeLog,v 1.222 2015/03/11 11:22:57 jlec Exp $ |
34 |
+# $Header: /var/cvsroot/gentoo-x86/app-text/texlive-core/ChangeLog,v 1.223 2015/04/28 10:35:48 blueness Exp $ |
35 |
+ |
36 |
+*texlive-core-2014-r4 (28 Apr 2015) |
37 |
+*texlive-core-2012-r3 (28 Apr 2015) |
38 |
+*texlive-core-2013-r3 (28 Apr 2015) |
39 |
+ |
40 |
+ 28 Apr 2015; Anthony G. Basile <blueness@g.o> |
41 |
+ +texlive-core-2012-r3.ebuild, +texlive-core-2013-r3.ebuild, |
42 |
+ +texlive-core-2014-r4.ebuild, -texlive-core-2012-r2.ebuild, |
43 |
+ -texlive-core-2013-r2.ebuild, -texlive-core-2014-r2.ebuild: |
44 |
+ Fix bump 2012/2013/2014 for bug #510770. |
45 |
|
46 |
11 Mar 2015; Justin Lecher <jlec@g.o> |
47 |
-files/texlive-core-2014-format-security.patch, texlive-core-2014-r3.ebuild: |
48 |
|
49 |
|
50 |
|
51 |
1.1 app-text/texlive-core/texlive-core-2012-r3.ebuild |
52 |
|
53 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/texlive-core/texlive-core-2012-r3.ebuild?rev=1.1&view=markup |
54 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/texlive-core/texlive-core-2012-r3.ebuild?rev=1.1&content-type=text/plain |
55 |
|
56 |
Index: texlive-core-2012-r3.ebuild |
57 |
=================================================================== |
58 |
# Copyright 1999-2015 Gentoo Foundation |
59 |
# Distributed under the terms of the GNU General Public License v2 |
60 |
# $Header: /var/cvsroot/gentoo-x86/app-text/texlive-core/texlive-core-2012-r3.ebuild,v 1.1 2015/04/28 10:35:48 blueness Exp $ |
61 |
|
62 |
EAPI=5 |
63 |
|
64 |
#TL_UPSTREAM_PATCHLEVEL="1" |
65 |
PATCHLEVEL="48" |
66 |
TL_SOURCE_VERSION=20120701 |
67 |
|
68 |
inherit eutils flag-o-matic toolchain-funcs libtool texlive-common |
69 |
|
70 |
MY_PV=${PN%-core}-${TL_SOURCE_VERSION}-source |
71 |
|
72 |
DESCRIPTION="A complete TeX distribution" |
73 |
HOMEPAGE="http://tug.org/texlive/" |
74 |
SLOT="0" |
75 |
LICENSE="GPL-2 LPPL-1.3c TeX" |
76 |
|
77 |
SRC_URI="mirror://gentoo/${MY_PV}.tar.xz" |
78 |
|
79 |
# Fetch patches |
80 |
SRC_URI="${SRC_URI} mirror://gentoo/${PN}-patches-${PATCHLEVEL}.tar.xz" |
81 |
# mirror://gentoo/texlive-core-upstream-patches-${TL_UPSTREAM_PATCHLEVEL}.tar.xz" |
82 |
|
83 |
TL_CORE_BINEXTRA_MODULES=" |
84 |
a2ping asymptote bibtex8 bundledoc ctanify ctanupload ctie cweb de-macro dtl |
85 |
dvi2tty dviasm dvicopy dvidvi dviljk dvipng dvipos findhyph fragmaster |
86 |
hyphenex installfont lacheck latex2man latexfileversion latexpand |
87 |
listings-ext match_parens mkjobtexmf patgen pdfcrop pdftools pkfix |
88 |
pkfix-helper purifyeps seetexk sty2dtx synctex texcount texdef texdiff |
89 |
texdirflatten texdoc texliveonfly texloganalyser texware tie tpic2pdftex |
90 |
typeoutfileinfo web collection-binextra |
91 |
" |
92 |
TL_CORE_BINEXTRA_DOC_MODULES=" |
93 |
a2ping.doc asymptote.doc bibtex8.doc bundledoc.doc ctanify.doc |
94 |
ctanupload.doc ctie.doc cweb.doc de-macro.doc dvi2tty.doc dvicopy.doc |
95 |
dviljk.doc dvipng.doc dvipos.doc findhyph.doc fragmaster.doc installfont.doc |
96 |
latex2man.doc latexfileversion.doc latexpand.doc listings-ext.doc |
97 |
match_parens.doc mkjobtexmf.doc patgen.doc pdfcrop.doc pdftools.doc |
98 |
pkfix.doc pkfix-helper.doc purifyeps.doc sty2dtx.doc synctex.doc |
99 |
texcount.doc texdef.doc texdiff.doc texdirflatten.doc texdoc.doc |
100 |
texliveonfly.doc texloganalyser.doc texware.doc tie.doc tpic2pdftex.doc |
101 |
typeoutfileinfo web.doc |
102 |
" |
103 |
TL_CORE_BINEXTRA_SRC_MODULES="hyphenex.source listings-ext.source mkjobtexmf.source texdef.source" |
104 |
|
105 |
TL_CORE_EXTRA_MODULES="tetex hyphen-base texconfig gsftopk texlive.infra ${TL_CORE_BINEXTRA_MODULES}" |
106 |
TL_CORE_EXTRA_DOC_MODULES="tetex.doc texconfig.doc gsftopk.doc texlive.infra.doc ${TL_CORE_BINEXTRA_DOC_MODULES}" |
107 |
TL_CORE_EXTRA_SRC_MODULES="${TL_CORE_BINEXTRA_SRC_MODULES}" |
108 |
|
109 |
for i in ${TL_CORE_EXTRA_MODULES}; do |
110 |
SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.tar.xz" |
111 |
done |
112 |
|
113 |
SRC_URI="${SRC_URI} doc? ( " |
114 |
for i in ${TL_CORE_EXTRA_DOC_MODULES}; do |
115 |
SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.tar.xz" |
116 |
done |
117 |
SRC_URI="${SRC_URI} )" |
118 |
SRC_URI="${SRC_URI} source? ( " |
119 |
for i in ${TL_CORE_EXTRA_SRC_MODULES}; do |
120 |
SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.tar.xz" |
121 |
done |
122 |
SRC_URI="${SRC_URI} )" |
123 |
|
124 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd" |
125 |
IUSE="cjk X doc source tk xetex" |
126 |
|
127 |
MODULAR_X_DEPEND="X? ( |
128 |
x11-libs/libXmu |
129 |
x11-libs/libXp |
130 |
x11-libs/libXpm |
131 |
x11-libs/libICE |
132 |
x11-libs/libSM |
133 |
x11-libs/libXaw |
134 |
x11-libs/libXfont |
135 |
)" |
136 |
|
137 |
COMMON_DEPEND="${MODULAR_X_DEPEND} |
138 |
!app-text/ptex |
139 |
!app-text/tetex |
140 |
!<app-text/texlive-2007 |
141 |
!app-text/xetex |
142 |
!<dev-texlive/texlive-basic-2009 |
143 |
!<dev-texlive/texlive-metapost-2011 |
144 |
!app-text/dvibook |
145 |
sys-libs/zlib |
146 |
>=media-libs/libpng-1.2.43-r2:0= |
147 |
>=app-text/poppler-0.12.3-r3:= |
148 |
xetex? ( |
149 |
app-text/teckit |
150 |
media-libs/fontconfig |
151 |
media-libs/freetype:2 |
152 |
media-libs/silgraphite |
153 |
) |
154 |
>=dev-libs/kpathsea-6.1.0_p20120701 |
155 |
cjk? ( >=dev-libs/ptexenc-1.2.0_p20120701 )" |
156 |
|
157 |
DEPEND="${COMMON_DEPEND} |
158 |
virtual/pkgconfig |
159 |
sys-apps/ed |
160 |
sys-devel/flex |
161 |
app-arch/xz-utils" |
162 |
|
163 |
RDEPEND="${COMMON_DEPEND} |
164 |
>=app-text/ps2pkm-1.5_p20120701 |
165 |
>=app-text/dvipsk-5.992_p20120701 |
166 |
>=dev-tex/bibtexu-3.71_p20120701 |
167 |
virtual/perl-Getopt-Long |
168 |
xetex? ( >=app-text/xdvipdfmx-0.7.8_p20120701 ) |
169 |
tk? ( dev-perl/perl-tk )" |
170 |
|
171 |
# texdoc needs luatex. |
172 |
PDEPEND=">=dev-tex/luatex-0.70" |
173 |
|
174 |
S="${WORKDIR}/${P}_build" |
175 |
B="${WORKDIR}/${MY_PV}" |
176 |
|
177 |
src_unpack() { |
178 |
unpack ${A} |
179 |
mkdir -p "${S}" || die "failed to create build dir" |
180 |
} |
181 |
|
182 |
src_prepare() { |
183 |
mv "${WORKDIR}"/texmf* "${B}" || die "failed to move texmf files" |
184 |
|
185 |
cd "${B}" |
186 |
#EPATCH_MULTI_MSG="Applying patches from upstream bugfix branch..." EPATCH_SUFFIX="patch" epatch "${WORKDIR}/gentoo_branch2011_patches" |
187 |
EPATCH_SUFFIX="patch" epatch "${WORKDIR}/patches" |
188 |
|
189 |
elibtoolize |
190 |
} |
191 |
|
192 |
src_configure() { |
193 |
# It fails on alpha without this |
194 |
use alpha && append-ldflags "-Wl,--no-relax" |
195 |
|
196 |
# Bug #265232 and bug #414271: |
197 |
if use hppa; then |
198 |
append-cppflags "-DU_IS_BIG_ENDIAN=1" |
199 |
fi |
200 |
|
201 |
# Too many regexps use A-Z a-z constructs, what causes problems with locales |
202 |
# that don't have the same alphabetical order than ascii. Bug #242430 |
203 |
# So we set LC_ALL to C in order to avoid problems. |
204 |
export LC_ALL=C |
205 |
tc-export CC CXX AR RANLIB |
206 |
ECONF_SOURCE="${B}" \ |
207 |
econf -C \ |
208 |
--bindir=/usr/bin \ |
209 |
--datadir="${S}" \ |
210 |
--with-system-freetype2 \ |
211 |
--with-freetype2-include=/usr/include \ |
212 |
--with-system-zlib \ |
213 |
--with-system-libpng \ |
214 |
--with-system-xpdf \ |
215 |
--with-system-poppler \ |
216 |
--with-system-teckit \ |
217 |
--with-teckit-includes=/usr/include/teckit \ |
218 |
--with-system-graphite \ |
219 |
--with-system-kpathsea \ |
220 |
--with-system-icu \ |
221 |
--with-system-ptexenc \ |
222 |
--without-texinfo \ |
223 |
--disable-dialog \ |
224 |
--disable-multiplatform \ |
225 |
--enable-epsfwin \ |
226 |
--enable-mftalkwin \ |
227 |
--enable-regiswin \ |
228 |
--enable-tektronixwin \ |
229 |
--enable-unitermwin \ |
230 |
--with-ps=gs \ |
231 |
--disable-psutils \ |
232 |
--disable-t1utils \ |
233 |
--enable-ipc \ |
234 |
--disable-biber \ |
235 |
--disable-bibtexu \ |
236 |
--disable-dvipng \ |
237 |
--disable-dvipsk \ |
238 |
--disable-dvipdfmx \ |
239 |
--disable-chktex \ |
240 |
--disable-lcdf-typetools \ |
241 |
--disable-pdfopen \ |
242 |
--disable-ps2eps \ |
243 |
--disable-ps2pkm \ |
244 |
--disable-detex \ |
245 |
--disable-ttf2pk \ |
246 |
--disable-tex4htk \ |
247 |
--disable-cjkutils \ |
248 |
--disable-xdvik \ |
249 |
--disable-xindy \ |
250 |
--disable-luatex \ |
251 |
--disable-dvi2tty \ |
252 |
--disable-dvisvgm \ |
253 |
--disable-vlna \ |
254 |
--disable-xdvipdfmx \ |
255 |
--enable-shared \ |
256 |
--disable-native-texlive-build \ |
257 |
--disable-largefile \ |
258 |
$(use_enable xetex) \ |
259 |
$(use_enable cjk ptex) \ |
260 |
$(use_enable cjk eptex) \ |
261 |
$(use_enable cjk uptex) \ |
262 |
$(use_enable cjk euptex) \ |
263 |
$(use_enable cjk mendexk) \ |
264 |
$(use_enable cjk makejvf) \ |
265 |
$(use_with X x) |
266 |
} |
267 |
|
268 |
src_compile() { |
269 |
emake SHELL=/bin/sh texmf=${TEXMF_PATH:-/usr/share/texmf} || die "emake failed" |
270 |
|
271 |
cd "${B}" |
272 |
# Mimic updmap --syncwithtrees to enable only fonts installed |
273 |
# Code copied from updmap script |
274 |
for i in `egrep '^(Mixed)?Map' "texmf/web2c/updmap.cfg" | sed 's@.* @@'`; do |
275 |
texlive-common_is_file_present_in_texmf "$i" || echo "$i" |
276 |
done > "${T}/updmap_update" |
277 |
{ |
278 |
sed 's@/@\\/@g; s@^@/^MixedMap[ ]*@; s@$@$/s/^/#! /@' <"${T}/updmap_update" |
279 |
sed 's@/@\\/@g; s@^@/^Map[ ]*@; s@$@$/s/^/#! /@' <"${T}/updmap_update" |
280 |
} > "${T}/updmap_update2" |
281 |
sed -f "${T}/updmap_update2" "texmf/web2c/updmap.cfg" > "${T}/updmap_update3"\ |
282 |
&& cat "${T}/updmap_update3" > "texmf/web2c/updmap.cfg" |
283 |
} |
284 |
|
285 |
src_test() { |
286 |
ewarn "Due to modular layout of texlive ebuilds," |
287 |
ewarn "It would not make much sense to use tests into the ebuild" |
288 |
ewarn "And tests would fail anyway" |
289 |
ewarn "Alternatively you can try to compile any tex file" |
290 |
ewarn "Tex warnings should be considered as errors and reported" |
291 |
ewarn "You can also run fmtutil-sys --all and check for errors/warnings there" |
292 |
} |
293 |
|
294 |
src_install() { |
295 |
dodir ${TEXMF_PATH:-/usr/share/texmf}/web2c |
296 |
emake DESTDIR="${D}" texmf="${D}${TEXMF_PATH:-/usr/share/texmf}" run_texlinks="true" run_mktexlsr="true" install || die "install failed" |
297 |
|
298 |
cd "${B}" |
299 |
dodir /usr/share # just in case |
300 |
cp -pR texmf{,-dist} "${D}/usr/share/" || die "failed to install texmf trees" |
301 |
cp -pR "${WORKDIR}"/tlpkg "${D}/usr/share/" || die "failed to install tlpkg files" |
302 |
|
303 |
newsbin "${FILESDIR}/texmf-update2010" texmf-update |
304 |
|
305 |
# When X is disabled mf-nowin doesn't exist but some scripts expect it to |
306 |
# exist. Instead, it is called mf, so we symlink it to please everything. |
307 |
use X || dosym mf /usr/bin/mf-nowin |
308 |
|
309 |
docinto texk |
310 |
cd "${B}/texk" |
311 |
dodoc ChangeLog README || die "failed to install texk docs" |
312 |
|
313 |
docinto dviljk |
314 |
cd "${B}/texk/dviljk" |
315 |
dodoc ChangeLog README NEWS || die "failed to install dviljk docs" |
316 |
|
317 |
docinto makeindexk |
318 |
cd "${B}/texk/makeindexk" |
319 |
dodoc ChangeLog NOTES README || die "failed to install makeindexk docs" |
320 |
|
321 |
docinto web2c |
322 |
cd "${B}/texk/web2c" |
323 |
dodoc ChangeLog NEWS PROJECTS README || die "failed to install web2c docs" |
324 |
|
325 |
use doc || rm -rf "${D}/usr/share/texmf/doc" |
326 |
use doc || rm -rf "${D}/usr/share/texmf-dist/doc" |
327 |
|
328 |
dodir /etc/env.d |
329 |
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" |
330 |
# populate /etc/texmf |
331 |
keepdir /etc/texmf/web2c |
332 |
|
333 |
# take care of updmap.cfg and language.d files |
334 |
keepdir /etc/texmf/{updmap.d,language.dat.d,language.def.d,language.dat.lua.d} |
335 |
|
336 |
mv "${D}${TEXMF_PATH}/web2c/updmap.cfg" "${D}/etc/texmf/updmap.d/00updmap.cfg" || die "moving updmap.cfg failed" |
337 |
|
338 |
# Remove fmtutil.cnf, it will be regenerated from /etc/texmf/fmtutil.d files |
339 |
# by texmf-update |
340 |
rm -f "${D}${TEXMF_PATH}/web2c/fmtutil.cnf" |
341 |
# Remove bundled and invalid updmap.cfg |
342 |
rm -f "${D}/usr/share/texmf-dist/web2c/updmap.cfg" |
343 |
|
344 |
texlive-common_handle_config_files |
345 |
|
346 |
keepdir /usr/share/texmf-site |
347 |
|
348 |
# the virtex symlink is not installed |
349 |
# The links has to be relative, since the targets |
350 |
# is not present at this stage and MacOS doesn't |
351 |
# like non-existing targets |
352 |
dosym tex /usr/bin/virtex |
353 |
dosym pdftex /usr/bin/pdfvirtex |
354 |
|
355 |
# Remove texdoctk if we don't want it |
356 |
if ! use tk ; then |
357 |
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!" |
358 |
fi |
359 |
|
360 |
# Rename mpost to leave room for mplib |
361 |
mv "${D}/usr/bin/mpost" "${D}/usr/bin/mpost-${P}" |
362 |
dosym "mpost-${P}" /usr/bin/mpost |
363 |
|
364 |
# Ditto for pdftex |
365 |
mv "${D}/usr/bin/pdftex" "${D}/usr/bin/pdftex-${P}" |
366 |
dosym "pdftex-${P}" /usr/bin/pdftex |
367 |
} |
368 |
|
369 |
pkg_preinst() { |
370 |
# Remove stray files to keep the upgrade path sane |
371 |
if has_version =app-text/texlive-core-2007* ; then |
372 |
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 |
373 |
for j in log fmt ; do |
374 |
local file="${ROOT}/var/lib/texmf/web2c/${i}.${j}" |
375 |
if [ -f "${file}" ] ; then |
376 |
elog "Removing stray ${file} from TeXLive 2007 install." |
377 |
rm -f "${file}" |
378 |
fi |
379 |
done |
380 |
done |
381 |
for j in base log ; do |
382 |
local file="${ROOT}/var/lib/texmf/web2c/metafont/mf.${j}" |
383 |
if [ -f "${file}" ] ; then |
384 |
elog "Removing stray ${file} from TeXLive 2007 install." |
385 |
rm -f "${file}" |
386 |
fi |
387 |
done |
388 |
fi |
389 |
} |
390 |
|
391 |
pkg_postinst() { |
392 |
etexmf-update |
393 |
|
394 |
elog |
395 |
elog "If you have configuration files in /etc/texmf to merge," |
396 |
elog "please update them and run /usr/sbin/texmf-update." |
397 |
elog |
398 |
ewarn "If you are migrating from an older TeX distribution" |
399 |
ewarn "Please make sure you have read:" |
400 |
ewarn "http://www.gentoo.org/proj/en/tex/texlive-migration-guide.xml" |
401 |
ewarn "in order to avoid possible problems" |
402 |
elog |
403 |
elog "TeXLive has been split in various ebuilds. If you are missing a" |
404 |
elog "package to process your TeX documents, you can install" |
405 |
elog "dev-tex/texmfind to easily search for them." |
406 |
elog |
407 |
} |
408 |
|
409 |
|
410 |
|
411 |
1.1 app-text/texlive-core/texlive-core-2013-r3.ebuild |
412 |
|
413 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/texlive-core/texlive-core-2013-r3.ebuild?rev=1.1&view=markup |
414 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/texlive-core/texlive-core-2013-r3.ebuild?rev=1.1&content-type=text/plain |
415 |
|
416 |
Index: texlive-core-2013-r3.ebuild |
417 |
=================================================================== |
418 |
# Copyright 1999-2015 Gentoo Foundation |
419 |
# Distributed under the terms of the GNU General Public License v2 |
420 |
# $Header: /var/cvsroot/gentoo-x86/app-text/texlive-core/texlive-core-2013-r3.ebuild,v 1.1 2015/04/28 10:35:48 blueness Exp $ |
421 |
|
422 |
EAPI=5 |
423 |
|
424 |
#TL_UPSTREAM_PATCHLEVEL="1" |
425 |
PATCHLEVEL="49" |
426 |
TL_SOURCE_VERSION=20130530 |
427 |
|
428 |
inherit eutils flag-o-matic toolchain-funcs libtool texlive-common |
429 |
|
430 |
MY_PV=${PN%-core}-${TL_SOURCE_VERSION}-source |
431 |
|
432 |
DESCRIPTION="A complete TeX distribution" |
433 |
HOMEPAGE="http://tug.org/texlive/" |
434 |
SLOT="0" |
435 |
LICENSE="GPL-2 LPPL-1.3c TeX" |
436 |
|
437 |
SRC_URI="mirror://gentoo/${MY_PV}.tar.xz" |
438 |
|
439 |
# Fetch patches |
440 |
SRC_URI="${SRC_URI} mirror://gentoo/${PN}-patches-${PATCHLEVEL}.tar.xz" |
441 |
# mirror://gentoo/texlive-core-upstream-patches-${TL_UPSTREAM_PATCHLEVEL}.tar.xz" |
442 |
|
443 |
TL_CORE_BINEXTRA_MODULES=" |
444 |
a2ping adhocfilelist asymptote bundledoc ctanify ctanupload ctie cweb |
445 |
de-macro dtl dtxgen dvi2tty dviasm dvicopy dvidvi dviljk dvipos findhyph |
446 |
fragmaster hyphenex installfont lacheck latex2man latexfileversion |
447 |
latexpand ltxfileinfo listings-ext match_parens mkjobtexmf patgen pdfcrop |
448 |
pdftools pfarrei pkfix pkfix-helper purifyeps seetexk sty2dtx synctex |
449 |
texcount texdef texdiff texdirflatten texdoc texliveonfly texloganalyser |
450 |
texware tie tpic2pdftex typeoutfileinfo web collection-binextra |
451 |
" |
452 |
TL_CORE_BINEXTRA_DOC_MODULES=" |
453 |
a2ping.doc adhocfilelist.doc asymptote.doc bundledoc.doc ctanify.doc |
454 |
ctanupload.doc ctie.doc cweb.doc de-macro.doc dtxgen.doc dvi2tty.doc |
455 |
dvicopy.doc dviljk.doc dvipos.doc findhyph.doc fragmaster.doc |
456 |
installfont.doc latex2man.doc latexfileversion.doc latexpand.doc |
457 |
ltxfileinfo.doc listings-ext.doc match_parens.doc mkjobtexmf.doc patgen.doc |
458 |
pdfcrop.doc pdftools.doc pfarrei.doc pkfix.doc pkfix-helper.doc |
459 |
purifyeps.doc sty2dtx.doc synctex.doc texcount.doc texdef.doc texdiff.doc |
460 |
texdirflatten.doc texdoc.doc texliveonfly.doc texloganalyser.doc texware.doc |
461 |
tie.doc tpic2pdftex.doc typeoutfileinfo web.doc |
462 |
" |
463 |
TL_CORE_BINEXTRA_SRC_MODULES=" |
464 |
adhocfilelist.source hyphenex.source listings-ext.source mkjobtexmf.source |
465 |
pfarrei.source texdef.source |
466 |
" |
467 |
|
468 |
TL_CORE_EXTRA_MODULES="tetex hyphen-base texconfig gsftopk texlive.infra ${TL_CORE_BINEXTRA_MODULES}" |
469 |
TL_CORE_EXTRA_DOC_MODULES="tetex.doc texconfig.doc gsftopk.doc texlive.infra.doc ${TL_CORE_BINEXTRA_DOC_MODULES}" |
470 |
TL_CORE_EXTRA_SRC_MODULES="${TL_CORE_BINEXTRA_SRC_MODULES}" |
471 |
|
472 |
for i in ${TL_CORE_EXTRA_MODULES}; do |
473 |
SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.tar.xz" |
474 |
done |
475 |
|
476 |
SRC_URI="${SRC_URI} doc? ( " |
477 |
for i in ${TL_CORE_EXTRA_DOC_MODULES}; do |
478 |
SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.tar.xz" |
479 |
done |
480 |
SRC_URI="${SRC_URI} )" |
481 |
SRC_URI="${SRC_URI} source? ( " |
482 |
for i in ${TL_CORE_EXTRA_SRC_MODULES}; do |
483 |
SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.tar.xz" |
484 |
done |
485 |
SRC_URI="${SRC_URI} )" |
486 |
|
487 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris" |
488 |
IUSE="cjk X doc source tk xetex" |
489 |
|
490 |
TEXMF_PATH=/usr/share/texmf-dist |
491 |
|
492 |
MODULAR_X_DEPEND="X? ( |
493 |
x11-libs/libXmu |
494 |
x11-libs/libXp |
495 |
x11-libs/libXpm |
496 |
x11-libs/libICE |
497 |
x11-libs/libSM |
498 |
x11-libs/libXaw |
499 |
x11-libs/libXfont |
500 |
)" |
501 |
|
502 |
COMMON_DEPEND="${MODULAR_X_DEPEND} |
503 |
!app-text/ptex |
504 |
!app-text/tetex |
505 |
!<app-text/texlive-2007 |
506 |
!app-text/xetex |
507 |
!<dev-texlive/texlive-basic-2013 |
508 |
!<dev-texlive/texlive-metapost-2011 |
509 |
!app-text/dvibook |
510 |
sys-libs/zlib |
511 |
>=media-libs/libpng-1.2.43-r2:0= |
512 |
>=app-text/poppler-0.12.3-r3:= |
513 |
>=x11-libs/cairo-1.12 |
514 |
>=x11-libs/pixman-0.18 |
515 |
xetex? ( |
516 |
>=media-libs/harfbuzz-0.9.20[icu,graphite] |
517 |
>=dev-libs/icu-50:= |
518 |
app-text/teckit |
519 |
media-libs/fontconfig |
520 |
media-gfx/graphite2 |
521 |
media-libs/freetype:2 |
522 |
) |
523 |
>=dev-libs/kpathsea-6.1.1_p20130530 |
524 |
cjk? ( >=dev-libs/ptexenc-1.3.1_p20130530 )" |
525 |
|
526 |
DEPEND="${COMMON_DEPEND} |
527 |
virtual/pkgconfig |
528 |
sys-apps/ed |
529 |
sys-devel/flex |
530 |
app-arch/xz-utils" |
531 |
|
532 |
RDEPEND="${COMMON_DEPEND} |
533 |
>=app-text/ps2pkm-1.5_p20130530 |
534 |
>=app-text/dvipsk-5.993_p20130530 |
535 |
>=dev-tex/bibtexu-3.71_p20130530 |
536 |
virtual/perl-Getopt-Long |
537 |
xetex? ( >=app-text/xdvipdfmx-0.7.9_p20130530 ) |
538 |
tk? ( dev-perl/perl-tk )" |
539 |
|
540 |
# texdoc needs luatex. |
541 |
PDEPEND=">=dev-tex/luatex-0.76" |
542 |
|
543 |
S="${WORKDIR}/${P}_build" |
544 |
B="${WORKDIR}/${MY_PV}" |
545 |
|
546 |
src_unpack() { |
547 |
unpack ${A} |
548 |
mkdir -p "${S}" || die "failed to create build dir" |
549 |
} |
550 |
|
551 |
RELOC_TARGET=texmf-dist |
552 |
|
553 |
src_prepare() { |
554 |
cd "${WORKDIR}" |
555 |
# From texlive-module.eclass. |
556 |
grep -H RELOC tlpkg/tlpobj/* | awk '{print $2}' | sed 's#^RELOC/##' > "${T}/reloclist" |
557 |
{ for i in $(<"${T}/reloclist"); do dirname $i; done; } | uniq > "${T}/dirlist" |
558 |
for i in $(<"${T}/dirlist"); do |
559 |
[ -d "${RELOC_TARGET}/${i}" ] || mkdir -p "${RELOC_TARGET}/${i}" |
560 |
done |
561 |
for i in $(<"${T}/reloclist"); do |
562 |
mv "${i}" "${RELOC_TARGET}"/$(dirname "${i}") || die "failed to relocate ${i} to ${RELOC_TARGET}/$(dirname ${i})" |
563 |
done |
564 |
|
565 |
mv "${WORKDIR}"/texmf* "${B}" || die "failed to move texmf files" |
566 |
|
567 |
cd "${B}" |
568 |
#EPATCH_MULTI_MSG="Applying patches from upstream bugfix branch..." EPATCH_SUFFIX="patch" epatch "${WORKDIR}/gentoo_branch2011_patches" |
569 |
EPATCH_SUFFIX="patch" epatch "${WORKDIR}/patches" |
570 |
|
571 |
elibtoolize |
572 |
} |
573 |
|
574 |
src_configure() { |
575 |
# It fails on alpha without this |
576 |
use alpha && append-ldflags "-Wl,--no-relax" |
577 |
|
578 |
# Too many regexps use A-Z a-z constructs, what causes problems with locales |
579 |
# that don't have the same alphabetical order than ascii. Bug #242430 |
580 |
# So we set LC_ALL to C in order to avoid problems. |
581 |
export LC_ALL=C |
582 |
tc-export CC CXX AR RANLIB |
583 |
ECONF_SOURCE="${B}" \ |
584 |
econf -C \ |
585 |
--bindir="${EPREFIX}"/usr/bin \ |
586 |
--datadir="${S}" \ |
587 |
--with-system-freetype2 \ |
588 |
--with-system-zlib \ |
589 |
--with-system-libpng \ |
590 |
--with-system-xpdf \ |
591 |
--with-system-poppler \ |
592 |
--with-system-teckit \ |
593 |
--with-teckit-includes="${EPREFIX}"/usr/include/teckit \ |
594 |
--with-system-kpathsea \ |
595 |
--with-kpathsea-includes="${EPREFIX}"/usr/include \ |
596 |
--with-system-icu \ |
597 |
--with-system-ptexenc \ |
598 |
--with-system-harfbuzz \ |
599 |
--with-system-icu \ |
600 |
--with-system-graphite2 \ |
601 |
--with-system-cairo \ |
602 |
--with-system-pixman \ |
603 |
--without-texinfo \ |
604 |
--disable-dialog \ |
605 |
--disable-multiplatform \ |
606 |
--enable-epsfwin \ |
607 |
--enable-mftalkwin \ |
608 |
--enable-regiswin \ |
609 |
--enable-tektronixwin \ |
610 |
--enable-unitermwin \ |
611 |
--with-ps=gs \ |
612 |
--disable-psutils \ |
613 |
--disable-t1utils \ |
614 |
--enable-ipc \ |
615 |
--disable-biber \ |
616 |
--disable-bibtex-x \ |
617 |
--disable-dvipng \ |
618 |
--disable-dvipsk \ |
619 |
--disable-dvipdfmx \ |
620 |
--disable-chktex \ |
621 |
--disable-lcdf-typetools \ |
622 |
--disable-pdfopen \ |
623 |
--disable-ps2eps \ |
624 |
--disable-ps2pkm \ |
625 |
--disable-detex \ |
626 |
--disable-ttf2pk \ |
627 |
--disable-tex4htk \ |
628 |
--disable-cjkutils \ |
629 |
--disable-xdvik \ |
630 |
--disable-xindy \ |
631 |
--disable-luatex \ |
632 |
--disable-dvi2tty \ |
633 |
--disable-dvisvgm \ |
634 |
--disable-vlna \ |
635 |
--disable-xdvipdfmx \ |
636 |
--enable-shared \ |
637 |
--disable-native-texlive-build \ |
638 |
--disable-largefile \ |
639 |
$(use_enable xetex) \ |
640 |
$(use_enable cjk ptex) \ |
641 |
$(use_enable cjk eptex) \ |
642 |
$(use_enable cjk uptex) \ |
643 |
$(use_enable cjk euptex) \ |
644 |
$(use_enable cjk mendexk) \ |
645 |
$(use_enable cjk makejvf) \ |
646 |
$(use_enable tk texdoctk) \ |
647 |
$(use_with X x) |
648 |
} |
649 |
|
650 |
src_compile() { |
651 |
tc-export CC CXX AR RANLIB |
652 |
emake SHELL="${EPREFIX}"/bin/sh texmf="${EPREFIX}"${TEXMF_PATH:-/usr/share/texmf-dist} || die "emake failed" |
653 |
|
654 |
cd "${B}" |
655 |
# Mimic updmap --syncwithtrees to enable only fonts installed |
656 |
# Code copied from updmap script |
657 |
for i in `egrep '^(Mixed|Kanji)?Map' "texmf-dist/web2c/updmap.cfg" | sed 's@.* @@'`; do |
658 |
texlive-common_is_file_present_in_texmf "$i" || echo "$i" |
659 |
done > "${T}/updmap_update" |
660 |
{ |
661 |
sed 's@/@\\/@g; s@^@/^MixedMap[ ]*@; s@$@$/s/^/#! /@' <"${T}/updmap_update" |
662 |
sed 's@/@\\/@g; s@^@/^Map[ ]*@; s@$@$/s/^/#! /@' <"${T}/updmap_update" |
663 |
sed 's@/@\\/@g; s@^@/^KanjiMap[ ]*@; s@$@$/s/^/#! /@' <"${T}/updmap_update" |
664 |
} > "${T}/updmap_update2" |
665 |
sed -f "${T}/updmap_update2" "texmf-dist/web2c/updmap.cfg" > "${T}/updmap_update3"\ |
666 |
&& cat "${T}/updmap_update3" > "texmf-dist/web2c/updmap.cfg" |
667 |
} |
668 |
|
669 |
src_install() { |
670 |
dodir ${TEXMF_PATH:-/usr/share/texmf-dist}/web2c |
671 |
emake DESTDIR="${D}" texmf="${ED}${TEXMF_PATH:-/usr/share/texmf-dist}" run_texlinks="true" run_mktexlsr="true" install || die "install failed" |
672 |
|
673 |
cd "${B}" |
674 |
dodir /usr/share # just in case |
675 |
cp -pR texmf-dist "${ED}/usr/share/" || die "failed to install texmf trees" |
676 |
cp -pR "${WORKDIR}"/tlpkg "${ED}/usr/share/" || die "failed to install tlpkg files" |
677 |
|
678 |
# When X is disabled mf-nowin doesn't exist but some scripts expect it to |
679 |
# exist. Instead, it is called mf, so we symlink it to please everything. |
680 |
use X || dosym mf /usr/bin/mf-nowin |
681 |
|
682 |
docinto texk |
683 |
cd "${B}/texk" |
684 |
dodoc ChangeLog README || die "failed to install texk docs" |
685 |
|
686 |
docinto dviljk |
687 |
cd "${B}/texk/dviljk" |
688 |
dodoc ChangeLog README NEWS || die "failed to install dviljk docs" |
689 |
|
690 |
docinto makeindexk |
691 |
cd "${B}/texk/makeindexk" |
692 |
dodoc ChangeLog NOTES README || die "failed to install makeindexk docs" |
693 |
|
694 |
docinto web2c |
695 |
cd "${B}/texk/web2c" |
696 |
dodoc ChangeLog NEWS PROJECTS README || die "failed to install web2c docs" |
697 |
|
698 |
use doc || rm -rf "${ED}/usr/share/texmf-dist/doc" |
699 |
|
700 |
dodir /etc/env.d |
701 |
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" |
702 |
# populate /etc/texmf |
703 |
keepdir /etc/texmf/web2c |
704 |
|
705 |
# take care of updmap.cfg and language.d files |
706 |
keepdir /etc/texmf/{updmap.d,language.dat.d,language.def.d,language.dat.lua.d} |
707 |
|
708 |
mv "${ED}${TEXMF_PATH}/web2c/updmap.cfg" "${ED}/etc/texmf/updmap.d/00updmap.cfg" || die "moving updmap.cfg failed" |
709 |
|
710 |
# Remove fmtutil.cnf, it will be regenerated from /etc/texmf/fmtutil.d files |
711 |
# by texmf-update |
712 |
rm -f "${ED}${TEXMF_PATH}/web2c/fmtutil.cnf" |
713 |
# Remove bundled and invalid updmap.cfg |
714 |
rm -f "${ED}/usr/share/texmf-dist/web2c/updmap.cfg" |
715 |
|
716 |
texlive-common_handle_config_files |
717 |
|
718 |
keepdir /usr/share/texmf-site |
719 |
|
720 |
# the virtex symlink is not installed |
721 |
# The links has to be relative, since the targets |
722 |
# is not present at this stage and MacOS doesn't |
723 |
# like non-existing targets |
724 |
dosym tex /usr/bin/virtex |
725 |
dosym pdftex /usr/bin/pdfvirtex |
726 |
|
727 |
# Rename mpost to leave room for mplib |
728 |
mv "${ED}/usr/bin/mpost" "${ED}/usr/bin/mpost-${P}" |
729 |
dosym "mpost-${P}" /usr/bin/mpost |
730 |
|
731 |
# Ditto for pdftex |
732 |
mv "${ED}/usr/bin/pdftex" "${ED}/usr/bin/pdftex-${P}" |
733 |
dosym "pdftex-${P}" /usr/bin/pdftex |
734 |
} |
735 |
|
736 |
pkg_preinst() { |
737 |
# Remove stray files to keep the upgrade path sane |
738 |
if has_version =app-text/texlive-core-2007* ; then |
739 |
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 |
740 |
for j in log fmt ; do |
741 |
local file="${EROOT}/var/lib/texmf/web2c/${i}.${j}" |
742 |
if [ -f "${file}" ] ; then |
743 |
elog "Removing stray ${file} from TeXLive 2007 install." |
744 |
rm -f "${file}" |
745 |
fi |
746 |
done |
747 |
done |
748 |
for j in base log ; do |
749 |
local file="${EROOT}/var/lib/texmf/web2c/metafont/mf.${j}" |
750 |
if [ -f "${file}" ] ; then |
751 |
elog "Removing stray ${file} from TeXLive 2007 install." |
752 |
rm -f "${file}" |
753 |
fi |
754 |
done |
755 |
fi |
756 |
} |
757 |
|
758 |
pkg_postinst() { |
759 |
etexmf-update |
760 |
|
761 |
elog |
762 |
elog "If you have configuration files in ${EPREFIX}/etc/texmf to merge," |
763 |
elog "please update them and run ${EPREFIX}/usr/sbin/texmf-update." |
764 |
elog |
765 |
ewarn "If you are migrating from an older TeX distribution" |
766 |
ewarn "Please make sure you have read:" |
767 |
ewarn "http://www.gentoo.org/proj/en/tex/texlive-migration-guide.xml" |
768 |
ewarn "in order to avoid possible problems" |
769 |
elog |
770 |
elog "TeXLive has been split in various ebuilds. If you are missing a" |
771 |
elog "package to process your TeX documents, you can install" |
772 |
elog "dev-tex/texmfind to easily search for them." |
773 |
elog |
774 |
} |
775 |
|
776 |
|
777 |
|
778 |
1.1 app-text/texlive-core/texlive-core-2014-r4.ebuild |
779 |
|
780 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/texlive-core/texlive-core-2014-r4.ebuild?rev=1.1&view=markup |
781 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/texlive-core/texlive-core-2014-r4.ebuild?rev=1.1&content-type=text/plain |
782 |
|
783 |
Index: texlive-core-2014-r4.ebuild |
784 |
=================================================================== |
785 |
# Copyright 1999-2015 Gentoo Foundation |
786 |
# Distributed under the terms of the GNU General Public License v2 |
787 |
# $Header: /var/cvsroot/gentoo-x86/app-text/texlive-core/texlive-core-2014-r4.ebuild,v 1.1 2015/04/28 10:35:48 blueness Exp $ |
788 |
|
789 |
EAPI=5 |
790 |
|
791 |
#TL_UPSTREAM_PATCHLEVEL="1" |
792 |
PATCHLEVEL="50" |
793 |
TL_SOURCE_VERSION=20140525 |
794 |
|
795 |
inherit eutils flag-o-matic toolchain-funcs libtool texlive-common |
796 |
|
797 |
MY_PV=${PN%-core}-${TL_SOURCE_VERSION}-source |
798 |
|
799 |
DESCRIPTION="A complete TeX distribution" |
800 |
HOMEPAGE="http://tug.org/texlive/" |
801 |
SLOT="0" |
802 |
LICENSE="GPL-2 LPPL-1.3c TeX" |
803 |
|
804 |
SRC_URI="mirror://gentoo/${MY_PV}.tar.xz" |
805 |
|
806 |
# Fetch patches |
807 |
SRC_URI="${SRC_URI} mirror://gentoo/${PN}-patches-${PATCHLEVEL}.tar.xz" |
808 |
# mirror://gentoo/texlive-core-upstream-patches-${TL_UPSTREAM_PATCHLEVEL}.tar.xz" |
809 |
|
810 |
TL_CORE_BINEXTRA_MODULES=" |
811 |
a2ping adhocfilelist asymptote bundledoc ctanify ctanupload ctie cweb |
812 |
de-macro dtl dtxgen dvi2tty dviasm dvicopy dvidvi dviljk dvipos findhyph |
813 |
fragmaster hyphenex installfont lacheck latex-git-log latex2man |
814 |
latexfileversion latexpand latexindent ltxfileinfo ltximg listings-ext |
815 |
match_parens mkjobtexmf patgen pdfcrop pdftools pfarrei pkfix pkfix-helper |
816 |
purifyeps seetexk sty2dtx synctex texcount texdef texdiff texdirflatten |
817 |
texdoc texliveonfly texloganalyser texware tie tpic2pdftex typeoutfileinfo |
818 |
web collection-binextra |
819 |
" |
820 |
TL_CORE_BINEXTRA_DOC_MODULES=" |
821 |
a2ping.doc adhocfilelist.doc asymptote.doc bundledoc.doc ctanify.doc |
822 |
ctanupload.doc ctie.doc cweb.doc de-macro.doc dtxgen.doc dvi2tty.doc |
823 |
dvicopy.doc dviljk.doc dvipos.doc findhyph.doc fragmaster.doc |
824 |
installfont.doc latex-git-log.doc latex2man.doc latexfileversion.doc |
825 |
latexpand.doc latexindent.doc ltxfileinfo.doc ltximg.doc listings-ext.doc |
826 |
match_parens.doc mkjobtexmf.doc patgen.doc pdfcrop.doc pdftools.doc |
827 |
pfarrei.doc pkfix.doc pkfix-helper.doc purifyeps.doc sty2dtx.doc synctex.doc |
828 |
texcount.doc texdef.doc texdiff.doc texdirflatten.doc texdoc.doc |
829 |
texliveonfly.doc texloganalyser.doc texware.doc tie.doc tpic2pdftex.doc |
830 |
typeoutfileinfo.doc web.doc |
831 |
" |
832 |
TL_CORE_BINEXTRA_SRC_MODULES=" |
833 |
adhocfilelist.source hyphenex.source listings-ext.source mkjobtexmf.source |
834 |
pfarrei.source texdef.source |
835 |
" |
836 |
|
837 |
TL_CORE_EXTRA_MODULES="tetex hyphen-base texconfig gsftopk texlive.infra ${TL_CORE_BINEXTRA_MODULES}" |
838 |
TL_CORE_EXTRA_DOC_MODULES="tetex.doc texconfig.doc gsftopk.doc texlive.infra.doc ${TL_CORE_BINEXTRA_DOC_MODULES}" |
839 |
TL_CORE_EXTRA_SRC_MODULES="${TL_CORE_BINEXTRA_SRC_MODULES}" |
840 |
|
841 |
for i in ${TL_CORE_EXTRA_MODULES}; do |
842 |
SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.tar.xz" |
843 |
done |
844 |
|
845 |
SRC_URI="${SRC_URI} doc? ( " |
846 |
for i in ${TL_CORE_EXTRA_DOC_MODULES}; do |
847 |
SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.tar.xz" |
848 |
done |
849 |
SRC_URI="${SRC_URI} )" |
850 |
SRC_URI="${SRC_URI} source? ( " |
851 |
for i in ${TL_CORE_EXTRA_SRC_MODULES}; do |
852 |
SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.tar.xz" |
853 |
done |
854 |
SRC_URI="${SRC_URI} )" |
855 |
|
856 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris" |
857 |
IUSE="cjk X doc source tk xetex" |
858 |
|
859 |
TEXMF_PATH=/usr/share/texmf-dist |
860 |
|
861 |
MODULAR_X_DEPEND="X? ( |
862 |
x11-libs/libXmu |
863 |
x11-libs/libXp |
864 |
x11-libs/libXpm |
865 |
x11-libs/libICE |
866 |
x11-libs/libSM |
867 |
x11-libs/libXaw |
868 |
x11-libs/libXfont |
869 |
)" |
870 |
|
871 |
COMMON_DEPEND="${MODULAR_X_DEPEND} |
872 |
!app-text/ptex |
873 |
!app-text/tetex |
874 |
!<app-text/texlive-2007 |
875 |
!app-text/xetex |
876 |
!<dev-texlive/texlive-basic-2014 |
877 |
!<dev-texlive/texlive-metapost-2011 |
878 |
!app-text/dvibook |
879 |
!dev-tex/luatex |
880 |
!app-text/dvipdfm |
881 |
!app-text/dvipdfmx |
882 |
!app-text/xdvipdfmx |
883 |
sys-libs/zlib |
884 |
>=media-libs/libpng-1.2.43-r2:0= |
885 |
>=app-text/poppler-0.12.3-r3:= |
886 |
>=x11-libs/cairo-1.12 |
887 |
>=x11-libs/pixman-0.18 |
888 |
dev-libs/zziplib |
889 |
app-text/libpaper |
890 |
xetex? ( |
891 |
>=media-libs/harfbuzz-0.9.20[icu,graphite] |
892 |
>=dev-libs/icu-50:= |
893 |
app-text/teckit |
894 |
media-libs/fontconfig |
895 |
media-gfx/graphite2 |
896 |
) |
897 |
media-libs/freetype:2 |
898 |
>=dev-libs/kpathsea-6.2.0 |
899 |
cjk? ( >=dev-libs/ptexenc-1.3.2_p20140525-r1 )" |
900 |
|
901 |
DEPEND="${COMMON_DEPEND} |
902 |
virtual/pkgconfig |
903 |
sys-apps/ed |
904 |
sys-devel/flex |
905 |
app-arch/xz-utils" |
906 |
|
907 |
RDEPEND="${COMMON_DEPEND} |
908 |
>=app-text/ps2pkm-1.5_p20130530 |
909 |
>=app-text/dvipsk-5.993_p20130530 |
910 |
>=dev-tex/bibtexu-3.71_p20130530 |
911 |
virtual/perl-Getopt-Long |
912 |
tk? ( dev-perl/perl-tk )" |
913 |
|
914 |
S="${WORKDIR}/${P}_build" |
915 |
B="${WORKDIR}/${MY_PV}" |
916 |
|
917 |
src_unpack() { |
918 |
unpack ${A} |
919 |
mkdir -p "${S}" || die "failed to create build dir" |
920 |
} |
921 |
|
922 |
RELOC_TARGET=texmf-dist |
923 |
|
924 |
src_prepare() { |
925 |
cd "${WORKDIR}" |
926 |
# From texlive-module.eclass. |
927 |
grep -H RELOC tlpkg/tlpobj/* | awk '{print $2}' | sed 's#^RELOC/##' > "${T}/reloclist" |
928 |
{ for i in $(<"${T}/reloclist"); do dirname $i; done; } | uniq > "${T}/dirlist" |
929 |
for i in $(<"${T}/dirlist"); do |
930 |
[ -d "${RELOC_TARGET}/${i}" ] || mkdir -p "${RELOC_TARGET}/${i}" |
931 |
done |
932 |
for i in $(<"${T}/reloclist"); do |
933 |
mv "${i}" "${RELOC_TARGET}"/$(dirname "${i}") || die "failed to relocate ${i} to ${RELOC_TARGET}/$(dirname ${i})" |
934 |
done |
935 |
|
936 |
mv "${WORKDIR}"/texmf* "${B}" || die "failed to move texmf files" |
937 |
|
938 |
cd "${B}" |
939 |
#EPATCH_MULTI_MSG="Applying patches from upstream bugfix branch..." EPATCH_SUFFIX="patch" epatch "${WORKDIR}/gentoo_branch2011_patches" |
940 |
EPATCH_SUFFIX="patch" epatch "${WORKDIR}/patches" |
941 |
|
942 |
elibtoolize |
943 |
} |
944 |
|
945 |
src_configure() { |
946 |
# It fails on alpha without this |
947 |
use alpha && append-ldflags "-Wl,--no-relax" |
948 |
|
949 |
# Too many regexps use A-Z a-z constructs, what causes problems with locales |
950 |
# that don't have the same alphabetical order than ascii. Bug #242430 |
951 |
# So we set LC_ALL to C in order to avoid problems. |
952 |
export LC_ALL=C |
953 |
tc-export CC CXX AR RANLIB |
954 |
ECONF_SOURCE="${B}" \ |
955 |
econf -C \ |
956 |
--bindir="${EPREFIX}"/usr/bin \ |
957 |
--datadir="${S}" \ |
958 |
--with-system-freetype2 \ |
959 |
--with-system-zlib \ |
960 |
--with-system-libpng \ |
961 |
--with-system-xpdf \ |
962 |
--with-system-poppler \ |
963 |
--with-system-teckit \ |
964 |
--with-teckit-includes="${EPREFIX}"/usr/include/teckit \ |
965 |
--with-system-kpathsea \ |
966 |
--with-kpathsea-includes="${EPREFIX}"/usr/include \ |
967 |
--with-system-icu \ |
968 |
--with-system-ptexenc \ |
969 |
--with-system-harfbuzz \ |
970 |
--with-system-icu \ |
971 |
--with-system-graphite2 \ |
972 |
--with-system-cairo \ |
973 |
--with-system-pixman \ |
974 |
--with-system-zziplib \ |
975 |
--with-system-libpaper \ |
976 |
--without-texinfo \ |
977 |
--disable-dialog \ |
978 |
--disable-multiplatform \ |
979 |
--enable-epsfwin \ |
980 |
--enable-mftalkwin \ |
981 |
--enable-regiswin \ |
982 |
--enable-tektronixwin \ |
983 |
--enable-unitermwin \ |
984 |
--with-ps=gs \ |
985 |
--disable-psutils \ |
986 |
--disable-t1utils \ |
987 |
--enable-ipc \ |
988 |
--disable-biber \ |
989 |
--disable-bibtex-x \ |
990 |
--disable-dvipng \ |
991 |
--disable-dvipsk \ |
992 |
--disable-chktex \ |
993 |
--disable-lcdf-typetools \ |
994 |
--disable-pdfopen \ |
995 |
--disable-ps2eps \ |
996 |
--disable-ps2pkm \ |
997 |
--disable-detex \ |
998 |
--disable-ttf2pk2 \ |
999 |
--disable-tex4htk \ |
1000 |
--disable-cjkutils \ |
1001 |
--disable-xdvik \ |
1002 |
--disable-xindy \ |
1003 |
--enable-luatex \ |
1004 |
--disable-dvi2tty \ |
1005 |
--disable-dvisvgm \ |
1006 |
--disable-vlna \ |
1007 |
--enable-shared \ |
1008 |
--disable-native-texlive-build \ |
1009 |
--disable-largefile \ |
1010 |
$(use_enable xetex) \ |
1011 |
$(use_enable cjk ptex) \ |
1012 |
$(use_enable cjk eptex) \ |
1013 |
$(use_enable cjk uptex) \ |
1014 |
$(use_enable cjk euptex) \ |
1015 |
$(use_enable cjk mendexk) \ |
1016 |
$(use_enable cjk makejvf) \ |
1017 |
$(use_enable tk texdoctk) \ |
1018 |
$(use_with X x) |
1019 |
} |
1020 |
|
1021 |
src_compile() { |
1022 |
tc-export CC CXX AR RANLIB |
1023 |
emake SHELL="${EPREFIX}"/bin/sh texmf="${EPREFIX}"${TEXMF_PATH:-/usr/share/texmf-dist} |
1024 |
|
1025 |
cd "${B}" || die |
1026 |
# Mimic updmap --syncwithtrees to enable only fonts installed |
1027 |
# Code copied from updmap script |
1028 |
for i in `egrep '^(Mixed|Kanji)?Map' "texmf-dist/web2c/updmap.cfg" | sed 's@.* @@'`; do |
1029 |
texlive-common_is_file_present_in_texmf "$i" || echo "$i" |
1030 |
done > "${T}/updmap_update" |
1031 |
{ |
1032 |
sed 's@/@\\/@g; s@^@/^MixedMap[ ]*@; s@$@$/s/^/#! /@' <"${T}/updmap_update" |
1033 |
sed 's@/@\\/@g; s@^@/^Map[ ]*@; s@$@$/s/^/#! /@' <"${T}/updmap_update" |
1034 |
sed 's@/@\\/@g; s@^@/^KanjiMap[ ]*@; s@$@$/s/^/#! /@' <"${T}/updmap_update" |
1035 |
} > "${T}/updmap_update2" |
1036 |
sed -f "${T}/updmap_update2" "texmf-dist/web2c/updmap.cfg" > "${T}/updmap_update3"\ |
1037 |
&& cat "${T}/updmap_update3" > "texmf-dist/web2c/updmap.cfg" |
1038 |
} |
1039 |
|
1040 |
src_install() { |
1041 |
dodir ${TEXMF_PATH:-/usr/share/texmf-dist}/web2c |
1042 |
emake DESTDIR="${D}" texmf="${ED}${TEXMF_PATH:-/usr/share/texmf-dist}" run_texlinks="true" run_mktexlsr="true" install |
1043 |
|
1044 |
cd "${B}" || die |
1045 |
dodir /usr/share # just in case |
1046 |
cp -pR texmf-dist "${ED}/usr/share/" || die "failed to install texmf trees" |
1047 |
cp -pR "${WORKDIR}"/tlpkg "${ED}/usr/share/" || die "failed to install tlpkg files" |
1048 |
|
1049 |
# When X is disabled mf-nowin doesn't exist but some scripts expect it to |
1050 |
# exist. Instead, it is called mf, so we symlink it to please everything. |
1051 |
use X || dosym mf /usr/bin/mf-nowin |
1052 |
|
1053 |
docinto texk |
1054 |
cd "${B}/texk" |
1055 |
dodoc ChangeLog README |
1056 |
|
1057 |
docinto dviljk |
1058 |
cd "${B}/texk/dviljk" |
1059 |
dodoc ChangeLog README NEWS |
1060 |
|
1061 |
docinto makeindexk |
1062 |
cd "${B}/texk/makeindexk" |
1063 |
dodoc ChangeLog NOTES README |
1064 |
|
1065 |
docinto web2c |
1066 |
cd "${B}/texk/web2c" |
1067 |
dodoc ChangeLog NEWS PROJECTS README |
1068 |
|
1069 |
use doc || rm -rf "${ED}/usr/share/texmf-dist/doc" |
1070 |
|
1071 |
dodir /etc/env.d |
1072 |
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" |
1073 |
# populate /etc/texmf |
1074 |
keepdir /etc/texmf/web2c |
1075 |
|
1076 |
# take care of updmap.cfg and language.d files |
1077 |
keepdir /etc/texmf/{updmap.d,language.dat.d,language.def.d,language.dat.lua.d} |
1078 |
|
1079 |
mv "${ED}${TEXMF_PATH}/web2c/updmap.cfg" "${ED}/etc/texmf/updmap.d/00updmap.cfg" || die "moving updmap.cfg failed" |
1080 |
|
1081 |
# Remove fmtutil.cnf, it will be regenerated from /etc/texmf/fmtutil.d files |
1082 |
# by texmf-update |
1083 |
rm -f "${ED}${TEXMF_PATH}/web2c/fmtutil.cnf" |
1084 |
# Remove bundled and invalid updmap.cfg |
1085 |
rm -f "${ED}/usr/share/texmf-dist/web2c/updmap.cfg" |
1086 |
|
1087 |
texlive-common_handle_config_files |
1088 |
|
1089 |
keepdir /usr/share/texmf-site |
1090 |
|
1091 |
# the virtex symlink is not installed |
1092 |
# The links has to be relative, since the targets |
1093 |
# is not present at this stage and MacOS doesn't |
1094 |
# like non-existing targets |
1095 |
dosym tex /usr/bin/virtex |
1096 |
dosym pdftex /usr/bin/pdfvirtex |
1097 |
|
1098 |
# Rename mpost to leave room for mplib |
1099 |
mv "${ED}/usr/bin/mpost" "${ED}/usr/bin/mpost-${P}" |
1100 |
dosym "mpost-${P}" /usr/bin/mpost |
1101 |
|
1102 |
# Ditto for pdftex |
1103 |
mv "${ED}/usr/bin/pdftex" "${ED}/usr/bin/pdftex-${P}" |
1104 |
dosym "pdftex-${P}" /usr/bin/pdftex |
1105 |
} |
1106 |
|
1107 |
pkg_postinst() { |
1108 |
etexmf-update |
1109 |
|
1110 |
elog |
1111 |
elog "If you have configuration files in ${EPREFIX}/etc/texmf to merge," |
1112 |
elog "please update them and run ${EPREFIX}/usr/sbin/texmf-update." |
1113 |
elog |
1114 |
ewarn "If you are migrating from an older TeX distribution" |
1115 |
ewarn "Please make sure you have read:" |
1116 |
ewarn "http://www.gentoo.org/proj/en/tex/texlive-migration-guide.xml" |
1117 |
ewarn "in order to avoid possible problems" |
1118 |
elog |
1119 |
elog "TeXLive has been split in various ebuilds. If you are missing a" |
1120 |
elog "package to process your TeX documents, you can install" |
1121 |
elog "dev-tex/texmfind to easily search for them." |
1122 |
elog |
1123 |
} |