| 1 |
# Copyright 1999-2012 Gentoo Foundation |
| 2 |
# Distributed under the terms of the GNU General Public License v2 |
| 3 |
# $Header: /var/cvsroot/gentoo-x86/app-misc/ktoblzcheck/ktoblzcheck-1.39.ebuild,v 1.3 2012/08/11 09:23:08 ago Exp $ |
| 4 |
|
| 5 |
EAPI=4 |
| 6 |
PYTHON_DEPEND="python? 2:2.6" |
| 7 |
inherit python |
| 8 |
|
| 9 |
DESCRIPTION="Library to check account numbers and bank codes of German banks" |
| 10 |
HOMEPAGE="http://ktoblzcheck.sourceforge.net/" |
| 11 |
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" |
| 12 |
|
| 13 |
LICENSE="LGPL-2.1" |
| 14 |
SLOT="0" |
| 15 |
KEYWORDS="amd64 ppc ~ppc64 ~sparc x86" |
| 16 |
IUSE="python" |
| 17 |
|
| 18 |
RDEPEND="app-text/recode |
| 19 |
sys-apps/gawk |
| 20 |
sys-apps/grep |
| 21 |
sys-apps/sed |
| 22 |
|| ( net-misc/wget www-client/lynx )" |
| 23 |
DEPEND="${RDEPEND} |
| 24 |
>=sys-devel/libtool-2.2.6b" |
| 25 |
|
| 26 |
DOCS="AUTHORS ChangeLog NEWS README" |
| 27 |
|
| 28 |
pkg_setup() { |
| 29 |
if use python; then |
| 30 |
python_set_active_version 2 |
| 31 |
python_pkg_setup |
| 32 |
fi |
| 33 |
} |
| 34 |
|
| 35 |
src_prepare() { |
| 36 |
>py-compile |
| 37 |
} |
| 38 |
|
| 39 |
src_configure() { |
| 40 |
econf $(use_enable python) |
| 41 |
} |
| 42 |
|
| 43 |
src_install() { |
| 44 |
default |
| 45 |
find "${ED}" -name '*.la' -exec rm -f {} + |
| 46 |
} |
| 47 |
|
| 48 |
pkg_postinst() { |
| 49 |
use python && python_mod_optimize ktoblzcheck.py |
| 50 |
} |
| 51 |
|
| 52 |
pkg_postrm() { |
| 53 |
use python && python_mod_cleanup ktoblzcheck.py |
| 54 |
} |