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