diff options
author | Andreas K. Hüttel <dilfridge@gentoo.org> | 2021-05-29 15:25:42 +0200 |
---|---|---|
committer | Andreas K. Hüttel <dilfridge@gentoo.org> | 2021-05-29 15:26:59 +0200 |
commit | 54d3c67c6d918e0fa0d87374e9c7509491bedbd5 (patch) | |
tree | aa415f789196ed40a98a6c96ae818950bd43a385 /sci-electronics/klayout/klayout-0.27.ebuild | |
parent | media-libs/libxspf: 1.2.1 (diff) | |
download | gentoo-54d3c67c6d918e0fa0d87374e9c7509491bedbd5.tar.gz gentoo-54d3c67c6d918e0fa0d87374e9c7509491bedbd5.tar.bz2 gentoo-54d3c67c6d918e0fa0d87374e9c7509491bedbd5.zip |
sci-electronics/klayout: Version bump
Package-Manager: Portage-3.0.18, Repoman-3.0.2
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
Diffstat (limited to 'sci-electronics/klayout/klayout-0.27.ebuild')
-rw-r--r-- | sci-electronics/klayout/klayout-0.27.ebuild | 91 |
1 files changed, 91 insertions, 0 deletions
diff --git a/sci-electronics/klayout/klayout-0.27.ebuild b/sci-electronics/klayout/klayout-0.27.ebuild new file mode 100644 index 000000000000..046760b5f1c2 --- /dev/null +++ b/sci-electronics/klayout/klayout-0.27.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +RUBY_OPTIONAL=no +USE_RUBY="ruby26" +# note: define maximally ONE implementation here + +PYTHON_COMPAT=( python3_{7,8,9} ) + +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" +IUSE="" +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 + 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 "/usr/$(get_libdir)/qt5/bin/qmake" \ + -ruby "${RUBY}" \ + -python "${PYTHON}" \ + -build . \ + -bin "${T}/bin" \ + -rpath "/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 +} |