pango: bump version and add missing REQUIRES_devel declarations (#5994)

the build system was changed to meson
also, use libVersion and libVersionCompat variables

test results: 5 of the tests crash, the others pass
This commit is contained in:
Joachim Mairböck
2021-06-14 08:20:08 +02:00
committed by GitHub
parent 25d51dad7e
commit 8609879a5e
2 changed files with 34 additions and 26 deletions

View File

@@ -17,19 +17,22 @@ COPYRIGHT="1999-2007,2010 Red Hat Software
LICENSE="GNU LGPL v2.1" LICENSE="GNU LGPL v2.1"
REVISION="1" REVISION="1"
SOURCE_URI="http://ftp.gnome.org/pub/GNOME/sources/pango/${portVersion%.*}/pango-$portVersion.tar.xz" SOURCE_URI="http://ftp.gnome.org/pub/GNOME/sources/pango/${portVersion%.*}/pango-$portVersion.tar.xz"
CHECKSUM_SHA256="1d2b74cd63e8bd41961f2f8d952355aa0f9be6002b52c8aa7699d9f5da597c9d" CHECKSUM_SHA256="501e74496173c02dcd024ded7fbb3f09efd37e2a488e248aa40799424dbb3b2a"
PATCHES="pango-$portVersion.patchset" PATCHES="pango-$portVersion.patchset"
ARCHITECTURES="!x86_gcc2 x86 x86_64" ARCHITECTURES="!x86_gcc2 x86_64"
SECONDARY_ARCHITECTURES="!x86_gcc2 x86" SECONDARY_ARCHITECTURES="x86"
libVersion="0.4800.5"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
PROVIDES=" PROVIDES="
pango$secondaryArchSuffix = $portVersion compat >= 1 pango$secondaryArchSuffix = $portVersion compat >= 1
cmd:pango_list$secondaryArchSuffix cmd:pango_list$secondaryArchSuffix
cmd:pango_view$secondaryArchSuffix cmd:pango_view$secondaryArchSuffix
lib:libpango_1.0$secondaryArchSuffix = 0.4200.4 compat >= 0 lib:libpango_1.0$secondaryArchSuffix = $libVersionCompat
lib:libpangocairo_1.0$secondaryArchSuffix = 0.4200.4 compat >= 0 lib:libpangocairo_1.0$secondaryArchSuffix = $libVersionCompat
lib:libpangoft2_1.0$secondaryArchSuffix = 0.4200.4 compat >= 0 lib:libpangoft2_1.0$secondaryArchSuffix = $libVersionCompat
" "
REQUIRES=" REQUIRES="
haiku$secondaryArchSuffix haiku$secondaryArchSuffix
@@ -45,13 +48,20 @@ REQUIRES="
PROVIDES_devel=" PROVIDES_devel="
pango${secondaryArchSuffix}_devel = $portVersion compat >= 1 pango${secondaryArchSuffix}_devel = $portVersion compat >= 1
devel:libpango_1.0$secondaryArchSuffix = 0.4200.4 compat >= 0 devel:libpango_1.0$secondaryArchSuffix = $libVersionCompat
devel:libpangocairo_1.0$secondaryArchSuffix = 0.4200.4 compat >= 0 devel:libpangocairo_1.0$secondaryArchSuffix = $libVersionCompat
devel:libpangoft2_1.0$secondaryArchSuffix = 0.4200.4 compat >= 0 devel:libpangoft2_1.0$secondaryArchSuffix = $libVersionCompat
" "
REQUIRES_devel=" REQUIRES_devel="
pango$secondaryArchSuffix == $portVersion base pango$secondaryArchSuffix == $portVersion base
devel:libcairo$secondaryArchSuffix
devel:libfontconfig$secondaryArchSuffix
devel:libfreetype$secondaryArchSuffix
devel:libfribidi$secondaryArchSuffix
devel:libglib_2.0$secondaryArchSuffix
devel:libharfbuzz$secondaryArchSuffix devel:libharfbuzz$secondaryArchSuffix
devel:libiconv$secondaryArchSuffix
devel:libintl$secondaryArchSuffix
" "
BUILD_REQUIRES=" BUILD_REQUIRES="
@@ -67,23 +77,21 @@ BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix cmd:gcc$secondaryArchSuffix
cmd:gtkdocize cmd:gtkdocize
cmd:ld$secondaryArchSuffix cmd:ld$secondaryArchSuffix
cmd:libtoolize$secondaryArchSuffix cmd:meson
cmd:make
cmd:pkg_config$secondaryArchSuffix cmd:pkg_config$secondaryArchSuffix
" "
BUILD() BUILD()
{ {
runConfigure ./configure meson build \
make $jobArgs --prefix="$prefix" --libdir="$libDir" --includedir="$includeDir" \
--bindir="$binDir"
meson compile -C build
} }
INSTALL() INSTALL()
{ {
make install meson install -C build
# remove libtool library files
rm $libDir/libpango*.la
prepareInstalledDevelLibs libpango-1.0 \ prepareInstalledDevelLibs libpango-1.0 \
libpangocairo-1.0 libpangoft2-1.0 libpangocairo-1.0 libpangoft2-1.0
@@ -96,5 +104,5 @@ INSTALL()
TEST() TEST()
{ {
make check meson test -C build
} }

View File

@@ -1,23 +1,23 @@
From 88c1e88b8635d53c0662e2bbca6c1e36abdb2941 Mon Sep 17 00:00:00 2001 From 2d117cae0c7298d1e408e39e2056e7ff2950fcce Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com> From: Jerome Duval <jerome.duval@gmail.com>
Date: Mon, 12 Oct 2015 22:19:59 +0000 Date: Mon, 12 Oct 2015 22:19:59 +0000
Subject: Haiku patch Subject: Haiku patch
diff --git a/tests/testattributes.c b/tests/testattributes.c diff --git a/tests/testattributes.c b/tests/testattributes.c
index f4c33f1..52d3b67 100644 index 8e63201..1c9f8d9 100644
--- a/tests/testattributes.c --- a/tests/testattributes.c
+++ b/tests/testattributes.c +++ b/tests/testattributes.c
@@ -343,7 +343,7 @@ test_list_filter (void) @@ -412,7 +412,7 @@ test_list_filter (void)
g_assert_null (out); g_assert_null (out);
out = pango_attr_list_filter (list, just_weight, NULL); out = pango_attr_list_filter (list, just_weight, NULL);
- g_assert_nonnull (out); - g_assert_nonnull (out);
+ g_assert (out != NULL); + g_assert (out != NULL);
s = g_string_new (""); assert_attr_list (list, "[0,-1]size=10\n"
print_attributes (attr_list_to_list (list), s); "[10,20]stretch=2\n");
@@ -436,11 +436,11 @@ test_iter_get (void) @@ -505,11 +505,11 @@ test_iter_get (void)
iter = pango_attr_list_get_iterator (list); iter = pango_attr_list_get_iterator (list);
pango_attr_iterator_next (iter); pango_attr_iterator_next (iter);
attr = pango_attr_iterator_get (iter, PANGO_ATTR_SIZE); attr = pango_attr_iterator_get (iter, PANGO_ATTR_SIZE);
@@ -31,7 +31,7 @@ index f4c33f1..52d3b67 100644
g_assert_cmpuint (attr->start_index, ==, 10); g_assert_cmpuint (attr->start_index, ==, 10);
g_assert_cmpuint (attr->end_index, ==, 30); g_assert_cmpuint (attr->end_index, ==, 30);
attr = pango_attr_iterator_get (iter, PANGO_ATTR_WEIGHT); attr = pango_attr_iterator_get (iter, PANGO_ATTR_WEIGHT);
@@ -499,7 +499,7 @@ test_iter_get_font (void) @@ -567,7 +567,7 @@ test_iter_get_font (void)
pango_attr_iterator_get_font (iter, desc, &lang, &attrs); pango_attr_iterator_get_font (iter, desc, &lang, &attrs);
desc2 = pango_font_description_from_string ("Times Condensed 10"); desc2 = pango_font_description_from_string ("Times Condensed 10");
g_assert_true (pango_font_description_equal (desc, desc2)); g_assert_true (pango_font_description_equal (desc, desc2));
@@ -41,5 +41,5 @@ index f4c33f1..52d3b67 100644
g_assert_null (attrs); g_assert_null (attrs);
pango_font_description_free (desc); pango_font_description_free (desc);
-- --
2.14.2 2.30.2