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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Wed Dec 12 17:42:38 2012 UTC (2 years ago) by pesa
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +1 -1 lines
FILE REMOVED
Remove old.

(Portage version: 2.2.0_alpha147/cvs/Linux x86_64, signed Manifest commit with key 17A85C72)

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

  ViewVC Help
Powered by ViewVC 1.1.20