Line
Link Here
|
0 |
-- crosstex-0.6.ebuild |
0 |
++ crosstex-0.6.ebuild |
Lines 1-8
Link Here
|
1 |
# Copyright 1999-2008 Gentoo Foundation |
1 |
# Copyright 1999-2010 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/dev-tex/crosstex/crosstex-0.6.ebuild,v 1.1 2008/08/07 22:41:27 aballier Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/dev-tex/crosstex/crosstex-0.6.ebuild,v 1.1 2008/08/07 22:41:27 aballier Exp $ |
4 |
|
4 |
|
5 |
inherit python |
5 |
EAPI="3" |
|
|
6 |
PYTHON_DEPEND="2" |
7 |
|
8 |
inherit multilib python |
6 |
|
9 |
|
7 |
DESCRIPTION="CrossTeX - object oriented BibTeX replacement" |
10 |
DESCRIPTION="CrossTeX - object oriented BibTeX replacement" |
8 |
HOMEPAGE="http://www.cs.cornell.edu/people/egs/crosstex/" |
11 |
HOMEPAGE="http://www.cs.cornell.edu/people/egs/crosstex/" |
Lines 13-31
Link Here
|
13 |
KEYWORDS="~amd64 ~x86" |
16 |
KEYWORDS="~amd64 ~x86" |
14 |
IUSE="examples" |
17 |
IUSE="examples" |
15 |
|
18 |
|
16 |
RDEPEND="dev-lang/python |
19 |
RDEPEND="dev-python/ply" |
17 |
dev-python/ply" |
|
|
18 |
DEPEND="${RDEPEND}" |
20 |
DEPEND="${RDEPEND}" |
19 |
|
21 |
|
20 |
src_install() { |
22 |
pkg_setup() { |
21 |
python_version |
23 |
python_set_active_version 2 |
|
|
24 |
python_pkg_setup |
25 |
} |
22 |
|
26 |
|
23 |
cd "${S}" |
27 |
src_install() { |
24 |
emake \ |
28 |
emake \ |
25 |
ROOT="${D}" \ |
29 |
ROOT="${D}" \ |
26 |
PREFIX="/usr" \ |
30 |
PREFIX="/usr" \ |
27 |
LIBDIR="/$(get_libdir)/python${PYVER}/site-packages" \ |
31 |
LIBDIR="/$(get_libdir)/python$(python_get_version)/site-packages" \ |
28 |
install || die "make install failed" |
32 |
install || die "emake install failed" |
|
|
33 |
|
34 |
python_convert_shebangs -r $(python_get_version) "${D}" |
35 |
python_need_rebuild |
29 |
|
36 |
|
30 |
insinto /usr/share/doc/${PF} |
37 |
insinto /usr/share/doc/${PF} |
31 |
doins "${PN}".pdf |
38 |
doins "${PN}".pdf |
Lines 36-45
Link Here
|
36 |
} |
43 |
} |
37 |
|
44 |
|
38 |
pkg_postinst() { |
45 |
pkg_postinst() { |
39 |
python_version |
46 |
python_mod_optimize ${PN} |
40 |
python_mod_optimize /usr/$(get_libdir)/python${PYVER}/site-packages/${PN} |
|
|
41 |
} |
47 |
} |
42 |
|
48 |
|
43 |
pkg_postrm() { |
49 |
pkg_postrm() { |
44 |
python_mod_cleanup |
50 |
python_mod_cleanup ${PN} |
45 |
} |
51 |
} |