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