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.
48 lines
1.2 KiB
48 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/app-portage/metagen/metagen-0.6.2.ebuild,v 1.5 2012/02/07 16:19:50 jer Exp $
|
|
|
|
EAPI="3"
|
|
PYTHON_DEPEND="2"
|
|
SUPPORT_PYTHON_ABIS="1"
|
|
RESTRICT_PYTHON_ABIS="3.*"
|
|
|
|
inherit distutils
|
|
|
|
DESCRIPTION="metadata.xml generator for ebuilds"
|
|
HOMEPAGE="http://git.overlays.gentoo.org/gitweb/?p=proj/metagen.git;a=summary"
|
|
SRC_URI="http://dev.gentoo.org/~neurogeek/metagen_releases/${P}.tar.gz"
|
|
|
|
LICENSE="GPL-2"
|
|
SLOT="0"
|
|
KEYWORDS="amd64 hppa ppc x86"
|
|
|
|
IUSE=""
|
|
DEPEND=">=dev-python/jaxml-3.01
|
|
>=sys-apps/portage-2.1.9.42"
|
|
RDEPEND="${DEPEND}"
|
|
|
|
src_install() {
|
|
distutils_src_install
|
|
|
|
metagen_install() {
|
|
local METAGEN_MOD="$(python_get_sitedir)/${PN}/main.py"
|
|
fperms 755 ${METAGEN_MOD}
|
|
dosym "${D}"${METAGEN_MOD} "/usr/bin/${PN}-${PYTHON_ABI}"
|
|
}
|
|
|
|
python_execute_function metagen_install
|
|
python_generate_wrapper_scripts "${ED}usr/bin/${PN}"
|
|
|
|
doman "docs/metagen.1"
|
|
}
|
|
|
|
src_test() {
|
|
einfo "Starting tests..."
|
|
testing() {
|
|
$(PYTHON) -c "from metagen import metagenerator; metagenerator.do_tests()"
|
|
}
|
|
python_execute_function testing
|
|
einfo "Tests completed."
|
|
}
|