mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 03:30:05 +02:00
gobject-introspection, bump version (#5490)
This commit is contained in:
@@ -10,10 +10,11 @@ COPYRIGHT="Colin Walters
|
||||
Matthias Clasen (girepository)
|
||||
Jürg Billeter (scanner)"
|
||||
LICENSE="GNU LGPL v2
|
||||
GNU GPL v2"
|
||||
GNU GPL v2
|
||||
MIT"
|
||||
REVISION="1"
|
||||
SOURCE_URI="http://ftp.gnome.org/pub/GNOME/sources/gobject-introspection/${portVersion%.*}/gobject-introspection-$portVersion.tar.xz"
|
||||
CHECKSUM_SHA256="5b2875ccff99ff7baab63a34b67f8c920def240e178ff50add809e267d9ea24b"
|
||||
CHECKSUM_SHA256="b1ee7ed257fdbc008702bdff0ff3e78a660e7e602efa8f211dc89b9d1e7d90a2"
|
||||
SOURCE_DIR="gobject-introspection-$portVersion"
|
||||
PATCHES="gobject_introspection-$portVersion.patchset"
|
||||
|
||||
@@ -80,8 +81,10 @@ BUILD_PREREQUIRES="
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:libtoolize$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:meson
|
||||
cmd:ninja
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
cmd:python3
|
||||
cmd:python3 >= 3.7
|
||||
cmd:which
|
||||
"
|
||||
|
||||
@@ -90,19 +93,19 @@ defineDebugInfoPackage gobject_introspection$secondaryArchSuffix \
|
||||
|
||||
BUILD()
|
||||
{
|
||||
runConfigure --omit-dirs binDir ./autogen.sh \
|
||||
--bindir=$commandBinDir --without-cairo \
|
||||
CPPFLAGS=-I"$portPackageLinksDir/cmd~python3/$relativeIncludeDir/python3.6m/" \
|
||||
PYTHON=python3
|
||||
make $jobArgs
|
||||
meson build --buildtype=release \
|
||||
--prefix=$prefix \
|
||||
--includedir=$includeDir \
|
||||
--datadir=$dataDir \
|
||||
--libdir=$libDir \
|
||||
--mandir=$manDir
|
||||
|
||||
ninja -C build $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
|
||||
# remove libtool library files
|
||||
rm -f "$libDir"/lib*.la "$libDir"/gobject-introspection/giscanner/*.la
|
||||
ninja -C build install
|
||||
|
||||
prepareInstalledDevelLib libgirepository-1.0
|
||||
fixPkgconfig
|
||||
@@ -116,5 +119,5 @@ TEST()
|
||||
{
|
||||
# tests fails on Regress-1.0.gir, but as it looks
|
||||
# it is known to fail there (doesn't break the tests)
|
||||
make check
|
||||
ninja -C build test
|
||||
}
|
||||
@@ -1,32 +0,0 @@
|
||||
From 84e62005b62c08ef301a391015e64b88a81227f7 Mon Sep 17 00:00:00 2001
|
||||
From: begasus <begasus@gmail.com>
|
||||
Date: Sat, 12 Aug 2017 20:13:53 +0200
|
||||
Subject: use readelf instead of ldd
|
||||
|
||||
|
||||
diff --git a/giscanner/shlibs.py b/giscanner/shlibs.py
|
||||
index 525bdba..ef560a8 100644
|
||||
--- a/giscanner/shlibs.py
|
||||
+++ b/giscanner/shlibs.py
|
||||
@@ -108,7 +108,7 @@ def _resolve_non_libtool(options, binary, libraries):
|
||||
if platform_system == 'Darwin':
|
||||
args.extend(['otool', '-L', binary.args[0]])
|
||||
else:
|
||||
- args.extend(['ldd', binary.args[0]])
|
||||
+ args.extend(['readelf', '-d', binary.args[0]])
|
||||
proc = subprocess.Popen(args, stdout=subprocess.PIPE)
|
||||
patterns = {}
|
||||
for library in libraries:
|
||||
@@ -126,7 +126,7 @@ def _resolve_non_libtool(options, binary, libraries):
|
||||
m = pattern.search(line)
|
||||
if m:
|
||||
del patterns[library]
|
||||
- shlibs.append(m.group(1))
|
||||
+ shlibs.append(m.group(1)[0:-1])
|
||||
break
|
||||
|
||||
if len(patterns) > 0:
|
||||
--
|
||||
2.16.4
|
||||
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
From eaf8d92cb3a9a1b488fc6c1e31f808068b70f624 Mon Sep 17 00:00:00 2001
|
||||
From: begasus <begasus@gmail.com>
|
||||
Date: Wed, 18 Dec 2019 15:22:46 +0000
|
||||
Subject: Use objdump -x instead of ldd
|
||||
|
||||
|
||||
diff --git a/giscanner/shlibs.py b/giscanner/shlibs.py
|
||||
index e6de7bb..fee97b0 100644
|
||||
--- a/giscanner/shlibs.py
|
||||
+++ b/giscanner/shlibs.py
|
||||
@@ -99,6 +99,8 @@ def _resolve_non_libtool(options, binary, libraries):
|
||||
platform_system = platform.system()
|
||||
if platform_system == 'Darwin':
|
||||
args.extend(['otool', '-L', binary.args[0]])
|
||||
+ elif platform_system == 'Haiku':
|
||||
+ args.extend(['objdump', '-x', binary.args[0]])
|
||||
else:
|
||||
args.extend(['ldd', binary.args[0]])
|
||||
output = subprocess.check_output(args)
|
||||
--
|
||||
2.24.0
|
||||
|
||||
Reference in New Issue
Block a user