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: Sat, 30 Sep 2017 01:48:18
Message-Id: 1506736016.b7235edf171c4bf83930cfd497078fd6f2592b4b.dilfridge@gentoo
1 commit: b7235edf171c4bf83930cfd497078fd6f2592b4b
2 Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
3 AuthorDate: Sat Sep 30 01:45:55 2017 +0000
4 Commit: Andreas Hüttel <dilfridge <AT> gentoo <DOT> org>
5 CommitDate: Sat Sep 30 01:46:56 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b7235edf
7
8 sci-electronics/klayout: Add live ebuild
9
10 Builds, installs, and runs fine at the moment, but some QA fixes
11 are still needed (e.g., *FLAGS compliance).
12
13 Package-Manager: Portage-2.3.10, Repoman-2.3.3
14
15 sci-electronics/klayout/klayout-9999.ebuild | 75 +++++++++++++++++++++++++++++
16 1 file changed, 75 insertions(+)
17
18 diff --git a/sci-electronics/klayout/klayout-9999.ebuild b/sci-electronics/klayout/klayout-9999.ebuild
19 new file mode 100644
20 index 00000000000..8b43bc444d3
21 --- /dev/null
22 +++ b/sci-electronics/klayout/klayout-9999.ebuild
23 @@ -0,0 +1,75 @@
24 +# Copyright 1999-2017 Gentoo Foundation
25 +# Distributed under the terms of the GNU General Public License v2
26 +
27 +EAPI=6
28 +
29 +USE_RUBY="ruby22"
30 +# note: define maximally ONE implementation here
31 +
32 +RUBY_OPTIONAL=no
33 +
34 +inherit eutils multilib toolchain-funcs ruby-ng
35 +
36 +if [[ ${PV} = 9999* ]]; then
37 + EGIT_REPO_URI="https://github.com/klayoutmatthias/${PN}.git"
38 + inherit git-r3
39 + EGIT_CHECKOUT_DIR=${WORKDIR}/all/${P}
40 +else
41 + SRC_URI="http://www.klayout.org/downloads/source/${P}.tar.gz"
42 + KEYWORDS="~amd64 ~x86"
43 +fi
44 +
45 +DESCRIPTION="Viewer and editor for GDS and OASIS integrated circuit layouts"
46 +HOMEPAGE="http://www.klayout.de/"
47 +LICENSE="GPL-2"
48 +SLOT="0"
49 +IUSE=""
50 +
51 +RDEPEND="
52 + dev-qt/designer:5
53 + dev-qt/qtcore:5
54 + dev-qt/qtgui:5
55 + dev-qt/qtwidgets:5
56 + sys-libs/zlib
57 + $(ruby_implementations_depend)
58 +"
59 +DEPEND="${RDEPEND}"
60 +
61 +all_ruby_prepare() {
62 + default
63 +}
64 +
65 +each_ruby_configure() {
66 + tc-export CC CXX AR LD RANLIB
67 + export CFLAGS CXXFLAGS
68 + ./build.sh \
69 + -dry-run \
70 + -qmake /usr/lib64/qt5/bin/qmake \
71 + -ruby "${RUBY}" \
72 + -nopython \
73 + -build . \
74 + -bin "${T}/bin" \
75 + -rpath "/usr/$(get_libdir)/klayout" \
76 + -option "${MAKEOPTS}" \
77 + -with-qtbinding \
78 + -without-64bit-coord \
79 + -qt5 \
80 + -qtbin /usr/lib64/qt5/bin \
81 + -qtinc /usr/include/qt5 \
82 + -qtlib "/usr/$(get_libdir)/qt5" || die "Configuration failed"
83 +}
84 +
85 +each_ruby_compile() {
86 + emake all
87 +}
88 +
89 +each_ruby_install() {
90 + emake install
91 +
92 + cd "${T}/bin" || die
93 +
94 + dodir "/usr/$(get_libdir)/klayout"
95 + mv lib* "${ED}/usr/$(get_libdir)/klayout/" || die
96 +
97 + dobin *
98 +}