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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Mon Aug 9 23:20:08 2010 UTC (4 years, 4 months ago) by jer
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +2 -2 lines
Stable for HPPA (bug #322781).
(Portage version: 2.2_rc67/cvs/Linux i686)

1 # Copyright 1999-2010 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.5.2.ebuild,v 1.5 2010/06/26 16:26:35 nixnut 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="mirror://gentoo/${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
23 src_install() {
24 distutils_src_install
25
26 metagen_install() {
27 local METAGEN_MOD="$(python_get_sitedir)/${PN}/main.py"
28 fperms 755 ${METAGEN_MOD}
29 dosym "${D}"${METAGEN_MOD} "/usr/bin/${PN}-${PYTHON_ABI}"
30 }
31 python_execute_function metagen_install
32
33 python_generate_wrapper_scripts "${ED}usr/bin/${PN}"
34
35 doman "docs/metagen.1"
36 }
37
38 src_test() {
39 einfo "Starting tests..."
40 testing() {
41 $(PYTHON) -c "from metagen import metagenerator; metagenerator.do_tests()"
42 }
43 python_execute_function testing
44 einfo "Tests completed."
45 }

  ViewVC Help
Powered by ViewVC 1.1.20