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/librtfcomp/librtfcomp-1.2.ebuild

47 lines
1.0 KiB

# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/librtfcomp/librtfcomp-1.2.ebuild,v 1.1 2012/06/15 09:03:25 ssuominen Exp $
EAPI=4
PYTHON_DEPEND="python? 2:2.7"
inherit python
DESCRIPTION="Library for handling compressed RTF documents"
HOMEPAGE="http://sourceforge.net/projects/synce/"
SRC_URI="mirror://sourceforge/synce/${P}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="python static-libs"
RDEPEND="python? ( >=dev-python/pyrex-0.9.6 )"
DEPEND="${RDEPEND}"
DOCS="CHANGELOG"
pkg_setup() {
if use python; then
python_set_active_version 2
python_pkg_setup
fi
}
src_configure() {
econf \
$(use_enable static-libs static) \
$(use_enable python python-bindings)
}
src_install() {
default
# prune_libtool_files() from eutils.eclass fails wrt #421197
find "${ED}" -name '*.la' -exec rm -f {} +
# Always remove static archive from site-packages
use static-libs && find "${ED}" -name pyrtfcomp.a -exec rm -f {} +
}