Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/granite/
Date: Mon, 01 Feb 2021 13:23:04
Message-Id: 1612185768.a96f316d21e252d55ede38e13f6c646095ce7f91.juippis@gentoo
1 commit: a96f316d21e252d55ede38e13f6c646095ce7f91
2 Author: Maciej Barć <xgqt <AT> protonmail <DOT> com>
3 AuthorDate: Mon Jan 18 14:49:58 2021 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 1 13:22:48 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a96f316d
7
8 dev-libs/granite: bump to 5.5.0
9
10 become maintainer; use vala with valadoc;
11 simplify doc fixes;
12
13 Package-Manager: Portage-3.0.12, Repoman-3.0.2
14 Signed-off-by: Maciej Barć <xgqt <AT> protonmail.com>
15 Closes: https://github.com/gentoo/gentoo/pull/19104
16 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
17
18 dev-libs/granite/Manifest | 1 +
19 dev-libs/granite/granite-5.2.5-r1.ebuild | 10 +++---
20 dev-libs/granite/granite-5.5.0.ebuild | 60 ++++++++++++++++++++++++++++++++
21 dev-libs/granite/metadata.xml | 25 ++++++++-----
22 4 files changed, 82 insertions(+), 14 deletions(-)
23
24 diff --git a/dev-libs/granite/Manifest b/dev-libs/granite/Manifest
25 index 9be82cc60e4..3d80e8f1c23 100644
26 --- a/dev-libs/granite/Manifest
27 +++ b/dev-libs/granite/Manifest
28 @@ -1 +1,2 @@
29 DIST granite-5.2.5.tar.gz 392987 BLAKE2B 507c3b810b750257a66195b45842a7664eb544f86a8606124d30d277c03680296f1ace7a9233d6e094ad5ce3357564e13b61d946f8ed926ccf22a5d9b5e98648 SHA512 64a08293bc4b33d77206c7070b4e2002dd8e2da8a358e43074b681a9228790dcb342d3a705cfc0309a7e1e7f498a2a656e972c2fee085ba99fb5214e33758fc3
30 +DIST granite-5.5.0.tar.gz 421478 BLAKE2B 9b6e956fcacf5dba722dd999ed3de527a99bd305a2059bdc39fe00d767f0f855e8f3a4d0854fd441203bb5dfbb250669356f85b64e067ddc08e3d6dfc3fb389d SHA512 981ff9aa42146153d8450989513dd6b63cfb6cf2e52cf3e1d2d6380373b30754d9b357418810cfd14a53689a050f08337ca766b5b8496a4063106f78b377f139
31
32 diff --git a/dev-libs/granite/granite-5.2.5-r1.ebuild b/dev-libs/granite/granite-5.2.5-r1.ebuild
33 index dc1cb86a066..56f8f0eaaf6 100644
34 --- a/dev-libs/granite/granite-5.2.5-r1.ebuild
35 +++ b/dev-libs/granite/granite-5.2.5-r1.ebuild
36 @@ -1,4 +1,4 @@
37 -# Copyright 1999-2019 Gentoo Authors
38 +# Copyright 1999-2021 Gentoo Authors
39 # Distributed under the terms of the GNU General Public License v2
40
41 EAPI=7
42 @@ -15,21 +15,21 @@ SRC_URI="https://github.com/elementary/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz
43 LICENSE="LGPL-3+"
44 SLOT="0"
45 KEYWORDS="amd64 ~arm x86"
46 -IUSE="doc +introspection test"
47 +IUSE="doc test"
48 RESTRICT="!test? ( test )"
49
50 BDEPEND="
51 $(vala_depend)
52 virtual/pkgconfig
53 doc? (
54 - dev-lang/vala[valadoc]
55 + >=dev-lang/vala-0.40.20[valadoc]
56 dev-util/gtk-doc
57 )
58 "
59 DEPEND="
60 >=dev-libs/glib-2.50:2
61 - dev-libs/libgee:0.8[introspection=]
62 - >=x11-libs/gtk+-3.22:3[introspection=]
63 + dev-libs/libgee:0.8[introspection]
64 + >=x11-libs/gtk+-3.22:3[introspection]
65 "
66 RDEPEND="${DEPEND}"
67
68
69 diff --git a/dev-libs/granite/granite-5.5.0.ebuild b/dev-libs/granite/granite-5.5.0.ebuild
70 new file mode 100644
71 index 00000000000..68db9bcac89
72 --- /dev/null
73 +++ b/dev-libs/granite/granite-5.5.0.ebuild
74 @@ -0,0 +1,60 @@
75 +# Copyright 1999-2021 Gentoo Authors
76 +# Distributed under the terms of the GNU General Public License v2
77 +
78 +EAPI=7
79 +
80 +VALA_MIN_API_VERSION=0.40
81 +BUILD_DIR="${WORKDIR}/${P}-build"
82 +
83 +inherit meson vala xdg
84 +
85 +DESCRIPTION="Elementary OS library that extends GTK+"
86 +HOMEPAGE="https://github.com/elementary/granite"
87 +SRC_URI="https://github.com/elementary/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
88 +
89 +LICENSE="LGPL-3+"
90 +SLOT="0"
91 +KEYWORDS="~amd64 ~x86"
92 +IUSE="doc"
93 +
94 +BDEPEND="
95 + $(vala_depend)
96 + virtual/pkgconfig
97 + doc? (
98 + >=dev-lang/vala-0.40.20[valadoc]
99 + dev-util/gtk-doc
100 + )
101 +"
102 +DEPEND="
103 + >=dev-libs/glib-2.50:2
104 + >=x11-libs/gtk+-3.22:3[introspection]
105 + dev-libs/libgee:0.8[introspection]
106 +"
107 +RDEPEND="${DEPEND}"
108 +
109 +src_prepare() {
110 + default
111 + vala_src_prepare
112 +
113 + # Fix docs
114 + sed -i "s/find_program('valadoc')/find_program('valadoc-$(vala_best_api_version)')/g" doc/meson.build \
115 + || die "Failed to replace valadoc"
116 + find lib/Widgets -type f -name "*.vala" -exec sed -ie "s@{{../doc@{{${BUILD_DIR}/doc@g" {} \; \
117 + || die "Failed to fix docs"
118 +}
119 +
120 +src_configure() {
121 + local emesonargs=(
122 + $(meson_use doc documentation)
123 + )
124 + meson_src_configure
125 +
126 + if use doc; then
127 + cp -r ./doc/images "${BUILD_DIR}/doc/" || die "Failed to copy doc images"
128 + fi
129 +}
130 +
131 +src_install() {
132 + use doc && local HTML_DOCS=( "${BUILD_DIR}/doc/granite/html/." )
133 + meson_src_install
134 +}
135
136 diff --git a/dev-libs/granite/metadata.xml b/dev-libs/granite/metadata.xml
137 index 7ba59955821..eb3302b9001 100644
138 --- a/dev-libs/granite/metadata.xml
139 +++ b/dev-libs/granite/metadata.xml
140 @@ -1,13 +1,20 @@
141 <?xml version="1.0" encoding="UTF-8"?>
142 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
143 <pkgmetadata>
144 - <!-- maintainer-needed -->
145 - <longdescription lang="en">
146 - Granite is a companion library for GTK+ and GLib. Among other things,
147 - it provides complex widgets and convenience functions designed for
148 - use in apps built for elementary OS.
149 - </longdescription>
150 - <upstream>
151 - <remote-id type="github">elementary/granite</remote-id>
152 - </upstream>
153 + <maintainer type="person">
154 + <email>xgqt@××××××××××.com</email>
155 + <name>Maciej Barć</name>
156 + </maintainer>
157 + <maintainer type="project">
158 + <email>proxy-maint@g.o</email>
159 + <name>Proxy Maintainers</name>
160 + </maintainer>
161 + <longdescription lang="en">
162 + Granite is a companion library for GTK+ and GLib.
163 + Among other things, it provides complex widgets and convenience
164 + functions designed for use in apps built for elementary OS.
165 + </longdescription>
166 + <upstream>
167 + <remote-id type="github">elementary/granite</remote-id>
168 + </upstream>
169 </pkgmetadata>