diff --git a/dev-libs/orcus/orcus0.18-0.18.1.recipe b/dev-libs/orcus/orcus0.18-0.18.1.recipe new file mode 100644 index 000000000..39436bad2 --- /dev/null +++ b/dev-libs/orcus/orcus0.18-0.18.1.recipe @@ -0,0 +1,175 @@ +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="2022 Kohei Yoshida et al." +LICENSE="MPL v2.0" +REVISION="2" +SOURCE_URI="https://gitlab.com/orcus/orcus/-/archive/$portVersion/orcus-$portVersion.tar.bz2" +CHECKSUM_SHA256="413a1fc00efe40c126eb56dc88912c30f6d7b3d020a7d02db827a6de7058600e" +SOURCE_DIR="orcus-$portVersion" + +ARCHITECTURES="all !x86_gcc2" +SECONDARY_ARCHITECTURES="x86" + +boostMinimumVersion=1.83.0 + +commandBinDir=$binDir +commandSuffix=$secondaryArchSuffix +if [ "$targetArchitecture" = x86_gcc2 ]; then + commandSuffix= + commandBinDir=$prefix/bin +fi + +soVersion="${portVersion%.*}" +ixionSoVersion=$soVersion + +PROVIDES=" + orcus0.18$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=" + orcus0.18${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=" + orcus0.18$secondaryArchSuffix == $portVersion base + devel:libixion_$ixionSoVersion$secondaryArchSuffix + " + +PROVIDES_tools=" + orcus0.18${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=" + orcus0.18$secondaryArchSuffix == $portVersion base + $REQUIRES + " +CONFLICTS_tools=" + orcus${secondaryArchSuffix}_tools + " + +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$secondaryArchSuffix >= 2.1 + " +BUILD_PREREQUIRES=" + cmd:aclocal + cmd:autoconf + cmd:automake + cmd:gcc$secondaryArchSuffix + cmd:ld$secondaryArchSuffix + cmd:libtoolize$secondaryArchSuffix + cmd:make + cmd:pkg_config$secondaryArchSuffix + # for building the documentation + breathe_python310 + snowballstemmer_python310 + sphinx_argparse_python310 + sphinx_rtd_theme_python310 + sphinxcontrib_jquery_python310 + cmd:doxygen + cmd:sphinx_build + " + +defineDebugInfoPackage orcus0.18$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 + make doc +} + +INSTALL() +{ + make install + + # documentation + mkdir -p $developDocDir + cp -r doc/_doxygen/html $developDocDir + + 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 +}