/[gentoo-x86]/dev-python/pyside/pyside-1.1.0-r1.ebuild
Gentoo

Contents of /dev-python/pyside/pyside-1.1.0-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Tue Jun 12 20:18:03 2012 UTC (2 years, 1 month ago) by pesa
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Remove old.

(Portage version: 2.2.0_alpha110/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/pyside/pyside-1.1.0-r1.ebuild,v 1.3 2012/04/22 12:17:30 maekke Exp $
4
5 EAPI=4
6
7 CMAKE_IN_SOURCE_BUILD="1"
8
9 PYTHON_DEPEND="2:2.6 3:3.2"
10 SUPPORT_PYTHON_ABIS="1"
11 RESTRICT_PYTHON_ABIS="2.4 2.5 3.1 *-jython 2.7-pypy-*"
12
13 VIRTUALX_COMMAND="cmake-utils_src_test"
14
15 inherit multilib cmake-utils python virtualx
16
17 MY_P="${PN}-qt4.7+${PV}"
18
19 DESCRIPTION="Python bindings for the Qt framework"
20 HOMEPAGE="http://www.pyside.org/"
21 SRC_URI="http://www.pyside.org/files/${MY_P}.tar.bz2"
22
23 LICENSE="LGPL-2.1"
24 SLOT="0"
25 KEYWORDS="amd64 x86"
26 IUSE="X declarative help multimedia kde opengl phonon script scripttools sql svg test webkit xmlpatterns"
27
28 REQUIRED_USE="
29 declarative? ( X )
30 help? ( X )
31 multimedia? ( X )
32 opengl? ( X )
33 phonon? ( X )
34 scripttools? ( X script )
35 sql? ( X )
36 svg? ( X )
37 test? ( X )
38 webkit? ( X )
39 "
40
41 QT_PV="4.7.0:4"
42
43 RDEPEND="
44 >=dev-python/shiboken-1.1.0-r1
45 >=x11-libs/qt-core-${QT_PV}
46 X? (
47 >=x11-libs/qt-gui-${QT_PV}[accessibility]
48 >=x11-libs/qt-test-${QT_PV}
49 )
50 declarative? ( >=x11-libs/qt-declarative-${QT_PV} )
51 help? ( >=x11-libs/qt-assistant-${QT_PV} )
52 multimedia? ( >=x11-libs/qt-multimedia-${QT_PV} )
53 opengl? ( >=x11-libs/qt-opengl-${QT_PV} )
54 phonon? (
55 kde? ( media-libs/phonon )
56 !kde? ( || (
57 >=x11-libs/qt-phonon-${QT_PV}
58 media-libs/phonon
59 ) )
60 )
61 script? ( >=x11-libs/qt-script-${QT_PV} )
62 sql? ( >=x11-libs/qt-sql-${QT_PV} )
63 svg? ( >=x11-libs/qt-svg-${QT_PV}[accessibility] )
64 webkit? ( >=x11-libs/qt-webkit-${QT_PV} )
65 xmlpatterns? ( >=x11-libs/qt-xmlpatterns-${QT_PV} )
66 "
67 DEPEND="${RDEPEND}
68 >=dev-python/generatorrunner-0.6.16
69 "
70
71 S=${WORKDIR}/${MY_P}
72
73 DOCS=( ChangeLog )
74
75 src_prepare() {
76 # Fix generated pkgconfig file to require the shiboken
77 # library suffixed with the correct python version.
78 sed -i -e '/^Requires:/ s/shiboken$/&@SHIBOKEN_PYTHON_SUFFIX@/' \
79 libpyside/pyside.pc.in || die
80
81 python_src_prepare
82 }
83
84 src_configure() {
85 configuration() {
86 local mycmakeargs=(
87 -DPYTHON_SUFFIX="-python${PYTHON_ABI}"
88 $(cmake-utils_use_build test TESTS)
89 $(cmake-utils_use_disable X QtGui)
90 $(cmake-utils_use_disable X QtDesigner)
91 $(cmake-utils_use_disable X QtTest)
92 $(cmake-utils_use_disable X QtUiTools)
93 $(cmake-utils_use_disable declarative QtDeclarative)
94 $(cmake-utils_use_disable help QtHelp)
95 $(cmake-utils_use_disable multimedia QtMultimedia)
96 $(cmake-utils_use_disable opengl QtOpenGL)
97 $(cmake-utils_use_disable phonon)
98 $(cmake-utils_use_disable script QtScript)
99 $(cmake-utils_use_disable scripttools QtScriptTools)
100 $(cmake-utils_use_disable sql QtSql)
101 $(cmake-utils_use_disable svg QtSvg)
102 $(cmake-utils_use_disable webkit QtWebKit)
103 $(cmake-utils_use_disable xmlpatterns QtXmlPatterns)
104 )
105 CMAKE_USE_DIR="${BUILDDIR}" cmake-utils_src_configure
106 }
107 python_execute_function -s configuration
108 }
109
110 src_compile() {
111 compilation() {
112 CMAKE_USE_DIR="${BUILDDIR}" cmake-utils_src_make
113 }
114 python_execute_function -s compilation
115 }
116
117 src_test() {
118 testing() {
119 CMAKE_USE_DIR="${BUILDDIR}" virtualmake
120 }
121 python_enable_pyc
122 python_execute_function -s testing
123 python_disable_pyc
124 }
125
126 src_install() {
127 installation() {
128 CMAKE_USE_DIR="${BUILDDIR}" cmake-utils_src_install
129 mv "${ED}"usr/$(get_libdir)/pkgconfig/${PN}{,-python${PYTHON_ABI}}.pc || die
130 }
131 python_execute_function -s installation
132 }

  ViewVC Help
Powered by ViewVC 1.1.20