Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 315757
Collapse All | Expand All

(-)file_not_specified_in_diff (-14 / +16 lines)
Line  Link Here
0
-- yum-3.2.27.ebuild
0
++ yum-3.2.27.ebuild
Lines 2-10 Link Here
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/sys-apps/yum/yum-3.2.27.ebuild,v 1.1 2010/03/19 13:20:39 deathwing00 Exp $
3
# $Header: /var/cvsroot/gentoo-x86/sys-apps/yum/yum-3.2.27.ebuild,v 1.1 2010/03/19 13:20:39 deathwing00 Exp $
4
4
5
EAPI=2
5
EAPI="3"
6
NEED_PYTHON=1
6
PYTHON_DEPEND="2"
7
inherit python eutils multilib
7
PYTHON_USE_WITH="sqlite"
8
9
inherit eutils python
8
10
9
DESCRIPTION="automatic updater and package installer/remover for rpm systems"
11
DESCRIPTION="automatic updater and package installer/remover for rpm systems"
10
HOMEPAGE="http://yum.baseurl.org/"
12
HOMEPAGE="http://yum.baseurl.org/"
Lines 15-41 Link Here
15
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
17
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
16
IUSE=""
18
IUSE=""
17
19
18
RDEPEND=">=dev-lang/python-2.5[sqlite]
20
RDEPEND="app-arch/rpm[python]
19
	app-arch/rpm[python]
20
	dev-python/sqlitecachec
21
	dev-python/sqlitecachec
21
	dev-python/celementtree
22
	dev-python/celementtree
22
	dev-libs/libxml2[python]
23
	dev-libs/libxml2[python]
23
	dev-python/urlgrabber"
24
	dev-python/urlgrabber"
24
25
26
pkg_setup() {
27
	python_set_active_version 2
28
	python_pkg_setup
29
}
30
25
src_install() {
31
src_install() {
26
	python_version
27
	emake install DESTDIR="${D}" || die
32
	emake install DESTDIR="${D}" || die
28
	rm -r "${D}"/etc/rc.d || die
33
	rm -r "${ED}etc/rc.d" || die
29
	find "${D}" -name '*.py[co]' -print0 | xargs -0 rm -f
34
	find "${ED}" -name '*.py[co]' -print0 | xargs -0 rm -f
30
}
35
}
31
36
32
pkg_postinst() {
37
pkg_postinst() {
33
	python_version
38
	python_mod_optimize yum rpmUtils /usr/share/yum-cli
34
	python_mod_optimize \
35
		/usr/$(get_libdir)/python${PYVER}/site-packages/{yum,rpmUtils} \
36
		/usr/share/yum-cli
37
}
39
}
38
40
39
pkg_postrm() {
41
pkg_postrm() {
40
	python_mod_cleanup /usr/$(get_libdir)/python*/site-packages/{yum,rpmUtils} /usr/share/yum-cli
42
	python_mod_cleanup yum rpmUtils /usr/share/yum-cli
41
}
43
}

Return to bug 315757