diff --git a/app-arch/gcab/gcab-0.7.recipe b/app-arch/gcab/gcab-0.7.recipe new file mode 100644 index 000000000..6eebc88cb --- /dev/null +++ b/app-arch/gcab/gcab-0.7.recipe @@ -0,0 +1,95 @@ +SUMMARY="Library and tool for working with Microsoft cabinet archives" +DESCRIPTION="gcab is command line tool that can list, extract and create \ +cabinet (.cab) archives. The Cabinet format is often used on Microsoft Windows \ +but it can also be used on other systems with open source software such as \ +cabextract, lcab and gcab. Unlike cabextract and lcab, which can only list \ +and extract cabinet archives, gcab can also create them. +gcab also includes a GObject shared library, libgcab, which provides all the \ +functionality available to the command line tool." +HOMEPAGE="https://wiki.gnome.org/msitools" +COPYRIGHT="2012-2016 Marc-André Lureau" +LICENSE="GNU LGPL v2.1" +REVISION="1" +SOURCE_URI="https://download.gnome.org/sources/gcab/$portVersion/gcab-$portVersion.tar.xz" +CHECKSUM_SHA256="a16e5ef88f1c547c6c8c05962f684ec127e078d302549f3dfd2291e167d4adef" +PATCHES="gcab-$portVersion.patchset" + +ARCHITECTURES="!x86_gcc2 x86 x86_64" +SECONDARY_ARCHITECTURES="!x86_gcc2 x86" + +# On x86_gcc2 we don't want to install the commands in bin//, but in bin/. +commandSuffix=$secondaryArchSuffix +commandBinDir=$binDir +if [ "$targetArchitecture" = x86_gcc2 ]; then + commandSuffix= + commandBinDir=$prefix/bin +fi + +PROVIDES=" + gcab$secondaryArchSuffix = $portVersion + cmd:gcab$commandSuffix = $portVersion + lib:libgcab_1.0$secondaryArchSuffix = 0.0.0 compat >= 0 + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libglib_2.0$secondaryArchSuffix >= 0.4600.2 + lib:libintl$secondaryArchSuffix + lib:libz$secondaryArchSuffix + " + +PROVIDES_devel=" + gcab${secondaryArchSuffix}_devel = $portVersion + devel:libgcab_1.0$secondaryArchSuffix = 0.0.0 compat >= 0 + " +REQUIRES_devel=" + gcab$secondaryArchSuffix == $portVersion base + devel:libglib_2.0$secondaryArchSuffix >= 0.4600.2 + devel:libintl$secondaryArchSuffix + devel:libz$secondaryArchSuffix + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + devel:libintl$secondaryArchSuffix + devel:libz$secondaryArchSuffix + devel:libglib_2.0$secondaryArchSuffix >= 0.4600.2 + devel:libgettextlib$secondaryArchSuffix >= 0.14.1 + " +BUILD_PREREQUIRES=" + cmd:aclocal + cmd:autoconf + cmd:autoreconf + cmd:autom4te + cmd:automake + cmd:gcc$secondaryArchSuffix + cmd:intltool_update + cmd:ld$secondaryArchSuffix + cmd:libtoolize$secondaryArchSuffix + cmd:make + cmd:pkg_config$secondaryArchSuffix + " + +BUILD() +{ + autoreconf + runConfigure --omit-dirs binDir ./configure --bindir=$commandBinDir \ + --enable-introspection=no + make $jobArgs +} + +INSTALL() +{ + make install + + prepareInstalledDevelLibs \ + libgcab-1.0 + + packageEntries devel \ + $developDir \ + $dataDir/gtk-doc +} + +TEST() +{ + make check +} diff --git a/app-arch/gcab/patches/gcab-0.7.patchset b/app-arch/gcab/patches/gcab-0.7.patchset new file mode 100644 index 000000000..fb67b8d57 --- /dev/null +++ b/app-arch/gcab/patches/gcab-0.7.patchset @@ -0,0 +1,22 @@ +From da24487953ab9230664d13ab3fd1ba0bf7b44032 Mon Sep 17 00:00:00 2001 +From: fbrosson +Date: Sat, 19 Mar 2016 15:41:35 +0000 +Subject: Skip GOBJECT_INTROSPECTION_CHECK. + + +diff --git a/configure.ac b/configure.ac +index 2b6f2b6..dcbfcdb 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -16,7 +16,7 @@ AC_PROG_INSTALL + LT_INIT([win32-dll]) + GTK_DOC_CHECK([1.14],[--flavour no-tmpl]) + PKG_PROG_PKG_CONFIG +-GOBJECT_INTROSPECTION_CHECK([0.9.4]) ++ + AM_CONDITIONAL([GIR], [test "x$INTROSPECTION_MAKEFILE" != x]) + + IT_PROG_INTLTOOL([0.40.0]) +-- +2.7.0 +