Skip to content

Commit

Permalink
gsl: bump to 2.5, fix PROVIDES{,_devel}, add commandBinDir. (#2700)
Browse files Browse the repository at this point in the history
{lib,devel}:libgsl had a wrong compat, ">= 0" instead of ">= 23",
so we will need to rebuild calligra, krita and xaos.
  • Loading branch information
fbrosson committed Jun 17, 2018
1 parent a4c104b commit ab26644
Showing 1 changed file with 41 additions and 12 deletions.
53 changes: 41 additions & 12 deletions sci-libs/gsl/gsl-2.4.recipe → sci-libs/gsl/gsl-2.5.recipe
@@ -1,7 +1,7 @@
SUMMARY="GNU Scientific Library"
DESCRIPTION="This is GSL, the GNU Scientific Library, a collection of \
numerical routines for scientific computing."
HOMEPAGE="http://www.gnu.org/software/gsl/"
HOMEPAGE="https://www.gnu.org/software/gsl/"
COPYRIGHT="1996-2007, 2009, 2010 Gerard Jungman
1996-2001, 2003, 2004, 2005, 2007, 2008, 2009, 2010, 2013 Brian Gough
1996-2000, 2007, 2010 Jim Davies
Expand Down Expand Up @@ -51,18 +51,31 @@ COPYRIGHT="1996-2007, 2009, 2010 Gerard Jungman
2002-2004 Jason H. Stover"
LICENSE="GNU GPL v3"
REVISION="1"
SOURCE_URI="http://ftp.gnu.org/gnu/gsl/gsl-$portVersion.tar.gz"
CHECKSUM_SHA256="4d46d07b946e7b31c19bbf33dda6204d7bedc2f5462a1bae1d4013426cd1ce9b"
SOURCE_URI="https://ftpmirror.gnu.org/gsl/gsl-$portVersion.tar.gz
https://ftp.gnu.org/gnu/gsl/gsl-$portVersion.tar.gz"
CHECKSUM_SHA256="0460ad7c2542caaddc6729762952d345374784100223995eb14d614861f2258d"

ARCHITECTURES="!x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86"

commandSuffix=$secondaryArchSuffix
commandBinDir=$binDir
if [ "$targetArchitecture" = x86_gcc2 ]; then
commandSuffix=
commandBinDir=$prefix/bin
fi

libgslVersion="23.1.0"
libgslcblasVersion="0.0.0"
libgslVersionCompat="$libgslVersion compat >= ${libgslVersion%%.*}"
libgslcblasVersionCompat="$libgslcblasVersion compat >= ${libgslcblasVersion%%.*}"

PROVIDES="
gsl$secondaryArchSuffix = $portVersion compat >= 1
cmd:gsl_histogram$secondaryArchSuffix
cmd:gsl_randist$secondaryArchSuffix
lib:libgsl$secondaryArchSuffix = 23.0.0 compat >= 0
lib:libgslcblas$secondaryArchSuffix = 0.0.0 compat >= 0
cmd:gsl_histogram$commandSuffix = $portVersion
cmd:gsl_randist$commandSuffix = $portVersion
lib:libgsl$secondaryArchSuffix = $libgslVersionCompat
lib:libgslcblas$secondaryArchSuffix = $libgslcblasVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
Expand All @@ -71,8 +84,8 @@ REQUIRES="
PROVIDES_devel="
gsl${secondaryArchSuffix}_devel = $portVersion compat >= 1
cmd:gsl_config$secondaryArchSuffix
devel:libgsl$secondaryArchSuffix = 23.0.0 compat >= 0
devel:libgslcblas$secondaryArchSuffix = 0.0.0 compat >= 0
devel:libgsl$secondaryArchSuffix = $libgslVersionCompat
devel:libgslcblas$secondaryArchSuffix = $libgslcblasVersionCompat
"
REQUIRES_devel="
gsl$secondaryArchSuffix == $portVersion base
Expand All @@ -93,13 +106,15 @@ BUILD_PREREQUIRES="
"

defineDebugInfoPackage gsl$secondaryArchSuffix \
$libDir/libgsl.so.23.0.0 \
$libDir/libgslcblas.so.0.0.0
"$commandBinDir"/gsl-histogram \
"$commandBinDir"/gsl-randist \
"$libDir"/libgsl.so.$libgslVersion \
"$libDir"/libgslcblas.so.$libgslcblasVersion \

BUILD()
{
autoreconf -fi
runConfigure ./configure
runConfigure --omit-dirs binDir ./configure --bindir="$commandBinDir"
make $jobArgs
}

Expand All @@ -110,11 +125,25 @@ INSTALL()
prepareInstalledDevelLibs libgsl libgslcblas
fixPkgconfig

if [ -n "$secondaryArchSuffix" -a -z "$commandSuffix" ]; then
mkdir -p "$binDir"
mv "$commandBinDir"/gsl-config "$binDir"
fi

# devel package
packageEntries devel \
$binDir/gsl-config \
$developDir \
$manDir/man1/gsl-config.1 \
$manDir/man3 \
$dataDir/aclocal

if [ -n "$secondaryArchSuffix" -a -z "$commandSuffix" ]; then
rmdir "$binDir"
fi
}

TEST()
{
make check
}

0 comments on commit ab26644

Please sign in to comment.