[pango/pango2: 197/201] Tweak prerelease versioning
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/pango2: 197/201] Tweak prerelease versioning
- Date: Sat, 11 Jun 2022 02:22:34 +0000 (UTC)
commit aca29bc4b49fd0d6c1efdd8662f123dddd87874c
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Jun 9 15:54:06 2022 -0400
Tweak prerelease versioning
Arrange for use to install libpango-2.so.1.0,
despite the release version still being 1.90.
meson.build | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/meson.build b/meson.build
index 73e0d184..ddbc451f 100644
--- a/meson.build
+++ b/meson.build
@@ -24,10 +24,18 @@ pango_major_version = version[0].to_int()
pango_minor_version = version[1].to_int()
pango_micro_version = version[2].to_int()
+if pango_minor_version >= 90
+ api_major = pango_major_version + 1
+ api_minor = 0
+else
+ api_major = pango_major_version
+ api_minor = pango_minor_version
+endif
+
pango_interface_age = pango_minor_version.is_odd() ? 0 : pango_micro_version
-pango_binary_age = pango_minor_version * 100 + pango_micro_version
+pango_binary_age = api_minor * 100 + pango_micro_version
-pango_api_version = '@0@.0'.format(pango_major_version)
+pango_api_version = '@0@.0'.format(api_major)
pango_api_name = 'pango-@0@'.format(pango_api_version)
pango_api_path = join_paths(pango_api_name, 'pango')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]