summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Rüger <mrueg@gentoo.org>2016-12-23 15:52:55 +0100
committerManuel Rüger <mrueg@gentoo.org>2016-12-23 15:52:55 +0100
commite2cbd36d3be616d48a33209d43a2c32bdeec66c5 (patch)
tree34469fe7310b54602460b65d053bd02c5da72daa /sci-libs
parentsci-astronomy/idlastro: Desymlink (diff)
downloadgentoo-e2cbd36d3be616d48a33209d43a2c32bdeec66c5.tar.gz
gentoo-e2cbd36d3be616d48a33209d43a2c32bdeec66c5.tar.bz2
gentoo-e2cbd36d3be616d48a33209d43a2c32bdeec66c5.zip
sci-libs/gsl: Add USE-flag to enable deprecated functions
As acked by jlec Package-Manager: portage-2.3.3
Diffstat (limited to 'sci-libs')
-rw-r--r--sci-libs/gsl/gsl-2.3.ebuild7
-rw-r--r--sci-libs/gsl/metadata.xml1
2 files changed, 6 insertions, 2 deletions
diff --git a/sci-libs/gsl/gsl-2.3.ebuild b/sci-libs/gsl/gsl-2.3.ebuild
index 1ef88655494f..8d2f3c5e03bc 100644
--- a/sci-libs/gsl/gsl-2.3.ebuild
+++ b/sci-libs/gsl/gsl-2.3.ebuild
@@ -13,7 +13,7 @@ SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0/19.3"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~x86-macos ~sparc-solaris ~x86-solaris"
-IUSE="cblas-external static-libs"
+IUSE="cblas-external +deprecated static-libs"
RDEPEND="cblas-external? ( virtual/cblas )"
DEPEND="${RDEPEND}
@@ -47,9 +47,12 @@ src_prepare() {
filter-flags -ffast-math
default
+ if use deprecated; then
+ sed -i -e "/GSL_DISABLE_DEPRECATED/,+2d" configure.ac || die
+ fi
eautoreconf
- cp "${FILESDIR}"/eselect.cblas.gsl "${T}"/
+ cp "${FILESDIR}"/eselect.cblas.gsl "${T}"/ || die
sed -i -e "s:/usr:${EPREFIX}/usr:" "${T}"/eselect.cblas.gsl || die
if [[ ${CHOST} == *-darwin* ]] ; then
sed -i -e 's/\.so\([\.0-9]\+\)\?/\1.dylib/g' \
diff --git a/sci-libs/gsl/metadata.xml b/sci-libs/gsl/metadata.xml
index 30aac9a98021..eb06cc2dd11c 100644
--- a/sci-libs/gsl/metadata.xml
+++ b/sci-libs/gsl/metadata.xml
@@ -21,5 +21,6 @@
<use>
<flag name="cblas-external">Link gsl with external cblas provided by
(<pkg>virtual/cblas</pkg>) instead of shipped internal version</flag>
+ <flag name="deprecated">Enable deprecated functions</flag>
</use>
</pkgmetadata>