Gentoo Archives: gentoo-commits

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