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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Fri Mar 8 08:35:15 2013 UTC (19 months, 3 weeks ago) by pesa
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +1 -1 lines
FILE REMOVED
old

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

1 # Copyright 1999-2013 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.2.ebuild,v 1.7 2013/03/02 20:57:50 hwoarang 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 kde multimedia 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 # Minimal supported version of Qt.
40 QT_PV="4.7.0:4"
41
42 RDEPEND="
43 >=dev-python/shiboken-${PV}
44 >=dev-qt/qtcore-${QT_PV}
45 X? (
46 >=dev-qt/qtgui-${QT_PV}[accessibility]
47 >=dev-qt/qttest-${QT_PV}
48 )
49 declarative? ( >=dev-qt/qtdeclarative-${QT_PV} )
50 help? ( >=dev-qt/qthelp-${QT_PV} )
51 multimedia? ( >=dev-qt/qtmultimedia-${QT_PV} )
52 opengl? ( >=dev-qt/qtopengl-${QT_PV} )
53 phonon? (
54 kde? ( media-libs/phonon )
55 !kde? ( || ( >=dev-qt/qtphonon-${QT_PV} media-libs/phonon ) )
56 )
57 script? ( >=dev-qt/qtscript-${QT_PV} )
58 sql? ( >=dev-qt/qtsql-${QT_PV} )
59 svg? ( >=dev-qt/qtsvg-${QT_PV}[accessibility] )
60 webkit? ( >=dev-qt/qtwebkit-${QT_PV} )
61 xmlpatterns? ( >=dev-qt/qtxmlpatterns-${QT_PV} )
62 "
63 DEPEND="${RDEPEND}
64 >=dev-qt/qtgui-${QT_PV}
65 "
66
67 S=${WORKDIR}/${MY_P}
68
69 DOCS=( ChangeLog )
70
71 src_prepare() {
72 # Fix generated pkgconfig file to require the shiboken
73 # library suffixed with the correct python version.
74 sed -i -e '/^Requires:/ s/shiboken$/&@SHIBOKEN_PYTHON_SUFFIX@/' \
75 libpyside/pyside.pc.in || die
76
77 if use prefix; then
78 cp "${FILESDIR}"/rpath.cmake .
79 sed \
80 -i '1iinclude(rpath.cmake)' \
81 CMakeLists.txt || die
82 fi
83 }
84
85 src_configure() {
86 configuration() {
87 local mycmakeargs=(
88 -DPYTHON_SUFFIX="-python${PYTHON_ABI}"
89 $(cmake-utils_use_build test TESTS)
90 $(cmake-utils_use_disable X QtGui)
91 $(cmake-utils_use_disable X QtDesigner)
92 $(cmake-utils_use_disable X QtTest)
93 $(cmake-utils_use_disable X QtUiTools)
94 $(cmake-utils_use_disable declarative QtDeclarative)
95 $(cmake-utils_use_disable help QtHelp)
96 $(cmake-utils_use_disable multimedia QtMultimedia)
97 $(cmake-utils_use_disable opengl QtOpenGL)
98 $(cmake-utils_use_disable phonon)
99 $(cmake-utils_use_disable script QtScript)
100 $(cmake-utils_use_disable scripttools QtScriptTools)
101 $(cmake-utils_use_disable sql QtSql)
102 $(cmake-utils_use_disable svg QtSvg)
103 $(cmake-utils_use_disable webkit QtWebKit)
104 $(cmake-utils_use_disable xmlpatterns QtXmlPatterns)
105 )
106 CMAKE_BUILD_DIR="${S}_${PYTHON_ABI}" cmake-utils_src_configure
107 }
108 python_execute_function configuration
109 }
110
111 src_compile() {
112 compilation() {
113 CMAKE_BUILD_DIR="${S}_${PYTHON_ABI}" cmake-utils_src_make
114 }
115 python_execute_function compilation
116 }
117
118 src_test() {
119 testing() {
120 CMAKE_BUILD_DIR="${S}_${PYTHON_ABI}" virtualmake
121 }
122 python_enable_pyc
123 python_execute_function testing
124 python_disable_pyc
125 }
126
127 src_install() {
128 installation() {
129 CMAKE_BUILD_DIR="${S}_${PYTHON_ABI}" cmake-utils_src_install
130 mv "${ED}"usr/$(get_libdir)/pkgconfig/${PN}{,-python${PYTHON_ABI}}.pc || die
131 }
132 python_execute_function installation
133 }

  ViewVC Help
Powered by ViewVC 1.1.20