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.
55 lines
1.1 KiB
55 lines
1.1 KiB
13 years ago
|
# Copyright 1999-2012 Gentoo Foundation
|
||
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
# $Header: /var/cvsroot/gentoo-x86/app-misc/ktoblzcheck/ktoblzcheck-1.37.ebuild,v 1.1 2012/01/06 08:43:50 ssuominen Exp $
|
||
|
|
||
|
EAPI=4
|
||
|
PYTHON_DEPEND="python? 2:2.6"
|
||
|
inherit python
|
||
|
|
||
|
DESCRIPTION="Library to check account numbers and bank codes of German banks"
|
||
|
HOMEPAGE="http://ktoblzcheck.sourceforge.net/"
|
||
|
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
|
||
|
|
||
|
LICENSE="LGPL-2.1"
|
||
|
SLOT="0"
|
||
|
KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
|
||
|
IUSE="python"
|
||
|
|
||
|
RDEPEND="app-text/recode
|
||
|
sys-apps/gawk
|
||
|
sys-apps/grep
|
||
|
sys-apps/sed
|
||
|
|| ( net-misc/wget www-client/lynx )"
|
||
|
DEPEND="${RDEPEND}
|
||
|
>=sys-devel/libtool-2.2.6b"
|
||
|
|
||
|
DOCS="AUTHORS ChangeLog NEWS README"
|
||
|
|
||
|
pkg_setup() {
|
||
|
if use python; then
|
||
|
python_set_active_version 2
|
||
|
python_pkg_setup
|
||
|
fi
|
||
|
}
|
||
|
|
||
|
src_prepare() {
|
||
|
>py-compile
|
||
|
}
|
||
|
|
||
|
src_configure() {
|
||
|
econf $(use_enable python)
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
default
|
||
|
find "${ED}" -name '*.la' -exec rm -f {} +
|
||
|
}
|
||
|
|
||
|
pkg_postinst() {
|
||
|
use python && python_mod_optimize ktoblzcheck.py
|
||
|
}
|
||
|
|
||
|
pkg_postrm() {
|
||
|
use python && python_mod_cleanup ktoblzcheck.py
|
||
|
}
|