mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
ginac, disable static library, cleanup (#8478)
This commit is contained in:
@@ -7,12 +7,12 @@ existing numeric software written in C++."
|
||||
HOMEPAGE="https://www.ginac.de/"
|
||||
COPYRIGHT="1999-2016 Johannes Gutenberg University Mainz, Germany"
|
||||
LICENSE="GNU GPL v2"
|
||||
REVISION="2"
|
||||
REVISION="3"
|
||||
SOURCE_URI="https://src.fedoraproject.org/repo/pkgs/ginac/ginac-1.7.2.tar.bz2/sha512/5c356beb8e0830b9f5805870f67298d4c19e512db8b8f46a37b490c19179a5c99e4497439e5adb575dd97e7deb5fe0b931a4b6db80e98a8e1e6f46977e33d8cf/ginac-$portVersion.tar.bz2"
|
||||
CHECKSUM_SHA256="24b75b61c5cb272534e35b3f2cfd64f053b28aee7402af4b0e569ec4de21d8b7"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="!x86_gcc2 x86"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
if [ "$targetArchitecture" != x86_gcc2 ]; then
|
||||
commandSuffix=$secondaryArchSuffix
|
||||
@@ -22,23 +22,26 @@ else
|
||||
commandBinDir=$prefix/bin
|
||||
fi
|
||||
|
||||
libVersion="5.0.3"
|
||||
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
||||
|
||||
PROVIDES="
|
||||
ginac$secondaryArchSuffix = $portVersion
|
||||
lib:libginac$secondaryArchSuffix = 5.0.3 compat >= 5
|
||||
cmd:ginac_excompiler$commandSuffix = $portVersion
|
||||
cmd:ginsh$commandSuffix = $portVersion
|
||||
cmd:viewgar$commandSuffix = $portVersion
|
||||
lib:libginac$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libcln$secondaryArchSuffix >= 6
|
||||
lib:libcln$secondaryArchSuffix
|
||||
lib:libncurses$secondaryArchSuffix
|
||||
lib:libreadline$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
ginac${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libginac$secondaryArchSuffix = 5.0.3 compat >= 5
|
||||
devel:libginac$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES_devel="
|
||||
ginac$secondaryArchSuffix == $portVersion base
|
||||
@@ -46,22 +49,30 @@ REQUIRES_devel="
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libcln$secondaryArchSuffix >= 6
|
||||
devel:libcln$secondaryArchSuffix
|
||||
devel:libncurses$secondaryArchSuffix
|
||||
devel:libreadline$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:awk
|
||||
cmd:diff
|
||||
cmd:make
|
||||
cmd:python >= 2.7
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
cmd:python3
|
||||
"
|
||||
|
||||
PATCH()
|
||||
{
|
||||
sed -i 's,\/usr/bin/env python,\/bin/env python3,g' ginsh/*.py
|
||||
sed -i 's,\/usr/bin/env python,\/bin/env python3,g' scripts/*.py
|
||||
}
|
||||
|
||||
BUILD()
|
||||
{
|
||||
runConfigure --omit-dirs binDir ./configure --bindir=$commandBinDir
|
||||
runConfigure --omit-dirs binDir ./configure \
|
||||
--bindir=$commandBinDir \
|
||||
--disable-static
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
@@ -72,7 +83,6 @@ INSTALL()
|
||||
rm $libDir/*.la
|
||||
|
||||
prepareInstalledDevelLib libginac
|
||||
|
||||
fixPkgconfig
|
||||
|
||||
packageEntries devel \
|
||||
|
||||
Reference in New Issue
Block a user