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