1 |
commit: d8fe0916f768942fb12986d4762f2d5fac7d7971 |
2 |
Author: Davide Pesavento <pesa <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jul 29 05:42:07 2016 +0000 |
4 |
Commit: Davide Pesavento <pesa <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jul 29 05:43:34 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d8fe0916 |
7 |
|
8 |
dev-python/PyQt4: remove old |
9 |
|
10 |
Package-Manager: portage-2.3.0 |
11 |
|
12 |
dev-python/PyQt4/PyQt4-4.11.4.ebuild | 156 ----------------------------------- |
13 |
1 file changed, 156 deletions(-) |
14 |
|
15 |
diff --git a/dev-python/PyQt4/PyQt4-4.11.4.ebuild b/dev-python/PyQt4/PyQt4-4.11.4.ebuild |
16 |
deleted file mode 100644 |
17 |
index 00761dc..0000000 |
18 |
--- a/dev-python/PyQt4/PyQt4-4.11.4.ebuild |
19 |
+++ /dev/null |
20 |
@@ -1,156 +0,0 @@ |
21 |
-# Copyright 1999-2015 Gentoo Foundation |
22 |
-# Distributed under the terms of the GNU General Public License v2 |
23 |
-# $Id$ |
24 |
- |
25 |
-EAPI=5 |
26 |
-PYTHON_COMPAT=( python2_7 python3_{3,4,5} ) |
27 |
- |
28 |
-inherit eutils multibuild multilib python-r1 qmake-utils |
29 |
- |
30 |
-DESCRIPTION="Python bindings for the Qt framework" |
31 |
-HOMEPAGE="http://www.riverbankcomputing.com/software/pyqt/intro |
32 |
- https://pypi.python.org/pypi/PyQt4" |
33 |
- |
34 |
-MY_PN="PyQt-x11-gpl" |
35 |
-if [[ ${PV} == *_pre* ]]; then |
36 |
- MY_P=${MY_PN}-${PV%_pre*}-snapshot-${REVISION} |
37 |
- SRC_URI="https://dev.gentoo.org/~pesa/distfiles/${MY_P}.tar.xz" |
38 |
-else |
39 |
- MY_P=${MY_PN}-${PV} |
40 |
- SRC_URI="mirror://sourceforge/pyqt/${MY_P}.tar.gz" |
41 |
-fi |
42 |
- |
43 |
-LICENSE="GPL-3" |
44 |
-SLOT="0" |
45 |
-KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux" |
46 |
- |
47 |
-IUSE="X dbus debug declarative designer doc examples help kde multimedia |
48 |
- opengl phonon script scripttools sql svg testlib webkit xmlpatterns" |
49 |
-REQUIRED_USE=" |
50 |
- ${PYTHON_REQUIRED_USE} |
51 |
- sql? ( X ) |
52 |
- testlib? ( X ) |
53 |
-" |
54 |
- |
55 |
-# Minimal supported version of Qt. |
56 |
-QT_PV="4.8.5:4" |
57 |
- |
58 |
-RDEPEND=" |
59 |
- ${PYTHON_DEPS} |
60 |
- >=dev-python/sip-4.16.6:=[${PYTHON_USEDEP}] |
61 |
- >=dev-qt/qtcore-${QT_PV} |
62 |
- X? ( >=dev-qt/qtgui-${QT_PV} ) |
63 |
- dbus? ( |
64 |
- dev-python/dbus-python[${PYTHON_USEDEP}] |
65 |
- >=dev-qt/qtdbus-${QT_PV} |
66 |
- ) |
67 |
- declarative? ( >=dev-qt/qtdeclarative-${QT_PV} ) |
68 |
- designer? ( >=dev-qt/designer-${QT_PV} ) |
69 |
- help? ( >=dev-qt/qthelp-${QT_PV} ) |
70 |
- multimedia? ( >=dev-qt/qtmultimedia-${QT_PV} ) |
71 |
- opengl? ( >=dev-qt/qtopengl-${QT_PV} ) |
72 |
- phonon? ( |
73 |
- kde? ( >=media-libs/phonon-4.7[qt4] ) |
74 |
- !kde? ( || ( >=dev-qt/qtphonon-${QT_PV} >=media-libs/phonon-4.7[qt4] ) ) |
75 |
- ) |
76 |
- script? ( >=dev-qt/qtscript-${QT_PV} ) |
77 |
- scripttools? ( >=dev-qt/qtgui-${QT_PV} ) |
78 |
- sql? ( >=dev-qt/qtsql-${QT_PV} ) |
79 |
- svg? ( >=dev-qt/qtsvg-${QT_PV} ) |
80 |
- testlib? ( >=dev-qt/qttest-${QT_PV} ) |
81 |
- webkit? ( >=dev-qt/qtwebkit-${QT_PV} ) |
82 |
- xmlpatterns? ( >=dev-qt/qtxmlpatterns-${QT_PV} ) |
83 |
-" |
84 |
-DEPEND="${RDEPEND} |
85 |
- dbus? ( virtual/pkgconfig ) |
86 |
-" |
87 |
- |
88 |
-S=${WORKDIR}/${MY_P} |
89 |
- |
90 |
-src_prepare() { |
91 |
- # Support qreal on arm architecture (bug 322349). |
92 |
- use arm && epatch "${FILESDIR}/${PN}-4.7.3-qreal_float_support.patch" |
93 |
- |
94 |
- # Allow building against KDE's phonon (bug 525354). |
95 |
- epatch "${FILESDIR}/${PN}-4.11.2-phonon.patch" |
96 |
-} |
97 |
- |
98 |
-pyqt_use_enable() { |
99 |
- use $1 && echo --enable=${2:-Qt$(tr 'a-z' 'A-Z' <<< ${1:0:1})${1:1}} |
100 |
-} |
101 |
- |
102 |
-src_configure() { |
103 |
- configuration() { |
104 |
- local myconf=( |
105 |
- "${PYTHON}" |
106 |
- "${S}"/configure-ng.py |
107 |
- $(use debug && echo --debug --trace) |
108 |
- --verbose |
109 |
- --confirm-license |
110 |
- --qmake="$(qt4_get_bindir)"/qmake |
111 |
- --destdir="$(python_get_sitedir)" |
112 |
- --qsci-api |
113 |
- --enable=QtCore |
114 |
- --enable=QtNetwork |
115 |
- --enable=QtXml |
116 |
- $(pyqt_use_enable X QtGui) |
117 |
- $(pyqt_use_enable dbus QtDBus) |
118 |
- $(usex dbus '' --no-python-dbus) |
119 |
- $(pyqt_use_enable declarative) |
120 |
- $(pyqt_use_enable designer) |
121 |
- $(usex designer '' --no-designer-plugin) |
122 |
- $(pyqt_use_enable help) |
123 |
- $(pyqt_use_enable multimedia) |
124 |
- $(pyqt_use_enable opengl QtOpenGL) |
125 |
- $(pyqt_use_enable phonon phonon) |
126 |
- $(pyqt_use_enable script) |
127 |
- $(pyqt_use_enable scripttools QtScriptTools) |
128 |
- $(pyqt_use_enable sql) |
129 |
- $(pyqt_use_enable svg) |
130 |
- $(pyqt_use_enable testlib QtTest) |
131 |
- $(pyqt_use_enable webkit QtWebKit) |
132 |
- $(pyqt_use_enable xmlpatterns QtXmlPatterns) |
133 |
- ) |
134 |
- echo "${myconf[@]}" |
135 |
- "${myconf[@]}" || die |
136 |
- |
137 |
- eqmake4 -recursive ${PN}.pro |
138 |
- } |
139 |
- python_foreach_impl run_in_build_dir configuration |
140 |
-} |
141 |
- |
142 |
-src_compile() { |
143 |
- python_foreach_impl run_in_build_dir default |
144 |
-} |
145 |
- |
146 |
-src_install() { |
147 |
- installation() { |
148 |
- local tmp_root=${D%/}/tmp |
149 |
- emake INSTALL_ROOT="${tmp_root}" install |
150 |
- |
151 |
- local uic_dir=${tmp_root}$(python_get_sitedir)/${PN}/uic |
152 |
- if python_is_python3; then |
153 |
- rm -r "${uic_dir}"/port_v2 || die |
154 |
- else |
155 |
- rm -r "${uic_dir}"/port_v3 || die |
156 |
- fi |
157 |
- |
158 |
- python_doexe "${tmp_root}${EPREFIX}"/usr/bin/pyuic4 |
159 |
- rm "${tmp_root}${EPREFIX}"/usr/bin/pyuic4 || die |
160 |
- |
161 |
- multibuild_merge_root "${tmp_root}" "${D}" |
162 |
- python_optimize |
163 |
- } |
164 |
- python_foreach_impl run_in_build_dir installation |
165 |
- |
166 |
- dodoc ChangeLog NEWS THANKS |
167 |
- |
168 |
- if use doc; then |
169 |
- dodoc -r doc/html |
170 |
- fi |
171 |
- |
172 |
- if use examples; then |
173 |
- insinto /usr/share/doc/${PF} |
174 |
- doins -r examples |
175 |
- fi |
176 |
-} |