Cppunit fix (#2494)

This commit is contained in:
miqlas
2018-05-07 19:53:46 +02:00
committed by waddlesplash
parent b4d60cafda
commit 0561b2a97b
2 changed files with 21 additions and 94 deletions

View File

@@ -1,8 +1,7 @@
SUMMARY="C++ unit testing framework"
DESCRIPTION="
CppUnit is a C++ unit testing framework. It started its life as a port of \
JUnit to C++ by Michael Feathers."
HOMEPAGE="http://cppunit.sourceforge.net/"
DESCRIPTION="CppUnit is a C++ unit testing framework. It started its life as \
a port of JUnit to C++ by Michael Feathers."
HOMEPAGE="https://www.freedesktop.org/wiki/Software/cppunit/"
COPYRIGHT="2000 Jerome Lacoste
2000 Michael Feathers
2000-2002 E. Sommerlade
@@ -11,19 +10,24 @@ COPYRIGHT="2000 Jerome Lacoste
2001-2002, 2007-2008 Steve Robbins
2012-2013 Harvey Brydon"
LICENSE="GNU LGPL v2.1"
REVISION="1"
SOURCE_URI="http://dev-www.libreoffice.org/src/cppunit-$portVersion.tar.gz"
REVISION="2"
SOURCE_URI="https://dev-www.libreoffice.org/src/cppunit-$portVersion.tar.gz"
CHECKSUM_SHA256="3d569869d27b48860210c758c4f313082103a5e58219a7669b52bfd29d674780"
ARCHITECTURES="x86 x86_gcc2 x86_64"
SECONDARY_ARCHITECTURES="x86"
libVersion="0.0.0"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
portVersionCompat="$portVersion compat >= ${portVersion%%.*}"
portVers="${portVersion%.*}"
PROVIDES="
cppunit$secondaryArchSuffix = $portVersion
cmd:cppunit_config$secondaryArchSuffix = $portVersion compat >= 1.14
cmd:DllPlugInTester$secondaryArchSuffix = $portVersion compat >= 1.14
lib:libcppunit$secondaryArchSuffix = $portVersion compat >= 1.14
lib:libcppunit_1.14$secondaryArchSuffix = $portVersion compat >= 1.14
cmd:cppunit_config$secondaryArchSuffix = $portVersionCompat
cmd:DllPlugInTester$secondaryArchSuffix = $portVersionCompat
lib:libcppunit$secondaryArchSuffix = $libVersionCompat
lib:libcppunit_$portVers$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
@@ -31,7 +35,8 @@ REQUIRES="
PROVIDES_devel="
cppunit${secondaryArchSuffix}_devel = $portVersion
devel:libcppunit$secondaryArchSuffix = $portVersion compat >= 1.14
devel:libcppunit$secondaryArchSuffix = $libVersionCompat
devel:libcppunit_$portVers$secondaryArchSuffix = $libVersionCompat
"
REQUIRES_devel="
cppunit$secondaryArchSuffix == $portVersion base
@@ -42,17 +47,19 @@ BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:libtoolize
cmd:autoreconf
cmd:g++$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:libtoolize$secondaryArchSuffix
cmd:make
cmd:sed
"
defineDebugInfoPackage cppunit$secondaryArchSuffix \
$libDir/libcppunit-$portVers.so.$libVersion
BUILD()
{
libtoolize --force --copy --install
autoreconf -i
runConfigure ./configure
make $jobArgs
@@ -64,7 +71,7 @@ INSTALL()
rm $libDir/libcppunit.la
prepareInstalledDevelLib libcppunit
prepareInstalledDevelLibs libcppunit-$portVers libcppunit
fixPkgconfig
packageEntries devel $developDir