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