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, 01 Jun 2021 20:35:44
Message-Id: 1622579729.d8bf2b3ce58d7fa5b6b74c25c04fcfc9dace2260.mgorny@gentoo
1 commit: d8bf2b3ce58d7fa5b6b74c25c04fcfc9dace2260
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jun 1 09:31:58 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue Jun 1 20:35:29 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d8bf2b3c
7
8 net-wireless/blueman: Bump to 2.2.1
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.1.ebuild | 131 ++++++++++++++++++++++++++++++
14 2 files changed, 132 insertions(+)
15
16 diff --git a/net-wireless/blueman/Manifest b/net-wireless/blueman/Manifest
17 index 7c13bbcf6d8..c9cafe4c742 100644
18 --- a/net-wireless/blueman/Manifest
19 +++ b/net-wireless/blueman/Manifest
20 @@ -1 +1,2 @@
21 DIST blueman-2.1.4.tar.xz 983816 BLAKE2B de8d475b0aec5b037df43fdb76ebbf4fdb05367f166c14cda818badf49376f2a91de246f991167a57ecaa82a84ac84b4e91f600237c35d86e27431a760192996 SHA512 b8b54942092c1984cfac0cf73e2ac23f7693cb3ee0aa4cfaab1fa0282de4afd539f6860d5541523b542956b2efa31da3ec012dcc39d92fd699d0b8479df641ff
22 +DIST blueman-2.2.1.tar.xz 1570992 BLAKE2B b6d2296b68990c25e6d8077b513ebd3915152522fdf66bb5d887a90cf98e8835d993caf89a93089947ff1f6470075b9b6643ee0169ba86e46d190c09fbc6942a SHA512 7668a68470e7b5ab8e5cd774c89a7ae347de4193e293b5f2a467407fcb625e07a482f986fd7b672b763c297a0c0692c1da53dcc4ae75ec7fa118b180be623104
23
24 diff --git a/net-wireless/blueman/blueman-2.2.1.ebuild b/net-wireless/blueman/blueman-2.2.1.ebuild
25 new file mode 100644
26 index 00000000000..5d3ff61c631
27 --- /dev/null
28 +++ b/net-wireless/blueman/blueman-2.2.1.ebuild
29 @@ -0,0 +1,131 @@
30 +# Copyright 1999-2021 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI="7"
34 +
35 +PYTHON_COMPAT=( python3_{7..9} )
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 ~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_MULTI_USEDEP}]
59 + ')
60 + >=net-wireless/bluez-5:=
61 + ${PYTHON_DEPS}"
62 +BDEPEND="
63 + $(python_gen_cond_dep '
64 + dev-python/cython[${PYTHON_MULTI_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_MULTI_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 +}