1 |
commit: 0bb3c2a83d68a0879c499429d25c1c5171ad9171 |
2 |
Author: Davide Pesavento <pesa <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Apr 16 05:17:40 2017 +0000 |
4 |
Commit: Davide Pesavento <pesa <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Apr 16 05:17:40 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0bb3c2a8 |
7 |
|
8 |
dev-python/qscintilla-python: version bump (p.masked) |
9 |
|
10 |
Allow side-by-side installation of qt4 and qt5 variants. |
11 |
|
12 |
Package-Manager: Portage-2.3.5, Repoman-2.3.2 |
13 |
|
14 |
dev-python/qscintilla-python/Manifest | 1 + |
15 |
.../qscintilla-python-2.10.ebuild | 90 ++++++++++++++++++++++ |
16 |
2 files changed, 91 insertions(+) |
17 |
|
18 |
diff --git a/dev-python/qscintilla-python/Manifest b/dev-python/qscintilla-python/Manifest |
19 |
index 7bebb5af12e..80af86f450c 100644 |
20 |
--- a/dev-python/qscintilla-python/Manifest |
21 |
+++ b/dev-python/qscintilla-python/Manifest |
22 |
@@ -1,2 +1,3 @@ |
23 |
+DIST QScintilla_gpl-2.10.tar.gz 2662004 SHA256 16be30577bc178470936c458551f2512cc068aff6e7a7de6ed244e28c045f6ec SHA512 fe33471de0807bc4e0d6b86e78eac70531a20c96b5c3269111d4c89eca7ccae5e55752fc2a5c8f20f37220a3ccfb6e9d7d718c02058dd8b40075d40da211a93b WHIRLPOOL 40973a8f925e7a2545b8960ad09547ea62ac7e67ac964a00f775dd62259f8cfe7420a7bfb18e4cfce83ecfa67af68a43742ebee36e89fa89e4bc9b6204601429 |
24 |
DIST QScintilla_gpl-2.9.2.tar.gz 2491222 SHA256 f2c8ccdc9d3dbb90764ceed53ea096da9bb13b6260da1324e6ab4ecea29e620a SHA512 28f88111d7eb6a016a4b87f04d2b7f5d6481b521a3361a526b3b45a56240f5c8de10310e819234fcba773c6df73bf398ae2dce622976a8e760f506be1defb7c8 WHIRLPOOL a04420c66fd417e5304c92a1ee3c1998f6849bccb9088dae96ed48c06cab0a9b1c012f073aafb1e05aaee46564de9ac89ae07145f3ded35cf47beac78065650a |
25 |
DIST QScintilla_gpl-2.9.4.tar.gz 2557199 SHA256 8b3a23023e9f0573caed6f9cee86f898d87b768ee15b8c211a423783a4cfa4e6 SHA512 5a2eebbe523a0f2f1c7bc63ce5ee9cb8793a597d00eea5b638f18f90d6e798e92c281be23ee5e7072d5afced9e1fccb6ae51526a3623d373d57c3db64d026b16 WHIRLPOOL 68aacdcd0fc7102494ccae1f0ea3e222845bdd3f9bef603d89fe50d50dba6ac77471228a84c1c281a46ccf74bdb6902aa3bb21f89388ec5408bdde5876cf8655 |
26 |
|
27 |
diff --git a/dev-python/qscintilla-python/qscintilla-python-2.10.ebuild b/dev-python/qscintilla-python/qscintilla-python-2.10.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..84f0bc38bb1 |
30 |
--- /dev/null |
31 |
+++ b/dev-python/qscintilla-python/qscintilla-python-2.10.ebuild |
32 |
@@ -0,0 +1,90 @@ |
33 |
+# Copyright 1999-2017 Gentoo Foundation |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=6 |
37 |
+PYTHON_COMPAT=( python2_7 python3_{4,5} ) |
38 |
+ |
39 |
+inherit multibuild python-r1 qmake-utils |
40 |
+ |
41 |
+MY_P=QScintilla_gpl-${PV/_pre/.dev} |
42 |
+ |
43 |
+DESCRIPTION="Python bindings for Qscintilla" |
44 |
+HOMEPAGE="https://www.riverbankcomputing.com/software/qscintilla/intro" |
45 |
+SRC_URI="mirror://sourceforge/pyqt/${MY_P}.tar.gz" |
46 |
+ |
47 |
+LICENSE="GPL-3" |
48 |
+SLOT="0" |
49 |
+KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86" |
50 |
+IUSE="debug +qt4 qt5" |
51 |
+ |
52 |
+REQUIRED_USE=" |
53 |
+ ${PYTHON_REQUIRED_USE} |
54 |
+ || ( qt4 qt5 ) |
55 |
+" |
56 |
+ |
57 |
+DEPEND=" |
58 |
+ ${PYTHON_DEPS} |
59 |
+ >=dev-python/sip-4.19:=[${PYTHON_USEDEP}] |
60 |
+ ~x11-libs/qscintilla-${PV}:=[qt4?,qt5?] |
61 |
+ qt4? ( |
62 |
+ >=dev-python/PyQt4-4.11.3[X,${PYTHON_USEDEP}] |
63 |
+ dev-qt/qtcore:4 |
64 |
+ dev-qt/qtgui:4 |
65 |
+ ) |
66 |
+ qt5? ( |
67 |
+ dev-python/PyQt5[gui,printsupport,widgets,${PYTHON_USEDEP}] |
68 |
+ dev-qt/qtcore:5 |
69 |
+ dev-qt/qtgui:5 |
70 |
+ dev-qt/qtprintsupport:5 |
71 |
+ dev-qt/qtwidgets:5 |
72 |
+ ) |
73 |
+" |
74 |
+RDEPEND="${DEPEND}" |
75 |
+ |
76 |
+S=${WORKDIR}/${MY_P}/Python |
77 |
+ |
78 |
+src_prepare() { |
79 |
+ default |
80 |
+ |
81 |
+ # Fix out-of-source build |
82 |
+ sed -i -e 's|sip/qscimod[45]\.sip|../Python/&|g' "${S}"/configure.py || die |
83 |
+ |
84 |
+ MULTIBUILD_VARIANTS=( $(usev qt4) $(usev qt5) ) |
85 |
+} |
86 |
+ |
87 |
+src_configure() { |
88 |
+ configuration() { |
89 |
+ local my_qt_ver=4 |
90 |
+ if [[ ${MULTIBUILD_ID} == *qt5* ]]; then |
91 |
+ my_qt_ver=5 |
92 |
+ fi |
93 |
+ |
94 |
+ local myconf=( |
95 |
+ "${PYTHON}" |
96 |
+ "${S}"/configure.py |
97 |
+ --qmake="$(qt${my_qt_ver}_get_bindir)"/qmake |
98 |
+ --sip-incdir="$(python_get_includedir)" |
99 |
+ --pyqt=PyQt${my_qt_ver} |
100 |
+ $(usex debug '--debug --trace' '') |
101 |
+ --verbose |
102 |
+ ) |
103 |
+ echo "${myconf[@]}" |
104 |
+ "${myconf[@]}" || die |
105 |
+ |
106 |
+ # Run eqmake to respect toolchain, build flags, and prevent stripping |
107 |
+ eqmake${my_qt_ver} -recursive |
108 |
+ } |
109 |
+ multibuild_foreach_variant python_foreach_impl run_in_build_dir configuration |
110 |
+} |
111 |
+ |
112 |
+src_compile() { |
113 |
+ multibuild_foreach_variant python_foreach_impl run_in_build_dir default |
114 |
+} |
115 |
+ |
116 |
+src_install() { |
117 |
+ installation() { |
118 |
+ emake INSTALL_ROOT="${D}" install |
119 |
+ python_optimize |
120 |
+ } |
121 |
+ multibuild_foreach_variant python_foreach_impl run_in_build_dir installation |
122 |
+} |