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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Mon Feb 16 13:38:44 2015 UTC (3 years, 9 months ago) by pacho
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +2 -2 lines
ppc stable, bug #530760

(Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key A188FBD4)

1 # Copyright 1999-2015 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.2.2.ebuild,v 1.6 2015/02/16 13:36:25 pacho Exp $
4
5 EAPI=5
6
7 PYTHON_COMPAT=( python{2_7,3_3,3_4} )
8
9 inherit cmake-utils multilib python-r1 virtualx
10
11 MY_P="${PN}-qt4.8+${PV}"
12
13 DESCRIPTION="Python bindings for the Qt framework"
14 HOMEPAGE="http://qt-project.org/wiki/PySide"
15 SRC_URI="http://download.qt-project.org/official_releases/${PN}/${MY_P}.tar.bz2"
16
17 LICENSE="LGPL-2.1"
18 SLOT="0"
19 KEYWORDS="amd64 arm ppc ~ppc64 x86 ~amd64-linux ~x86-linux"
20
21 IUSE="X declarative designer help multimedia opengl phonon script scripttools sql svg test webkit xmlpatterns"
22 REQUIRED_USE="
23 ${PYTHON_REQUIRED_USE}
24 declarative? ( X )
25 designer? ( X )
26 help? ( X )
27 multimedia? ( X )
28 opengl? ( X )
29 phonon? ( X )
30 scripttools? ( X script )
31 sql? ( X )
32 svg? ( X )
33 test? ( X )
34 webkit? ( X )
35 "
36
37 # Minimal supported version of Qt.
38 QT_PV="4.8.5:4"
39
40 RDEPEND="
41 ${PYTHON_DEPS}
42 >=dev-python/shiboken-${PV}[${PYTHON_USEDEP}]
43 >=dev-qt/qtcore-${QT_PV}
44 X? (
45 >=dev-qt/qtgui-${QT_PV}[accessibility]
46 >=dev-qt/qttest-${QT_PV}
47 )
48 declarative? ( >=dev-qt/qtdeclarative-${QT_PV} )
49 designer? ( >=dev-qt/designer-${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 media-libs/phonon[qt4(+)]
55 >=dev-qt/qtphonon-${QT_PV}
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 . || die
79 sed -i -e '1iinclude(rpath.cmake)' CMakeLists.txt || die
80 fi
81
82 cmake-utils_src_prepare
83 }
84
85 src_configure() {
86 local mycmakeargs=(
87 $(cmake-utils_use_build test TESTS)
88 $(cmake-utils_use_disable X QtGui)
89 $(cmake-utils_use_disable X QtTest)
90 $(cmake-utils_use_disable declarative QtDeclarative)
91 $(cmake-utils_use_disable designer QtDesigner)
92 $(cmake-utils_use_disable designer QtUiTools)
93 $(cmake-utils_use_disable help QtHelp)
94 $(cmake-utils_use_disable multimedia QtMultimedia)
95 $(cmake-utils_use_disable opengl QtOpenGL)
96 $(cmake-utils_use_disable phonon)
97 $(cmake-utils_use_disable script QtScript)
98 $(cmake-utils_use_disable scripttools QtScriptTools)
99 $(cmake-utils_use_disable sql QtSql)
100 $(cmake-utils_use_disable svg QtSvg)
101 $(cmake-utils_use_disable webkit QtWebKit)
102 $(cmake-utils_use_disable xmlpatterns QtXmlPatterns)
103 )
104
105 if use phonon && has_version "media-libs/phonon[qt4(+)]"; then
106 # bug 475786
107 mycmakeargs+=(
108 -DQT_PHONON_INCLUDE_DIR="${EPREFIX}/usr/include/phonon"
109 -DQT_PHONON_LIBRARY_RELEASE="${EPREFIX}/usr/$(get_libdir)/libphonon.so"
110 )
111 fi
112
113 configuration() {
114 local mycmakeargs=(
115 -DPYTHON_SUFFIX="-${EPYTHON}"
116 "${mycmakeargs[@]}"
117 )
118 cmake-utils_src_configure
119 }
120 python_foreach_impl configuration
121 }
122
123 src_compile() {
124 python_foreach_impl cmake-utils_src_compile
125 }
126
127 src_test() {
128 local PYTHONDONTWRITEBYTECODE
129 export PYTHONDONTWRITEBYTECODE
130
131 VIRTUALX_COMMAND="cmake-utils_src_test" python_foreach_impl virtualmake
132 }
133
134 src_install() {
135 installation() {
136 cmake-utils_src_install
137 mv "${ED}"usr/$(get_libdir)/pkgconfig/${PN}{,-${EPYTHON}}.pc || die
138 }
139 python_foreach_impl installation
140 }

  ViewVC Help
Powered by ViewVC 1.1.20