blob: 40aa50816a82281546ae0cc2f37d89975c3c574a (
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
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/pyparted/pyparted-3.1.ebuild,v 1.2 2010/03/02 02:24:21 jer Exp $
EAPI="2"
inherit autotools multilib python
DESCRIPTION="Python bindings for sys-apps/parted"
HOMEPAGE="https://fedorahosted.org/pyparted/"
SRC_URI="https://fedorahosted.org/releases/p/y/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~hppa ~ppc ~x86"
IUSE=""
DEPEND="
sys-libs/ncurses
>=dev-lang/python-2.4
>=sys-apps/parted-2.1
dev-python/decorator
"
RDEPEND="${DEPEND}"
src_prepare() {
sed -i -e 's/-avoid-version/& -shared /' src/Makefile.am || die "sed failed"
eautoreconf
}
src_install() {
python_need_rebuild
emake DESTDIR="${D}" install || die "emake install failed"
dodoc ChangeLog NEWS README TODO
# remove pointless libtool archive
python_version
rm -f "${D}"/usr/$(get_libdir)/python${PYVER}/site-packages/_pedmodule.la
}
|