libwps: bump to 0.4.9, add debuginfo.

This commit is contained in:
fbrosson
2018-04-26 10:38:48 +00:00
parent b7eefbbef1
commit 942d92aff7

View File

@@ -1,21 +1,25 @@
SUMMARY="Microsoft Works import library"
DESCRIPTION="libwps is a Microsoft Works file format import filter based on \
top of the librevenge."
HOMEPAGE="http://sourceforge.net/projects/libwps/"
COPYRIGHT="2011-2017 Laurent Alonso
HOMEPAGE="https://sourceforge.net/projects/libwps/"
COPYRIGHT="2011-2018 Laurent Alonso
2006-2014 Fridrich Strba
2015-2016 Sean Young
2006-2007 Andrew Ziehm
2012-2016 David Tardon"
LICENSE="MPL v2.0
GNU LGPL v2.1"
REVISION="2"
REVISION="1"
SOURCE_URI="https://downloads.sourceforge.net/libwps/libwps-$portVersion.tar.xz"
CHECKSUM_SHA256="2f2cab630bceace24f9dbb7d187cd6cd1f4c9f8a7b682c5f7e49c1e2cb58b217"
CHECKSUM_SHA256="13beb0c733bb1544a542b6ab1d9d205f218e9a2202d1d4cac056f79f6db74922"
ARCHITECTURES="!x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
portVers="0.4"
libVersion="4.0.${portVersion#$portVers.}"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
PROVIDES="
libwps$secondaryArchSuffix = $portVersion
cmd:wks2csv$secondaryArchSuffix
@@ -24,7 +28,7 @@ PROVIDES="
cmd:wps2html$secondaryArchSuffix
cmd:wps2raw$secondaryArchSuffix
cmd:wps2text$secondaryArchSuffix
lib:libwps_0.4$secondaryArchSuffix = 4.0.7 compat >= 4
lib:libwps_$portVers$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
@@ -36,7 +40,7 @@ REQUIRES="
PROVIDES_devel="
libwps${secondaryArchSuffix}_devel = $portVersion
devel:libwps_0.4$secondaryArchSuffix = 4.0.7 compat >= 4
devel:libwps_$portVers$secondaryArchSuffix = $libVersionCompat
"
REQUIRES_devel="
libwps$secondaryArchSuffix == $portVersion base
@@ -61,6 +65,15 @@ BUILD_PREREQUIRES="
cmd:pkg_config$secondaryArchSuffix
"
defineDebugInfoPackage libwps$secondaryArchSuffix \
"$binDir"/wks2csv \
"$binDir"/wks2raw \
"$binDir"/wks2text \
"$binDir"/wps2html \
"$binDir"/wps2raw \
"$binDir"/wps2text \
"$libDir"/libwps-$portVers.so.$libVersion
BUILD()
{
libtoolize --force --copy --install
@@ -74,12 +87,12 @@ BUILD()
INSTALL()
{
make install-strip
make install
# remove libtool file
rm $libDir/libwps-0.4.la
rm -f "$libDir"/libwps-$portVers.la
prepareInstalledDevelLibs libwps-0.4
prepareInstalledDevelLib libwps-$portVers
fixPkgconfig
packageEntries devel $developDir