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