Gentoo Archives: gentoo-commits

From: "Andreas K. Hüttel" <dilfridge@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-electronics/klayout/
Date: Wed, 06 May 2020 21:16:01
Message-Id: 1588799729.641170fdad408cc6f31f9c5fb0d6115a02d39b17.dilfridge@gentoo
1 commit: 641170fdad408cc6f31f9c5fb0d6115a02d39b17
2 Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
3 AuthorDate: Wed May 6 21:11:44 2020 +0000
4 Commit: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
5 CommitDate: Wed May 6 21:15:29 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=641170fd
7
8 sci-electronics/klayout: Versin bump
9
10 Closes: https://bugs.gentoo.org/715340
11 Package-Manager: Portage-2.3.99, Repoman-2.3.22
12 Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org>
13
14 sci-electronics/klayout/Manifest | 1 +
15 sci-electronics/klayout/klayout-0.26.5.ebuild | 90 +++++++++++++++++++++++++++
16 2 files changed, 91 insertions(+)
17
18 diff --git a/sci-electronics/klayout/Manifest b/sci-electronics/klayout/Manifest
19 index 03d3c2d61eb..976d8a3ca13 100644
20 --- a/sci-electronics/klayout/Manifest
21 +++ b/sci-electronics/klayout/Manifest
22 @@ -1 +1,2 @@
23 DIST klayout-0.26.4.tar.gz 52324714 BLAKE2B 663ab737d91a83452234f128b13f73ed8e559e6f0fb11f283bce6bfe80e8f391c7bac5ad16933b2f5bcf46fac6e07233ffc690dea5ddb1702850c52501157c36 SHA512 df91434e87d8cc6f4df837eacd756566626405fb75b0cce40c25f157d547dc1e5929746b6b276a317512c038e014bbdd1655615c93d76d9ed5bcf65280d95355
24 +DIST klayout-0.26.5.tar.gz 52335763 BLAKE2B b1ab39c378ce23c28f5a58191dbf43c5b8c165e9df241b00573c8f8b72a5a7251cddd41bf62a7e37f59cad68024c52ab99f8d0f10bf1bf45dba975bf37ba80db SHA512 b80dff34a9dd538921f6863fc94eb8a2160b989468ec0493a7ecfdfccea0e4f0441aa1ee860d000b150b0a0bc0b831dcb849ab77e9eb1304e9ed6fcced94689c
25
26 diff --git a/sci-electronics/klayout/klayout-0.26.5.ebuild b/sci-electronics/klayout/klayout-0.26.5.ebuild
27 new file mode 100644
28 index 00000000000..30250478884
29 --- /dev/null
30 +++ b/sci-electronics/klayout/klayout-0.26.5.ebuild
31 @@ -0,0 +1,90 @@
32 +# Copyright 1999-2020 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +RUBY_OPTIONAL=no
38 +USE_RUBY="ruby25"
39 +# note: define maximally ONE implementation here
40 +
41 +PYTHON_COMPAT=( python3_{6,7,8} )
42 +
43 +inherit toolchain-funcs python-single-r1 ruby-ng
44 +
45 +if [[ ${PV} = 9999* ]]; then
46 + EGIT_REPO_URI="https://github.com/klayoutmatthias/${PN}.git"
47 + inherit git-r3
48 + EGIT_CHECKOUT_DIR=${WORKDIR}/all/${P}
49 +else
50 + SRC_URI="https://www.klayout.org/downloads/source/${P}.tar.gz"
51 + KEYWORDS="~amd64 ~x86"
52 +fi
53 +
54 +DESCRIPTION="Viewer and editor for GDS and OASIS integrated circuit layouts"
55 +HOMEPAGE="https://www.klayout.de/"
56 +LICENSE="GPL-2"
57 +SLOT="0"
58 +IUSE=""
59 +REQUIRED_USE=${PYTHON_REQUIRED_USE}
60 +
61 +RDEPEND="
62 + dev-qt/designer:5
63 + dev-qt/qtcore:5
64 + dev-qt/qtgui:5
65 + dev-qt/qtmultimedia:5[widgets]
66 + dev-qt/qtnetwork:5[ssl]
67 + dev-qt/qtprintsupport:5
68 + dev-qt/qtsql:5
69 + dev-qt/qtsvg:5
70 + dev-qt/qtwidgets:5
71 + dev-qt/qtxml:5
72 + dev-qt/qtxmlpatterns:5
73 + sys-libs/zlib
74 + ${PYTHON_DEPS}
75 + $(ruby_implementations_depend)
76 +"
77 +DEPEND="${RDEPEND}"
78 +
79 +pkg_setup() {
80 + python-single-r1_pkg_setup
81 + ruby-ng_pkg_setup
82 +}
83 +
84 +each_ruby_configure() {
85 + tc-export CC CXX AR LD RANLIB
86 + export CFLAGS CXXFLAGS
87 + ./build.sh \
88 + -expert \
89 + -dry-run \
90 + -qmake "/usr/$(get_libdir)/qt5/bin/qmake" \
91 + -ruby "${RUBY}" \
92 + -python "${PYTHON}" \
93 + -build . \
94 + -bin "${T}/bin" \
95 + -rpath "/usr/$(get_libdir)/klayout" \
96 + -option "${MAKEOPTS}" \
97 + -with-qtbinding \
98 + -without-64bit-coord \
99 + -qt5 || die "Configuration failed"
100 +}
101 +
102 +each_ruby_compile() {
103 + emake all
104 +}
105 +
106 +each_ruby_install() {
107 + emake install
108 +
109 + cd "${T}/bin" || die
110 +
111 + dodir "/usr/$(get_libdir)/klayout"
112 + mv lib* lay_plugins db_plugins "${ED}/usr/$(get_libdir)/klayout/" || die
113 +
114 + mkdir -p "${D}/$(python_get_sitedir)" || die
115 + mv pymod/* "${D}/$(python_get_sitedir)/" || die
116 + rmdir pymod || die
117 +
118 + dobin *
119 +
120 + python_optimize
121 +}