1 |
arfrever 09/08/02 05:17:58 |
2 |
|
3 |
Modified: PyQt4-4.5.4.ebuild ChangeLog |
4 |
Log: |
5 |
Set SUPPORT_PYTHON_ABIS. |
6 |
(Portage version: 13874-svn/cvs/Linux x86_64) |
7 |
|
8 |
Revision Changes Path |
9 |
1.2 dev-python/PyQt4/PyQt4-4.5.4.ebuild |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/PyQt4/PyQt4-4.5.4.ebuild?rev=1.2&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/PyQt4/PyQt4-4.5.4.ebuild?rev=1.2&content-type=text/plain |
13 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/PyQt4/PyQt4-4.5.4.ebuild?r1=1.1&r2=1.2 |
14 |
|
15 |
Index: PyQt4-4.5.4.ebuild |
16 |
=================================================================== |
17 |
RCS file: /var/cvsroot/gentoo-x86/dev-python/PyQt4/PyQt4-4.5.4.ebuild,v |
18 |
retrieving revision 1.1 |
19 |
retrieving revision 1.2 |
20 |
diff -u -r1.1 -r1.2 |
21 |
--- PyQt4-4.5.4.ebuild 31 Jul 2009 07:09:45 -0000 1.1 |
22 |
+++ PyQt4-4.5.4.ebuild 2 Aug 2009 05:17:58 -0000 1.2 |
23 |
@@ -1,10 +1,11 @@ |
24 |
# Copyright 1999-2009 Gentoo Foundation |
25 |
# Distributed under the terms of the GNU General Public License v2 |
26 |
-# $Header: /var/cvsroot/gentoo-x86/dev-python/PyQt4/PyQt4-4.5.4.ebuild,v 1.1 2009/07/31 07:09:45 wired Exp $ |
27 |
+# $Header: /var/cvsroot/gentoo-x86/dev-python/PyQt4/PyQt4-4.5.4.ebuild,v 1.2 2009/08/02 05:17:58 arfrever Exp $ |
28 |
|
29 |
EAPI="2" |
30 |
+SUPPORT_PYTHON_ABIS="1" |
31 |
|
32 |
-inherit distutils python qt4 |
33 |
+inherit python qt4 |
34 |
|
35 |
MY_P=PyQt-x11-gpl-${PV} |
36 |
QTVER="4.5.1" |
37 |
@@ -56,56 +57,70 @@ |
38 |
fi |
39 |
qt4_src_prepare |
40 |
|
41 |
- # Remove this code after removing Python 2 from the tree. |
42 |
- python_version |
43 |
- if [[ "${PYVER:0:1}" == "3" ]]; then |
44 |
- rm -fr pyuic/uic/port_v2 |
45 |
- else |
46 |
- rm -fr pyuic/uic/port_v3 |
47 |
- fi |
48 |
+ python_copy_sources |
49 |
+ |
50 |
+ prepare_package() { |
51 |
+ if [[ "${PYTHON_ABI:0:1}" == "3" ]]; then |
52 |
+ rm -fr pyuic/uic/port_v2 |
53 |
+ else |
54 |
+ rm -fr pyuic/uic/port_v3 |
55 |
+ fi |
56 |
+ } |
57 |
+ python_execute_function -s prepare_package |
58 |
} |
59 |
|
60 |
src_configure() { |
61 |
- distutils_python_version |
62 |
+ configure_package() { |
63 |
+ local myconf="$(get_python) configure.py |
64 |
+ --confirm-license |
65 |
+ --bindir=/usr/bin |
66 |
+ --destdir=$(python_get_sitedir) |
67 |
+ --sipdir=/usr/share/sip |
68 |
+ $(use debug && echo '--debug') |
69 |
+ --enable=QtCore |
70 |
+ --enable=QtNetwork |
71 |
+ --enable=QtScript |
72 |
+ --enable=QtTest |
73 |
+ --enable=QtXml |
74 |
+ $(pyqt4_use_enable X QtGui) |
75 |
+ $(pyqt4_use_enable X QtDesigner) |
76 |
+ $(pyqt4_use_enable assistant QtAssistant) |
77 |
+ $(pyqt4_use_enable assistant QtHelp) |
78 |
+ $(pyqt4_use_enable opengl QtOpenGL) |
79 |
+ $(pyqt4_use_enable phonon) |
80 |
+ $(pyqt4_use_enable sql QtSql) |
81 |
+ $(pyqt4_use_enable svg QtSvg) |
82 |
+ $(pyqt4_use_enable webkit QtWebKit) |
83 |
+ $(pyqt4_use_enable xmlpatterns QtXmlPatterns)" |
84 |
+ echo ${myconf} |
85 |
+ ${myconf} || exit 1 |
86 |
+ |
87 |
+ # Fix insecure runpath. |
88 |
+ if use X ; then |
89 |
+ for pkg in QtDesigner QtGui QtCore; do |
90 |
+ sed -i -e "/^LFLAGS/s:-Wl,-rpath,${S}-${PYTHON_ABI}/qpy/${pkg}::" ${pkg}/Makefile || die "failed to fix rpath issues" |
91 |
+ done |
92 |
+ fi |
93 |
+ } |
94 |
+ python_execute_function -s configure_package |
95 |
+} |
96 |
|
97 |
- local myconf="${python} configure.py |
98 |
- --confirm-license |
99 |
- --bindir=/usr/bin |
100 |
- --destdir=$(python_get_sitedir) |
101 |
- --sipdir=/usr/share/sip |
102 |
- $(use debug && echo '--debug') |
103 |
- --enable=QtCore |
104 |
- --enable=QtNetwork |
105 |
- --enable=QtScript |
106 |
- --enable=QtTest |
107 |
- --enable=QtXml |
108 |
- $(pyqt4_use_enable X QtGui) |
109 |
- $(pyqt4_use_enable X QtDesigner) |
110 |
- $(pyqt4_use_enable assistant QtAssistant) |
111 |
- $(pyqt4_use_enable assistant QtHelp) |
112 |
- $(pyqt4_use_enable opengl QtOpenGL) |
113 |
- $(pyqt4_use_enable phonon) |
114 |
- $(pyqt4_use_enable sql QtSql) |
115 |
- $(pyqt4_use_enable svg QtSvg) |
116 |
- $(pyqt4_use_enable webkit QtWebKit) |
117 |
- $(pyqt4_use_enable xmlpatterns QtXmlPatterns)" |
118 |
- echo ${myconf} |
119 |
- ${myconf} || die "configuration failed" |
120 |
- |
121 |
- # Fix insecure runpath |
122 |
- if use X ; then |
123 |
- for pkg in QtDesigner QtGui QtCore; do |
124 |
- sed -i -e "/^LFLAGS/s:-Wl,-rpath,${S}/qpy/${pkg}::" \ |
125 |
- "${S}"/${pkg}/Makefile || die "failed to fix rpath issues" |
126 |
- done |
127 |
- fi |
128 |
+src_compile() { |
129 |
+ build_package() { |
130 |
+ emake |
131 |
+ } |
132 |
+ python_execute_function -s build_package |
133 |
} |
134 |
|
135 |
src_install() { |
136 |
python_need_rebuild |
137 |
- # INSTALL_ROOT is needed for the QtDesigner module, |
138 |
- # the other Makefiles use DESTDIR. |
139 |
- emake DESTDIR="${D}" INSTALL_ROOT="${D}" install || die "installation failed" |
140 |
+ |
141 |
+ install_package() { |
142 |
+ # INSTALL_ROOT is needed for the QtDesigner module, |
143 |
+ # the other Makefiles use DESTDIR. |
144 |
+ emake DESTDIR="${D}" INSTALL_ROOT="${D}" install |
145 |
+ } |
146 |
+ python_execute_function -s install_package |
147 |
|
148 |
dodoc ChangeLog NEWS THANKS || die |
149 |
|
150 |
@@ -118,3 +133,11 @@ |
151 |
doins -r examples || die |
152 |
fi |
153 |
} |
154 |
+ |
155 |
+pkg_postinst() { |
156 |
+ python_mod_optimize PyQt4 |
157 |
+} |
158 |
+ |
159 |
+pkg_postrm() { |
160 |
+ python_mod_cleanup PyQt4 |
161 |
+} |
162 |
|
163 |
|
164 |
|
165 |
1.76 dev-python/PyQt4/ChangeLog |
166 |
|
167 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/PyQt4/ChangeLog?rev=1.76&view=markup |
168 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/PyQt4/ChangeLog?rev=1.76&content-type=text/plain |
169 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/PyQt4/ChangeLog?r1=1.75&r2=1.76 |
170 |
|
171 |
Index: ChangeLog |
172 |
=================================================================== |
173 |
RCS file: /var/cvsroot/gentoo-x86/dev-python/PyQt4/ChangeLog,v |
174 |
retrieving revision 1.75 |
175 |
retrieving revision 1.76 |
176 |
diff -u -r1.75 -r1.76 |
177 |
--- ChangeLog 31 Jul 2009 07:09:45 -0000 1.75 |
178 |
+++ ChangeLog 2 Aug 2009 05:17:58 -0000 1.76 |
179 |
@@ -1,6 +1,10 @@ |
180 |
# ChangeLog for dev-python/PyQt4 |
181 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
182 |
-# $Header: /var/cvsroot/gentoo-x86/dev-python/PyQt4/ChangeLog,v 1.75 2009/07/31 07:09:45 wired Exp $ |
183 |
+# $Header: /var/cvsroot/gentoo-x86/dev-python/PyQt4/ChangeLog,v 1.76 2009/08/02 05:17:58 arfrever Exp $ |
184 |
+ |
185 |
+ 02 Aug 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@g.o> |
186 |
+ PyQt4-4.5.4.ebuild: |
187 |
+ Set SUPPORT_PYTHON_ABIS. |
188 |
|
189 |
*PyQt4-4.5.4 (31 Jul 2009) |