libetonyek: bump to 0.1.8, add debuginfo, sort PROVIDES. (#2493)

This commit is contained in:
fbrosson
2018-04-28 12:18:35 +00:00
committed by GitHub
parent 2d2472d492
commit 45644cdf6b

View File

@@ -1,28 +1,39 @@
SUMMARY="Apple Keynote import library"
DESCRIPTION="libetonyek is a library that parses the file format of Apple \
Keynote documents. It supports Keynote versions 2-5."
HOMEPAGE="http://wiki.documentfoundation.org/DLP/Libraries/libetonyek"
HOMEPAGE="https://wiki.documentfoundation.org/DLP/Libraries/libetonyek"
COPYRIGHT="Fridrich Strba, David Tardon"
LICENSE="MPL v2.0"
REVISION="2"
SOURCE_URI="http://dev-www.libreoffice.org/src/libetonyek/libetonyek-$portVersion.tar.bz2"
CHECKSUM_SHA256="c3f112eb90c8b2f91c4e0aa3962abff333a731f63b2b9b6ac410e61338d9abef"
REVISION="1"
SOURCE_URI="https://dev-www.libreoffice.org/src/libetonyek/libetonyek-$portVersion.tar.xz"
CHECKSUM_SHA256="9dc92347aee0cc9ed57b175a3e21f9d96ebe55d30fecb10e841d1050794ed82d"
ARCHITECTURES="!x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
commandSuffix=$secondaryArchSuffix
commandBinDir=$binDir
if [ "$targetArchitecture" = x86_gcc2 ]; then
commandSuffix=
commandBinDir=$prefix/bin
fi
libVersion="1.0.8"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
portVers="${portVersion%.*}"
PROVIDES="
libetonyek$secondaryArchSuffix = $portVersion
cmd:numbers2csv$secondaryArchSuffix
cmd:pages2html$secondaryArchSuffix
cmd:key2raw$secondaryArchSuffix
cmd:numbers2raw$secondaryArchSuffix
cmd:pages2raw$secondaryArchSuffix
cmd:key2xhtml$secondaryArchSuffix
cmd:key2text$secondaryArchSuffix
cmd:numbers2text$secondaryArchSuffix
cmd:pages2text$secondaryArchSuffix
lib:libetonyek_0.1$secondaryArchSuffix = 1.0.7 compat >= 1
cmd:key2raw$commandSuffix = $portVersion
cmd:key2text$commandSuffix = $portVersion
cmd:key2xhtml$commandSuffix = $portVersion
cmd:numbers2csv$commandSuffix = $portVersion
cmd:numbers2raw$commandSuffix = $portVersion
cmd:numbers2text$commandSuffix = $portVersion
cmd:pages2html$commandSuffix = $portVersion
cmd:pages2raw$commandSuffix = $portVersion
cmd:pages2text$commandSuffix = $portVersion
lib:libetonyek_$portVers$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
@@ -36,7 +47,7 @@ REQUIRES="
PROVIDES_devel="
libetonyek${secondaryArchSuffix}_devel = $portVersion
devel:libetonyek_0.1$secondaryArchSuffix = 1.0.7 compat >= 1
devel:libetonyek_0.1$secondaryArchSuffix = $libVersionCompat
"
REQUIRES_devel="
libetonyek$secondaryArchSuffix == $portVersion base
@@ -68,21 +79,34 @@ BUILD_PREREQUIRES="
cmd:gperf
"
defineDebugInfoPackage libetonyek$secondaryArchSuffix \
"$commandBinDir"/key2raw \
"$commandBinDir"/key2text \
"$commandBinDir"/key2xhtml \
"$commandBinDir"/numbers2csv \
"$commandBinDir"/numbers2raw \
"$commandBinDir"/numbers2text \
"$commandBinDir"/pages2html \
"$commandBinDir"/pages2raw \
"$commandBinDir"/pages2text \
"$libDir"/libetonyek-$portVers.so.$libVersion
BUILD()
{
autoreconf -fi
runConfigure ./configure --with-mdds=1.2
runConfigure --omit-dirs binDir ./configure --bindir="$commandBinDir" \
--with-mdds=1.2
make $jobArgs
}
INSTALL()
{
make install-strip
make install
# remove libtool file
rm $libDir/libetonyek-0.1.la
rm -f "$libDir"/libetonyek-$portVers.la
prepareInstalledDevelLibs libetonyek-0.1
prepareInstalledDevelLib libetonyek-$portVers
fixPkgconfig
packageEntries devel $developDir
@@ -90,6 +114,5 @@ INSTALL()
TEST()
{
# TODO: 1 test fails
make check
}