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