blob: 92ce5ba2e23996e93f338fe055e42631d3eb17c2 (
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
42
43
44
45
46
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=3
PYTHON_DEPEND="2:2.6"
RESTRICT_PYTHON_ABIS='2.4 2.5 3.*'
inherit autotools eutils python flag-o-matic multilib toolchain-funcs
DESCRIPTION="Auto dependency analyser for Gentoo"
HOMEPAGE="http://soc.dev.gentoo.org/~bay/autodep/"
SRC_URI="http://soc.dev.gentoo.org/~bay/autodep/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE=""
RDEPEND="
app-portage/portage-utils
sys-fs/fuse"
DEPEND="${RDEPEND}
dev-util/pkgconfig"
pkg_setup() {
python_set_active_version 2
}
src_compile() {
emake CC="$(tc-getCC)" RAW_LDFLAGS="$(raw-ldflags)" || die
}
src_install() {
emake DESTDIR="${D}" libdir="$(get_libdir)" install || die
}
pkg_postinst() {
python_mod_optimize /usr/$(get_libdir)/portage_with_autodep
}
pkg_postrm() {
python_mod_cleanup /usr/$(get_libdir)/portage_with_autodep
}
|