You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-python/pyparted/pyparted-3.6.ebuild

50 lines
1.1 KiB

# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/pyparted/pyparted-3.6.ebuild,v 1.1 2011/04/16 17:10:56 jer Exp $
EAPI="3"
PYTHON_DEPEND="2:2.7"
SUPPORT_PYTHON_ABIS="1"
RESTRICT_PYTHON_ABIS="3.* *-jython"
PYTHON_EXPORT_PHASE_FUNCTIONS="1"
inherit autotools python
DESCRIPTION="Python bindings for sys-block/parted"
HOMEPAGE="https://fedorahosted.org/pyparted/"
SRC_URI="https://fedorahosted.org/releases/p/y/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
IUSE=""
DEPEND="dev-python/decorator
>=sys-block/parted-2.3
sys-libs/ncurses"
RDEPEND="${DEPEND}"
src_prepare() {
sed -i -e 's/-avoid-version/& -shared /' src/Makefile.am || die "sed failed"
eautoreconf
# Disable byte-compilation of Python modules.
echo "#!/bin/sh" > py-compile
python_src_prepare
}
src_install() {
python_src_install
python_clean_installation_image
dodoc ChangeLog NEWS README TODO
}
pkg_postinst() {
python_mod_optimize parted
}
pkg_postrm() {
python_mod_cleanup parted
}