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-r1.ebuild texlive-core-2007.ebuild
Date: Sun, 21 Oct 2007 11:42:51
Message-Id: E1IjZ2I-0006qr-Mt@stork.gentoo.org
1 aballier 07/10/21 11:32:02
2
3 Modified: ChangeLog
4 Added: texlive-core-2007-r1.ebuild
5 Removed: texlive-core-2007.ebuild
6 Log:
7 push changes
8 (Portage version: 2.1.3.15)
9
10 Revision Changes Path
11 1.9 app-text/texlive-core/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/texlive-core/ChangeLog?rev=1.9&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/texlive-core/ChangeLog?rev=1.9&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/texlive-core/ChangeLog?r1=1.8&r2=1.9
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-text/texlive-core/ChangeLog,v
20 retrieving revision 1.8
21 retrieving revision 1.9
22 diff -u -r1.8 -r1.9
23 --- ChangeLog 21 Oct 2007 10:52:38 -0000 1.8
24 +++ ChangeLog 21 Oct 2007 11:32:02 -0000 1.9
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.8 2007/10/21 10:52:38 aballier Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-text/texlive-core/ChangeLog,v 1.9 2007/10/21 11:32:02 aballier Exp $
30 +
31 +*texlive-core-2007-r1 (21 Oct 2007)
32 +
33 + 21 Oct 2007; Alexis Ballier <aballier@g.o>
34 + -texlive-core-2007.ebuild, +texlive-core-2007-r1.ebuild:
35 + push changes
36
37 21 Oct 2007; Alexis Ballier <aballier@g.o>
38 texlive-core-2007.ebuild:
39
40
41
42 1.1 app-text/texlive-core/texlive-core-2007-r1.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/texlive-core/texlive-core-2007-r1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/texlive-core/texlive-core-2007-r1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: texlive-core-2007-r1.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-r1.ebuild,v 1.1 2007/10/21 11:32:02 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
72 for i in ${TEXLIVE_CORE_INCLUDED_TEXMF}; do
73 SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.zip"
74 done
75
76 KEYWORDS=""
77 IUSE="X doc"
78
79 MODULAR_X_DEPEND="X? (
80 x11-libs/libXmu
81 x11-libs/libXp
82 x11-libs/libXpm
83 x11-libs/libICE
84 x11-libs/libSM
85 x11-libs/libXaw
86 x11-libs/libXfont
87 )"
88
89 DEPEND="${MODULAR_X_DEPEND}
90 !app-text/ptex
91 !app-text/cstetex
92 !app-text/tetex
93 !<app-text/texlive-2007
94 !app-text/xetex
95 !dev-tex/xmltex
96 !dev-tex/vntex
97 !dev-tex/tex4ht
98 sys-apps/ed
99 sys-libs/zlib
100 >=media-libs/libpng-1.2.1
101 app-arch/unzip
102 =media-libs/freetype-2*
103 media-libs/fontconfig"
104
105 RDEPEND="${DEPEND}
106 dev-lang/ruby"
107
108 S="${WORKDIR}"
109
110 src_unpack() {
111 unpack ${A}
112 cd "${S}"
113
114 epatch "${FILESDIR}/${PV}/${P}-mpware.patch"
115 epatch "${FILESDIR}/${PV}/${P}-libteckit-asneeded.patch"
116
117 # it is also affected by bug 170861
118 epatch "${FILESDIR}/${PV}/tetex-3.0-CVE-2007-0650.patch"
119
120 # Bug #188172 and bug #185225
121 epatch "${FILESDIR}/${PV}/tetex-3.0_p1-xpdf-CVE-2007-3387.patch"
122
123 # Do not require exec stacks for asm generated by icu genccode program
124 # it would be better to use system icu... but it doesn't seem that well
125 # supported
126 epatch "${FILESDIR}/${PV}/${P}-icu-xetex-execstacks.patch"
127
128 sed -i -e "/mktexlsr/,+3d" -e "s/\(updmap-sys\)/\1 --nohash/" \
129 Makefile.in || die "sed failed"
130
131 elibtoolize
132
133 cd libs/teckit
134 eautoreconf
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-detex \
172 --without-ttf2pk \
173 --without-xdvik --without-oxdvik \
174 --enable-shared \
175 $(use_with X x) \
176 ${my_conf} || die "econf failed"
177
178 cd "${S}/libs/icu-xetex"
179 emake -j1 texmf=${TEXMF_PATH:-/usr/share/texmf} || die "emake of icu-xetex failed"
180 cd "${S}"
181 emake texmf=${TEXMF_PATH:-/usr/share/texmf} || die "emake failed"
182
183 # Mimic updmap --syncwithtrees to enable only fonts installed
184 # Code copied from updmap script
185 for i in `egrep '^(Mixed)?Map' "texmf/web2c/updmap.cfg" | sed 's@.* @@'`; do
186 texlive-common_is_file_present_in_texmf "$i" || echo "$i"
187 done > "${T}/updmap_update"
188 {
189 sed 's@/@\\/@g; s@^@/^MixedMap[ ]*@; s@$@$/s/^/#! /@' <"${T}/updmap_update"
190 sed 's@/@\\/@g; s@^@/^Map[ ]*@; s@$@$/s/^/#! /@' <"${T}/updmap_update"
191 } > "${T}/updmap_update2"
192 sed -f "${T}/updmap_update2" "texmf/web2c/updmap.cfg" > "${T}/updmap_update3"\
193 && cat "${T}/updmap_update3" > "texmf/web2c/updmap.cfg"
194 }
195
196 src_test() {
197 ewarn "Due to modular layout of texlive ebuilds,"
198 ewarn "It would not make much sense to use tests into the ebuild"
199 ewarn "And tests would fail anyway"
200 ewarn "Alternatively you can try to compile any tex file"
201 ewarn "Tex warnings should be considered as errors and reported"
202 ewarn "You can also run fmtutil-sys --all and check for errors/warnings there"
203 }
204
205 src_install() {
206 insinto /usr/share
207 doins -r texmf texmf-dist
208
209 dodir ${TEXMF_PATH:-/usr/share/texmf}/web2c
210 einstall bindir="${D}/usr/bin" texmf="${D}${TEXMF_PATH:-/usr/share/texmf}" || die "einstall failed"
211
212 dosbin "${FILESDIR}/texmf-update"
213
214 docinto texk
215 cd "${S}/texk"
216 dodoc ChangeLog README
217
218 docinto kpathesa
219 cd "${S}/texk/kpathsea"
220 dodoc BUGS ChangeLog NEWS PROJECTS README
221
222 docinto dviljk
223 cd "${S}/texk/dviljk"
224 dodoc ChangeLog README NEWS
225
226 docinto dvipsk
227 cd "${S}/texk/dvipsk"
228 dodoc ChangeLog README
229
230 docinto makeindexk
231 cd "${S}/texk/makeindexk"
232 dodoc ChangeLog NEWS NOTES README
233
234 docinto ps2pkm
235 cd "${S}/texk/ps2pkm"
236 dodoc ChangeLog README README.14m
237
238 docinto web2c
239 cd "${S}/texk/web2c"
240 dodoc ChangeLog NEWS PROJECTS README
241
242 use doc || rm -rf "${D}/usr/share/texmf/doc"
243 use doc || rm -rf "${D}/usr/share/texmf-dist/doc"
244
245 dodir /var/cache/fonts
246
247 dodir /etc/env.d
248 echo 'CONFIG_PROTECT_MASK="/etc/texmf/web2c"' > "${D}/etc/env.d/98texlive"
249 # populate /etc/texmf
250 keepdir /etc/texmf/web2c
251
252 # take care of updmap.cfg, fmtutil.cnf and texmf.cnf
253 dodir /etc/texmf/{updmap.d,fmtutil.d,texmf.d}
254
255 # Remove fmtutil.cnf, it will be regenerated from /etc/texmf/fmtutil.d files
256 # by texmf-update
257 rm -f "${D}${TEXMF_PATH}/web2c/fmtutil.cnf"
258
259 # Remove default texmf.cnf to ship our own, greatly based on texlive dvd's
260 # texmf.cnf
261 # It will also be generated from /etc/texmf/texmf.d files by texmf-update
262 rm -f "${D}${TEXMF_PATH}/web2c/texmf.cnf"
263
264 insinto /etc/texmf/texmf.d
265 doins "${FILESDIR}/${PV}/texmf.d/"{00header,05searchpaths,10standardpaths,15options,20sizes}.cnf
266
267 mv "${D}${TEXMF_PATH}/web2c/updmap.cfg" "${D}/etc/texmf/updmap.d/00updmap.cfg" || die "moving updmap.cfg failed"
268
269 # Create symlinks from format to engines
270 # This will avoid having to call texlinks in texmf-update
271 cd "${S}"
272 for i in texmf/fmtutil/format*.cnf; do
273 [ -f "${i}" ] && etexlinks "${i}"
274 done
275
276 texlive-common_handle_config_files
277
278 keepdir /usr/share/texmf-site
279
280 dosym /etc/texmf/web2c/fmtutil.cnf ${TEXMF_PATH}/web2c/fmtutil.cnf
281 dosym /etc/texmf/web2c/texmf.cnf ${TEXMF_PATH}/web2c/texmf.cnf
282 dosym /etc/texmf/web2c/updmap.cfg ${TEXMF_PATH}/web2c/updmap.cfg
283
284 # the virtex symlink is not installed
285 # The links has to be relative, since the targets
286 # is not present at this stage and MacOS doesn't
287 # like non-existing targets
288 dosym tex /usr/bin/virtex
289 dosym pdftex /usr/bin/pdfvirtex
290 }
291
292 pkg_postinst() {
293 if [ "$ROOT" = "/" ] ; then
294 /usr/sbin/texmf-update
295 fi
296
297 elog
298 elog "If you have configuration files in /etc/texmf to merge,"
299 elog "please update them and run /usr/sbin/texmf-update."
300 elog
301 }
302
303
304
305 --
306 gentoo-commits@g.o mailing list