mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
libsolv: Add latest upstream version (0.7.2)
* I'm leaving untested until we can test its functionality. (builds fine on x86_64 though) * This is pretty core and used by package kit, pkgman, etc. * Needs to also go into haikuports.cross
This commit is contained in:
90
dev-libs/libsolv/libsolv-0.7.2.recipe
Normal file
90
dev-libs/libsolv/libsolv-0.7.2.recipe
Normal file
@@ -0,0 +1,90 @@
|
||||
SUMMARY="A library for solving packages and reading repositories"
|
||||
DESCRIPTION="A Library for solving packages and reading repositories."
|
||||
HOMEPAGE="https://github.com/openSUSE/libsolv"
|
||||
COPYRIGHT="2007-2019, Novell Inc."
|
||||
LICENSE="BSD (3-clause)"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/openSUSE/libsolv/archive/$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="8aa19c6726789f500e7301180608d09e6af99d75a2d336435686ae438bd9933e"
|
||||
SOURCE_FILENAME="libsolv-$portVersion.tar.gz"
|
||||
|
||||
ARCHITECTURES="?x86_gcc2 ?x86 ?x86_64 ?ppc ?arm"
|
||||
SECONDARY_ARCHITECTURES="?x86_gcc2 ?x86"
|
||||
|
||||
PROVIDES="
|
||||
libsolv$secondaryArchSuffix = $portVersion
|
||||
lib:libsolv$secondaryArchSuffix = $portVersion
|
||||
lib:libsolvext$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libexpat$secondaryArchSuffix
|
||||
lib:libz$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
libsolv${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libsolv${secondaryArchSuffix} = $portVersion
|
||||
devel:libsolvext${secondaryArchSuffix} = $portVersion
|
||||
"
|
||||
REQUIRES_devel="
|
||||
libsolv${secondaryArchSuffix} == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
devel:libexpat$secondaryArchSuffix
|
||||
devel:libz$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
cmd:cmake
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:sed
|
||||
"
|
||||
|
||||
PATCH()
|
||||
{
|
||||
sed -i 's,${CMAKE_INSTALL_PREFIX}/bin',$binDir, CMakeLists.txt
|
||||
sed -i 's,${CMAKE_INSTALL_PREFIX}/include',$includeDir, \
|
||||
src/CMakeLists.txt ext/CMakeLists.txt
|
||||
}
|
||||
|
||||
BUILD()
|
||||
{
|
||||
rm -rf build
|
||||
mkdir build
|
||||
cd build
|
||||
cmake -DCMAKE_INSTALL_PREFIX:PATH=$prefix -DLIB=$relativeLibDir ..
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd build
|
||||
make install
|
||||
|
||||
# set up the develop directory correctly
|
||||
prepareInstalledDevelLibs libsolv libsolvext
|
||||
|
||||
# move cmake files
|
||||
mkdir -p $dataDir
|
||||
mv $prefix/share/cmake $dataDir
|
||||
|
||||
# move man pages
|
||||
mkdir -p $manDir
|
||||
mv $prefix/share/man/* $manDir
|
||||
rmdir $prefix/share/man
|
||||
|
||||
# clean up share directory
|
||||
rmdir $prefix/share
|
||||
|
||||
# We don't want the executables.
|
||||
rm -r $prefix/bin
|
||||
|
||||
# devel package
|
||||
packageEntries devel \
|
||||
$dataDir \
|
||||
$developDir
|
||||
}
|
||||
Reference in New Issue
Block a user