Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-wireless/blueman/
Date: Tue, 08 Feb 2022 23:21:54
Message-Id: 1644362496.bcefb5b1baa18ef283755b642c871fe7a54a53a6.mgorny@gentoo
1 commit: bcefb5b1baa18ef283755b642c871fe7a54a53a6
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue Feb 8 21:00:05 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue Feb 8 23:21:36 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bcefb5b1
7
8 net-wireless/blueman: Bump to 2.2.3
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 net-wireless/blueman/Manifest | 1 +
13 net-wireless/blueman/blueman-2.2.3.ebuild | 131 ++++++++++++++++++++++++++++++
14 2 files changed, 132 insertions(+)
15
16 diff --git a/net-wireless/blueman/Manifest b/net-wireless/blueman/Manifest
17 index 1c344ecfbf1f..c142683746c7 100644
18 --- a/net-wireless/blueman/Manifest
19 +++ b/net-wireless/blueman/Manifest
20 @@ -1 +1,2 @@
21 DIST blueman-2.2.2.tar.xz 1560516 BLAKE2B fb82044971fb51ed7732f7638872e3bdbc7259a4fd4f3cc26f5567cfce378319ef3346376d3f07ceab92d2d002ff6455cc7c43345da7f660c3dc9f6b5ab57980 SHA512 b95f82c8a1bc8a77755f56944852a92da3bb58ecf646da75cfc6b6b50af679a3a8efb881f7917e6bb8b3645b1d3ab95b52ecd3c13ff0891ce999b59fe6d24488
22 +DIST blueman-2.2.3.tar.xz 1587268 BLAKE2B b3a2d275904959437a47eec32b16f9ebd945bf49705d4f4752d9bfa40d7764b73d373225875773491432cf5b72319eba51a7206cccf10dcf6033a98f584a0504 SHA512 ccaf624bdea116c70b375ae62c1b477452207e8df0fa0941b0e80ac9fa9fbf760fa0bd0db1e7dc1e63f6010323c4b0bb228e315a0cb8f6a4283cd9da6cfa012b
23
24 diff --git a/net-wireless/blueman/blueman-2.2.3.ebuild b/net-wireless/blueman/blueman-2.2.3.ebuild
25 new file mode 100644
26 index 000000000000..e26dd771b41d
27 --- /dev/null
28 +++ b/net-wireless/blueman/blueman-2.2.3.ebuild
29 @@ -0,0 +1,131 @@
30 +# Copyright 1999-2022 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI="7"
34 +
35 +PYTHON_COMPAT=( python3_{8..10} )
36 +inherit autotools gnome2-utils linux-info python-single-r1 systemd xdg-utils
37 +
38 +DESCRIPTION="Simple and intuitive GTK+ Bluetooth Manager"
39 +HOMEPAGE="https://github.com/blueman-project/blueman"
40 +
41 +if [[ ${PV} == "9999" ]] ; then
42 + inherit git-r3
43 + EGIT_REPO_URI="https://github.com/blueman-project/blueman.git"
44 +else
45 + SRC_URI="https://github.com/blueman-project/${PN}/releases/download/${PV/_/.}/${P/_/.}.tar.xz"
46 + S=${WORKDIR}/${P/_/.}
47 + KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86"
48 +fi
49 +
50 +# icons are GPL-2
51 +# source files are mixed GPL-3+ and GPL-2+
52 +LICENSE="GPL-3+ GPL-2"
53 +SLOT="0"
54 +IUSE="appindicator network nls policykit pulseaudio"
55 +
56 +DEPEND="
57 + $(python_gen_cond_dep '
58 + dev-python/pygobject:3[${PYTHON_USEDEP}]
59 + ')
60 + >=net-wireless/bluez-5:=
61 + ${PYTHON_DEPS}"
62 +BDEPEND="
63 + $(python_gen_cond_dep '
64 + dev-python/cython[${PYTHON_USEDEP}]
65 + ')
66 + virtual/pkgconfig
67 + nls? ( dev-util/intltool sys-devel/gettext )"
68 +RDEPEND="${DEPEND}
69 + $(python_gen_cond_dep '
70 + dev-python/pycairo[${PYTHON_USEDEP}]
71 + ')
72 + sys-apps/dbus
73 + x11-libs/gtk+:3[introspection]
74 + x11-libs/libnotify[introspection]
75 + || (
76 + x11-themes/adwaita-icon-theme
77 + x11-themes/faenza-icon-theme
78 + x11-themes/mate-icon-theme
79 + )
80 + appindicator? ( dev-libs/libappindicator:3[introspection] )
81 + network? (
82 + net-firewall/iptables
83 + || (
84 + sys-apps/net-tools
85 + sys-apps/iproute2
86 + )
87 + || (
88 + net-dns/dnsmasq
89 + net-misc/dhcp
90 + >=net-misc/networkmanager-0.8
91 + )
92 + )
93 + policykit? ( sys-auth/polkit )
94 + pulseaudio? (
95 + || (
96 + media-sound/pulseaudio[bluetooth]
97 + media-sound/pulseaudio-modules-bt
98 + )
99 + )
100 +"
101 +
102 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
103 +
104 +pkg_pretend() {
105 + if use network; then
106 + local CONFIG_CHECK="~BRIDGE ~IP_NF_IPTABLES
107 + ~IP_NF_NAT ~IP_NF_TARGET_MASQUERADE"
108 + check_extra_config
109 + fi
110 +}
111 +
112 +pkg_setup() {
113 + python-single-r1_pkg_setup
114 +}
115 +
116 +src_prepare() {
117 + default
118 + # replace py-compile to fix py3
119 + [[ ${PV} == 9999 ]] && eautoreconf || eautomake
120 +}
121 +
122 +src_configure() {
123 + local myconf=(
124 + --disable-runtime-deps-check
125 + --disable-static
126 + --with-systemdsystemunitdir="$(systemd_get_systemunitdir)"
127 + --with-systemduserunitdir="$(systemd_get_userunitdir)"
128 + --with-dhcp-config="/etc/dhcp/dhcpd.conf"
129 + $(use_enable appindicator)
130 + $(use_enable policykit polkit)
131 + $(use_enable nls)
132 + $(use_enable pulseaudio)
133 + # thunar integration is a single data file with no extra deps
134 + # so install it unconditionally
135 + --enable-thunar-sendto
136 + )
137 + econf "${myconf[@]}"
138 +}
139 +
140 +src_install() {
141 + default
142 +
143 + if use policykit; then
144 + # Allow users in plugdev group to modify connections
145 + insinto /usr/share/polkit-1/rules.d
146 + doins "${FILESDIR}/01-org.blueman.rules"
147 + fi
148 +
149 + find "${D}" -name '*.la' -delete || die
150 +}
151 +
152 +pkg_postinst() {
153 + xdg_icon_cache_update
154 + gnome2_schemas_update
155 +}
156 +
157 +pkg_postrm() {
158 + xdg_icon_cache_update
159 + gnome2_schemas_update
160 +}