From 4c4dca8940784a4c86ce3918a600f8e8551d0d95 Mon Sep 17 00:00:00 2001 From: Al Hoang <13622+hoanga@users.noreply.github.com> Date: Sat, 15 Aug 2020 07:33:38 -0500 Subject: [PATCH] libgsf: update recipe (#4957) Co-authored-by: begasus --- gnome-extra/libgsf/libgsf-1.14.18.recipe | 61 ------------ gnome-extra/libgsf/libgsf-1.14.47.recipe | 121 +++++++++++++++++++++++ 2 files changed, 121 insertions(+), 61 deletions(-) delete mode 100644 gnome-extra/libgsf/libgsf-1.14.18.recipe create mode 100644 gnome-extra/libgsf/libgsf-1.14.47.recipe diff --git a/gnome-extra/libgsf/libgsf-1.14.18.recipe b/gnome-extra/libgsf/libgsf-1.14.18.recipe deleted file mode 100644 index e8e123a4a..000000000 --- a/gnome-extra/libgsf/libgsf-1.14.18.recipe +++ /dev/null @@ -1,61 +0,0 @@ -SUMMARY="I/O abstraction for reading/writing compound files" -DESCRIPTION="GSF was written as part of the Gnumeric project. It started in \ -2002 as a replacement for libole2 which Gnumeric was using to handle the \ -Microsoft Excel® file format, as libole2's code had become difficult to \ -maintain and was difficult to generalize. GSF was designed to be a more \ -general library for dealing with a number of different types of structured \ -data files and streams. - -With the release of Gnumeric 1.1.6 (July 2002), Gnumeric used GSF and libole2 \ -was orphaned." -HOMEPAGE="https://developer.gnome.org/gsf/" -SOURCE_URI="http://ftp.acc.umu.se/pub/GNOME/sources/libgsf/1.14/libgsf-$portVersion.tar.bz2" -CHECKSUM_SHA256="16d29e82f7eba68f919f2588ea5328973490fe6d4a7a5f160e8af89b387c9a95" -REVISION="1" - -ARCHITECTURES="!x86_gcc2" - -PROVIDES=" - libgsf = $portVersion -" - -BUILD_REQUIRES=" - haiku_devel - devel:libglib_2.0 - devel:libgobject_2.0 - devel:libxml2 -" - -BUILD_PREREQUIRES=" - cmd:awk - cmd:gcc - cmd:intltool_update - cmd:make - cmd:pkg_config - cmd:python - cmd:xgettext -" - -DEPEND=" - dev-perl/XML-Parser >= 2.3.6 - dev-lib/glib >= 2.18.3" - -BUILD() -{ -# libtoolize --force --copy --install -# autoreconf -i - runConfigure ./configure - make $jobArgs - cd thumbnailer - make $jobArgs -} - -INSTALL() -{ - make install - cd thumbnailer - make install -} - -COPYRIGHT="2005-2010 The Gnome Project" -LICENSE="GNU LGPL v2.1" diff --git a/gnome-extra/libgsf/libgsf-1.14.47.recipe b/gnome-extra/libgsf/libgsf-1.14.47.recipe new file mode 100644 index 000000000..ceda0ae56 --- /dev/null +++ b/gnome-extra/libgsf/libgsf-1.14.47.recipe @@ -0,0 +1,121 @@ +SUMMARY=" The G Structured File Library" +DESCRIPTION=" The project aims to provide an efficient extensible i/o abstraction for \ +dealing with different structured file formats." +HOMEPAGE="https://github.com/GNOME/libgsf" +COPYRIGHT="2002-2020 Jody Goldberg" +LICENSE="GNU LGPL v2.1" +REVISION="1" +SOURCE_URI="https://github.com/GNOME/libgsf/archive/LIBGSF_1_14_47.tar.gz" +CHECKSUM_SHA256="ca958db8b91113804e1c8ec772adb7cb3e44f81d404cf941330d47f3e25ccbe7" +SOURCE_FILENAME="libgsf-$portVersion.tar.gz" +SOURCE_DIR="libgsf-LIBGSF_1_14_47" + +ARCHITECTURES="!x86_gcc2 x86_64" +SECONDARY_ARCHITECTURES="x86" + +commandSuffix=$secondaryArchSuffix +commandBinDir=$binDir +if [ "$targetArchitecture" = x86_gcc2 ]; then + commandSuffix= + commandBinDir=$prefix/bin +fi + +libVersion="114.0.47" +libVersionCompat="$libVersion compat >= ${libVersion%%.*}" + +PROVIDES=" + libgsf$secondaryArchSuffix = $portVersion + lib:libgsf_1$secondaryArchSuffix = $libVersionCompat + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libbz2$secondaryArchSuffix + lib:libgio_2.0$secondaryArchSuffix + lib:libglib_2.0$secondaryArchSuffix + lib:libgobject_2.0$secondaryArchSuffix + lib:libintl$secondaryArchSuffix + lib:libxml2$secondaryArchSuffix + lib:libz$secondaryArchSuffix + " + +PROVIDES_devel=" + libgsf${secondaryArchSuffix}_devel + devel:libgsf_1$secondaryArchSuffix = $libVersionCompat + " +REQUIRES_devel=" + haiku${secondaryArchSuffix}_devel + libgsf$secondaryArchSuffix == $portVersion base + " + +PROVIDES_tools=" + libgsf${secondaryArchSuffix}_tools + cmd:gsf_office_thumbnailer$commandSuffix = $portVersion + cmd:gsf_vba_dump$commandSuffix = $portVersion + cmd:gsf$commandSuffix = $portVersion + " +REQUIRES_tools=" + libgsf$secondaryArchSuffix == $portVersion base + haiku$secondaryArchSuffix + lib:libbz2$secondaryArchSuffix + lib:libgio_2.0$secondaryArchSuffix + lib:libglib_2.0$secondaryArchSuffix + lib:libgobject_2.0$secondaryArchSuffix + lib:libintl$secondaryArchSuffix + lib:libxml2$secondaryArchSuffix + lib:libz$secondaryArchSuffix + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + devel:libbz2$secondaryArchSuffix + devel:libglib_2.0$secondaryArchSuffix + devel:libintl$secondaryArchSuffix + devel:libxml2$secondaryArchSuffix + devel:libz$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:aclocal + cmd:autoreconf + cmd:gcc$secondaryArchSuffix + cmd:gtkdocize + cmd:libtoolize$secondaryArchSuffix + cmd:make + cmd:pkg_config$secondaryArchSuffix + " + +TEST_REQUIRES=" + xml_parser + " + +defineDebugInfoPackage libgsf$secondaryArchSuffix \ + $libDir/libgsf-1.so.$libVersion + +BUILD() +{ + NOCONFIGURE=1 ./autogen.sh + runConfigure --omit-dirs binDir ./configure \ + --bindir=$commandBinDir + make $jobArgs +} + +INSTALL() +{ + make install + + rm $libDir/*.la + + prepareInstalledDevelLib libgsf-1 + fixPkgconfig + + packageEntries devel \ + $developDir + packageEntries tools \ + $commandBinDir \ + $dataDir/thumbnailers \ + $manDir +} + +TEST() +{ + make check +}