Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 484140 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/portage/app-text/texlive-core/texlive-core-2013-r1.ebuild (-20 / +23 lines)
Lines 8-14 Link Here
8
PATCHLEVEL="41"
8
PATCHLEVEL="41"
9
TL_SOURCE_VERSION=20130530
9
TL_SOURCE_VERSION=20130530
10
10
11
inherit eutils flag-o-matic toolchain-funcs libtool texlive-common
11
inherit eutils flag-o-matic toolchain-funcs libtool multilib texlive-common
12
12
13
MY_PV=${PN%-core}-${TL_SOURCE_VERSION}-source
13
MY_PV=${PN%-core}-${TL_SOURCE_VERSION}-source
14
14
Lines 67-73 Link Here
67
done
67
done
68
SRC_URI="${SRC_URI} )"
68
SRC_URI="${SRC_URI} )"
69
69
70
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
70
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
71
IUSE="cjk X doc source tk xetex"
71
IUSE="cjk X doc source tk xetex"
72
72
73
TEXMF_PATH=/usr/share/texmf-dist
73
TEXMF_PATH=/usr/share/texmf-dist
Lines 165-181 Link Here
165
	tc-export CC CXX AR RANLIB
165
	tc-export CC CXX AR RANLIB
166
	ECONF_SOURCE="${B}" \
166
	ECONF_SOURCE="${B}" \
167
		econf -C \
167
		econf -C \
168
		--bindir=/usr/bin \
168
		--bindir="${EPREFIX}"/usr/bin \
169
		--datadir="${S}" \
169
		--datadir="${S}" \
170
		--with-system-freetype2 \
170
		--with-system-freetype2 \
171
		--with-freetype2-include=/usr/include \
171
		--with-freetype2-include="${EPREFIX}"/usr/include/freetype2 \
172
		--with-freetype2-libdir="${EPREFIX}"/usr/"$(get_libdir)" \
172
		--with-system-zlib \
173
		--with-system-zlib \
173
		--with-system-libpng \
174
		--with-system-libpng \
174
		--with-system-xpdf \
175
		--with-system-xpdf \
175
		--with-system-poppler \
176
		--with-system-poppler \
176
		--with-system-teckit \
177
		--with-system-teckit \
177
		--with-teckit-includes=/usr/include/teckit \
178
		--with-teckit-includes="${EPREFIX}"/usr/include/teckit \
178
		--with-system-kpathsea \
179
		--with-system-kpathsea \
180
		--with-kpathsea-includes="${EPREFIX}"/usr/include \
179
		--with-system-icu \
181
		--with-system-icu \
180
		--with-system-ptexenc \
182
		--with-system-ptexenc \
181
		--with-system-harfbuzz \
183
		--with-system-harfbuzz \
Lines 216-221 Link Here
216
		--disable-dvisvgm \
218
		--disable-dvisvgm \
217
		--disable-vlna \
219
		--disable-vlna \
218
		--disable-xdvipdfmx \
220
		--disable-xdvipdfmx \
221
		--disable-xdv2pdf \
219
		--enable-shared \
222
		--enable-shared \
220
		--disable-native-texlive-build \
223
		--disable-native-texlive-build \
221
		--disable-largefile \
224
		--disable-largefile \
Lines 232-238 Link Here
232
235
233
src_compile() {
236
src_compile() {
234
	tc-export CC CXX AR RANLIB
237
	tc-export CC CXX AR RANLIB
235
	emake SHELL=/bin/sh texmf=${TEXMF_PATH:-/usr/share/texmf-dist} || die "emake failed"
238
	emake SHELL="${EPREFIX}"/bin/sh texmf="${EPREFIX}"${TEXMF_PATH:-/usr/share/texmf-dist} || die "emake failed"
236
239
237
	cd "${B}"
240
	cd "${B}"
238
	# Mimic updmap --syncwithtrees to enable only fonts installed
241
	# Mimic updmap --syncwithtrees to enable only fonts installed
Lines 251-262 Link Here
251
254
252
src_install() {
255
src_install() {
253
	dodir ${TEXMF_PATH:-/usr/share/texmf-dist}/web2c
256
	dodir ${TEXMF_PATH:-/usr/share/texmf-dist}/web2c
254
	emake DESTDIR="${D}" texmf="${D}${TEXMF_PATH:-/usr/share/texmf-dist}" run_texlinks="true" run_mktexlsr="true" install || die "install failed"
257
	emake DESTDIR="${D}" texmf="${ED}${TEXMF_PATH:-/usr/share/texmf-dist}" run_texlinks="true" run_mktexlsr="true" install || die "install failed"
255
258
256
	cd "${B}"
259
	cd "${B}"
257
	dodir /usr/share # just in case
260
	dodir /usr/share # just in case
258
	cp -pR texmf-dist "${D}/usr/share/" || die "failed to install texmf trees"
261
	cp -pR texmf-dist "${ED}/usr/share/" || die "failed to install texmf trees"
259
	cp -pR "${WORKDIR}"/tlpkg "${D}/usr/share/" || die "failed to install tlpkg files"
262
	cp -pR "${WORKDIR}"/tlpkg "${ED}/usr/share/" || die "failed to install tlpkg files"
260
263
261
	# When X is disabled mf-nowin doesn't exist but some scripts expect it to
264
	# When X is disabled mf-nowin doesn't exist but some scripts expect it to
262
	# exist. Instead, it is called mf, so we symlink it to please everything.
265
	# exist. Instead, it is called mf, so we symlink it to please everything.
Lines 278-300 Link Here
278
	cd "${B}/texk/web2c"
281
	cd "${B}/texk/web2c"
279
	dodoc ChangeLog NEWS PROJECTS README || die "failed to install web2c docs"
282
	dodoc ChangeLog NEWS PROJECTS README || die "failed to install web2c docs"
280
283
281
	use doc || rm -rf "${D}/usr/share/texmf-dist/doc"
284
	use doc || rm -rf "${ED}/usr/share/texmf-dist/doc"
282
285
283
	dodir /etc/env.d
286
	dodir /etc/env.d
284
	echo 'CONFIG_PROTECT_MASK="/etc/texmf/web2c /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d"' > "${D}/etc/env.d/98texlive"
287
	echo 'CONFIG_PROTECT_MASK="/etc/texmf/web2c /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d"' > "${ED}/etc/env.d/98texlive"
285
	# populate /etc/texmf
288
	# populate /etc/texmf
286
	keepdir /etc/texmf/web2c
289
	keepdir /etc/texmf/web2c
287
290
288
	# take care of updmap.cfg and language.d files
291
	# take care of updmap.cfg and language.d files
289
	keepdir /etc/texmf/{updmap.d,language.dat.d,language.def.d,language.dat.lua.d}
292
	keepdir /etc/texmf/{updmap.d,language.dat.d,language.def.d,language.dat.lua.d}
290
293
291
	mv "${D}${TEXMF_PATH}/web2c/updmap.cfg"	"${D}/etc/texmf/updmap.d/00updmap.cfg" || die "moving updmap.cfg failed"
294
	mv "${ED}${TEXMF_PATH}/web2c/updmap.cfg" "${ED}/etc/texmf/updmap.d/00updmap.cfg" || die "moving updmap.cfg failed"
292
295
293
	# Remove fmtutil.cnf, it will be regenerated from /etc/texmf/fmtutil.d files
296
	# Remove fmtutil.cnf, it will be regenerated from /etc/texmf/fmtutil.d files
294
	# by texmf-update
297
	# by texmf-update
295
	rm -f "${D}${TEXMF_PATH}/web2c/fmtutil.cnf"
298
	rm -f "${ED}${TEXMF_PATH}/web2c/fmtutil.cnf"
296
	# Remove bundled and invalid updmap.cfg
299
	# Remove bundled and invalid updmap.cfg
297
	rm -f "${D}/usr/share/texmf-dist/web2c/updmap.cfg"
300
	rm -f "${ED}/usr/share/texmf-dist/web2c/updmap.cfg"
298
301
299
	texlive-common_handle_config_files
302
	texlive-common_handle_config_files
300
303
Lines 308-318 Link Here
308
	dosym pdftex /usr/bin/pdfvirtex
311
	dosym pdftex /usr/bin/pdfvirtex
309
312
310
	# Rename mpost to leave room for mplib
313
	# Rename mpost to leave room for mplib
311
	mv "${D}/usr/bin/mpost" "${D}/usr/bin/mpost-${P}"
314
	mv "${ED}/usr/bin/mpost" "${ED}/usr/bin/mpost-${P}"
312
	dosym "mpost-${P}" /usr/bin/mpost
315
	dosym "mpost-${P}" /usr/bin/mpost
313
316
314
	# Ditto for pdftex
317
	# Ditto for pdftex
315
	mv "${D}/usr/bin/pdftex" "${D}/usr/bin/pdftex-${P}"
318
	mv "${ED}/usr/bin/pdftex" "${ED}/usr/bin/pdftex-${P}"
316
	dosym "pdftex-${P}" /usr/bin/pdftex
319
	dosym "pdftex-${P}" /usr/bin/pdftex
317
}
320
}
318
321
Lines 321-327 Link Here
321
	if has_version =app-text/texlive-core-2007* ; then
324
	if has_version =app-text/texlive-core-2007* ; then
322
		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
325
		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
323
			for j in log fmt ; do
326
			for j in log fmt ; do
324
				local file="${ROOT}/var/lib/texmf/web2c/${i}.${j}"
327
				local file="${EROOT}/var/lib/texmf/web2c/${i}.${j}"
325
				if [ -f "${file}" ] ; then
328
				if [ -f "${file}" ] ; then
326
					elog "Removing stray ${file} from TeXLive 2007 install."
329
					elog "Removing stray ${file} from TeXLive 2007 install."
327
					rm -f "${file}"
330
					rm -f "${file}"
Lines 329-335 Link Here
329
			done
332
			done
330
		done
333
		done
331
		for j in base log ; do
334
		for j in base log ; do
332
			local file="${ROOT}/var/lib/texmf/web2c/metafont/mf.${j}"
335
			local file="${EROOT}/var/lib/texmf/web2c/metafont/mf.${j}"
333
			if [ -f "${file}" ] ; then
336
			if [ -f "${file}" ] ; then
334
				elog "Removing stray ${file} from TeXLive 2007 install."
337
				elog "Removing stray ${file} from TeXLive 2007 install."
335
				rm -f "${file}"
338
				rm -f "${file}"
Lines 342-349 Link Here
342
	etexmf-update
345
	etexmf-update
343
346
344
	elog
347
	elog
345
	elog "If you have configuration files in /etc/texmf to merge,"
348
	elog "If you have configuration files in ${EPREFIX}/etc/texmf to merge,"
346
	elog "please update them and run /usr/sbin/texmf-update."
349
	elog "please update them and run ${EPREFIX}/usr/sbin/texmf-update."
347
	elog
350
	elog
348
	ewarn "If you are migrating from an older TeX distribution"
351
	ewarn "If you are migrating from an older TeX distribution"
349
	ewarn "Please make sure you have read:"
352
	ewarn "Please make sure you have read:"

Return to bug 484140