diff options
author | Andreas K. Hüttel <dilfridge@gentoo.org> | 2017-08-06 09:46:54 +0200 |
---|---|---|
committer | Andreas K. Hüttel <dilfridge@gentoo.org> | 2017-08-06 09:47:28 +0200 |
commit | fd8ca37cb73af8160048d4dd245c65a8c5366c6f (patch) | |
tree | 3a04efc403902c1ed9043777ca120990bb23e338 /sci-electronics/klayout/klayout-0.24.10.ebuild | |
parent | ros-meta/qt_gui_core: Bump to 0.3.6. (diff) | |
download | gentoo-fd8ca37cb73af8160048d4dd245c65a8c5366c6f.tar.gz gentoo-fd8ca37cb73af8160048d4dd245c65a8c5366c6f.tar.bz2 gentoo-fd8ca37cb73af8160048d4dd245c65a8c5366c6f.zip |
sci-electronics/klayout: Version bump, using Ruby 2.2
Package-Manager: Portage-2.3.6, Repoman-2.3.3
Diffstat (limited to 'sci-electronics/klayout/klayout-0.24.10.ebuild')
-rw-r--r-- | sci-electronics/klayout/klayout-0.24.10.ebuild | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/sci-electronics/klayout/klayout-0.24.10.ebuild b/sci-electronics/klayout/klayout-0.24.10.ebuild new file mode 100644 index 000000000000..b4e090a89093 --- /dev/null +++ b/sci-electronics/klayout/klayout-0.24.10.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +USE_RUBY="ruby22" +# note: define maximally ONE implementation here + +RUBY_OPTIONAL=no +inherit eutils multilib toolchain-funcs ruby-ng + +DESCRIPTION="Viewer and editor for GDS and OASIS integrated circuit layouts" +HOMEPAGE="http://www.klayout.de/" +SRC_URI="http://www.klayout.org/downloads/source/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND=" + dev-qt/designer:4 + dev-qt/qtgui:4[qt3support] + sys-libs/zlib + $(ruby_implementations_depend) +" +DEPEND="${RDEPEND}" + +PATCHES=( + "${FILESDIR}"/${PN}-0.24.9-c++11-no-throw-in-destuctor.patch +) + +all_ruby_prepare() { + # now we generate the stub build configuration file for the home-brew build system + cp "${FILESDIR}/${PN}-0.23.10-Makefile.conf.linux-gentoo" "${S}/config/Makefile.conf.linux-gentoo" || die +} + +each_ruby_configure() { + ./build.sh \ + -dry-run \ + -platform linux-gentoo \ + -bin bin \ + -ruby ${RUBY} \ + -qtbin /usr/lib64/qt4/bin \ + -qtinc /usr/include/qt4 \ + -qtlib /usr/$(get_libdir)/qt4 || die "Configuration failed" +} + +each_ruby_compile() { + cd build.linux-gentoo + tc-export CC CXX AR LD RANLIB + export AR="${AR} -r" + emake all +} + +each_ruby_install() { + cd build.linux-gentoo + emake install + + cd .. + dobin bin/klayout + + insinto /usr/share/${PN}/testdata/gds + doins testdata/gds/*.gds + insinto /usr/share/${PN}/testdata/oasis + doins testdata/oasis/*.oas testdata/oasis/*.ot + + insinto /usr/share/${PN} + doins -r testdata/ruby +} |