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-libs/btparser/btparser-0.18.ebuild

55 lines
1.2 KiB

# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/btparser/btparser-0.18.ebuild,v 1.1 2012/09/15 11:34:02 pacho Exp $
EAPI="4"
PYTHON_DEPEND="2:2.6"
inherit python
DESCRIPTION="Parser and analyzer for backtraces produced by gdb"
HOMEPAGE="https://fedorahosted.org/btparser/"
SRC_URI="https://fedorahosted.org/released/${PN}/${P}.tar.xz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="static-libs"
RDEPEND=">=dev-libs/glib-2.21:2"
DEPEND="${RDEPEND}
app-arch/xz-utils"
pkg_setup() {
python_set_active_version 2
python_pkg_setup
}
src_prepare() {
python_clean_py-compile_files
}
src_configure() {
# Configure checks for python.pc; our python-2.7 installs python-2.7.pc,
# while python-2.6 does not install any pkgconfig file.
export PYTHON_CFLAGS=$(python-config --includes)
export PYTHON_LIBS=$(python-config --libs)
econf \
$(use_enable static-libs static) \
--disable-maintainer-mode
}
src_install() {
default
find "${D}" -name '*.la' -exec rm -f {} +
}
pkg_postinst() {
python_mod_optimize btparser
}
pkg_postrm() {
python_mod_cleanup btparser
}