[pango/pango2: 19/68] Tweak prerelease versioning




commit 69c96d69eed471ade5cd19f7bac8903dc209151f
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 73e0d1847..ddbc451f3 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]