gexiv2, enable gobject-introspection + cleanup (#13706)

This commit is contained in:
Schrijvers Luc
2026-02-03 17:53:55 +01:00
committed by GitHub
parent 3264354bd1
commit 135232964e

View File

@@ -4,11 +4,11 @@ It makes the basic features of Exiv2 available to GNOME applications."
HOMEPAGE="https://wiki.gnome.org/Projects/gexiv2"
COPYRIGHT="Jens Georg"
LICENSE="GNU GPL v2"
REVISION="2"
REVISION="3"
SOURCE_URI="https://download.gnome.org/sources/gexiv2/${portVersion%.*}/gexiv2-$portVersion.tar.xz"
CHECKSUM_SHA256="606c28aaae7b1f3ef5c8eabe5e7dffd7c5a1c866d25b7671fb847fe287a72b8b"
ARCHITECTURES="all !x86_gcc2"
ARCHITECTURES="ALL !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
libVersion="2.14.6"
@@ -22,6 +22,7 @@ REQUIRES="
haiku$secondaryArchSuffix
lib:libexiv2$secondaryArchSuffix
lib:libgio_2.0$secondaryArchSuffix
lib:libgirepository_1.0$secondaryArchSuffix
lib:libglib_2.0$secondaryArchSuffix
lib:libgobject_2.0$secondaryArchSuffix
"
@@ -37,21 +38,17 @@ REQUIRES_devel="
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libbrotlidec$secondaryArchSuffix
devel:libexiv2$secondaryArchSuffix
devel:libexpat$secondaryArchSuffix
devel:libglib_2.0$secondaryArchSuffix
devel:libinih$secondaryArchSuffix
devel:libgirepository_1.0$secondaryArchSuffix
devel:libglib_2.0$secondaryArchSuffix
devel:libgobject_2.0$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:find
cmd:gcc$secondaryArchSuffix
cmd:make
cmd:meson
cmd:ninja
cmd:pkg_config$secondaryArchSuffix
cmd:sed
"
BUILD()
@@ -59,32 +56,31 @@ BUILD()
# disable python tests
sed -e "/subdir('test')/ s/^#*/#/" -i meson.build
meson \
--buildtype=release \
meson --buildtype=release \
--prefix=$prefix \
--libdir=$libDir \
--libexecdir=$binDir \
--datadir=$dataDir \
--includedir=$includeDir \
--sysconfdir=$settingsDir \
-Dintrospection=false \
-Dintrospection=true \
-Dpython3=false \
-Dvapi=false \
_build
build
cd _build
ninja
ninja -C build
}
INSTALL()
{
cd _build
ninja install
ninja -C build install
prepareInstalledDevelLibs libgexiv2
prepareInstalledDevelLib \
libgexiv2
fixPkgconfig
# devel package
packageEntries devel \
$developDir
$developDir \
$dataDir/gir-1.0
}