app-shells/bash: enable USE=static support in SLOT-ed ebuilds
authorMike Frysinger <vapier@gentoo.org>
Tue, 26 Jan 2016 07:50:12 +0000 (02:50 -0500)
committerMike Frysinger <vapier@gentoo.org>
Tue, 26 Jan 2016 07:52:19 +0000 (02:52 -0500)
app-shells/bash/bash-2.05b_p13.ebuild
app-shells/bash/bash-3.0_p22.ebuild
app-shells/bash/bash-3.1_p23.ebuild
app-shells/bash/bash-3.2_p57.ebuild
app-shells/bash/bash-4.0_p44.ebuild
app-shells/bash/bash-4.1_p17.ebuild
app-shells/bash/bash-4.2_p53.ebuild

index 56d5bcd6c655c861452be37a0a7520129c2e0d28..1863ad9d4b6b749dbbf6ad8a9c31071246dadcd8 100644 (file)
@@ -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
index 33a50c8c1bed48d67c73273be00afeb6af3a8735..b1d557938f394b297965d5634055707e11ab822a 100644 (file)
@@ -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
index d984d0d0575a3483aec9c3fcb5620825aaf2c174..620cbe368ae59a65052cc44b31e9e9f29006b1b4 100644 (file)
@@ -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
index 511e7b22cdf6966d272cccd7208fd318cdbaebf5..d27032812a6d2404713cfc2e49cd24e311fe3248 100644 (file)
@@ -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
index 2d8a80e01941fa89a4a09c923de7a42735989451..17211a6c3effaf7356356fa5e7e7e98c777f9cf4 100644 (file)
@@ -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
index ad19cf367709cb5a7f95f384bfd210b2dc00048e..1d34fdd98acaf26ce3682b016d3f3653b8811733 100644 (file)
@@ -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
index 1705530d650984eb15f0c9c77ff1308c6751b3c8..98d2e555595cf1be385b37702f3723e06076a544 100644 (file)
@@ -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