First pass at upgrading to EAPI 3.
[g-pypi.git] / g_pypi / ebuild.tmpl
1 # Copyright 1999-$year Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # \$Header: \$
4 # Ebuild generated by g-pypi $gpypi_version
5
6 #if $warnings
7 #for warn in $warnings:
8 \# Warning: $warn
9 #end for
10
11 #end if
12 # API of python.eclass in EAPI > 3 not established (see python.eclass)'
13 EAPI="3"
14
15 # HACK: PYTHON_DEPEND and RESTRICT_PYTHON_ABIS currently hardcoded.
16 #if $supported_python_versions
17 # This package claims to support the following versions:
18 # $supported_python_versions
19 #end if
20 PYTHON_DEPEND="$python_depend"
21 SUPPORT_PYTHON_ABIS="1"
22 #if $restrict_python_abis
23 RESTRICT_PYTHON_ABIS="$restrict_python_abis"
24
25 #end if
26 #if $python_modname
27 PYTHON_MODNAME="$python_modname"
28
29 #end if
30 inherit $inherit_f
31
32 #if not $esvn_repo_uri
33 #if $my_pn
34 MY_PN="$my_pn"
35 #end if
36 #if $my_pv
37 MY_PV="$my_pv"
38 #end if
39 #if $my_p
40 MY_P="$my_p"
41 #end if
42 #end if
43
44 DESCRIPTION="$description"
45 HOMEPAGE="$homepage"
46 #if $esvn_repo_uri
47 ESVN_REPO_URI="$esvn_repo_uri"
48 #else
49 SRC_URI="$src_uri"
50 #end if
51 LICENSE="$license"
52 KEYWORDS="$keywords"
53 SLOT="$slot"
54 IUSE="$use_f"
55 #if $s
56 S="$s"
57 #end if
58 #if $depend
59 DEPEND="$depend_f"
60 #end if
61 #if $rdepend
62 RDEPEND="$rdepend_f"
63 #end if
64
65 #if $src_unpack
66 src_unpack() {
67 $src_unpack
68 }
69
70 #end if
71 #if $src_compile
72 src_compile() {
73 $src_compile
74 }
75
76 #end if
77 #if $src_install
78 src_install() {
79 $src_install
80 }
81
82 #end if
83 #if $src_test
84 src_test() {
85 $src_test
86 }
87
88 #end if