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 (-51 / +61 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
# $Header:$
4
4
5
inherit eutils flag-o-matic toolchain-funcs versionator virtualx
5
inherit eutils flag-o-matic toolchain-funcs versionator virtualx
6
6
Lines 11-22 Link Here
11
SLOT="0"
11
SLOT="0"
12
LICENSE="GPL-2"
12
LICENSE="GPL-2"
13
13
14
SRC_URI="http://dev.gentoo.org/~ehmsen/texlive/${P}-src.tar.bz2
14
SRC_URI="http://134.60.104.12/gentoo/${P}-src.tar.bz2
15
	http://dev.gentoo.org/~ehmsen/texlive/${P}-texmf-dist.tar.bz2
15
	http://134.60.104.12/gentoo/${P}-texmf-dist.tar.bz2
16
	http://dev.gentoo.org/~ehmsen/texlive/${P}-texmf.tar.bz2"
16
	http://134.60.104.12/gentoo/${P}-texmf.tar.bz2"
17
17
18
KEYWORDS="~amd64 ~x86"
18
KEYWORDS="~amd64 ~x86"
19
IUSE="X doc tk Xaw3d lesstif motif neXt"
19
IUSE="X doc tk Xaw3d lesstif motif neXt png zlib"
20
20
21
# This is less than an ideal name
21
# This is less than an ideal name
22
PROVIDE="virtual/tetex"
22
PROVIDE="virtual/tetex"
Lines 81-93 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
84
	epatch "${FILESDIR}/${PV}/${P}-gentoo-texmf.patch" || die
85
	epatch "${FILESDIR}/${PV}/${P}-mptest.patch" || die
85
	epatch "${FILESDIR}/${PV}/${P}-mpware-libtool.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
91
86
92
	sed -i -e "/mktexlsr/,+3d" -e "s/\(updmap-sys\)/\1 --nohash/" \
87
	sed -i -e "/mktexlsr/,+3d" -e "s/\(updmap-sys\)/\1 --nohash/" \
93
		Makefile.in || die "sed"
88
		Makefile.in || die "sed"
Lines 121-136 Link Here
121
		my_conf="${my_conf} --without-xdvik --without-oxdvik"
116
		my_conf="${my_conf} --without-xdvik --without-oxdvik"
122
	fi
117
	fi
123
118
119
	if use zlib ; then
120
		my_conf="${my_conf} --with-system-zlib"
121
	fi
122
123
	if use png ; then
124
		my_conf="${my_conf} --with-system-pnglib"
125
	fi
126
124
	econf --bindir=/usr/bin \
127
	econf --bindir=/usr/bin \
125
		--datadir=${S} \
128
		--datadir="${S}" \
126
		--with-system-wwwlib \
127
		--with-libwww-include=/usr/include/w3c-libwww \
128
		--with-system-ncurses \
129
		--with-system-ncurses \
129
		--with-system-pnglib \
130
		--with-system-freetype2 \
131
		--with-freetype2-include=/usr/include \
130
		--without-texinfo \
132
		--without-texinfo \
131
		--without-dialog \
133
		--without-dialog \
132
		--without-texi2html \
134
		--without-texi2html \
133
		--with-system-zlib \
134
		--disable-multiplatform \
135
		--disable-multiplatform \
135
		--with-epsfwin \
136
		--with-epsfwin \
136
		--with-mftalkwin \
137
		--with-mftalkwin \
Lines 139-158 Link Here
139
		--with-unitermwin \
140
		--with-unitermwin \
140
		--with-ps=gs \
141
		--with-ps=gs \
141
		--enable-ipc \
142
		--enable-ipc \
142
		--with-etex \
143
		--without-dvipng \
143
		--without-dvipng \
144
		--without-dvipdfm \
144
		--without-dvipdfm \
145
		--without-dvipdfmx \
145
		--without-dvipdfmx \
146
		--without-psutils \
147
		--without-t1utils \
146
		$(use_with X x) \
148
		$(use_with X x) \
147
		${my_conf} || die "econf"
149
		${my_conf} || die "econf"
148
150
149
	if use X && use ppc-macos ; then
151
	if use X && use ppc-macos ; then
150
		for f in $(find ${S} -name config.status) ; do
152
		for f in $(find "${S}" -name config.status) ; do
151
			sed -i -e "s:-ldl::g" $f
153
			sed -i -e "s:-ldl::g" $f
152
		done
154
		done
153
	fi
155
	fi
154
156
155
	emake -j1 CC="$(tc-getCC)" CXX="$(tc-getCXX)" texmf=${TEXMF_PATH:-/usr/share/texmf} || die "make"
157
	emake -j1 texmf=${TEXMF_PATH:-/usr/share/texmf} || die "make"
156
}
158
}
157
159
158
src_test() {
160
src_test() {
Lines 162-268 Link Here
162
164
163
src_install() {
165
src_install() {
164
	dodir /usr/share/
166
	dodir /usr/share/
165
	cp -R texmf ${D}/usr/share
167
	cp -R texmf "${D}/usr/share"
166
	cp -R texmf-dist ${D}/usr/share
168
	cp -R texmf-dist "${D}/usr/share"
167
169
168
	dodir ${TEXMF_PATH:-/usr/share/texmf}/web2c
170
	dodir ${TEXMF_PATH:-/usr/share/texmf}/web2c
169
	einstall bindir=${D}/usr/bin texmf=${D}${TEXMF_PATH:-/usr/share/texmf} || die "install"
171
	einstall bindir="${D}/usr/bin" texmf="${D}${TEXMF_PATH:-/usr/share/texmf}" || die "install"
170
172
171
	dosbin ${FILESDIR}/${PV}/texmf-update
173
	dosbin "${FILESDIR}/texmf-update"
172
174
173
	docinto texk
175
	docinto texk
174
	cd ${S}/TeX/texk
176
	cd "${S}/texk"
175
	dodoc ChangeLog README
177
	dodoc ChangeLog README
176
178
177
	docinto kpathesa
179
	docinto kpathesa
178
	cd ${S}/TeX/texk/kpathsea
180
	cd "${S}/texk/kpathsea"
179
	dodoc BUGS ChangeLog NEWS PROJECTS README
181
	dodoc BUGS ChangeLog NEWS PROJECTS README
180
182
181
	docinto dviljk
183
	docinto dviljk
182
	cd ${S}/TeX/texk/dviljk
184
	cd "${S}/texk/dviljk"
183
	dodoc ChangeLog README NEWS
185
	dodoc ChangeLog README NEWS
184
186
185
	docinto dvipsk
187
	docinto dvipsk
186
	cd ${S}/TeX/texk/dvipsk
188
	cd "${S}/texk/dvipsk"
187
	dodoc ChangeLog README
189
	dodoc ChangeLog README
188
190
189
	docinto makeindexk
191
	docinto makeindexk
190
	cd ${S}/TeX/texk/makeindexk
192
	cd "${S}/texk/makeindexk"
191
	dodoc ChangeLog NEWS NOTES README
193
	dodoc ChangeLog NEWS NOTES README
192
194
193
	docinto ps2pkm
195
	docinto ps2pkm
194
	cd ${S}/TeX/texk/ps2pkm
196
	cd "${S}/texk/ps2pkm"
195
	dodoc ChangeLog README README.14m
197
	dodoc ChangeLog README README.14m
196
198
197
	docinto web2c
199
	docinto web2c
198
	cd ${S}/TeX/texk/web2c
200
	cd "${S}/texk/web2c"
199
	dodoc ChangeLog NEWS PROJECTS README
201
	dodoc ChangeLog NEWS PROJECTS README
200
202
201
	if use doc ; then
203
	if use doc ; then
202
		dodir /usr/share/doc/${PF}
204
		dodir /usr/share/doc/${PF}/texmf
203
		mv ${D}/usr/share/texmf/doc/* \
205
		mv ${D}/usr/share/texmf/doc/* \
204
			${D}/usr/share/doc/${PF} \
206
			"${D}/usr/share/doc/${PF}/texmf" \
205
			|| die "mv doc failed."
207
			|| die "mv texmf doc failed."
206
		cd ${D}/usr/share/texmf
208
		cd "${D}/usr/share/texmf"
207
		rmdir doc
209
		rmdir doc
208
		ln -s ../doc/${PF} doc || die "ln -s doc failed."
210
		ln -s ../doc/${PF}/texmf doc || die "ln -s doc failed."
211
		cd -
212
		dodir /usr/share/doc/${PF}/texmf-dist
213
		mv ${D}/usr/share/texmf-dist/doc/* \
214
			"${D}/usr/share/doc/${PF}/texmf-dist" \
215
			|| die "mv texmf-dist doc failed."
216
		cd "${D}/usr/share/texmf-dist"
217
		rmdir doc
218
		ln -s ../doc/${PF}/texmf-dist doc || die "ln -s doc failed."
209
		cd -
219
		cd -
210
	else
220
	else
211
		rm -rf ${D}/usr/share/texmf/doc
221
		rm -rf "${D}/usr/share/texmf/doc"
222
		rm -rf "${D}/usr/share/texmf-dist/doc"
212
	fi
223
	fi
213
224
214
	dodir /var/cache/fonts
225
	dodir /var/cache/fonts
215
226
216
	# root group name doesn't exist on Mac OS X
227
	# root group name doesn't exist on Mac OS X
217
	chown -R 0:0 ${D}/usr/share/texmf
228
	chown -R 0:0 "${D}/usr/share/texmf"
218
229
219
	dodir /etc/env.d
230
	dodir /etc/env.d
220
	echo 'CONFIG_PROTECT_MASK="/etc/texmf/web2c"' > ${D}/etc/env.d/98tetex
231
	echo 'CONFIG_PROTECT_MASK="/etc/texmf/web2c"' > "${D}/etc/env.d/98texlive"
221
	# populate /etc/texmf
232
	# populate /etc/texmf
222
	keepdir /etc/texmf/web2c
233
	keepdir /etc/texmf/web2c
223
	# _not_ ${TEXMF_PATH}
234
	# _not_ ${TEXMF_PATH}
224
	cd ${D}/usr/share/texmf
235
	cd "${D}/usr/share/texmf"
225
	for d in $(find . -name config -type d | sed -e "s:\./::g") ; do
236
	for d in $(find . -name config -type d | sed -e "s:\./::g") ; do
226
		dodir /etc/texmf/${d}
237
		dodir /etc/texmf/${d}
227
		for f in $(find ${D}usr/share/texmf/$d -maxdepth 1 -mindepth 1); do
238
		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"
239
			mv $f "${D}/etc/texmf/$d" || die "mv $f failed"
229
			dosym /etc/texmf/$d/$(basename $f) /usr/share/texmf/$d/$(basename $f)
240
			dosym /etc/texmf/$d/$(basename $f) /usr/share/texmf/$d/$(basename $f)
230
		done
241
		done
231
	done
242
	done
232
	cd -
243
	cd -
233
	cd ${D}/${TEXMF_PATH}
244
	cd "${D}/${TEXMF_PATH}"
234
	for f in $(find . -name '*.cnf' -o -name '*.cfg' -type f | sed -e "s:\./::g") ; do
245
	for f in $(find . -name '*.cnf' -o -name '*.cfg' -type f | sed -e "s:\./::g") ; do
235
		if [ "${f/config/}" != "${f}" ] ; then
246
		if [ "${f/config/}" != "${f}" ] ; then
236
			continue
247
			continue
237
		fi
248
		fi
238
		dodir /etc/texmf/$(dirname $f)
249
		dodir /etc/texmf/$(dirname $f)
239
		mv ${D}/${TEXMF_PATH}/$f ${D}/etc/texmf/$(dirname $f) || die "mv $f failed."
250
		mv "${D}/${TEXMF_PATH}/$f" "${D}/etc/texmf/$(dirname $f)" || die "mv $f failed."
240
		dosym /etc/texmf/$f ${TEXMF_PATH}/$f
251
		dosym /etc/texmf/$f ${TEXMF_PATH}/$f
241
	done
252
	done
242
253
243
	# take care of updmap.cfg, fmtutil.cnf and texmf.cnf
254
	# take care of updmap.cfg, fmtutil.cnf and texmf.cnf
244
	dodir /etc/texmf/{updmap.d,fmtutil.d,texmf.d}
255
	dodir /etc/texmf/{updmap.d,fmtutil.d,texmf.d}
245
	dosym /etc/texmf/web2c/updmap.cfg ${TEXMF_PATH}/web2c/updmap.cfg
256
	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
257
	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
258
	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
259
	mv "${D}/etc/texmf/web2c/texmf.cnf" "${D}/etc/texmf/texmf.d/00texmf.cnf"
260
	rm -f "${D}/usr/share/texmf/web2c/texmf.*"
249
261
250
	# xdvi
262
	# xdvi
251
	if use X ; then
263
	if use X ; then
252
		dodir /etc/X11/app-defaults /etc/texmf/xdvi
264
		dodir /etc/X11/app-defaults /etc/texmf/xdvi
253
		mv ${D}${TEXMF_PATH}/xdvi/XDvi ${D}/etc/X11/app-defaults || die "mv XDvi failed"
265
		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
266
		dosym /etc/X11/app-defaults/XDvi ${TEXMF_PATH}/xdvi/XDvi
255
	fi
267
	fi
256
268
257
	doman ${S}/texk/web2c/pdftexdir/pdftosrc.1
258
259
	keepdir /usr/share/texmf-site
269
	keepdir /usr/share/texmf-site
260
270
261
	# the virtex symlink is not installed
271
	# the virtex symlink is not installed
262
	# The links has to be relative, since the targets
272
	# The links has to be relative, since the targets
263
	# is not present at this stage and MacOS doesn't
273
	# is not present at this stage and MacOS doesn't
264
	# like non-existing targets
274
	# like non-existing targets
265
	cd ${D}/usr/bin/
275
	cd "${D}/usr/bin/"
266
	ln -snf tex virtex
276
	ln -snf tex virtex
267
	ln -snf pdftex pdfvirtex
277
	ln -snf pdftex pdfvirtex
268
}
278
}

Return to bug 168177