summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sci-electronics/klayout/Manifest1
-rw-r--r--sci-electronics/klayout/klayout-0.30.4.ebuild82
-rw-r--r--sci-electronics/klayout/klayout-9999.ebuild4
3 files changed, 85 insertions, 2 deletions
diff --git a/sci-electronics/klayout/Manifest b/sci-electronics/klayout/Manifest
index b8208ec5f36f..9f03b014a4c9 100644
--- a/sci-electronics/klayout/Manifest
+++ b/sci-electronics/klayout/Manifest
@@ -1,2 +1,3 @@
DIST klayout-0.29.11-qt6.tar.xz 12956 BLAKE2B 9ae4d6f1645806cb1a039a0e905f47cba99f2c5fde3f49ea5a0354ea98df1c9e577fbf1b82bfaf73c8437733b630b1a46dbae026052df71c81270d0fb36c7c46 SHA512 6ba133119afa5ee4b39f1987c1333fa5e3eeac6eaeb1514d110db7ebb943613ce01c2d496d28479944193e5f8f68693e254a8208a9fab5df373866202748e0a5
DIST klayout-0.29.11.tar.gz 97526183 BLAKE2B 6da5c4590ae14c46f677b0e87fd001c89731db15abcbce42c3a22844a2277be7998c80cf8e39f0df8d3bdcc00ac39290fab87973ec3cf6aa21d4967f047ef143 SHA512 a03bc5e3ca612e0dab894a193e7f942ef4fb8860364fcdda2128b55fd81c82eb2c8122a1e340c03097a9def7942d151ba115def8322e3c103fcec09d4849f6dd
+DIST klayout-0.30.4.tar.gz 101138011 BLAKE2B 8d8e44bd2b87cc0b668d896b6cd0b1b7fd4b43b223da7fd65883b0cff23145f8da244d3898f6815778a32df5b2474e5dc9bec087e3a635ff296017c80fb6ad22 SHA512 0e94b7342d9cb3e3d91030948a9448eee75e682a7a1972a118c3de5e7dcee7dab10820c555c5cda10b4877f73fb8e2e1413330160e75bdfbd781fa7963e5bd0f
diff --git a/sci-electronics/klayout/klayout-0.30.4.ebuild b/sci-electronics/klayout/klayout-0.30.4.ebuild
new file mode 100644
index 000000000000..aa4a1caea903
--- /dev/null
+++ b/sci-electronics/klayout/klayout-0.30.4.ebuild
@@ -0,0 +1,82 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+RUBY_OPTIONAL=no
+USE_RUBY="ruby33"
+# note: define maximally ONE implementation here
+
+PYTHON_COMPAT=( python3_{11,12,13,14} )
+
+inherit toolchain-funcs python-single-r1 ruby-ng
+
+if [[ ${PV} = 9999* ]]; then
+ EGIT_REPO_URI="https://github.com/klayoutmatthias/${PN}.git"
+ inherit git-r3
+ EGIT_CHECKOUT_DIR=${WORKDIR}/all/${P}
+else
+ SRC_URI="https://www.klayout.org/downloads/source/${P}.tar.gz"
+ KEYWORDS="~amd64 ~x86"
+fi
+
+DESCRIPTION="Viewer and editor for GDS and OASIS integrated circuit layouts"
+HOMEPAGE="https://www.klayout.de/"
+LICENSE="GPL-2"
+SLOT="0"
+REQUIRED_USE=${PYTHON_REQUIRED_USE}
+
+RDEPEND="
+ dev-qt/qtbase:6[gui,network,sql,ssl,widgets,xml]
+ dev-qt/qtmultimedia:6
+ dev-qt/qtsvg:6
+ dev-qt/qttools:6[designer]
+ dev-libs/libgit2:=
+ sys-libs/zlib
+ ${PYTHON_DEPS}
+ $(ruby_implementations_depend)
+"
+DEPEND="${RDEPEND}"
+
+pkg_setup() {
+ python-single-r1_pkg_setup
+ ruby-ng_pkg_setup
+}
+
+each_ruby_configure() {
+ tc-export CC CXX AR LD RANLIB
+ export CFLAGS CXXFLAGS
+ ./build.sh \
+ -expert \
+ -dry-run \
+ -qmake "$EPREFIX/usr/$(get_libdir)/qt6/bin/qmake" \
+ -ruby "${RUBY}" \
+ -python "${PYTHON}" \
+ -build . \
+ -bin "${T}/bin" \
+ -rpath "$EPREFIX/usr/$(get_libdir)/klayout" \
+ -option "${MAKEOPTS}" \
+ -with-qtbinding \
+ -without-64bit-coord || die "Configuration failed"
+}
+
+each_ruby_compile() {
+ emake all
+}
+
+each_ruby_install() {
+ emake install
+
+ cd "${T}/bin" || die
+
+ dodir "/usr/$(get_libdir)/klayout"
+ mv lib* lay_plugins db_plugins "${ED}/usr/$(get_libdir)/klayout/" || die
+
+ mkdir -p "${D}/$(python_get_sitedir)" || die
+ mv pymod/* "${D}/$(python_get_sitedir)/" || die
+ rmdir pymod || die
+
+ dobin *
+
+ python_optimize
+}
diff --git a/sci-electronics/klayout/klayout-9999.ebuild b/sci-electronics/klayout/klayout-9999.ebuild
index b83d5613e22f..6e00a6b4b0af 100644
--- a/sci-electronics/klayout/klayout-9999.ebuild
+++ b/sci-electronics/klayout/klayout-9999.ebuild
@@ -4,10 +4,10 @@
EAPI=8
RUBY_OPTIONAL=no
-USE_RUBY="ruby32"
+USE_RUBY="ruby33"
# note: define maximally ONE implementation here
-PYTHON_COMPAT=( python3_{11,12,13} )
+PYTHON_COMPAT=( python3_{11,12,13,14} )
inherit toolchain-funcs python-single-r1 ruby-ng