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

Collapse All | Expand All

(-)/usr/portage/app-text/texlive/texlive-2005.ebuild (-49 / +49 lines)
Lines 1-6 Link Here
1
# Copyright 1999-2007 Gentoo Foundation
1
# Copyright 1999-2007 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/app-text/texlive/texlive-2005.ebuild,v 1.4 2007/01/28 06:10:10 genone Exp $
3
# TexLive-2007 ebuild by Fabian Wolf <fabian.wolf@informatik.uni-ulm.de>
4
#   based on texlive-2005.ebuild
4
5
5
inherit eutils flag-o-matic toolchain-funcs versionator virtualx
6
inherit eutils flag-o-matic toolchain-funcs versionator virtualx
6
7
Lines 11-27 Link Here
11
SLOT="0"
12
SLOT="0"
12
LICENSE="GPL-2"
13
LICENSE="GPL-2"
13
14
14
SRC_URI="http://dev.gentoo.org/~ehmsen/texlive/${P}-src.tar.bz2
15
SRC_URI="http://134.60.104.12/gentoo/${P}-src.tar.bz2
15
	http://dev.gentoo.org/~ehmsen/texlive/${P}-texmf-dist.tar.bz2
16
	http://134.60.104.12/gentoo/${P}-texmf-dist.tar.bz2
16
	http://dev.gentoo.org/~ehmsen/texlive/${P}-texmf.tar.bz2"
17
	http://134.60.104.12/gentoo/${P}-texmf.tar.bz2"
17
18
18
KEYWORDS="~amd64 ~x86"
19
KEYWORDS="~amd64 ~x86"
19
IUSE="X doc tk Xaw3d lesstif motif neXt"
20
IUSE="X doc tk Xaw3d lesstif motif neXt png zlib"
20
21
21
# This is less than an ideal name
22
# There's not yet a tex virtual - however: no virtual/tetex either
22
PROVIDE="virtual/tetex"
23
PROVIDE="virtual/tex"
23
24
24
# I hope to kick this very soon
25
BLOCKS="!dev-tex/memoir
25
BLOCKS="!dev-tex/memoir
26
	!dev-tex/lineno
26
	!dev-tex/lineno
27
	!dev-tex/SIunits
27
	!dev-tex/SIunits
Lines 81-92 Link Here
81
	unpack ${P}-texmf-dist.tar.bz2 || die "unpack texmf-dist"
81
	unpack ${P}-texmf-dist.tar.bz2 || die "unpack texmf-dist"
82
82
83
	epatch "${FILESDIR}/${PV}/${P}-use-system-libtool.patch" || die
83
	epatch "${FILESDIR}/${PV}/${P}-use-system-libtool.patch" || die
84
	epatch "${FILESDIR}/${PV}/${P}-amd64-xdvik-wp.patch" || die
85
	epatch "${FILESDIR}/${PV}/${P}-mptest.patch" || die
86
	epatch "${FILESDIR}/${PV}/${P}-fmtutil-in.patch" || die
87
	epatch "${FILESDIR}/${PV}/${P}-xpdf-vulnerabilities.patch" || die
88
	epatch "${FILESDIR}/${PV}/${P}-pdftosrc-install.patch" || die
89
	epatch "${FILESDIR}/${PV}/${P}-create-empty-files.patch" || die
90
	epatch "${FILESDIR}/${PV}/${P}-gentoo-texmf-site.patch" || die
84
	epatch "${FILESDIR}/${PV}/${P}-gentoo-texmf-site.patch" || die
91
85
92
	sed -i -e "/mktexlsr/,+3d" -e "s/\(updmap-sys\)/\1 --nohash/" \
86
	sed -i -e "/mktexlsr/,+3d" -e "s/\(updmap-sys\)/\1 --nohash/" \
Lines 121-136 Link Here
121
		my_conf="${my_conf} --without-xdvik --without-oxdvik"
115
		my_conf="${my_conf} --without-xdvik --without-oxdvik"
122
	fi
116
	fi
123
117
118
	if use zlib ; then
119
		my_conf="${my_conf} --with-system-zlib"
120
	fi
121
122
	if use png ; then
123
		my_conf="${my_conf} --with-system-pnglib"
124
	fi
125
124
	econf --bindir=/usr/bin \
126
	econf --bindir=/usr/bin \
125
		--datadir=${S} \
127
		--datadir="${S}" \
126
		--with-system-wwwlib \
127
		--with-libwww-include=/usr/include/w3c-libwww \
128
		--with-system-ncurses \
128
		--with-system-ncurses \
129
		--with-system-pnglib \
129
		--with-system-freetype2 \
130
		--with-freetype2-include=/usr/include \
130
		--without-texinfo \
131
		--without-texinfo \
131
		--without-dialog \
132
		--without-dialog \
132
		--without-texi2html \
133
		--without-texi2html \
133
		--with-system-zlib \
134
		--disable-multiplatform \
134
		--disable-multiplatform \
135
		--with-epsfwin \
135
		--with-epsfwin \
136
		--with-mftalkwin \
136
		--with-mftalkwin \
Lines 147-158 Link Here
147
		${my_conf} || die "econf"
147
		${my_conf} || die "econf"
148
148
149
	if use X && use ppc-macos ; then
149
	if use X && use ppc-macos ; then
150
		for f in $(find ${S} -name config.status) ; do
150
		for f in $(find "${S}" -name config.status) ; do
151
			sed -i -e "s:-ldl::g" $f
151
			sed -i -e "s:-ldl::g" $f
152
		done
152
		done
153
	fi
153
	fi
154
154
155
	emake -j1 CC="$(tc-getCC)" CXX="$(tc-getCXX)" texmf=${TEXMF_PATH:-/usr/share/texmf} || die "make"
155
	emake -j1 texmf=${TEXMF_PATH:-/usr/share/texmf} || die "make"
156
}
156
}
157
157
158
src_test() {
158
src_test() {
Lines 162-260 Link Here
162
162
163
src_install() {
163
src_install() {
164
	dodir /usr/share/
164
	dodir /usr/share/
165
	cp -R texmf ${D}/usr/share
165
	cp -R texmf "${D}/usr/share"
166
	cp -R texmf-dist ${D}/usr/share
166
	cp -R texmf-dist "${D}/usr/share"
167
167
168
	dodir ${TEXMF_PATH:-/usr/share/texmf}/web2c
168
	dodir ${TEXMF_PATH:-/usr/share/texmf}/web2c
169
	einstall bindir=${D}/usr/bin texmf=${D}${TEXMF_PATH:-/usr/share/texmf} || die "install"
169
	einstall bindir="${D}/usr/bin" texmf="${D}${TEXMF_PATH:-/usr/share/texmf}" || die "install"
170
170
171
	dosbin ${FILESDIR}/${PV}/texmf-update
171
	dosbin "${FILESDIR}/texmf-update"
172
172
173
	docinto texk
173
	docinto texk
174
	cd ${S}/TeX/texk
174
	cd "${S}/texk"
175
	dodoc ChangeLog README
175
	dodoc ChangeLog README
176
176
177
	docinto kpathesa
177
	docinto kpathesa
178
	cd ${S}/TeX/texk/kpathsea
178
	cd "${S}/texk/kpathsea"
179
	dodoc BUGS ChangeLog NEWS PROJECTS README
179
	dodoc BUGS ChangeLog NEWS PROJECTS README
180
180
181
	docinto dviljk
181
	docinto dviljk
182
	cd ${S}/TeX/texk/dviljk
182
	cd "${S}/texk/dviljk"
183
	dodoc ChangeLog README NEWS
183
	dodoc ChangeLog README NEWS
184
184
185
	docinto dvipsk
185
	docinto dvipsk
186
	cd ${S}/TeX/texk/dvipsk
186
	cd "${S}/texk/dvipsk"
187
	dodoc ChangeLog README
187
	dodoc ChangeLog README
188
188
189
	docinto makeindexk
189
	docinto makeindexk
190
	cd ${S}/TeX/texk/makeindexk
190
	cd "${S}/texk/makeindexk"
191
	dodoc ChangeLog NEWS NOTES README
191
	dodoc ChangeLog NEWS NOTES README
192
192
193
	docinto ps2pkm
193
	docinto ps2pkm
194
	cd ${S}/TeX/texk/ps2pkm
194
	cd "${S}/texk/ps2pkm"
195
	dodoc ChangeLog README README.14m
195
	dodoc ChangeLog README README.14m
196
196
197
	docinto web2c
197
	docinto web2c
198
	cd ${S}/TeX/texk/web2c
198
	cd "${S}/texk/web2c"
199
	dodoc ChangeLog NEWS PROJECTS README
199
	dodoc ChangeLog NEWS PROJECTS README
200
200
201
	if use doc ; then
201
	if use doc ; then
202
		dodir /usr/share/doc/${PF}
202
		dodir /usr/share/doc/${PF}
203
		mv ${D}/usr/share/texmf/doc/* \
203
		mv "${D}/usr/share/texmf/doc/*" \
204
			${D}/usr/share/doc/${PF} \
204
			"${D}/usr/share/doc/${PF}" \
205
			|| die "mv doc failed."
205
			|| die "mv doc failed."
206
		cd ${D}/usr/share/texmf
206
		cd "${D}/usr/share/texmf"
207
		rmdir doc
207
		rmdir doc
208
		ln -s ../doc/${PF} doc || die "ln -s doc failed."
208
		ln -s ../doc/${PF} doc || die "ln -s doc failed."
209
		cd -
209
		cd -
210
	else
210
	else
211
		rm -rf ${D}/usr/share/texmf/doc
211
		rm -rf "${D}/usr/share/texmf/doc"
212
	fi
212
	fi
213
213
214
	dodir /var/cache/fonts
214
	dodir /var/cache/fonts
215
215
216
	# root group name doesn't exist on Mac OS X
216
	# root group name doesn't exist on Mac OS X
217
	chown -R 0:0 ${D}/usr/share/texmf
217
	chown -R 0:0 "${D}/usr/share/texmf"
218
218
219
	dodir /etc/env.d
219
	dodir /etc/env.d
220
	echo 'CONFIG_PROTECT_MASK="/etc/texmf/web2c"' > ${D}/etc/env.d/98tetex
220
	echo 'CONFIG_PROTECT_MASK="/etc/texmf/web2c"' > "${D}/etc/env.d/98tetex"
221
	# populate /etc/texmf
221
	# populate /etc/texmf
222
	keepdir /etc/texmf/web2c
222
	keepdir /etc/texmf/web2c
223
	# _not_ ${TEXMF_PATH}
223
	# _not_ ${TEXMF_PATH}
224
	cd ${D}/usr/share/texmf
224
	cd "${D}/usr/share/texmf"
225
	for d in $(find . -name config -type d | sed -e "s:\./::g") ; do
225
	for d in $(find . -name config -type d | sed -e "s:\./::g") ; do
226
		dodir /etc/texmf/${d}
226
		dodir /etc/texmf/${d}
227
		for f in $(find ${D}usr/share/texmf/$d -maxdepth 1 -mindepth 1); do
227
		for f in $(find "${D}usr/share/texmf/$d" -maxdepth 1 -mindepth 1); do
228
			mv $f ${D}/etc/texmf/$d || die "mv $f failed"
228
			mv $f "${D}/etc/texmf/$d" || die "mv $f failed"
229
			dosym /etc/texmf/$d/$(basename $f) /usr/share/texmf/$d/$(basename $f)
229
			dosym /etc/texmf/$d/$(basename $f) /usr/share/texmf/$d/$(basename $f)
230
		done
230
		done
231
	done
231
	done
232
	cd -
232
	cd -
233
	cd ${D}/${TEXMF_PATH}
233
	cd "${D}/${TEXMF_PATH}"
234
	for f in $(find . -name '*.cnf' -o -name '*.cfg' -type f | sed -e "s:\./::g") ; do
234
	for f in $(find . -name '*.cnf' -o -name '*.cfg' -type f | sed -e "s:\./::g") ; do
235
		if [ "${f/config/}" != "${f}" ] ; then
235
		if [ "${f/config/}" != "${f}" ] ; then
236
			continue
236
			continue
237
		fi
237
		fi
238
		dodir /etc/texmf/$(dirname $f)
238
		dodir /etc/texmf/$(dirname $f)
239
		mv ${D}/${TEXMF_PATH}/$f ${D}/etc/texmf/$(dirname $f) || die "mv $f failed."
239
		mv "${D}/${TEXMF_PATH}/$f" "${D}/etc/texmf/$(dirname $f)" || die "mv $f failed."
240
		dosym /etc/texmf/$f ${TEXMF_PATH}/$f
240
		dosym /etc/texmf/$f ${TEXMF_PATH}/$f
241
	done
241
	done
242
242
243
	# take care of updmap.cfg, fmtutil.cnf and texmf.cnf
243
	# take care of updmap.cfg, fmtutil.cnf and texmf.cnf
244
	dodir /etc/texmf/{updmap.d,fmtutil.d,texmf.d}
244
	dodir /etc/texmf/{updmap.d,fmtutil.d,texmf.d}
245
	dosym /etc/texmf/web2c/updmap.cfg ${TEXMF_PATH}/web2c/updmap.cfg
245
	dosym /etc/texmf/web2c/updmap.cfg ${TEXMF_PATH}/web2c/updmap.cfg
246
	mv ${D}/usr/share/texmf/web2c/updmap.cfg ${D}/etc/texmf/updmap.d/00updmap.cfg
246
	mv "${D}/usr/share/texmf/web2c/updmap.cfg" "${D}/etc/texmf/updmap.d/00updmap.cfg"
247
	mv ${D}/etc/texmf/web2c/fmtutil.cnf ${D}/etc/texmf/fmtutil.d/00fmtutil.cnf
247
	mv "${D}/etc/texmf/web2c/fmtutil.cnf" "${D}/etc/texmf/fmtutil.d/00fmtutil.cnf"
248
	mv ${D}/etc/texmf/web2c/texmf.cnf ${D}/etc/texmf/texmf.d/00texmf.cnf
248
	mv "${D}/etc/texmf/web2c/texmf.cnf" "${D}/etc/texmf/texmf.d/00texmf.cnf"
249
249
250
	# xdvi
250
	# xdvi
251
	if use X ; then
251
	if use X ; then
252
		dodir /etc/X11/app-defaults /etc/texmf/xdvi
252
		dodir /etc/X11/app-defaults /etc/texmf/xdvi
253
		mv ${D}${TEXMF_PATH}/xdvi/XDvi ${D}/etc/X11/app-defaults || die "mv XDvi failed"
253
		mv "${D}${TEXMF_PATH}/xdvi/XDvi" "${D}/etc/X11/app-defaults" || die "mv XDvi failed"
254
		dosym /etc/X11/app-defaults/XDvi ${TEXMF_PATH}/xdvi/XDvi
254
		dosym /etc/X11/app-defaults/XDvi ${TEXMF_PATH}/xdvi/XDvi
255
	fi
255
	fi
256
256
257
	doman ${S}/texk/web2c/pdftexdir/pdftosrc.1
257
	doman "${S}/texk/web2c/pdftexdir/pdftosrc.1"
258
258
259
	keepdir /usr/share/texmf-site
259
	keepdir /usr/share/texmf-site
260
260
Lines 262-268 Link Here
262
	# The links has to be relative, since the targets
262
	# The links has to be relative, since the targets
263
	# is not present at this stage and MacOS doesn't
263
	# is not present at this stage and MacOS doesn't
264
	# like non-existing targets
264
	# like non-existing targets
265
	cd ${D}/usr/bin/
265
	cd "${D}/usr/bin/"
266
	ln -snf tex virtex
266
	ln -snf tex virtex
267
	ln -snf pdftex pdfvirtex
267
	ln -snf pdftex pdfvirtex
268
}
268
}

Return to bug 168177