mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-14 07:40:07 +02:00
159 lines
4.9 KiB
Bash
159 lines
4.9 KiB
Bash
SUMMARY="A library for processing spreadsheet documents"
|
|
DESCRIPTION="Orcus is a library that provides a collection of standalone file \
|
|
processing filters. It is currently focused on providing filters for \
|
|
spreadsheet documents."
|
|
HOMEPAGE="https://gitlab.com/orcus/orcus"
|
|
COPYRIGHT="Kohei Yoshida et al."
|
|
LICENSE="MPL v2.0"
|
|
REVISION="3"
|
|
SOURCE_URI="https://gitlab.com/orcus/orcus/-/archive/$portVersion/orcus-$portVersion.tar.bz2"
|
|
CHECKSUM_SHA256="79fcc2998191fe5853a05edafe97a04d73e45d95d38237ad03500fe266f03503"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
boostMinimumVersion=1.69.0
|
|
|
|
commandBinDir=$binDir
|
|
commandSuffix=$secondaryArchSuffix
|
|
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
|
commandSuffix=
|
|
commandBinDir=$prefix/bin
|
|
fi
|
|
|
|
soVersion="${portVersion%.*}"
|
|
ixionSoVersion=$soVersion
|
|
|
|
PROVIDES="
|
|
orcus$secondaryArchSuffix = $portVersion
|
|
lib:liborcus_$soVersion$secondaryArchSuffix = 0.0.0 compat >= 0
|
|
lib:liborcus_mso_$soVersion$secondaryArchSuffix = 0.0.0 compat >= 0
|
|
lib:liborcus_parser_$soVersion$secondaryArchSuffix = 0.0.0 compat >= 0
|
|
lib:liborcus_spreadsheet_model_$soVersion$secondaryArchSuffix = 0.0.0 compat >= 0
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libboost_date_time$secondaryArchSuffix
|
|
lib:libboost_system$secondaryArchSuffix
|
|
lib:libboost_filesystem$secondaryArchSuffix
|
|
lib:libboost_iostreams$secondaryArchSuffix
|
|
lib:libboost_program_options$secondaryArchSuffix
|
|
lib:libixion_$ixionSoVersion$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
orcus${secondaryArchSuffix}_devel = $portVersion
|
|
devel:liborcus_$soVersion$secondaryArchSuffix = 0.0.0 compat >= 0
|
|
devel:liborcus_mso_$soVersion$secondaryArchSuffix = 0.0.0 compat >= 0
|
|
devel:liborcus_parser_$soVersion$secondaryArchSuffix = 0.0.0 compat >= 0
|
|
devel:liborcus_spreadsheet_model_$soVersion$secondaryArchSuffix = 0.0.0 compat >= 0
|
|
"
|
|
REQUIRES_devel="
|
|
orcus$secondaryArchSuffix == $portVersion base
|
|
devel:libixion_$ixionSoVersion$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_tools="
|
|
orcus${secondaryArchSuffix}_tools = $portVersion
|
|
cmd:orcus_css_dump$commandSuffix = $portVersion
|
|
cmd:orcus_csv$commandSuffix = $portVersion
|
|
cmd:orcus_detect$commandSuffix = $portVersion
|
|
cmd:orcus_gnumeric$commandSuffix = $portVersion
|
|
cmd:orcus_json$commandSuffix = $portVersion
|
|
cmd:orcus_mso_encryption$commandSuffix = $portVersion
|
|
cmd:orcus_ods$commandSuffix = $portVersion
|
|
cmd:orcus_styles_ods$commandSuffix = $portVersion
|
|
cmd:orcus_xls_xml$commandSuffix = $portVersion
|
|
cmd:orcus_xlsx$commandSuffix = $portVersion
|
|
cmd:orcus_xml$commandSuffix = $portVersion
|
|
cmd:orcus_xml_dump$commandSuffix = $portVersion
|
|
cmd:orcus_yaml$commandSuffix = $portVersion
|
|
cmd:orcus_zip_dump$commandSuffix = $portVersion
|
|
"
|
|
REQUIRES_tools="
|
|
orcus$secondaryArchSuffix == $portVersion base
|
|
$REQUIRES
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libboost_date_time$secondaryArchSuffix >= $boostMinimumVersion
|
|
devel:libboost_system$secondaryArchSuffix >= $boostMinimumVersion
|
|
devel:libboost_filesystem$secondaryArchSuffix >= $boostMinimumVersion
|
|
devel:libboost_iostreams$secondaryArchSuffix >= $boostMinimumVersion
|
|
devel:libboost_program_options$secondaryArchSuffix >= $boostMinimumVersion
|
|
devel:libixion_$ixionSoVersion$secondaryArchSuffix
|
|
devel:libz$secondaryArchSuffix
|
|
devel:mdds >= 2
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:aclocal
|
|
cmd:autoconf
|
|
cmd:automake
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
defineDebugInfoPackage orcus$secondaryArchSuffix \
|
|
$(getPackagePrefix tools)/bin/orcus-css-dump \
|
|
$(getPackagePrefix tools)/bin/orcus-csv \
|
|
$(getPackagePrefix tools)/bin/orcus-detect \
|
|
$(getPackagePrefix tools)/bin/orcus-gnumeric \
|
|
$(getPackagePrefix tools)/bin/orcus-json \
|
|
$(getPackagePrefix tools)/bin/orcus-mso-encryption \
|
|
$(getPackagePrefix tools)/bin/orcus-ods \
|
|
$(getPackagePrefix tools)/bin/orcus-styles-ods \
|
|
$(getPackagePrefix tools)/bin/orcus-xls-xml \
|
|
$(getPackagePrefix tools)/bin/orcus-xlsx \
|
|
$(getPackagePrefix tools)/bin/orcus-xml \
|
|
$(getPackagePrefix tools)/bin/orcus-yaml \
|
|
$(getPackagePrefix tools)/bin/orcus-zip-dump \
|
|
$libDir/liborcus-$soVersion.so.0.0.0 \
|
|
$libDir/liborcus-mso-$soVersion.so.0.0.0 \
|
|
$libDir/liborcus-parser-$soVersion.so.0.0.0 \
|
|
$libDir/liborcus-spreadsheet-model-$soVersion.so.0.0.0
|
|
|
|
PATCH()
|
|
{
|
|
sed -i 's/-pthread//g' configure.ac src/parser/Makefile.am
|
|
sed -i 's#$with_boost/include#$with_boost/headers#g' m4/boost.m4
|
|
}
|
|
|
|
BUILD()
|
|
{
|
|
autoreconf -fi
|
|
BOOST_ROOT=$portPackageLinksDir/devel~libboost_program_options/develop
|
|
runConfigure --omit-dirs binDir ./configure \
|
|
--bindir=$commandBinDir \
|
|
--disable-python \
|
|
--disable-static
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
for la in "" -mso -parser -spreadsheet-model; do
|
|
library=liborcus$la-$soVersion
|
|
rm $libDir/$library.la
|
|
prepareInstalledDevelLib $library
|
|
done
|
|
fixPkgconfig
|
|
|
|
packageEntries devel \
|
|
$developDir
|
|
|
|
packageEntries tools \
|
|
"$commandBinDir"
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make check
|
|
}
|