/[gentoo-x86]/dev-python/sip/sip-4.13.3.ebuild
Gentoo

Contents of /dev-python/sip/sip-4.13.3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Thu Aug 9 23:32:12 2012 UTC (2 years, 4 months ago) by jer
Branch: MAIN
Changes since 1.1: +2 -2 lines
Stable for HPPA (bug #429042).

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

1 hwoarang 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 jer 1.2 # $Header: /var/cvsroot/gentoo-x86/dev-python/sip/sip-4.13.3.ebuild,v 1.1 2012/06/21 18:43:17 hwoarang Exp $
4 hwoarang 1.1
5     EAPI="4"
6     PYTHON_DEPEND="*"
7     PYTHON_EXPORT_PHASE_FUNCTIONS="1"
8     SUPPORT_PYTHON_ABIS="1"
9     RESTRICT_PYTHON_ABIS="*-jython 2.7-pypy-*"
10    
11     inherit eutils python toolchain-funcs
12    
13     DESCRIPTION="Python extension module generator for C and C++ libraries"
14     HOMEPAGE="http://www.riverbankcomputing.co.uk/software/sip/intro http://pypi.python.org/pypi/SIP"
15     SRC_URI="http://www.riverbankcomputing.com/static/Downloads/${PN}${PV%%.*}/${P}.tar.gz"
16    
17     LICENSE="|| ( GPL-2 GPL-3 sip )"
18     SLOT="0"
19 jer 1.2 KEYWORDS="~alpha ~amd64 ~arm hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
20 hwoarang 1.1 IUSE="debug doc"
21    
22     DEPEND=""
23     RDEPEND=""
24    
25     src_prepare() {
26     epatch "${FILESDIR}"/${PN}-4.9.3-darwin.patch
27     sed -i -e 's/-O2//g' specs/* || die
28    
29     python_src_prepare
30     }
31    
32     src_configure() {
33     configuration() {
34     local myconf=("$(PYTHON)"
35     configure.py
36     --bindir="${EPREFIX}/usr/bin"
37     --destdir="${EPREFIX}$(python_get_sitedir)"
38     --incdir="${EPREFIX}$(python_get_includedir)"
39     --sipdir="${EPREFIX}/usr/share/sip"
40     $(use debug && echo --debug)
41     CC="$(tc-getCC)"
42     CXX="$(tc-getCXX)"
43     LINK="$(tc-getCXX)"
44     LINK_SHLIB="$(tc-getCXX)"
45     CFLAGS="${CFLAGS}"
46     CXXFLAGS="${CXXFLAGS}"
47     LFLAGS="${LDFLAGS}"
48     STRIP=":")
49     echo "${myconf[@]}"
50     "${myconf[@]}"
51     }
52     python_execute_function -s configuration
53     }
54    
55     src_install() {
56     python_src_install
57    
58     dodoc NEWS
59    
60     if use doc; then
61     dohtml -r doc/html/*
62     fi
63     }
64    
65     pkg_postinst() {
66     python_mod_optimize sipconfig.py sipdistutils.py
67    
68     ewarn "When updating dev-python/sip, you usually need to rebuild packages that depend on it,"
69     ewarn "such as PyQt4, qscintilla-python and pykde4. If you have app-portage/gentoolkit"
70     ewarn "installed, you can find these packages with \`equery d dev-python/sip\`."
71     }
72    
73     pkg_postrm() {
74     python_mod_cleanup sipconfig.py sipdistutils.py
75     }

  ViewVC Help
Powered by ViewVC 1.1.20