Gentoo Archives: gentoo-commits

From: "Andreas Hüttel" <dilfridge@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-electronics/klayout/
Date: Sun, 01 Oct 2017 06:04:38
Message-Id: 1506837857.87538dbfc9960d7b766279cea625f86d6add843c.dilfridge@gentoo
1 commit: 87538dbfc9960d7b766279cea625f86d6add843c
2 Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
3 AuthorDate: Sun Oct 1 06:03:51 2017 +0000
4 Commit: Andreas Hüttel <dilfridge <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 1 06:04:17 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=87538dbf
7
8 sci-electronics/klayout: Add python scripting support
9
10 Package-Manager: Portage-2.3.10, Repoman-2.3.3
11
12 sci-electronics/klayout/klayout-9999.ebuild | 13 ++++++++++---
13 1 file changed, 10 insertions(+), 3 deletions(-)
14
15 diff --git a/sci-electronics/klayout/klayout-9999.ebuild b/sci-electronics/klayout/klayout-9999.ebuild
16 index a23a11d67fb..c7e32ad87f9 100644
17 --- a/sci-electronics/klayout/klayout-9999.ebuild
18 +++ b/sci-electronics/klayout/klayout-9999.ebuild
19 @@ -3,12 +3,13 @@
20
21 EAPI=6
22
23 +RUBY_OPTIONAL=no
24 USE_RUBY="ruby22"
25 # note: define maximally ONE implementation here
26
27 -RUBY_OPTIONAL=no
28 +PYTHON_COMPAT=( python{2_7,3_{4,5,6}} )
29
30 -inherit eutils multilib toolchain-funcs ruby-ng
31 +inherit eutils multilib toolchain-funcs python-single-r1 ruby-ng
32
33 if [[ ${PV} = 9999* ]]; then
34 EGIT_REPO_URI="https://github.com/klayoutmatthias/${PN}.git"
35 @@ -31,6 +32,7 @@ RDEPEND="
36 dev-qt/qtgui:5
37 dev-qt/qtwidgets:5
38 sys-libs/zlib
39 + ${PYTHON_DEPS}
40 $(ruby_implementations_depend)
41 "
42 DEPEND="${RDEPEND}"
43 @@ -39,6 +41,11 @@ PATCHES=(
44 "${FILESDIR}/${PN}-9999-expert.patch"
45 )
46
47 +pkg_setup() {
48 + python-single-r1_pkg_setup
49 + ruby-ng_pkg_setup
50 +}
51 +
52 each_ruby_configure() {
53 tc-export CC CXX AR LD RANLIB
54 export CFLAGS CXXFLAGS
55 @@ -47,7 +54,7 @@ each_ruby_configure() {
56 -dry-run \
57 -qmake /usr/lib64/qt5/bin/qmake \
58 -ruby "${RUBY}" \
59 - -nopython \
60 + -python "${PYTHON}" \
61 -build . \
62 -bin "${T}/bin" \
63 -rpath "/usr/$(get_libdir)/klayout" \