1 |
commit: 2b9e39183630c588f793d3f3fe3a956cea695181 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Sep 14 06:46:57 2022 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Sep 14 07:00:55 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2b9e3918 |
7 |
|
8 |
net-libs/libaccounts-glib: add 1.26, EAPI-8, python3_11 |
9 |
|
10 |
Fix project version manually. |
11 |
|
12 |
QA notice filed upstream: |
13 |
https://gitlab.com/accounts-sso/libaccounts-glib/-/issues/13 |
14 |
|
15 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
16 |
|
17 |
net-libs/libaccounts-glib/Manifest | 1 + |
18 |
.../libaccounts-glib-1.26-project-version.patch | 8 +++ |
19 |
.../libaccounts-glib/libaccounts-glib-1.26.ebuild | 63 ++++++++++++++++++++++ |
20 |
3 files changed, 72 insertions(+) |
21 |
|
22 |
diff --git a/net-libs/libaccounts-glib/Manifest b/net-libs/libaccounts-glib/Manifest |
23 |
index 78431778763f..69deda66f437 100644 |
24 |
--- a/net-libs/libaccounts-glib/Manifest |
25 |
+++ b/net-libs/libaccounts-glib/Manifest |
26 |
@@ -1 +1,2 @@ |
27 |
DIST libaccounts-glib-1.25.tar.gz 117337 BLAKE2B 72e6e15b63eea4d5b2a3e994779a4636bee859c6d395c8c9f65120cfee1c25a5708971b438010f668eefee20735b01e9f9f4e1ac4cb55495a06143d20198e422 SHA512 cc8b493d246f99300ee614fed93258378ecdbe9c518a958a59827ee8f74559b1ee3683acfb85f59aa91390275497fb35041da2be47f27f24f96e1efd5d6d2e20 |
28 |
+DIST libaccounts-glib-1.26.tar.gz 117365 BLAKE2B a3c7bf4058372001079c9c153b30f947882521f1f9680a63db2883307e998335a1e646112dc8a51640824f238d871d96da2c18b4ef175c837cebfe056ded2cbb SHA512 c08a11087745ba771e539b61de57693390960ad6b4e8217c159be49d31bd7f8856fffa835e7a230f352049bbf7cec9184ff225e74bbc195964221d3d9d49743b |
29 |
|
30 |
diff --git a/net-libs/libaccounts-glib/files/libaccounts-glib-1.26-project-version.patch b/net-libs/libaccounts-glib/files/libaccounts-glib-1.26-project-version.patch |
31 |
new file mode 100644 |
32 |
index 000000000000..82e8c6bbcbd4 |
33 |
--- /dev/null |
34 |
+++ b/net-libs/libaccounts-glib/files/libaccounts-glib-1.26-project-version.patch |
35 |
@@ -0,0 +1,8 @@ |
36 |
+--- a/meson.build |
37 |
++++ b/meson.build |
38 |
+@@ -1,4 +1,4 @@ |
39 |
+-project('libaccounts-glib', 'c', version: '1.25', license: 'LGPL2.1', meson_version: '>=0.48.0') |
40 |
++project('libaccounts-glib', 'c', version: '1.26', license: 'LGPL2.1', meson_version: '>=0.48.0') |
41 |
+ |
42 |
+ version_parts = meson.project_version().split('.') |
43 |
+ api_version = '@0@.0'.format(version_parts[0]) |
44 |
|
45 |
diff --git a/net-libs/libaccounts-glib/libaccounts-glib-1.26.ebuild b/net-libs/libaccounts-glib/libaccounts-glib-1.26.ebuild |
46 |
new file mode 100644 |
47 |
index 000000000000..66a87f221321 |
48 |
--- /dev/null |
49 |
+++ b/net-libs/libaccounts-glib/libaccounts-glib-1.26.ebuild |
50 |
@@ -0,0 +1,63 @@ |
51 |
+# Copyright 1999-2022 Gentoo Authors |
52 |
+# Distributed under the terms of the GNU General Public License v2 |
53 |
+ |
54 |
+EAPI=8 |
55 |
+ |
56 |
+PYTHON_COMPAT=( python3_{8..11} ) |
57 |
+inherit meson python-r1 vala |
58 |
+ |
59 |
+DESCRIPTION="Accounts SSO (Single Sign-On) management library for GLib applications" |
60 |
+HOMEPAGE="https://gitlab.com/accounts-sso/libaccounts-glib" |
61 |
+SRC_URI="https://gitlab.com/accounts-sso/${PN}/-/archive/VERSION_${PV}/${PN}-VERSION_${PV}.tar.gz -> ${P}.tar.gz" |
62 |
+S="${WORKDIR}/${PN}-VERSION_${PV}" |
63 |
+ |
64 |
+LICENSE="LGPL-2.1" |
65 |
+SLOT="0" |
66 |
+KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86" |
67 |
+IUSE="doc" |
68 |
+ |
69 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
70 |
+# fails |
71 |
+RESTRICT="test" |
72 |
+ |
73 |
+RDEPEND="${PYTHON_DEPS} |
74 |
+ dev-db/sqlite:3 |
75 |
+ dev-libs/glib:2 |
76 |
+ dev-libs/gobject-introspection:= |
77 |
+ dev-libs/libxml2 |
78 |
+ dev-python/pygobject:3[${PYTHON_USEDEP}] |
79 |
+" |
80 |
+DEPEND="${RDEPEND}" |
81 |
+BDEPEND=" |
82 |
+ $(vala_depend) |
83 |
+ dev-libs/check |
84 |
+ dev-util/gdbus-codegen |
85 |
+ dev-util/glib-utils |
86 |
+ doc? ( dev-util/gtk-doc ) |
87 |
+" |
88 |
+ |
89 |
+PATCHES=( |
90 |
+ "${FILESDIR}/${PN}-1.25-assert-failure.patch" |
91 |
+ "${FILESDIR}/${P}-project-version.patch" |
92 |
+) |
93 |
+ |
94 |
+src_prepare() { |
95 |
+ default |
96 |
+ vala_setup --ignore-use |
97 |
+ |
98 |
+ use doc || sed -e "/^subdir('docs')$/d" -i meson.build || die |
99 |
+} |
100 |
+ |
101 |
+src_configure() { |
102 |
+ python_foreach_impl run_in_build_dir meson_src_configure |
103 |
+} |
104 |
+ |
105 |
+src_compile() { |
106 |
+ python_foreach_impl run_in_build_dir meson_src_compile |
107 |
+} |
108 |
+ |
109 |
+src_install() { |
110 |
+ einstalldocs |
111 |
+ python_foreach_impl run_in_build_dir meson_src_install |
112 |
+ python_foreach_impl python_optimize |
113 |
+} |