public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sergei Trofimovich" <slyfox@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/ghc/
Date: Tue, 20 Apr 2021 19:31:25 +0000 (UTC)	[thread overview]
Message-ID: <1618947081.efe8d14608f9b047bf92652c347fe9eb2a775400.slyfox@gentoo> (raw)

commit:     efe8d14608f9b047bf92652c347fe9eb2a775400
Author:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Tue Apr 20 19:30:38 2021 +0000
Commit:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Tue Apr 20 19:31:21 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=efe8d146

dev-lang/ghc: use ${EPYTHON}

Reported-by: Agostino Sarubbo
Closes: https://bugs.gentoo.org/774141
Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>

 dev-lang/ghc/ghc-8.10.4.ebuild | 19 +++++++++++++++++--
 dev-lang/ghc/ghc-8.8.4.ebuild  | 22 +++++++++++++++++++---
 dev-lang/ghc/ghc-9.0.1.ebuild  | 19 +++++++++++++++++--
 3 files changed, 53 insertions(+), 7 deletions(-)

diff --git a/dev-lang/ghc/ghc-8.10.4.ebuild b/dev-lang/ghc/ghc-8.10.4.ebuild
index 26565839933..3e4cfb0d0db 100644
--- a/dev-lang/ghc/ghc-8.10.4.ebuild
+++ b/dev-lang/ghc/ghc-8.10.4.ebuild
@@ -13,6 +13,8 @@ if [[ ${CTARGET} = ${CHOST} ]] ; then
 	fi
 fi
 
+PYTHON_COMPAT=( python3_{7..9} )
+inherit python-any-r1
 inherit autotools bash-completion-r1 eutils flag-o-matic ghc-package
 inherit multilib multiprocessing pax-utils toolchain-funcs prefix
 inherit check-reqs
@@ -105,14 +107,23 @@ PREBUILT_BINARY_RDEPENDS="${PREBUILT_BINARY_DEPENDS}
 
 RDEPEND+="binary? ( ${PREBUILT_BINARY_RDEPENDS} )"
 
-DEPEND="${RDEPEND}
+DEPEND="${RDEPEND}"
+BDEPEND="
 	virtual/pkgconfig
 	doc? ( app-text/docbook-xml-dtd:4.2
 		app-text/docbook-xml-dtd:4.5
 		app-text/docbook-xsl-stylesheets
 		dev-python/sphinx
 		>=dev-libs/libxslt-1.1.2 )
-	!ghcbootstrap? ( ${PREBUILT_BINARY_DEPENDS} )"
+	!ghcbootstrap? ( ${PREBUILT_BINARY_DEPENDS} )
+	test? ( ${PYTHON_DEPS} )
+"
+
+needs_python() {
+	# test driver is written in python
+	use test && return 0
+	return 1
+}
 
 # we build binaries without profiling support
 REQUIRED_USE="
@@ -380,6 +391,10 @@ pkg_setup() {
 			die "No binary available for '${ARCH}' arch yet, USE=ghcbootstrap"
 		fi
 	fi
+
+	if needs_python; then
+		python-any-r1_pkg_setup
+	fi
 }
 
 src_unpack() {

diff --git a/dev-lang/ghc/ghc-8.8.4.ebuild b/dev-lang/ghc/ghc-8.8.4.ebuild
index 2b7cd22116b..8bf1fa84bbb 100644
--- a/dev-lang/ghc/ghc-8.8.4.ebuild
+++ b/dev-lang/ghc/ghc-8.8.4.ebuild
@@ -13,6 +13,8 @@ if [[ ${CTARGET} = ${CHOST} ]] ; then
 	fi
 fi
 
+PYTHON_COMPAT=( python3_{7..9} )
+inherit python-any-r1
 inherit autotools bash-completion-r1 eutils flag-o-matic ghc-package
 inherit multilib multiprocessing pax-utils toolchain-funcs prefix
 inherit check-reqs
@@ -104,14 +106,23 @@ PREBUILT_BINARY_RDEPENDS="${PREBUILT_BINARY_DEPENDS}
 
 RDEPEND+="binary? ( ${PREBUILT_BINARY_RDEPENDS} )"
 
-DEPEND="${RDEPEND}
+DEPEND="${RDEPEND}"
+BDEPEND="
 	virtual/pkgconfig
 	doc? ( app-text/docbook-xml-dtd:4.2
 		app-text/docbook-xml-dtd:4.5
 		app-text/docbook-xsl-stylesheets
 		dev-python/sphinx
 		>=dev-libs/libxslt-1.1.2 )
-	!ghcbootstrap? ( ${PREBUILT_BINARY_DEPENDS} )"
+	!ghcbootstrap? ( ${PREBUILT_BINARY_DEPENDS} )
+	test? ( ${PYTHON_DEPS} )
+"
+
+needs_python() {
+	# test driver is written in python
+	use test && return 0
+	return 1
+}
 
 # we build binaries without profiling support
 REQUIRED_USE="
@@ -389,6 +400,10 @@ pkg_setup() {
 			die "No binary available for '${ARCH}' arch yet, USE=ghcbootstrap"
 		fi
 	fi
+
+	if needs_python; then
+		python-any-r1_pkg_setup
+	fi
 }
 
 src_unpack() {
@@ -436,6 +451,7 @@ src_prepare() {
 				pushd "${WORKDIR}"/ghc-bin-installer > /dev/null || die
 				use sparc-solaris && unpack ghc-6.10.4-sparc-sun-solaris2.tar.bz2
 				use x86-solaris && unpack ghc-7.0.3-i386-unknown-solaris2.tar.bz2
+				use x86-macos && unpack ghc-7.4.1-i386-apple-darwin.tar.bz2
 				use x64-macos && unpack ghc-7.4.1-x86_64-apple-darwin.tar.bz2
 				popd > /dev/null
 
@@ -640,7 +656,7 @@ src_configure() {
 			# using ${GTARGET}'s libffi is not supported yet:
 			# GHC embeds full path for ffi includes without /usr/${CTARGET} account.
 			econf_args+=(--with-system-libffi)
-			econf_args+=(--with-ffi-includes=$($(tc-getPKG_CONFIG) libffi --cflags-only-I | sed -e 's@^-I@@'))
+			econf_args+=(--with-ffi-includes=$(pkg-config libffi --cflags-only-I | sed -e 's@^-I@@'))
 		fi
 
 		einfo "Final mk/build.mk:"

diff --git a/dev-lang/ghc/ghc-9.0.1.ebuild b/dev-lang/ghc/ghc-9.0.1.ebuild
index 3a1b5e9d9a8..9f33f2d0b49 100644
--- a/dev-lang/ghc/ghc-9.0.1.ebuild
+++ b/dev-lang/ghc/ghc-9.0.1.ebuild
@@ -13,6 +13,8 @@ if [[ ${CTARGET} = ${CHOST} ]] ; then
 	fi
 fi
 
+PYTHON_COMPAT=( python3_{7..9} )
+inherit python-any-r1
 inherit autotools bash-completion-r1 eutils flag-o-matic ghc-package
 inherit multilib multiprocessing pax-utils toolchain-funcs prefix
 inherit check-reqs
@@ -105,14 +107,23 @@ PREBUILT_BINARY_RDEPENDS="${PREBUILT_BINARY_DEPENDS}
 
 RDEPEND+="binary? ( ${PREBUILT_BINARY_RDEPENDS} )"
 
-DEPEND="${RDEPEND}
+DEPEND="${RDEPEND}"
+BDEPEND="
 	virtual/pkgconfig
 	doc? ( app-text/docbook-xml-dtd:4.2
 		app-text/docbook-xml-dtd:4.5
 		app-text/docbook-xsl-stylesheets
 		dev-python/sphinx
 		>=dev-libs/libxslt-1.1.2 )
-	!ghcbootstrap? ( ${PREBUILT_BINARY_DEPENDS} )"
+	!ghcbootstrap? ( ${PREBUILT_BINARY_DEPENDS} )
+	test? ( ${PYTHON_DEPS} )
+"
+
+needs_python() {
+	# test driver is written in python
+	use test && return 0
+	return 1
+}
 
 # we build binaries without profiling support
 REQUIRED_USE="
@@ -380,6 +391,10 @@ pkg_setup() {
 			die "No binary available for '${ARCH}' arch yet, USE=ghcbootstrap"
 		fi
 	fi
+
+	if needs_python; then
+		python-any-r1_pkg_setup
+	fi
 }
 
 src_unpack() {


             reply	other threads:[~2021-04-20 19:31 UTC|newest]

Thread overview: 93+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-20 19:31 Sergei Trofimovich [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-10-01 21:03 [gentoo-commits] repo/gentoo:master commit in: dev-lang/ghc/ Matt Turner
2023-11-20  7:36 Sam James
2023-10-14  0:47 Sam James
2023-10-14  0:47 Sam James
2023-10-14  0:47 Sam James
2023-10-14  0:47 Sam James
2023-05-27 15:29 Sam James
2023-04-10  5:09 Sam James
2023-03-17 21:54 Sam James
2023-03-17 18:23 Sam James
2023-02-21  5:13 Sam James
2023-02-21  5:13 Sam James
2023-02-21  5:13 Sam James
2023-02-21  5:13 Sam James
2023-02-21  5:13 Sam James
2023-02-05 15:19 Sam James
2023-01-21  2:37 Sam James
2022-11-25 21:57 Sam James
2022-11-25 21:57 Sam James
2022-10-15  0:57 Sam James
2022-10-04 15:34 Sam James
2022-08-31 21:49 Sam James
2022-08-14 21:31 Sam James
2022-07-30  9:20 Sam James
2022-07-29  2:33 Sam James
2022-07-23  2:08 Sam James
2022-07-22 22:36 Sam James
2022-07-22 22:34 Sam James
2022-01-05 10:01 David Seifert
2021-07-18  8:58 Sergei Trofimovich
2021-06-19  9:05 Sergei Trofimovich
2021-06-18 21:07 David Seifert
2021-06-06 13:45 Sergei Trofimovich
2021-03-15 22:33 Sergei Trofimovich
2021-03-14  8:47 Sergei Trofimovich
2021-02-28 20:20 Sergei Trofimovich
2021-01-07  8:20 Fabian Groffen
2020-12-24 22:40 Sergei Trofimovich
2020-12-24  8:28 Sergei Trofimovich
2020-12-20 22:26 Sergei Trofimovich
2020-09-05  8:11 Sergei Trofimovich
2020-08-02  8:23 Sergei Trofimovich
2020-07-24  7:06 Sergei Trofimovich
2020-05-23  6:17 Mike Frysinger
2020-04-11 11:05 Sergei Trofimovich
2020-04-11  8:12 Sergei Trofimovich
2020-03-25 22:31 Sergei Trofimovich
2020-03-17  3:00 Matt Turner
2020-01-19 14:59 Sergei Trofimovich
2020-01-11 18:58 Sergei Trofimovich
2020-01-11 18:58 Sergei Trofimovich
2020-01-10 20:09 Sergei Trofimovich
2019-11-10 15:14 Michał Górny
2019-10-01 19:14 Michał Górny
2019-07-17 21:05 Sergei Trofimovich
2019-07-01  7:55 Sergei Trofimovich
2019-03-09 13:16 Sergei Trofimovich
2018-06-18 18:07 Tobias Klausmann
2018-06-12  7:52 Sergei Trofimovich
2018-06-10 11:22 Sergei Trofimovich
2018-06-09 19:09 Sergei Trofimovich
2018-05-09 18:37 Sergei Trofimovich
2018-03-09 22:36 Sergei Trofimovich
2018-01-22  0:01 Sergei Trofimovich
2017-12-26 12:30 Sergei Trofimovich
2017-11-25 14:14 Sergei Trofimovich
2017-11-24  8:01 Sergei Trofimovich
2017-11-24  7:52 Sergei Trofimovich
2017-09-02 20:50 Sergei Trofimovich
2017-09-02 20:29 Sergei Trofimovich
2017-07-12 20:16 Sergei Trofimovich
2017-07-11 21:57 Sergei Trofimovich
2017-07-11 20:45 Sergei Trofimovich
2017-07-08 13:18 Sergei Trofimovich
2017-07-08 11:59 Sergei Trofimovich
2017-07-03 19:57 Sergei Trofimovich
2017-06-20 21:56 Sergei Trofimovich
2017-05-28  0:41 Benda XU
2017-03-19 10:28 Sergei Trofimovich
2017-02-18 12:12 Sergei Trofimovich
2017-02-18 12:12 Sergei Trofimovich
2017-02-14 22:59 Sergei Trofimovich
2017-02-14 22:16 Sergei Trofimovich
2017-02-14 22:16 Sergei Trofimovich
2017-01-20 10:21 Sergei Trofimovich
2016-12-28 22:49 Sergei Trofimovich
2016-12-28 21:14 Sergei Trofimovich
2016-07-26  9:07 Benda XU
2016-04-04 20:32 Sergei Trofimovich
2016-02-10 23:04 Sergei Trofimovich
2015-08-28 21:50 Sergei Trofimovich
2015-08-27 22:24 Sergei Trofimovich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1618947081.efe8d14608f9b047bf92652c347fe9eb2a775400.slyfox@gentoo \
    --to=slyfox@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox