/[gentoo-x86]/app-portage/metagen/metagen-0.6.2.ebuild
Gentoo

Contents of /app-portage/metagen/metagen-0.6.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Tue Feb 7 16:19:50 2012 UTC (2 years, 5 months ago) by jer
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +2 -2 lines
Stable for HPPA (bug #399949).

(Portage version: 2.2.0_alpha85/cvs/Linux x86_64)

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-portage/metagen/metagen-0.6.2.ebuild,v 1.4 2012/02/06 18:56:43 ranger Exp $
4
5 EAPI="3"
6 PYTHON_DEPEND="2"
7 SUPPORT_PYTHON_ABIS="1"
8 RESTRICT_PYTHON_ABIS="3.*"
9
10 inherit distutils
11
12 DESCRIPTION="metadata.xml generator for ebuilds"
13 HOMEPAGE="http://git.overlays.gentoo.org/gitweb/?p=proj/metagen.git;a=summary"
14 SRC_URI="http://dev.gentoo.org/~neurogeek/metagen_releases/${P}.tar.gz"
15
16 LICENSE="GPL-2"
17 SLOT="0"
18 KEYWORDS="amd64 hppa ppc x86"
19
20 IUSE=""
21 DEPEND=">=dev-python/jaxml-3.01
22 >=sys-apps/portage-2.1.9.42"
23 RDEPEND="${DEPEND}"
24
25 src_install() {
26 distutils_src_install
27
28 metagen_install() {
29 local METAGEN_MOD="$(python_get_sitedir)/${PN}/main.py"
30 fperms 755 ${METAGEN_MOD}
31 dosym "${D}"${METAGEN_MOD} "/usr/bin/${PN}-${PYTHON_ABI}"
32 }
33
34 python_execute_function metagen_install
35 python_generate_wrapper_scripts "${ED}usr/bin/${PN}"
36
37 doman "docs/metagen.1"
38 }
39
40 src_test() {
41 einfo "Starting tests..."
42 testing() {
43 $(PYTHON) -c "from metagen import metagenerator; metagenerator.do_tests()"
44 }
45 python_execute_function testing
46 einfo "Tests completed."
47 }

  ViewVC Help
Powered by ViewVC 1.1.20