diff options
author | Andreas K. Hüttel <dilfridge@gentoo.org> | 2024-09-27 13:33:45 +0200 |
---|---|---|
committer | Andreas K. Hüttel <dilfridge@gentoo.org> | 2024-09-27 13:33:45 +0200 |
commit | ce3a3e7f3764644caa58b82f97da299f7703c688 (patch) | |
tree | 534ce2aab9e9ac6efb79095aa7787ae9da71e808 /sci-electronics | |
parent | mail-mta/courier: add 1.3.13 (diff) | |
download | gentoo-ce3a3e7f3764644caa58b82f97da299f7703c688.tar.gz gentoo-ce3a3e7f3764644caa58b82f97da299f7703c688.tar.bz2 gentoo-ce3a3e7f3764644caa58b82f97da299f7703c688.zip |
sci-electronics/klayout: add 0.29.7
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
Diffstat (limited to 'sci-electronics')
-rw-r--r-- | sci-electronics/klayout/Manifest | 1 | ||||
-rw-r--r-- | sci-electronics/klayout/klayout-0.29.7.ebuild | 91 | ||||
-rw-r--r-- | sci-electronics/klayout/klayout-9999.ebuild | 8 |
3 files changed, 96 insertions, 4 deletions
diff --git a/sci-electronics/klayout/Manifest b/sci-electronics/klayout/Manifest index 328e9c04e415..0e7e7df97977 100644 --- a/sci-electronics/klayout/Manifest +++ b/sci-electronics/klayout/Manifest @@ -1 +1,2 @@ DIST klayout-0.28.9.tar.gz 88388706 BLAKE2B 0997bf15aae1dd1e8356fec91ae281511751db0ae1a4bfdfde38d5a04392351a7893206806a0eb7d842f8ee2fd7819b1a86257376d3ba5af11bb81b84836e571 SHA512 dcd882ef84161f2d28195f8e0239fd122f17f9954e5cc146f71bbb6816b9fb723eb3b0299e01fbb293ef7fb7f87c25efbfe09126349ee13f89de68c5bb5f7e93 +DIST klayout-0.29.7.tar.gz 97112729 BLAKE2B 3e6d97bcbef5a1ef34ab6ac035db88dfa7f590ef7ab5d3b6312248244cbe4538407db0278b6c7dc2f0a5a4a966d21ee60d1f11200327773979852ecb835ec078 SHA512 361337d028b8266abd2c5114643a7b2074c794f5685b336658168f09df1f3e4826de2d3cb1e094bd2f08616d6f0be78c8f6b44144c74367dcaf65785476ab8ae diff --git a/sci-electronics/klayout/klayout-0.29.7.ebuild b/sci-electronics/klayout/klayout-0.29.7.ebuild new file mode 100644 index 000000000000..c4024bf6fb48 --- /dev/null +++ b/sci-electronics/klayout/klayout-0.29.7.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +RUBY_OPTIONAL=no +USE_RUBY="ruby32" +# note: define maximally ONE implementation here + +PYTHON_COMPAT=( python3_{11,12,13} ) + +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/designer:5 + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtmultimedia:5[widgets] + dev-qt/qtnetwork:5[ssl] + dev-qt/qtprintsupport:5 + dev-qt/qtsql:5 + dev-qt/qtsvg:5 + dev-qt/qttest:5 + dev-qt/qtwidgets:5 + dev-qt/qtxml:5 + dev-qt/qtxmlpatterns:5 + 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)/qt5/bin/qmake" \ + -ruby "${RUBY}" \ + -python "${PYTHON}" \ + -build . \ + -bin "${T}/bin" \ + -rpath "$EPREFIX/usr/$(get_libdir)/klayout" \ + -option "${MAKEOPTS}" \ + -with-qtbinding \ + -without-64bit-coord \ + -qt5 || 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 a09175915e24..c4024bf6fb48 100644 --- a/sci-electronics/klayout/klayout-9999.ebuild +++ b/sci-electronics/klayout/klayout-9999.ebuild @@ -1,13 +1,13 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 RUBY_OPTIONAL=no -USE_RUBY="ruby31" +USE_RUBY="ruby32" # note: define maximally ONE implementation here -PYTHON_COMPAT=( python3_{9,10,11,12} ) +PYTHON_COMPAT=( python3_{11,12,13} ) inherit toolchain-funcs python-single-r1 ruby-ng @@ -24,7 +24,6 @@ DESCRIPTION="Viewer and editor for GDS and OASIS integrated circuit layouts" HOMEPAGE="https://www.klayout.de/" LICENSE="GPL-2" SLOT="0" -IUSE="" REQUIRED_USE=${PYTHON_REQUIRED_USE} RDEPEND=" @@ -40,6 +39,7 @@ RDEPEND=" dev-qt/qtwidgets:5 dev-qt/qtxml:5 dev-qt/qtxmlpatterns:5 + dev-libs/libgit2 sys-libs/zlib ${PYTHON_DEPS} $(ruby_implementations_depend) |