dev-lang/ghc: add a ncurses:5/5 binary dependency, bug #561276
authorSergei Trofimovich <slyfox@gentoo.org>
Mon, 3 Jul 2017 19:57:17 +0000 (20:57 +0100)
committerSergei Trofimovich <slyfox@gentoo.org>
Mon, 3 Jul 2017 19:57:27 +0000 (20:57 +0100)
Reported-by: Erich Seifert
Bug: https://bugs.gentoo.org/561276
Package-Manager: Portage-2.3.6, Repoman-2.3.2

dev-lang/ghc/ghc-7.10.3.ebuild
dev-lang/ghc/ghc-7.8.4.ebuild
dev-lang/ghc/ghc-8.0.2.ebuild

index 9945f4816692dda44a9d32e604145c31a336d3a5..fb6bc873376f09d78da36ccd61331104f4fa8821 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=5
@@ -83,27 +83,20 @@ RDEPEND="
        sys-libs/ncurses:=[unicode]
        !ghcmakebinary? ( virtual/libffi:= )
 "
-# gentoo binaries are built against ncurses-5
-RDEPEND+="
-       binary? (
-               || (
-                       sys-libs/ncurses:0/5
-                       sys-libs/ncurses:5/5
-               )
-       )
+
+PREBUILT_BINARY_DEPENDS="
+       !prefix? ( elibc_glibc? ( >=sys-libs/glibc-2.17 ) )
+       sys-libs/ncurses:5/5
 "
 
-# force dependency on >=gmp-5, even if >=gmp-4.1 would be enough. this is due to
-# that we want the binaries to use the latest versioun available, and not to be
-# built against gmp-4
+RDEPEND+="binary? ( ${PREBUILT_BINARY_DEPENDS} )"
 
-# similar for glibc. we have bootstrapped binaries against glibc-2.17
 DEPEND="${RDEPEND}
        doc? ( app-text/docbook-xml-dtd:4.2
                app-text/docbook-xml-dtd:4.5
                app-text/docbook-xsl-stylesheets
                >=dev-libs/libxslt-1.1.2 )
-       !ghcbootstrap? ( !prefix? ( elibc_glibc? ( >=sys-libs/glibc-2.17 ) ) )"
+       !ghcbootstrap? ( ${PREBUILT_BINARY_DEPENDS} )"
 
 PDEPEND="!ghcbootstrap? ( =app-admin/haskell-updater-1.2* )"
 
index 00c4b0e0dfa49737e00dc4c40415f79e04b3253e..659446b80e5e1e57676004144ba1bc0adb28748f 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=5
@@ -76,28 +76,21 @@ RDEPEND="
        sys-libs/ncurses:=[unicode]
        !ghcmakebinary? ( virtual/libffi:= )
 "
-# gentoo binaries are built against ncurses-5
-RDEPEND+="
-       binary? (
-               || (
-                       sys-libs/ncurses:0/5
-                       sys-libs/ncurses:5/5
-               )
-       )
+
+PREBUILT_BINARY_DEPENDS="
+       !prefix? ( elibc_glibc? ( >=sys-libs/glibc-2.17 ) )
+       sys-libs/ncurses:5/5
 "
 
-# force dependency on >=gmp-5, even if >=gmp-4.1 would be enough. this is due to
-# that we want the binaries to use the latest versioun available, and not to be
-# built against gmp-4
+RDEPEND+="binary? ( ${PREBUILT_BINARY_DEPENDS} )"
 
-# similar for glibc. we have bootstrapped binaries against glibc-2.17
 DEPEND="${RDEPEND}
        ghcbootstrap? (
                doc? ( app-text/docbook-xml-dtd:4.2
                        app-text/docbook-xml-dtd:4.5
                        app-text/docbook-xsl-stylesheets
                        >=dev-libs/libxslt-1.1.2 ) )
-       !ghcbootstrap? ( !prefix? ( elibc_glibc? ( >=sys-libs/glibc-2.17 ) ) )"
+       !ghcbootstrap? ( ${PREBUILT_BINARY_DEPENDS} )"
 
 PDEPEND="!ghcbootstrap? ( =app-admin/haskell-updater-1.2* )"
 
index 35b9ae7f93a47b42291b6287d062eb157cf935e1..61c62ccf6fae6a199019a877877b53639dbafce6 100644 (file)
@@ -81,20 +81,20 @@ RDEPEND="
        sys-libs/ncurses:=[unicode]
        !ghcmakebinary? ( virtual/libffi:= )
 "
-# gentoo binaries are built against ncurses-6
-RDEPEND+="
-       binary? (
-               sys-libs/ncurses:0/6
-       )
+
+PREBUILT_BINARY_DEPENDS="
+       sys-libs/ncurses:0/6
 "
 
+RDEPEND+="binary? ( ${PREBUILT_BINARY_DEPENDS} )"
+
 DEPEND="${RDEPEND}
        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} )"
 
 PDEPEND="!ghcbootstrap? ( =app-admin/haskell-updater-1.2* )"