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