blob: 34018246d210ce260df4c9b521ee7b288c01599e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/yum/yum-3.2.8.ebuild,v 1.7 2009/03/13 23:02:48 bangert Exp $
EAPI=2
NEED_PYTHON=1
inherit python eutils multilib
DESCRIPTION="automatic updater and package installer/remover for rpm systems"
HOMEPAGE="http://yum.baseurl.org/"
SRC_URI="http://yum.baseurl.org//download/${PV:0:3}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
IUSE=""
RDEPEND=">=dev-lang/python-2.5[sqlite]
app-arch/rpm[python]
dev-python/sqlitecachec
dev-python/celementtree
dev-libs/libxml2[python]
dev-python/urlgrabber"
src_install() {
python_version
emake install DESTDIR="${D}" || die
rm -r "${D}"/etc/rc.d || die
find "${D}" -name '*.py[co]' -print0 | xargs -0 rm -f
}
pkg_postinst() {
python_version
python_mod_optimize \
/usr/$(get_libdir)/python${PYVER}/site-packages/{yum,rpmUtils} \
/usr/share/yum-cli
}
pkg_postrm() {
python_mod_cleanup /usr/$(get_libdir)/python*/site-packages/{yum,rpmUtils} /usr/share/yum-cli
}
|