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-r2.ebuild
Date: Tue, 28 Jun 2011 15:53:28
Message-Id: 20110628155255.9686E20054@flycatcher.gentoo.org
1 aballier 11/06/28 15:52:55
2
3 Modified: ChangeLog
4 Added: texlive-core-2010-r2.ebuild
5 Log:
6 disable largefile again as it seems to cause problems on some arches, require a kpathsea version with largefile support disabled
7
8 (Portage version: 2.2.0_alpha41/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.135 app-text/texlive-core/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/texlive-core/ChangeLog?rev=1.135&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/texlive-core/ChangeLog?rev=1.135&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/texlive-core/ChangeLog?r1=1.134&r2=1.135
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-text/texlive-core/ChangeLog,v
20 retrieving revision 1.134
21 retrieving revision 1.135
22 diff -u -r1.134 -r1.135
23 --- ChangeLog 18 May 2011 18:23:27 -0000 1.134
24 +++ ChangeLog 28 Jun 2011 15:52:55 -0000 1.135
25 @@ -1,6 +1,13 @@
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.134 2011/05/18 18:23:27 aballier Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-text/texlive-core/ChangeLog,v 1.135 2011/06/28 15:52:55 aballier Exp $
30 +
31 +*texlive-core-2010-r2 (28 Jun 2011)
32 +
33 + 28 Jun 2011; Alexis Ballier <aballier@g.o>
34 + +texlive-core-2010-r2.ebuild:
35 + disable largefile again as it seems to cause problems on some arches, require
36 + a kpathsea version with largefile support disabled
37
38 18 May 2011; Alexis Ballier <aballier@g.o>
39 texlive-core-2010-r1.ebuild:
40
41
42
43 1.1 app-text/texlive-core/texlive-core-2010-r2.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/texlive-core/texlive-core-2010-r2.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/texlive-core/texlive-core-2010-r2.ebuild?rev=1.1&content-type=text/plain
47
48 Index: texlive-core-2010-r2.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-r2.ebuild,v 1.1 2011/06/28 15:52:55 aballier Exp $
53
54 EAPI=3
55
56 inherit eutils flag-o-matic toolchain-funcs libtool texlive-common
57
58 PATCHLEVEL="24"
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-6.0.1_p20110627
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 --disable-largefile \
210 $(use_enable xetex) \
211 $(use_enable cjk ptex) \
212 $(use_enable cjk mendexk) \
213 $(use_enable cjk makejvf) \
214 $(use_with X x)
215 }
216
217 src_compile() {
218 emake SHELL=/bin/sh texmf=${TEXMF_PATH:-/usr/share/texmf} || die "emake failed"
219
220 # Mimic updmap --syncwithtrees to enable only fonts installed
221 # Code copied from updmap script
222 for i in `egrep '^(Mixed)?Map' "texmf/web2c/updmap.cfg" | sed 's@.* @@'`; do
223 texlive-common_is_file_present_in_texmf "$i" || echo "$i"
224 done > "${T}/updmap_update"
225 {
226 sed 's@/@\\/@g; s@^@/^MixedMap[ ]*@; s@$@$/s/^/#! /@' <"${T}/updmap_update"
227 sed 's@/@\\/@g; s@^@/^Map[ ]*@; s@$@$/s/^/#! /@' <"${T}/updmap_update"
228 } > "${T}/updmap_update2"
229 sed -f "${T}/updmap_update2" "texmf/web2c/updmap.cfg" > "${T}/updmap_update3"\
230 && cat "${T}/updmap_update3" > "texmf/web2c/updmap.cfg"
231 }
232
233 src_test() {
234 ewarn "Due to modular layout of texlive ebuilds,"
235 ewarn "It would not make much sense to use tests into the ebuild"
236 ewarn "And tests would fail anyway"
237 ewarn "Alternatively you can try to compile any tex file"
238 ewarn "Tex warnings should be considered as errors and reported"
239 ewarn "You can also run fmtutil-sys --all and check for errors/warnings there"
240 }
241
242 src_install() {
243 dodir ${TEXMF_PATH:-/usr/share/texmf}/web2c
244 emake DESTDIR="${D}" texmf="${D}${TEXMF_PATH:-/usr/share/texmf}" run_texlinks="true" run_mktexlsr="true" install || die "install failed"
245
246 dodir /usr/share # just in case
247 cp -pR texmf{,-dist} "${D}/usr/share/" || die "failed to install texmf trees"
248 if use source ; then
249 cp -pR "${WORKDIR}"/tlpkg "${D}/usr/share/" || die "failed to install tlpkg files"
250 fi
251
252 newsbin "${FILESDIR}/texmf-update2010" texmf-update
253
254 # When X is disabled mf-nowin doesn't exist but some scripts expect it to
255 # exist. Instead, it is called mf, so we symlink it to please everything.
256 use X || dosym mf /usr/bin/mf-nowin
257
258 docinto texk
259 cd "${S}/texk"
260 dodoc ChangeLog README || die "failed to install texk docs"
261
262 docinto dviljk
263 cd "${S}/texk/dviljk"
264 dodoc ChangeLog README NEWS || die "failed to install dviljk docs"
265
266 docinto makeindexk
267 cd "${S}/texk/makeindexk"
268 dodoc ChangeLog NEWS NOTES README || die "failed to install makeindexk docs"
269
270 docinto web2c
271 cd "${S}/texk/web2c"
272 dodoc ChangeLog NEWS PROJECTS README || die "failed to install web2c docs"
273
274 use doc || rm -rf "${D}/usr/share/texmf/doc"
275 use doc || rm -rf "${D}/usr/share/texmf-dist/doc"
276
277 dodir /etc/env.d
278 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"
279 # populate /etc/texmf
280 keepdir /etc/texmf/web2c
281
282 # take care of updmap.cfg and language.d files
283 keepdir /etc/texmf/{updmap.d,language.dat.d,language.def.d,language.dat.lua.d}
284
285 mv "${D}${TEXMF_PATH}/web2c/updmap.cfg" "${D}/etc/texmf/updmap.d/00updmap.cfg" || die "moving updmap.cfg failed"
286
287 # Remove fmtutil.cnf, it will be regenerated from /etc/texmf/fmtutil.d files
288 # by texmf-update
289 rm -f "${D}${TEXMF_PATH}/web2c/fmtutil.cnf"
290
291 texlive-common_handle_config_files
292
293 keepdir /usr/share/texmf-site
294
295 dosym /etc/texmf/web2c/updmap.cfg ${TEXMF_PATH}/web2c/updmap.cfg
296
297 # the virtex symlink is not installed
298 # The links has to be relative, since the targets
299 # is not present at this stage and MacOS doesn't
300 # like non-existing targets
301 dosym tex /usr/bin/virtex
302 dosym pdftex /usr/bin/pdfvirtex
303
304 # Remove texdoctk if we don't want it
305 if ! use tk ; then
306 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!"
307 fi
308
309 # Rename mpost to leave room for mplib
310 mv "${D}/usr/bin/mpost" "${D}/usr/bin/mpost-${P}"
311 dosym "mpost-${P}" /usr/bin/mpost
312
313 # Ditto for pdftex
314 mv "${D}/usr/bin/pdftex" "${D}/usr/bin/pdftex-${P}"
315 dosym "pdftex-${P}" /usr/bin/pdftex
316 }
317
318 pkg_preinst() {
319 # Remove stray files to keep the upgrade path sane
320 if has_version =app-text/texlive-core-2007* ; then
321 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
322 for j in log fmt ; do
323 local file="${ROOT}/var/lib/texmf/web2c/${i}.${j}"
324 if [ -f "${file}" ] ; then
325 elog "Removing stray ${file} from TeXLive 2007 install."
326 rm -f "${file}"
327 fi
328 done
329 done
330 for j in base log ; do
331 local file="${ROOT}/var/lib/texmf/web2c/metafont/mf.${j}"
332 if [ -f "${file}" ] ; then
333 elog "Removing stray ${file} from TeXLive 2007 install."
334 rm -f "${file}"
335 fi
336 done
337 fi
338 }
339
340 pkg_postinst() {
341 etexmf-update
342
343 elog
344 elog "If you have configuration files in /etc/texmf to merge,"
345 elog "please update them and run /usr/sbin/texmf-update."
346 elog
347 ewarn "If you are migrating from an older TeX distribution"
348 ewarn "Please make sure you have read:"
349 ewarn "http://www.gentoo.org/proj/en/tex/texlive-migration-guide.xml"
350 ewarn "in order to avoid possible problems"
351 elog
352 elog "TeXLive has been split in various ebuilds. If you are missing a"
353 elog "package to process your TeX documents, you can install"
354 elog "dev-tex/texmfind to easily search for them."
355 elog
356 }