commit:     9a80064e5bdb270313ad4a531e413b62d7374a60
Author:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Tue Jan 26 07:50:12 2016 +0000
Commit:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Tue Jan 26 07:52:19 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9a80064e

app-shells/bash: enable USE=static support in SLOT-ed ebuilds

 app-shells/bash/bash-2.05b_p13.ebuild | 19 +++++++++----------
 app-shells/bash/bash-3.0_p22.ebuild   | 19 +++++++++----------
 app-shells/bash/bash-3.1_p23.ebuild   | 19 +++++++++----------
 app-shells/bash/bash-3.2_p57.ebuild   | 19 +++++++++----------
 app-shells/bash/bash-4.0_p44.ebuild   | 19 +++++++++----------
 app-shells/bash/bash-4.1_p17.ebuild   | 19 +++++++++----------
 app-shells/bash/bash-4.2_p53.ebuild   | 21 ++++++++++-----------
 7 files changed, 64 insertions(+), 71 deletions(-)

diff --git a/app-shells/bash/bash-2.05b_p13.ebuild 
b/app-shells/bash/bash-2.05b_p13.ebuild
index 56d5bcd..1863ad9 100644
--- a/app-shells/bash/bash-2.05b_p13.ebuild
+++ b/app-shells/bash/bash-2.05b_p13.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -35,12 +35,14 @@ SRC_URI="mirror://gnu/bash/${MY_P}.tar.gz $(patches)"
 LICENSE="GPL-2"
 SLOT="${MY_PV}"
 KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc 
x86 ~sparc-fbsd ~x86-fbsd"
-IUSE="afs +net nls +readline"
+IUSE="afs +net nls +readline static"
 
-DEPEND=">=sys-libs/ncurses-5.2-r2
-       readline? ( >=sys-libs/readline-6.2 )
-       nls? ( virtual/libintl )"
-RDEPEND="${DEPEND}"
+LIB_DEPEND=">=sys-libs/ncurses-5.2-r2[static-libs(+)]
+       nls? ( virtual/libintl )
+       readline? ( >=sys-libs/readline-6.2[static-libs(+)] )"
+RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} )"
+DEPEND="${RDEPEND}
+       static? ( ${LIB_DEPEND} )"
 
 S=${WORKDIR}/${MY_P}
 
@@ -95,10 +97,7 @@ src_configure() {
                -DNON_INTERACTIVE_LOGIN_SHELLS \
                -DSSH_SOURCE_BASHRC
 
-       # Don't even think about building this statically without
-       # reading Bug 7714 first.  If you still build it statically,
-       # don't come crying to us with bugs ;).
-       #use static && export LDFLAGS="${LDFLAGS} -static"
+       use static && append-ldflags -static
        use nls || myconf+=( --disable-nls )
 
        # Historically, we always used the builtin readline, but since

diff --git a/app-shells/bash/bash-3.0_p22.ebuild 
b/app-shells/bash/bash-3.0_p22.ebuild
index 33a50c8..b1d5579 100644
--- a/app-shells/bash/bash-3.0_p22.ebuild
+++ b/app-shells/bash/bash-3.0_p22.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -35,12 +35,14 @@ SRC_URI="mirror://gnu/bash/${MY_P}.tar.gz $(patches)"
 LICENSE="GPL-2"
 SLOT="${MY_PV}"
 KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc 
x86 ~sparc-fbsd ~x86-fbsd"
-IUSE="afs +net nls +readline"
+IUSE="afs +net nls +readline static"
 
-DEPEND=">=sys-libs/ncurses-5.2-r2
-       readline? ( >=sys-libs/readline-6.2 )
-       nls? ( virtual/libintl )"
-RDEPEND="${DEPEND}"
+LIB_DEPEND=">=sys-libs/ncurses-5.2-r2[static-libs(+)]
+       nls? ( virtual/libintl )
+       readline? ( >=sys-libs/readline-6.2[static-libs(+)] )"
+RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} )"
+DEPEND="${RDEPEND}
+       static? ( ${LIB_DEPEND} )"
 
 S=${WORKDIR}/${MY_P}
 
@@ -103,10 +105,7 @@ src_configure() {
                -DNON_INTERACTIVE_LOGIN_SHELLS \
                -DSSH_SOURCE_BASHRC
 
-       # Don't even think about building this statically without
-       # reading Bug 7714 first.  If you still build it statically,
-       # don't come crying to us with bugs ;).
-       #use static && export LDFLAGS="${LDFLAGS} -static"
+       use static && append-ldflags -static
        use nls || myconf+=( --disable-nls )
 
        # Historically, we always used the builtin readline, but since

diff --git a/app-shells/bash/bash-3.1_p23.ebuild 
b/app-shells/bash/bash-3.1_p23.ebuild
index d984d0d..620cbe3 100644
--- a/app-shells/bash/bash-3.1_p23.ebuild
+++ b/app-shells/bash/bash-3.1_p23.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -35,12 +35,14 @@ SRC_URI="mirror://gnu/bash/${MY_P}.tar.gz $(patches)"
 LICENSE="GPL-2"
 SLOT="${MY_PV}"
 KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc 
x86 ~sparc-fbsd ~x86-fbsd"
-IUSE="afs +net nls +readline"
+IUSE="afs +net nls +readline static"
 
-DEPEND=">=sys-libs/ncurses-5.2-r2
-       readline? ( >=sys-libs/readline-6.2 )
-       nls? ( virtual/libintl )"
-RDEPEND="${DEPEND}"
+LIB_DEPEND=">=sys-libs/ncurses-5.2-r2[static-libs(+)]
+       nls? ( virtual/libintl )
+       readline? ( >=sys-libs/readline-6.2[static-libs(+)] )"
+RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} )"
+DEPEND="${RDEPEND}
+       static? ( ${LIB_DEPEND} )"
 
 S=${WORKDIR}/${MY_P}
 
@@ -95,10 +97,7 @@ src_configure() {
                -DNON_INTERACTIVE_LOGIN_SHELLS \
                -DSSH_SOURCE_BASHRC
 
-       # Don't even think about building this statically without
-       # reading Bug 7714 first.  If you still build it statically,
-       # don't come crying to us with bugs ;).
-       #use static && export LDFLAGS="${LDFLAGS} -static"
+       use static && append-ldflags -static
        use nls || myconf+=( --disable-nls )
 
        # Historically, we always used the builtin readline, but since

diff --git a/app-shells/bash/bash-3.2_p57.ebuild 
b/app-shells/bash/bash-3.2_p57.ebuild
index 511e7b2..d270328 100644
--- a/app-shells/bash/bash-3.2_p57.ebuild
+++ b/app-shells/bash/bash-3.2_p57.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -35,12 +35,14 @@ SRC_URI="mirror://gnu/bash/${MY_P}.tar.gz $(patches)"
 LICENSE="GPL-2"
 SLOT="${MY_PV}"
 KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc 
x86 ~sparc-fbsd ~x86-fbsd"
-IUSE="afs +net nls +readline"
+IUSE="afs +net nls +readline static"
 
-DEPEND=">=sys-libs/ncurses-5.2-r2
-       readline? ( >=sys-libs/readline-6.2 )
-       nls? ( virtual/libintl )"
-RDEPEND="${DEPEND}"
+LIB_DEPEND=">=sys-libs/ncurses-5.2-r2[static-libs(+)]
+       nls? ( virtual/libintl )
+       readline? ( >=sys-libs/readline-6.2[static-libs(+)] )"
+RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} )"
+DEPEND="${RDEPEND}
+       static? ( ${LIB_DEPEND} )"
 
 S=${WORKDIR}/${MY_P}
 
@@ -97,10 +99,7 @@ src_configure() {
                -DNON_INTERACTIVE_LOGIN_SHELLS \
                -DSSH_SOURCE_BASHRC
 
-       # Don't even think about building this statically without
-       # reading Bug 7714 first.  If you still build it statically,
-       # don't come crying to us with bugs ;).
-       #use static && export LDFLAGS="${LDFLAGS} -static"
+       use static && append-ldflags -static
        use nls || myconf+=( --disable-nls )
 
        # Historically, we always used the builtin readline, but since

diff --git a/app-shells/bash/bash-4.0_p44.ebuild 
b/app-shells/bash/bash-4.0_p44.ebuild
index 2d8a80e..17211a6 100644
--- a/app-shells/bash/bash-4.0_p44.ebuild
+++ b/app-shells/bash/bash-4.0_p44.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -35,12 +35,14 @@ SRC_URI="mirror://gnu/bash/${MY_P}.tar.gz $(patches)"
 LICENSE="GPL-3"
 SLOT="${MY_PV}"
 KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc 
x86 ~sparc-fbsd ~x86-fbsd"
-IUSE="afs mem-scramble +net nls +readline"
+IUSE="afs mem-scramble +net nls +readline static"
 
-DEPEND=">=sys-libs/ncurses-5.2-r2
-       readline? ( >=sys-libs/readline-6.2 )
-       nls? ( virtual/libintl )"
-RDEPEND="${DEPEND}"
+LIB_DEPEND=">=sys-libs/ncurses-5.2-r2[static-libs(+)]
+       nls? ( virtual/libintl )
+       readline? ( >=sys-libs/readline-6.2[static-libs(+)] )"
+RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} )"
+DEPEND="${RDEPEND}
+       static? ( ${LIB_DEPEND} )"
 
 S=${WORKDIR}/${MY_P}
 
@@ -91,10 +93,7 @@ src_configure() {
                -DNON_INTERACTIVE_LOGIN_SHELLS \
                -DSSH_SOURCE_BASHRC
 
-       # Don't even think about building this statically without
-       # reading Bug 7714 first.  If you still build it statically,
-       # don't come crying to us with bugs ;).
-       #use static && export LDFLAGS="${LDFLAGS} -static"
+       use static && append-ldflags -static
        use nls || myconf+=( --disable-nls )
 
        # Historically, we always used the builtin readline, but since

diff --git a/app-shells/bash/bash-4.1_p17.ebuild 
b/app-shells/bash/bash-4.1_p17.ebuild
index ad19cf3..1d34fdd 100644
--- a/app-shells/bash/bash-4.1_p17.ebuild
+++ b/app-shells/bash/bash-4.1_p17.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -35,12 +35,14 @@ SRC_URI="mirror://gnu/bash/${MY_P}.tar.gz $(patches)"
 LICENSE="GPL-3"
 SLOT="${MY_PV}"
 KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc 
x86 ~sparc-fbsd ~x86-fbsd"
-IUSE="afs mem-scramble +net nls +readline"
+IUSE="afs mem-scramble +net nls +readline static"
 
-DEPEND=">=sys-libs/ncurses-5.2-r2
-       readline? ( >=sys-libs/readline-6.2 )
-       nls? ( virtual/libintl )"
-RDEPEND="${DEPEND}"
+LIB_DEPEND=">=sys-libs/ncurses-5.2-r2[static-libs(+)]
+       nls? ( virtual/libintl )
+       readline? ( >=sys-libs/readline-6.2[static-libs(+)] )"
+RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} )"
+DEPEND="${RDEPEND}
+       static? ( ${LIB_DEPEND} )"
 
 S=${WORKDIR}/${MY_P}
 
@@ -88,10 +90,7 @@ src_configure() {
                -DNON_INTERACTIVE_LOGIN_SHELLS \
                -DSSH_SOURCE_BASHRC
 
-       # Don't even think about building this statically without
-       # reading Bug 7714 first.  If you still build it statically,
-       # don't come crying to us with bugs ;).
-       #use static && export LDFLAGS="${LDFLAGS} -static"
+       use static && append-ldflags -static
        use nls || myconf+=( --disable-nls )
 
        # Historically, we always used the builtin readline, but since

diff --git a/app-shells/bash/bash-4.2_p53.ebuild 
b/app-shells/bash/bash-4.2_p53.ebuild
index 1705530..98d2e55 100644
--- a/app-shells/bash/bash-4.2_p53.ebuild
+++ b/app-shells/bash/bash-4.2_p53.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -35,14 +35,16 @@ SRC_URI="mirror://gnu/bash/${MY_P}.tar.gz $(patches)"
 LICENSE="GPL-3"
 SLOT="${MY_PV}"
 KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc 
x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
-IUSE="afs mem-scramble +net nls +readline"
+IUSE="afs mem-scramble +net nls +readline static"
 
-DEPEND=">=sys-libs/ncurses-5.2-r2
-       readline? ( >=sys-libs/readline-6.2 )
-       nls? ( virtual/libintl )"
-RDEPEND="${DEPEND}"
+LIB_DEPEND=">=sys-libs/ncurses-5.2-r2[static-libs(+)]
+       nls? ( virtual/libintl )
+       readline? ( >=sys-libs/readline-6.2[static-libs(+)] )"
+RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} )"
 # we only need yacc when the .y files get patched (bash42-005)
-DEPEND+=" virtual/yacc"
+DEPEND="${RDEPEND}
+       virtual/yacc
+       static? ( ${LIB_DEPEND} )"
 
 S=${WORKDIR}/${MY_P}
 
@@ -93,10 +95,7 @@ src_configure() {
                -DNON_INTERACTIVE_LOGIN_SHELLS \
                -DSSH_SOURCE_BASHRC
 
-       # Don't even think about building this statically without
-       # reading Bug 7714 first.  If you still build it statically,
-       # don't come crying to us with bugs ;).
-       #use static && export LDFLAGS="${LDFLAGS} -static"
+       use static && append-ldflags -static
        use nls || myconf+=( --disable-nls )
 
        # Historically, we always used the builtin readline, but since

Reply via email to