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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Fri Oct 4 16:17:01 2013 UTC (22 months, 3 weeks ago) by vapier
Branch: MAIN
Changes since 1.5: +2 -2 lines
Mark arm stable #460234.

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

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-r1.ebuild,v 1.5 2013/03/07 18:17:30 ago Exp $
4
5 EAPI=5
6
7 PYTHON_COMPAT=( python{2_6,2_7,3_2} )
8
9 inherit multilib cmake-utils python-r1 virtualx
10
11 MY_P="${PN}-qt4.8+${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 arm x86 ~amd64-linux ~x86-linux"
20 IUSE="X declarative help kde multimedia opengl phonon script scripttools sql svg test webkit xmlpatterns"
21
22 REQUIRED_USE="
23 declarative? ( X )
24 help? ( X )
25 multimedia? ( X )
26 opengl? ( X )
27 phonon? ( X )
28 scripttools? ( X script )
29 sql? ( X )
30 svg? ( X )
31 test? ( X )
32 webkit? ( X )
33 "
34
35 # Minimal supported version of Qt.
36 QT_PV="4.7.0:4"
37
38 RDEPEND="
39 >=dev-python/shiboken-${PV}[${PYTHON_USEDEP}]
40 >=dev-qt/qtcore-${QT_PV}
41 X? (
42 >=dev-qt/qtgui-${QT_PV}[accessibility]
43 >=dev-qt/qttest-${QT_PV}
44 )
45 declarative? ( >=dev-qt/qtdeclarative-${QT_PV} )
46 help? ( >=dev-qt/qthelp-${QT_PV} )
47 multimedia? ( >=dev-qt/qtmultimedia-${QT_PV} )
48 opengl? ( >=dev-qt/qtopengl-${QT_PV} )
49 phonon? (
50 kde? ( media-libs/phonon )
51 !kde? ( || ( >=dev-qt/qtphonon-${QT_PV} media-libs/phonon ) )
52 )
53 script? ( >=dev-qt/qtscript-${QT_PV} )
54 sql? ( >=dev-qt/qtsql-${QT_PV} )
55 svg? ( >=dev-qt/qtsvg-${QT_PV}[accessibility] )
56 webkit? ( >=dev-qt/qtwebkit-${QT_PV} )
57 xmlpatterns? ( >=dev-qt/qtxmlpatterns-${QT_PV} )
58 "
59 DEPEND="${RDEPEND}
60 >=dev-qt/qtgui-${QT_PV}
61 "
62
63 S=${WORKDIR}/${MY_P}
64
65 DOCS=( ChangeLog )
66
67 src_prepare() {
68 # Fix generated pkgconfig file to require the shiboken
69 # library suffixed with the correct python version.
70 sed -i -e '/^Requires:/ s/shiboken$/&@SHIBOKEN_PYTHON_SUFFIX@/' \
71 libpyside/pyside.pc.in || die
72
73 if use prefix; then
74 cp "${FILESDIR}"/rpath.cmake .
75 sed \
76 -i '1iinclude(rpath.cmake)' \
77 CMakeLists.txt || die
78 fi
79 }
80
81 src_configure() {
82 local mycmakeargs=(
83 $(cmake-utils_use_build test TESTS)
84 $(cmake-utils_use_disable X QtGui)
85 $(cmake-utils_use_disable X QtDesigner)
86 $(cmake-utils_use_disable X QtTest)
87 $(cmake-utils_use_disable X QtUiTools)
88 $(cmake-utils_use_disable declarative QtDeclarative)
89 $(cmake-utils_use_disable help QtHelp)
90 $(cmake-utils_use_disable multimedia QtMultimedia)
91 $(cmake-utils_use_disable opengl QtOpenGL)
92 $(cmake-utils_use_disable phonon)
93 $(cmake-utils_use_disable script QtScript)
94 $(cmake-utils_use_disable scripttools QtScriptTools)
95 $(cmake-utils_use_disable sql QtSql)
96 $(cmake-utils_use_disable svg QtSvg)
97 $(cmake-utils_use_disable webkit QtWebKit)
98 $(cmake-utils_use_disable xmlpatterns QtXmlPatterns)
99 )
100
101 configuration() {
102 local mycmakeargs=(
103 -DPYTHON_SUFFIX="-${EPYTHON}"
104 "${mycmakeargs[@]}"
105 )
106 cmake-utils_src_configure
107 }
108 python_foreach_impl configuration
109 }
110
111 src_compile() {
112 python_foreach_impl cmake-utils_src_make
113 }
114
115 src_test() {
116 local PYTHONDONTWRITEBYTECODE
117 export PYTHONDONTWRITEBYTECODE
118
119 local VIRTUALX_COMMAND="cmake-utils_src_test"
120 python_foreach_impl virtualmake
121 }
122
123 src_install() {
124 installation() {
125 cmake-utils_src_install
126 mv "${ED}"usr/$(get_libdir)/pkgconfig/${PN}{,-${EPYTHON}}.pc || die
127 }
128 python_foreach_impl installation
129 }

  ViewVC Help
Powered by ViewVC 1.1.20