commit:     b7235edf171c4bf83930cfd497078fd6f2592b4b
Author:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
AuthorDate: Sat Sep 30 01:45:55 2017 +0000
Commit:     Andreas Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Sat Sep 30 01:46:56 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b7235edf

sci-electronics/klayout: Add live ebuild

Builds, installs, and runs fine at the moment, but some QA fixes
are still needed (e.g., *FLAGS compliance).

Package-Manager: Portage-2.3.10, Repoman-2.3.3

 sci-electronics/klayout/klayout-9999.ebuild | 75 +++++++++++++++++++++++++++++
 1 file changed, 75 insertions(+)

diff --git a/sci-electronics/klayout/klayout-9999.ebuild 
b/sci-electronics/klayout/klayout-9999.ebuild
new file mode 100644
index 00000000000..8b43bc444d3
--- /dev/null
+++ b/sci-electronics/klayout/klayout-9999.ebuild
@@ -0,0 +1,75 @@
+# 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
+
+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="http://www.klayout.org/downloads/source/${P}.tar.gz";
+       KEYWORDS="~amd64 ~x86"
+fi
+
+DESCRIPTION="Viewer and editor for GDS and OASIS integrated circuit layouts"
+HOMEPAGE="http://www.klayout.de/";
+LICENSE="GPL-2"
+SLOT="0"
+IUSE=""
+
+RDEPEND="
+       dev-qt/designer:5
+       dev-qt/qtcore:5
+       dev-qt/qtgui:5
+       dev-qt/qtwidgets:5
+       sys-libs/zlib
+       $(ruby_implementations_depend)
+"
+DEPEND="${RDEPEND}"
+
+all_ruby_prepare() {
+       default
+}
+
+each_ruby_configure() {
+       tc-export CC CXX AR LD RANLIB
+       export CFLAGS CXXFLAGS
+       ./build.sh \
+               -dry-run \
+               -qmake /usr/lib64/qt5/bin/qmake \
+               -ruby "${RUBY}" \
+               -nopython \
+               -build . \
+               -bin "${T}/bin" \
+               -rpath "/usr/$(get_libdir)/klayout" \
+               -option "${MAKEOPTS}" \
+               -with-qtbinding \
+               -without-64bit-coord \
+               -qt5 \
+               -qtbin /usr/lib64/qt5/bin \
+               -qtinc /usr/include/qt5 \
+               -qtlib "/usr/$(get_libdir)/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* "${ED}/usr/$(get_libdir)/klayout/" || die
+
+       dobin *
+}

Reply via email to