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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Tue Apr 10 20:56:38 2012 UTC (2 years, 5 months ago) by pesa
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Remove old.

(Portage version: 2.2.0_alpha100/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.ebuild,v 1.3 2012/02/23 18:56:09 hwoarang Exp $
4
5 EAPI=4
6
7 PYTHON_DEPEND="2:2.5"
8
9 inherit base python cmake-utils virtualx
10
11 MY_P="${PN}-qt4.7+${PV}"
12
13 DESCRIPTION="Python bindings for the Qt framework"
14 HOMEPAGE="http://www.pyside.org/"
15 SRC_URI="http://www.pyside.org/files/${MY_P}.tar.bz2"
16
17 LICENSE="LGPL-2.1"
18 SLOT="0"
19 KEYWORDS="~amd64 ~x86"
20 IUSE="assistant debug declarative multimedia kde opengl phonon script sql svg test webkit
21 X xmlpatterns"
22
23 QT_PV="4.7.0"
24
25 RDEPEND=">=x11-libs/qt-core-${QT_PV}
26 assistant? ( >=x11-libs/qt-assistant-${QT_PV} )
27 X? ( >=x11-libs/qt-gui-${QT_PV}[accessibility] )
28 multimedia? ( >=x11-libs/qt-multimedia-${QT_PV} )
29 opengl? ( >=x11-libs/qt-opengl-${QT_PV} )
30 phonon? (
31 kde? ( media-libs/phonon )
32 !kde? (
33 || (
34 >=x11-libs/qt-phonon-${QT_PV}
35 media-libs/phonon
36 )
37 )
38 )
39 script? ( >=x11-libs/qt-script-${QT_PV} )
40 sql? ( >=x11-libs/qt-sql-${QT_PV} )
41 svg? ( >=x11-libs/qt-svg-${QT_PV}[accessibility] )
42 webkit? ( >=x11-libs/qt-webkit-${QT_PV} )
43 xmlpatterns? ( >=x11-libs/qt-xmlpatterns-${QT_PV} )"
44
45 DEPEND="${RDEPEND}
46 >=dev-python/shiboken-1.0.10
47 test? ( >=x11-libs/qt-test-${QT_PV} )"
48
49 S="${WORKDIR}/${MY_P}"
50
51 DOCS=( "ChangeLog" )
52
53 REQUIRED_USE="opengl? ( X ) svg? ( X ) script? ( X ) X? ( script )"
54
55 cmake-utils_use_build() {
56 use ${1} || echo "-DDISABLE_${2:-$1}=1"
57 }
58
59 pkg_setup() {
60 python_set_active_version 2
61 python_pkg_setup
62 }
63
64 src_configure() {
65 local mycmakeargs=(
66 $(cmake-utils_use_build test TESTS)
67 $(cmake-utils_use_build X QtGui)
68 $(cmake-utils_use_build X QtDesigner)
69 $(cmake-utils_use_build X QtScriptTools)
70 $(cmake-utils_use_build multimedia QtMultimedia)
71 $(cmake-utils_use_build declarative QtDeclarative)
72 $(cmake-utils_use_build opengl QtOpenGL)
73 $(cmake-utils_use_build phonon QtPhonon)
74 $(cmake-utils_use_build script QtScript)
75 $(cmake-utils_use_build sql QtSql)
76 $(cmake-utils_use_build svg QtSvg)
77 $(cmake-utils_use_build test QtTest)
78 $(cmake-utils_use_build webkit QtWebKit)
79 $(cmake-utils_use_build xmlpatterns QtXmlPatterns)
80 $(cmake-utils_use_build assistant QtHelp)
81 )
82 cmake-utils_src_configure
83 }
84
85 src_test() {
86 python_enable_pyc
87 VIRTUALX_COMMAND="cmake-utils_src_test"
88 virtualmake
89 python_disable_pyc
90 }

  ViewVC Help
Powered by ViewVC 1.1.20