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: Wed, 13 May 2020 09:03:14
Message-Id: 1589360575.ba01794a4088da78589136067add871cac6504f8.mgorny@gentoo
1 commit: ba01794a4088da78589136067add871cac6504f8
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed May 13 07:12:18 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed May 13 09:02:55 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ba01794a
7
8 net-wireless/blueman: Bump to 2.1.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.1.3.ebuild | 132 ++++++++++++++++++++++++++++++
14 2 files changed, 133 insertions(+)
15
16 diff --git a/net-wireless/blueman/Manifest b/net-wireless/blueman/Manifest
17 index 0f4401f9c1c..7cdcf743cc2 100644
18 --- a/net-wireless/blueman/Manifest
19 +++ b/net-wireless/blueman/Manifest
20 @@ -1 +1,2 @@
21 DIST blueman-2.1.2.tar.xz 950296 BLAKE2B dec19174813a76d5abb941b7a93257428175961c4f05709e5c1ba304302b4163a61cde2ae5938f40053ea43298ee8ac483cd0439c80ce76bae41a95b3dc8d5ac SHA512 44d397d3a9d154d05b5231e18e624bf1ca33c690be5eeb448620ba4882110306925b78dbbbd815384ee3faeff147d2b042c01be28fb1b43568924c9657484527
22 +DIST blueman-2.1.3.tar.xz 950772 BLAKE2B bec7c8da59b94e8f30ff5f41e057ae5662928a4469b46d0ad2b33521a9b3a5de94056f6f35440d90e05116b1dd83dcd2437f1c00fb6b9532c14ab0698716c57a SHA512 376007c6e857f0e10a4d5e4bc2a50f6d170d393389d3aa5d02728646bf27e2fe5c08fb835bb5432a980d2b6c70c348a0274015552be6229c15a89c34c0d105f2
23
24 diff --git a/net-wireless/blueman/blueman-2.1.3.ebuild b/net-wireless/blueman/blueman-2.1.3.ebuild
25 new file mode 100644
26 index 00000000000..8144b23c4cc
27 --- /dev/null
28 +++ b/net-wireless/blueman/blueman-2.1.3.ebuild
29 @@ -0,0 +1,132 @@
30 +# Copyright 1999-2020 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI="7"
34 +
35 +PYTHON_COMPAT=( python3_{6,7} )
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 + KEYWORDS=""
45 +else
46 + SRC_URI="https://github.com/blueman-project/${PN}/releases/download/${PV/_/.}/${P/_/.}.tar.xz"
47 + S=${WORKDIR}/${P/_/.}
48 + KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
49 +fi
50 +
51 +# icons are GPL-2
52 +# source files are mixed GPL-3+ and GPL-2+
53 +LICENSE="GPL-3+ GPL-2"
54 +SLOT="0"
55 +IUSE="appindicator network nls policykit pulseaudio"
56 +
57 +DEPEND="
58 + $(python_gen_cond_dep '
59 + dev-python/pygobject:3[${PYTHON_MULTI_USEDEP}]
60 + ')
61 + >=net-wireless/bluez-5:=
62 + ${PYTHON_DEPS}"
63 +BDEPEND="
64 + $(python_gen_cond_dep '
65 + dev-python/cython[${PYTHON_MULTI_USEDEP}]
66 + ')
67 + virtual/pkgconfig
68 + nls? ( dev-util/intltool sys-devel/gettext )"
69 +RDEPEND="${DEPEND}
70 + $(python_gen_cond_dep '
71 + dev-python/pycairo[${PYTHON_MULTI_USEDEP}]
72 + ')
73 + sys-apps/dbus
74 + x11-libs/gtk+:3[introspection]
75 + x11-libs/libnotify[introspection]
76 + || (
77 + x11-themes/adwaita-icon-theme
78 + x11-themes/faenza-icon-theme
79 + x11-themes/mate-icon-theme
80 + )
81 + appindicator? ( dev-libs/libappindicator:3[introspection] )
82 + network? (
83 + net-firewall/iptables
84 + || (
85 + sys-apps/net-tools
86 + sys-apps/iproute2
87 + )
88 + || (
89 + net-dns/dnsmasq
90 + net-misc/dhcp
91 + >=net-misc/networkmanager-0.8
92 + )
93 + )
94 + policykit? ( sys-auth/polkit )
95 + pulseaudio? (
96 + || (
97 + media-sound/pulseaudio[bluetooth]
98 + media-sound/pulseaudio-modules-bt
99 + )
100 + )
101 +"
102 +
103 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
104 +
105 +pkg_pretend() {
106 + if use network; then
107 + local CONFIG_CHECK="~BRIDGE ~IP_NF_IPTABLES
108 + ~IP_NF_NAT ~IP_NF_TARGET_MASQUERADE"
109 + check_extra_config
110 + fi
111 +}
112 +
113 +pkg_setup() {
114 + python-single-r1_pkg_setup
115 +}
116 +
117 +src_prepare() {
118 + default
119 + # replace py-compile to fix py3
120 + [[ ${PV} == 9999 ]] && eautoreconf || eautomake
121 +}
122 +
123 +src_configure() {
124 + local myconf=(
125 + --disable-runtime-deps-check
126 + --disable-static
127 + --with-systemdsystemunitdir="$(systemd_get_systemunitdir)"
128 + --with-systemduserunitdir="$(systemd_get_userunitdir)"
129 + --with-dhcp-config="/etc/dhcp/dhcpd.conf"
130 + $(use_enable appindicator)
131 + $(use_enable policykit polkit)
132 + $(use_enable nls)
133 + $(use_enable pulseaudio)
134 + # thunar integration is a single data file with no extra deps
135 + # so install it unconditionally
136 + --enable-thunar-sendto
137 + )
138 + econf "${myconf[@]}"
139 +}
140 +
141 +src_install() {
142 + default
143 +
144 + if use policykit; then
145 + # Allow users in plugdev group to modify connections
146 + insinto /usr/share/polkit-1/rules.d
147 + doins "${FILESDIR}/01-org.blueman.rules"
148 + fi
149 +
150 + rm "${D}"/$(python_get_sitedir)/*.la || die
151 +}
152 +
153 +pkg_postinst() {
154 + xdg_icon_cache_update
155 + gnome2_schemas_update
156 +}
157 +
158 +pkg_postrm() {
159 + xdg_icon_cache_update
160 + gnome2_schemas_update
161 +}