1 |
aballier 13/08/27 16:29:26 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: texlive-core-2013-r1.ebuild |
5 |
Removed: texlive-core-2013.ebuild |
6 |
Log: |
7 |
revision bump to push recent changes |
8 |
|
9 |
(Portage version: 2.2.1/cvs/Linux x86_64, signed Manifest commit with key 160F534A) |
10 |
|
11 |
Revision Changes Path |
12 |
1.211 app-text/texlive-core/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/texlive-core/ChangeLog?rev=1.211&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/texlive-core/ChangeLog?rev=1.211&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/texlive-core/ChangeLog?r1=1.210&r2=1.211 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/app-text/texlive-core/ChangeLog,v |
21 |
retrieving revision 1.210 |
22 |
retrieving revision 1.211 |
23 |
diff -u -r1.210 -r1.211 |
24 |
--- ChangeLog 27 Aug 2013 16:26:46 -0000 1.210 |
25 |
+++ ChangeLog 27 Aug 2013 16:29:26 -0000 1.211 |
26 |
@@ -1,6 +1,12 @@ |
27 |
# ChangeLog for app-text/texlive-core |
28 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/app-text/texlive-core/ChangeLog,v 1.210 2013/08/27 16:26:46 aballier Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/app-text/texlive-core/ChangeLog,v 1.211 2013/08/27 16:29:26 aballier Exp $ |
31 |
+ |
32 |
+*texlive-core-2013-r1 (27 Aug 2013) |
33 |
+ |
34 |
+ 27 Aug 2013; Alexis Ballier <aballier@g.o> -texlive-core-2013.ebuild, |
35 |
+ +texlive-core-2013-r1.ebuild: |
36 |
+ revision bump to push recent changes |
37 |
|
38 |
27 Aug 2013; Alexis Ballier <aballier@g.o> texlive-core-2013.ebuild: |
39 |
handle KanjiMaps too when stripping updmap.cfg, bug #481130 |
40 |
|
41 |
|
42 |
|
43 |
1.1 app-text/texlive-core/texlive-core-2013-r1.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/texlive-core/texlive-core-2013-r1.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/texlive-core/texlive-core-2013-r1.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: texlive-core-2013-r1.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2013 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/app-text/texlive-core/texlive-core-2013-r1.ebuild,v 1.1 2013/08/27 16:29:26 aballier Exp $ |
53 |
|
54 |
EAPI=5 |
55 |
|
56 |
#TL_UPSTREAM_PATCHLEVEL="1" |
57 |
PATCHLEVEL="41" |
58 |
TL_SOURCE_VERSION=20130530 |
59 |
|
60 |
inherit eutils flag-o-matic toolchain-funcs libtool texlive-common |
61 |
|
62 |
MY_PV=${PN%-core}-${TL_SOURCE_VERSION}-source |
63 |
|
64 |
DESCRIPTION="A complete TeX distribution" |
65 |
HOMEPAGE="http://tug.org/texlive/" |
66 |
SLOT="0" |
67 |
LICENSE="GPL-2 LPPL-1.3c TeX" |
68 |
|
69 |
SRC_URI="mirror://gentoo/${MY_PV}.tar.xz" |
70 |
|
71 |
# Fetch patches |
72 |
SRC_URI="${SRC_URI} mirror://gentoo/${PN}-patches-${PATCHLEVEL}.tar.xz" |
73 |
# mirror://gentoo/texlive-core-upstream-patches-${TL_UPSTREAM_PATCHLEVEL}.tar.xz" |
74 |
|
75 |
TL_CORE_BINEXTRA_MODULES=" |
76 |
a2ping adhocfilelist asymptote bundledoc ctanify ctanupload ctie cweb |
77 |
de-macro dtl dtxgen dvi2tty dviasm dvicopy dvidvi dviljk dvipos findhyph |
78 |
fragmaster hyphenex installfont lacheck latex2man latexfileversion |
79 |
latexpand ltxfileinfo listings-ext match_parens mkjobtexmf patgen pdfcrop |
80 |
pdftools pfarrei pkfix pkfix-helper purifyeps seetexk sty2dtx synctex |
81 |
texcount texdef texdiff texdirflatten texdoc texliveonfly texloganalyser |
82 |
texware tie tpic2pdftex typeoutfileinfo web collection-binextra |
83 |
" |
84 |
TL_CORE_BINEXTRA_DOC_MODULES=" |
85 |
a2ping.doc adhocfilelist.doc asymptote.doc bundledoc.doc ctanify.doc |
86 |
ctanupload.doc ctie.doc cweb.doc de-macro.doc dtxgen.doc dvi2tty.doc |
87 |
dvicopy.doc dviljk.doc dvipos.doc findhyph.doc fragmaster.doc |
88 |
installfont.doc latex2man.doc latexfileversion.doc latexpand.doc |
89 |
ltxfileinfo.doc listings-ext.doc match_parens.doc mkjobtexmf.doc patgen.doc |
90 |
pdfcrop.doc pdftools.doc pfarrei.doc pkfix.doc pkfix-helper.doc |
91 |
purifyeps.doc sty2dtx.doc synctex.doc texcount.doc texdef.doc texdiff.doc |
92 |
texdirflatten.doc texdoc.doc texliveonfly.doc texloganalyser.doc texware.doc |
93 |
tie.doc tpic2pdftex.doc typeoutfileinfo web.doc |
94 |
" |
95 |
TL_CORE_BINEXTRA_SRC_MODULES=" |
96 |
adhocfilelist.source hyphenex.source listings-ext.source mkjobtexmf.source |
97 |
pfarrei.source texdef.source |
98 |
" |
99 |
|
100 |
TL_CORE_EXTRA_MODULES="tetex hyphen-base texconfig gsftopk texlive.infra ${TL_CORE_BINEXTRA_MODULES}" |
101 |
TL_CORE_EXTRA_DOC_MODULES="tetex.doc texconfig.doc gsftopk.doc texlive.infra.doc ${TL_CORE_BINEXTRA_DOC_MODULES}" |
102 |
TL_CORE_EXTRA_SRC_MODULES="${TL_CORE_BINEXTRA_SRC_MODULES}" |
103 |
|
104 |
for i in ${TL_CORE_EXTRA_MODULES}; do |
105 |
SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.tar.xz" |
106 |
done |
107 |
|
108 |
SRC_URI="${SRC_URI} doc? ( " |
109 |
for i in ${TL_CORE_EXTRA_DOC_MODULES}; do |
110 |
SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.tar.xz" |
111 |
done |
112 |
SRC_URI="${SRC_URI} )" |
113 |
SRC_URI="${SRC_URI} source? ( " |
114 |
for i in ${TL_CORE_EXTRA_SRC_MODULES}; do |
115 |
SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.tar.xz" |
116 |
done |
117 |
SRC_URI="${SRC_URI} )" |
118 |
|
119 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd" |
120 |
IUSE="cjk X doc source tk xetex" |
121 |
|
122 |
TEXMF_PATH=/usr/share/texmf-dist |
123 |
|
124 |
MODULAR_X_DEPEND="X? ( |
125 |
x11-libs/libXmu |
126 |
x11-libs/libXp |
127 |
x11-libs/libXpm |
128 |
x11-libs/libICE |
129 |
x11-libs/libSM |
130 |
x11-libs/libXaw |
131 |
x11-libs/libXfont |
132 |
)" |
133 |
|
134 |
COMMON_DEPEND="${MODULAR_X_DEPEND} |
135 |
!app-text/ptex |
136 |
!app-text/tetex |
137 |
!<app-text/texlive-2007 |
138 |
!app-text/xetex |
139 |
!<dev-texlive/texlive-basic-2013 |
140 |
!<dev-texlive/texlive-metapost-2011 |
141 |
!app-text/dvibook |
142 |
sys-libs/zlib |
143 |
>=media-libs/libpng-1.2.43-r2:0= |
144 |
>=app-text/poppler-0.12.3-r3:= |
145 |
>=x11-libs/cairo-1.12 |
146 |
>=x11-libs/pixman-0.18 |
147 |
xetex? ( |
148 |
>=media-libs/harfbuzz-0.9.10[icu] |
149 |
>=dev-libs/icu-50 |
150 |
app-text/teckit |
151 |
media-libs/fontconfig |
152 |
media-gfx/graphite2 |
153 |
media-libs/freetype:2 |
154 |
) |
155 |
>=dev-libs/kpathsea-6.1.1_p20130530 |
156 |
cjk? ( >=dev-libs/ptexenc-1.3.1_p20130530 )" |
157 |
|
158 |
DEPEND="${COMMON_DEPEND} |
159 |
virtual/pkgconfig |
160 |
sys-apps/ed |
161 |
sys-devel/flex |
162 |
app-arch/xz-utils" |
163 |
|
164 |
RDEPEND="${COMMON_DEPEND} |
165 |
>=app-text/ps2pkm-1.5_p20120701 |
166 |
>=app-text/dvipsk-5.992_p20120701 |
167 |
>=dev-tex/bibtexu-3.71_p20130530 |
168 |
virtual/perl-Getopt-Long |
169 |
xetex? ( >=app-text/xdvipdfmx-0.7.9_p20130530 ) |
170 |
tk? ( dev-perl/perl-tk )" |
171 |
|
172 |
# texdoc needs luatex. |
173 |
PDEPEND=">=dev-tex/luatex-0.76" |
174 |
|
175 |
S="${WORKDIR}/${P}_build" |
176 |
B="${WORKDIR}/${MY_PV}" |
177 |
|
178 |
src_unpack() { |
179 |
unpack ${A} |
180 |
mkdir -p "${S}" || die "failed to create build dir" |
181 |
} |
182 |
|
183 |
RELOC_TARGET=texmf-dist |
184 |
|
185 |
src_prepare() { |
186 |
cd "${WORKDIR}" |
187 |
# From texlive-module.eclass. |
188 |
grep -H RELOC tlpkg/tlpobj/* | awk '{print $2}' | sed 's#^RELOC/##' > "${T}/reloclist" |
189 |
{ for i in $(<"${T}/reloclist"); do dirname $i; done; } | uniq > "${T}/dirlist" |
190 |
for i in $(<"${T}/dirlist"); do |
191 |
[ -d "${RELOC_TARGET}/${i}" ] || mkdir -p "${RELOC_TARGET}/${i}" |
192 |
done |
193 |
for i in $(<"${T}/reloclist"); do |
194 |
mv "${i}" "${RELOC_TARGET}"/$(dirname "${i}") || die "failed to relocate ${i} to ${RELOC_TARGET}/$(dirname ${i})" |
195 |
done |
196 |
|
197 |
mv "${WORKDIR}"/texmf* "${B}" || die "failed to move texmf files" |
198 |
|
199 |
cd "${B}" |
200 |
#EPATCH_MULTI_MSG="Applying patches from upstream bugfix branch..." EPATCH_SUFFIX="patch" epatch "${WORKDIR}/gentoo_branch2011_patches" |
201 |
EPATCH_SUFFIX="patch" epatch "${WORKDIR}/patches" |
202 |
|
203 |
elibtoolize |
204 |
} |
205 |
|
206 |
src_configure() { |
207 |
# It fails on alpha without this |
208 |
use alpha && append-ldflags "-Wl,--no-relax" |
209 |
|
210 |
# Too many regexps use A-Z a-z constructs, what causes problems with locales |
211 |
# that don't have the same alphabetical order than ascii. Bug #242430 |
212 |
# So we set LC_ALL to C in order to avoid problems. |
213 |
export LC_ALL=C |
214 |
tc-export CC CXX AR RANLIB |
215 |
ECONF_SOURCE="${B}" \ |
216 |
econf -C \ |
217 |
--bindir=/usr/bin \ |
218 |
--datadir="${S}" \ |
219 |
--with-system-freetype2 \ |
220 |
--with-freetype2-include=/usr/include \ |
221 |
--with-system-zlib \ |
222 |
--with-system-libpng \ |
223 |
--with-system-xpdf \ |
224 |
--with-system-poppler \ |
225 |
--with-system-teckit \ |
226 |
--with-teckit-includes=/usr/include/teckit \ |
227 |
--with-system-kpathsea \ |
228 |
--with-system-icu \ |
229 |
--with-system-ptexenc \ |
230 |
--with-system-harfbuzz \ |
231 |
--with-system-icu \ |
232 |
--with-system-graphite2 \ |
233 |
--with-system-cairo \ |
234 |
--with-system-pixman \ |
235 |
--without-texinfo \ |
236 |
--disable-dialog \ |
237 |
--disable-multiplatform \ |
238 |
--enable-epsfwin \ |
239 |
--enable-mftalkwin \ |
240 |
--enable-regiswin \ |
241 |
--enable-tektronixwin \ |
242 |
--enable-unitermwin \ |
243 |
--with-ps=gs \ |
244 |
--disable-psutils \ |
245 |
--disable-t1utils \ |
246 |
--enable-ipc \ |
247 |
--disable-biber \ |
248 |
--disable-bibtex-x \ |
249 |
--disable-dvipng \ |
250 |
--disable-dvipsk \ |
251 |
--disable-dvipdfmx \ |
252 |
--disable-chktex \ |
253 |
--disable-lcdf-typetools \ |
254 |
--disable-pdfopen \ |
255 |
--disable-ps2eps \ |
256 |
--disable-ps2pkm \ |
257 |
--disable-detex \ |
258 |
--disable-ttf2pk \ |
259 |
--disable-tex4htk \ |
260 |
--disable-cjkutils \ |
261 |
--disable-xdvik \ |
262 |
--disable-xindy \ |
263 |
--disable-luatex \ |
264 |
--disable-dvi2tty \ |
265 |
--disable-dvisvgm \ |
266 |
--disable-vlna \ |
267 |
--disable-xdvipdfmx \ |
268 |
--enable-shared \ |
269 |
--disable-native-texlive-build \ |
270 |
--disable-largefile \ |
271 |
$(use_enable xetex) \ |
272 |
$(use_enable cjk ptex) \ |
273 |
$(use_enable cjk eptex) \ |
274 |
$(use_enable cjk uptex) \ |
275 |
$(use_enable cjk euptex) \ |
276 |
$(use_enable cjk mendexk) \ |
277 |
$(use_enable cjk makejvf) \ |
278 |
$(use_enable tk texdoctk) \ |
279 |
$(use_with X x) |
280 |
} |
281 |
|
282 |
src_compile() { |
283 |
tc-export CC CXX AR RANLIB |
284 |
emake SHELL=/bin/sh texmf=${TEXMF_PATH:-/usr/share/texmf-dist} || die "emake failed" |
285 |
|
286 |
cd "${B}" |
287 |
# Mimic updmap --syncwithtrees to enable only fonts installed |
288 |
# Code copied from updmap script |
289 |
for i in `egrep '^(Mixed|Kanji)?Map' "texmf-dist/web2c/updmap.cfg" | sed 's@.* @@'`; do |
290 |
texlive-common_is_file_present_in_texmf "$i" || echo "$i" |
291 |
done > "${T}/updmap_update" |
292 |
{ |
293 |
sed 's@/@\\/@g; s@^@/^MixedMap[ ]*@; s@$@$/s/^/#! /@' <"${T}/updmap_update" |
294 |
sed 's@/@\\/@g; s@^@/^Map[ ]*@; s@$@$/s/^/#! /@' <"${T}/updmap_update" |
295 |
sed 's@/@\\/@g; s@^@/^KanjiMap[ ]*@; s@$@$/s/^/#! /@' <"${T}/updmap_update" |
296 |
} > "${T}/updmap_update2" |
297 |
sed -f "${T}/updmap_update2" "texmf-dist/web2c/updmap.cfg" > "${T}/updmap_update3"\ |
298 |
&& cat "${T}/updmap_update3" > "texmf-dist/web2c/updmap.cfg" |
299 |
} |
300 |
|
301 |
src_install() { |
302 |
dodir ${TEXMF_PATH:-/usr/share/texmf-dist}/web2c |
303 |
emake DESTDIR="${D}" texmf="${D}${TEXMF_PATH:-/usr/share/texmf-dist}" run_texlinks="true" run_mktexlsr="true" install || die "install failed" |
304 |
|
305 |
cd "${B}" |
306 |
dodir /usr/share # just in case |
307 |
cp -pR texmf-dist "${D}/usr/share/" || die "failed to install texmf trees" |
308 |
cp -pR "${WORKDIR}"/tlpkg "${D}/usr/share/" || die "failed to install tlpkg files" |
309 |
|
310 |
# When X is disabled mf-nowin doesn't exist but some scripts expect it to |
311 |
# exist. Instead, it is called mf, so we symlink it to please everything. |
312 |
use X || dosym mf /usr/bin/mf-nowin |
313 |
|
314 |
docinto texk |
315 |
cd "${B}/texk" |
316 |
dodoc ChangeLog README || die "failed to install texk docs" |
317 |
|
318 |
docinto dviljk |
319 |
cd "${B}/texk/dviljk" |
320 |
dodoc ChangeLog README NEWS || die "failed to install dviljk docs" |
321 |
|
322 |
docinto makeindexk |
323 |
cd "${B}/texk/makeindexk" |
324 |
dodoc ChangeLog NOTES README || die "failed to install makeindexk docs" |
325 |
|
326 |
docinto web2c |
327 |
cd "${B}/texk/web2c" |
328 |
dodoc ChangeLog NEWS PROJECTS README || die "failed to install web2c docs" |
329 |
|
330 |
use doc || rm -rf "${D}/usr/share/texmf-dist/doc" |
331 |
|
332 |
dodir /etc/env.d |
333 |
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" |
334 |
# populate /etc/texmf |
335 |
keepdir /etc/texmf/web2c |
336 |
|
337 |
# take care of updmap.cfg and language.d files |
338 |
keepdir /etc/texmf/{updmap.d,language.dat.d,language.def.d,language.dat.lua.d} |
339 |
|
340 |
mv "${D}${TEXMF_PATH}/web2c/updmap.cfg" "${D}/etc/texmf/updmap.d/00updmap.cfg" || die "moving updmap.cfg failed" |
341 |
|
342 |
# Remove fmtutil.cnf, it will be regenerated from /etc/texmf/fmtutil.d files |
343 |
# by texmf-update |
344 |
rm -f "${D}${TEXMF_PATH}/web2c/fmtutil.cnf" |
345 |
# Remove bundled and invalid updmap.cfg |
346 |
rm -f "${D}/usr/share/texmf-dist/web2c/updmap.cfg" |
347 |
|
348 |
texlive-common_handle_config_files |
349 |
|
350 |
keepdir /usr/share/texmf-site |
351 |
|
352 |
# the virtex symlink is not installed |
353 |
# The links has to be relative, since the targets |
354 |
# is not present at this stage and MacOS doesn't |
355 |
# like non-existing targets |
356 |
dosym tex /usr/bin/virtex |
357 |
dosym pdftex /usr/bin/pdfvirtex |
358 |
|
359 |
# Rename mpost to leave room for mplib |
360 |
mv "${D}/usr/bin/mpost" "${D}/usr/bin/mpost-${P}" |
361 |
dosym "mpost-${P}" /usr/bin/mpost |
362 |
|
363 |
# Ditto for pdftex |
364 |
mv "${D}/usr/bin/pdftex" "${D}/usr/bin/pdftex-${P}" |
365 |
dosym "pdftex-${P}" /usr/bin/pdftex |
366 |
} |
367 |
|
368 |
pkg_preinst() { |
369 |
# Remove stray files to keep the upgrade path sane |
370 |
if has_version =app-text/texlive-core-2007* ; then |
371 |
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 |
372 |
for j in log fmt ; do |
373 |
local file="${ROOT}/var/lib/texmf/web2c/${i}.${j}" |
374 |
if [ -f "${file}" ] ; then |
375 |
elog "Removing stray ${file} from TeXLive 2007 install." |
376 |
rm -f "${file}" |
377 |
fi |
378 |
done |
379 |
done |
380 |
for j in base log ; do |
381 |
local file="${ROOT}/var/lib/texmf/web2c/metafont/mf.${j}" |
382 |
if [ -f "${file}" ] ; then |
383 |
elog "Removing stray ${file} from TeXLive 2007 install." |
384 |
rm -f "${file}" |
385 |
fi |
386 |
done |
387 |
fi |
388 |
} |
389 |
|
390 |
pkg_postinst() { |
391 |
etexmf-update |
392 |
|
393 |
elog |
394 |
elog "If you have configuration files in /etc/texmf to merge," |
395 |
elog "please update them and run /usr/sbin/texmf-update." |
396 |
elog |
397 |
ewarn "If you are migrating from an older TeX distribution" |
398 |
ewarn "Please make sure you have read:" |
399 |
ewarn "http://www.gentoo.org/proj/en/tex/texlive-migration-guide.xml" |
400 |
ewarn "in order to avoid possible problems" |
401 |
elog |
402 |
elog "TeXLive has been split in various ebuilds. If you are missing a" |
403 |
elog "package to process your TeX documents, you can install" |
404 |
elog "dev-tex/texmfind to easily search for them." |
405 |
elog |
406 |
} |