From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 5C6B41396D0 for ; Sun, 1 Oct 2017 06:04:38 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 849F6E069C; Sun, 1 Oct 2017 06:04:37 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 63E06E069C for ; Sun, 1 Oct 2017 06:04:37 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 71C713417B4 for ; Sun, 1 Oct 2017 06:04:36 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 13C749078 for ; Sun, 1 Oct 2017 06:04:35 +0000 (UTC) From: "Andreas Hüttel" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Hüttel" Message-ID: <1506837857.87538dbfc9960d7b766279cea625f86d6add843c.dilfridge@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-electronics/klayout/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-electronics/klayout/klayout-9999.ebuild X-VCS-Directories: sci-electronics/klayout/ X-VCS-Committer: dilfridge X-VCS-Committer-Name: Andreas Hüttel X-VCS-Revision: 87538dbfc9960d7b766279cea625f86d6add843c X-VCS-Branch: master Date: Sun, 1 Oct 2017 06:04:35 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: dbaab834-0eb3-44a3-96fc-8db159269e6a X-Archives-Hash: 78a188039d22ff838910b09224d27b7f commit: 87538dbfc9960d7b766279cea625f86d6add843c Author: Andreas K. Hüttel gentoo org> AuthorDate: Sun Oct 1 06:03:51 2017 +0000 Commit: Andreas Hüttel gentoo org> CommitDate: Sun Oct 1 06:04:17 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=87538dbf sci-electronics/klayout: Add python scripting support Package-Manager: Portage-2.3.10, Repoman-2.3.3 sci-electronics/klayout/klayout-9999.ebuild | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/sci-electronics/klayout/klayout-9999.ebuild b/sci-electronics/klayout/klayout-9999.ebuild index a23a11d67fb..c7e32ad87f9 100644 --- a/sci-electronics/klayout/klayout-9999.ebuild +++ b/sci-electronics/klayout/klayout-9999.ebuild @@ -3,12 +3,13 @@ EAPI=6 +RUBY_OPTIONAL=no USE_RUBY="ruby22" # note: define maximally ONE implementation here -RUBY_OPTIONAL=no +PYTHON_COMPAT=( python{2_7,3_{4,5,6}} ) -inherit eutils multilib toolchain-funcs ruby-ng +inherit eutils multilib toolchain-funcs python-single-r1 ruby-ng if [[ ${PV} = 9999* ]]; then EGIT_REPO_URI="https://github.com/klayoutmatthias/${PN}.git" @@ -31,6 +32,7 @@ RDEPEND=" dev-qt/qtgui:5 dev-qt/qtwidgets:5 sys-libs/zlib + ${PYTHON_DEPS} $(ruby_implementations_depend) " DEPEND="${RDEPEND}" @@ -39,6 +41,11 @@ PATCHES=( "${FILESDIR}/${PN}-9999-expert.patch" ) +pkg_setup() { + python-single-r1_pkg_setup + ruby-ng_pkg_setup +} + each_ruby_configure() { tc-export CC CXX AR LD RANLIB export CFLAGS CXXFLAGS @@ -47,7 +54,7 @@ each_ruby_configure() { -dry-run \ -qmake /usr/lib64/qt5/bin/qmake \ -ruby "${RUBY}" \ - -nopython \ + -python "${PYTHON}" \ -build . \ -bin "${T}/bin" \ -rpath "/usr/$(get_libdir)/klayout" \