/[gentoo-x86]/dev-python/SchemaObject/SchemaObject-0.5.3.ebuild
Gentoo

Contents of /dev-python/SchemaObject/SchemaObject-0.5.3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Wed Jul 4 00:46:37 2012 UTC (2 years, 2 months ago) by blueness
Branch: MAIN
Changes since 1.1: +2 -2 lines
Works with python-2.7

(Portage version: 2.1.10.65/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/dev-python/SchemaObject/SchemaObject-0.5.3.ebuild,v 1.1 2012/04/28 00:03:17 blueness Exp $
4
5 EAPI=4
6
7 PYTHON_DEPEND="2:2.5:2.7"
8
9 inherit distutils
10
11 DESCRIPTION="A simple Python object interface to a MySQL database schema"
12 HOMEPAGE="http://matuson.com/code/schemaobject/"
13 SRC_URI="http://www.matuson.com/code/schemaobject/downloads/${P}.tar.gz"
14
15 pn="${PN,,}"
16 S="${WORKDIR}/${pn}"
17
18 LICENSE="Apache-2.0"
19 SLOT="0"
20 KEYWORDS="~amd64 ~x86"
21 IUSE=""
22
23 DEPEND=""
24 RDEPEND="${DEPEND}"
25
26 pkg_setup() {
27 python_set_active_version 2
28 python_pkg_setup
29 }
30
31 src_prepare() {
32 python_convert_shebangs -r 2 .
33 }
34
35 pkg_postinst() {
36 python_mod_optimize "${pn}"
37 }
38
39 pkg_postrm() {
40 python_mod_cleanup "${pn}"
41 }

  ViewVC Help
Powered by ViewVC 1.1.20