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-2007-r9.ebuild texlive-core-2007-r8.ebuild
Date: Mon, 03 Dec 2007 00:00:37
Message-Id: E1Iyyjf-0001VO-0U@stork.gentoo.org
1 aballier 07/12/03 00:00:31
2
3 Modified: ChangeLog
4 Added: texlive-core-2007-r9.ebuild
5 Removed: texlive-core-2007-r8.ebuild
6 Log:
7 push changes
8 (Portage version: 2.1.4_rc4)
9
10 Revision Changes Path
11 1.33 app-text/texlive-core/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/texlive-core/ChangeLog?rev=1.33&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/texlive-core/ChangeLog?rev=1.33&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/texlive-core/ChangeLog?r1=1.32&r2=1.33
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-text/texlive-core/ChangeLog,v
20 retrieving revision 1.32
21 retrieving revision 1.33
22 diff -u -r1.32 -r1.33
23 --- ChangeLog 2 Dec 2007 23:56:38 -0000 1.32
24 +++ ChangeLog 3 Dec 2007 00:00:30 -0000 1.33
25 @@ -1,6 +1,12 @@
26 # ChangeLog for app-text/texlive-core
27 # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-text/texlive-core/ChangeLog,v 1.32 2007/12/02 23:56:38 aballier Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-text/texlive-core/ChangeLog,v 1.33 2007/12/03 00:00:30 aballier Exp $
30 +
31 +*texlive-core-2007-r9 (02 Dec 2007)
32 +
33 + 02 Dec 2007; Alexis Ballier <aballier@g.o>
34 + -texlive-core-2007-r8.ebuild, +texlive-core-2007-r9.ebuild:
35 + push changes
36
37 02 Dec 2007; Alexis Ballier <aballier@g.o> files/texmf-update,
38 texlive-core-2007-r8.ebuild:
39
40
41
42 1.1 app-text/texlive-core/texlive-core-2007-r9.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/texlive-core/texlive-core-2007-r9.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/texlive-core/texlive-core-2007-r9.ebuild?rev=1.1&content-type=text/plain
46
47 Index: texlive-core-2007-r9.ebuild
48 ===================================================================
49 # Copyright 1999-2007 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-2007-r9.ebuild,v 1.1 2007/12/03 00:00:30 aballier Exp $
52
53 inherit eutils flag-o-matic toolchain-funcs libtool autotools texlive-common
54
55 PATCHLEVEL="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-dvipdfmx bin-dvipsk bin-etex bin-getnonfreefonts bin-gsftopk bin-kpathsea bin-makeindex bin-metafont bin-mfware bin-pdftex bin-tetex bin-tex bin-texconfig lib-regex lib-zlib"
63
64 TEXLIVE_BINEXTRA_CONTENTS="bin-bibtex8 bin-chktex bin-ctie bin-cweb bin-detex bin-dtl bin-dvi2tty bin-dvicopy bin-dvidvi bin-dviljk bin-lacheck bin-patgen bin-pdftools bin-seetexk bin-texdoc bin-texware bin-thumbpdf bin-tie bin-tpic2pdftex bin-vpe bin-web bin-xpdf cweb mkind-english"
65
66 TEXLIVE_FONTBIN_CONTENTS="bin-afm2pl bin-fontware bin-ps2pkm fontinst mft"
67
68 TEXLIVE_CORE_EXTRA_BUILT_BINARIES="bin-xetex bin-aleph bin-omega"
69
70 TEXLIVE_CORE_INCLUDED_TEXMF="${TEXLIVE_BASICBIN_CONTENTS} ${TEXLIVE_FONTBIN_CONTENTS} ${TEXLIVE_BINEXTRA_CONTENTS} ${TEXLIVE_CORE_EXTRA_BUILT_BINARIES}"
71
72 SRC_URI="mirror://gentoo/${P}.tar.bz2"
73
74 for i in ${TEXLIVE_CORE_INCLUDED_TEXMF}; do
75 SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.zip"
76 done
77
78 # Ship an updated config.ps, see bug #195815 comment 51
79 # Or alternatively: http://tug.org/texlive/bugs.html
80 SRC_URI="${SRC_URI} mirror://gentoo/${P}-updated-config.ps.bz2"
81
82 # Fetch patches
83 SRC_URI="${SRC_URI} mirror://gentoo/${PN}-patches-${PATCHLEVEL}.tar.bz2"
84
85 KEYWORDS="~alpha ~amd64 ~ia64 ~ppc64 ~sparc ~x86"
86 IUSE="X doc"
87
88 MODULAR_X_DEPEND="X? (
89 x11-libs/libXmu
90 x11-libs/libXp
91 x11-libs/libXpm
92 x11-libs/libICE
93 x11-libs/libSM
94 x11-libs/libXaw
95 x11-libs/libXfont
96 )"
97
98 DEPEND="${MODULAR_X_DEPEND}
99 !app-text/ptex
100 !app-text/cstetex
101 !app-text/tetex
102 !<app-text/texlive-2007
103 !app-text/xetex
104 !dev-tex/xmltex
105 !dev-tex/vntex
106 sys-apps/ed
107 sys-libs/zlib
108 >=media-libs/libpng-1.2.1
109 app-arch/unzip
110 =media-libs/freetype-2*
111 media-libs/fontconfig"
112
113 RDEPEND="${DEPEND}
114 dev-lang/ruby"
115
116 S="${WORKDIR}"
117
118 src_unpack() {
119 unpack ${A}
120 cd "${S}"
121
122 EPATCH_SUFFIX="patch" epatch "${WORKDIR}/patches"
123
124 sed -i -e "/mktexlsr/,+3d" -e "s/\(updmap-sys\)/\1 --nohash/" \
125 Makefile.in || die "sed failed"
126
127 elibtoolize
128
129 cd libs/teckit
130 eautoreconf
131
132 # Ship an updated config.ps, see bug #195815 comment 51
133 # Or alternatively: http://tug.org/texlive/bugs.html
134 cp -f "${WORKDIR}/${P}-updated-config.ps" "${S}/texmf/dvips/config/config.ps"
135 }
136
137 src_compile() {
138 local my_conf
139
140 export LC_ALL=C
141 tc-export CC CXX
142
143 econf --bindir=/usr/bin \
144 --datadir="${S}" \
145 --with-system-freetype2 \
146 --with-freetype2-include=/usr/include \
147 --with-system-zlib \
148 --with-system-pnglib \
149 --without-texinfo \
150 --without-dialog \
151 --without-texi2html \
152 --disable-multiplatform \
153 --with-epsfwin \
154 --with-mftalkwin \
155 --with-regiswin \
156 --with-tektronixwin \
157 --with-unitermwin \
158 --with-ps=gs \
159 --without-psutils \
160 --without-sam2p \
161 --without-t1utils \
162 --enable-ipc \
163 --without-etex \
164 --with-xetex \
165 --without-dvipng \
166 --without-dvipdfm \
167 --without-dvipdfmx \
168 --without-xdvipdfmx \
169 --without-lcdf-typetools \
170 --without-pdfopen \
171 --without-ps2eps \
172 --without-detex \
173 --without-ttf2pk \
174 --without-tex4htk \
175 --without-cjkutils \
176 --without-xdvik --without-oxdvik \
177 --enable-shared \
178 $(use_with X x) \
179 ${my_conf} || die "econf failed"
180
181 cd "${S}/libs/icu-xetex"
182 emake -j1 texmf=${TEXMF_PATH:-/usr/share/texmf} || die "emake of icu-xetex failed"
183 cd "${S}"
184 emake texmf=${TEXMF_PATH:-/usr/share/texmf} || die "emake failed"
185
186 # Mimic updmap --syncwithtrees to enable only fonts installed
187 # Code copied from updmap script
188 for i in `egrep '^(Mixed)?Map' "texmf/web2c/updmap.cfg" | sed 's@.* @@'`; do
189 texlive-common_is_file_present_in_texmf "$i" || echo "$i"
190 done > "${T}/updmap_update"
191 {
192 sed 's@/@\\/@g; s@^@/^MixedMap[ ]*@; s@$@$/s/^/#! /@' <"${T}/updmap_update"
193 sed 's@/@\\/@g; s@^@/^Map[ ]*@; s@$@$/s/^/#! /@' <"${T}/updmap_update"
194 } > "${T}/updmap_update2"
195 sed -f "${T}/updmap_update2" "texmf/web2c/updmap.cfg" > "${T}/updmap_update3"\
196 && cat "${T}/updmap_update3" > "texmf/web2c/updmap.cfg"
197 }
198
199 src_test() {
200 ewarn "Due to modular layout of texlive ebuilds,"
201 ewarn "It would not make much sense to use tests into the ebuild"
202 ewarn "And tests would fail anyway"
203 ewarn "Alternatively you can try to compile any tex file"
204 ewarn "Tex warnings should be considered as errors and reported"
205 ewarn "You can also run fmtutil-sys --all and check for errors/warnings there"
206 }
207
208 src_install() {
209 insinto /usr/share
210 doins -r texmf texmf-dist
211
212 dodir ${TEXMF_PATH:-/usr/share/texmf}/web2c
213 einstall bindir="${D}/usr/bin" texmf="${D}${TEXMF_PATH:-/usr/share/texmf}" || die "einstall failed"
214
215 dosbin "${FILESDIR}/texmf-update"
216
217 docinto texk
218 cd "${S}/texk"
219 dodoc ChangeLog README
220
221 docinto kpathesa
222 cd "${S}/texk/kpathsea"
223 dodoc BUGS ChangeLog NEWS PROJECTS README
224
225 docinto dviljk
226 cd "${S}/texk/dviljk"
227 dodoc ChangeLog README NEWS
228
229 docinto dvipsk
230 cd "${S}/texk/dvipsk"
231 dodoc ChangeLog README
232
233 docinto makeindexk
234 cd "${S}/texk/makeindexk"
235 dodoc ChangeLog NEWS NOTES README
236
237 docinto ps2pkm
238 cd "${S}/texk/ps2pkm"
239 dodoc ChangeLog README README.14m
240
241 docinto web2c
242 cd "${S}/texk/web2c"
243 dodoc ChangeLog NEWS PROJECTS README
244
245 use doc || rm -rf "${D}/usr/share/texmf/doc"
246 use doc || rm -rf "${D}/usr/share/texmf-dist/doc"
247
248 dodir /var/cache/fonts
249
250 dodir /etc/env.d
251 echo 'CONFIG_PROTECT_MASK="/etc/texmf/web2c"' > "${D}/etc/env.d/98texlive"
252 # populate /etc/texmf
253 keepdir /etc/texmf/web2c
254
255 # take care of updmap.cfg, fmtutil.cnf and texmf.cnf
256 dodir /etc/texmf/{updmap.d,fmtutil.d,texmf.d}
257
258 # Remove fmtutil.cnf, it will be regenerated from /etc/texmf/fmtutil.d files
259 # by texmf-update
260 rm -f "${D}${TEXMF_PATH}/web2c/fmtutil.cnf"
261
262 # Remove default texmf.cnf to ship our own, greatly based on texlive dvd's
263 # texmf.cnf
264 # It will also be generated from /etc/texmf/texmf.d files by texmf-update
265 rm -f "${D}${TEXMF_PATH}/web2c/texmf.cnf"
266
267 insinto /etc/texmf/texmf.d
268 doins "${FILESDIR}/${PV}/texmf.d/"{00header,05searchpaths,10standardpaths,15options,20sizes,25misc}.cnf
269
270 mv "${D}${TEXMF_PATH}/web2c/updmap.cfg" "${D}/etc/texmf/updmap.d/00updmap.cfg" || die "moving updmap.cfg failed"
271
272 # dvips config file
273 keepdir /etc/texmf/dvips/config
274 dodir /etc/texmf/dvips.d
275 mv "${D}${TEXMF_PATH}/dvips/config/config.ps" "${D}/etc/texmf/dvips.d/00${PN}-config.ps" || die "moving config.ps failed"
276
277 # Create symlinks from format to engines
278 # This will avoid having to call texlinks in texmf-update
279 cd "${S}"
280 for i in texmf/fmtutil/format*.cnf; do
281 [ -f "${i}" ] && etexlinks "${i}"
282 done
283
284 texlive-common_handle_config_files
285
286 keepdir /usr/share/texmf-site
287
288 dosym /etc/texmf/web2c/fmtutil.cnf ${TEXMF_PATH}/web2c/fmtutil.cnf
289 dosym /etc/texmf/web2c/texmf.cnf ${TEXMF_PATH}/web2c/texmf.cnf
290 dosym /etc/texmf/web2c/updmap.cfg ${TEXMF_PATH}/web2c/updmap.cfg
291 dosym /etc/texmf/dvips/config/config.ps ${TEXMF_PATH}/dvips/config/config.ps
292
293 # the virtex symlink is not installed
294 # The links has to be relative, since the targets
295 # is not present at this stage and MacOS doesn't
296 # like non-existing targets
297 dosym tex /usr/bin/virtex
298 dosym pdftex /usr/bin/pdfvirtex
299 }
300
301 pkg_postinst() {
302 if [ "$ROOT" = "/" ] ; then
303 /usr/sbin/texmf-update
304 fi
305
306 elog
307 elog "If you have configuration files in /etc/texmf to merge,"
308 elog "please update them and run /usr/sbin/texmf-update."
309 elog
310 }
311
312
313
314 --
315 gentoo-commits@g.o mailing list