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: Sat, 25 Jan 2020 05:47:20
Message-Id: 1579928589.241a4e5a50ebe2621bc709d77c3e4920e0aa3f50.mgorny@gentoo
1 commit: 241a4e5a50ebe2621bc709d77c3e4920e0aa3f50
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jan 25 05:03:09 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Jan 25 05:03:09 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=241a4e5a
7
8 net-wireless/blueman: Bump to 2.1.2
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.2.ebuild | 134 ++++++++++++++++++++++++++++++
14 2 files changed, 135 insertions(+)
15
16 diff --git a/net-wireless/blueman/Manifest b/net-wireless/blueman/Manifest
17 index 6aaa49d57d4..e55cb5288c1 100644
18 --- a/net-wireless/blueman/Manifest
19 +++ b/net-wireless/blueman/Manifest
20 @@ -1 +1,2 @@
21 DIST blueman-2.1.1.tar.xz 950296 BLAKE2B 10113bf9bd6744d6aaa5e4d0912d87ba11ace36027acfb10802988ad7c7458dbe2c092095148277f437a8dac68f93c017da53a0925a2c3e8c24e0400db567c87 SHA512 bde7dffc369a7204e2c0e05005f3c1cb97760b3d8625342fe69a5b5c729d6b90eabeca37c679c56f73499f1dbc17ccc15800b4e6e48e717f0e306083525981e9
22 +DIST blueman-2.1.2.tar.xz 950296 BLAKE2B dec19174813a76d5abb941b7a93257428175961c4f05709e5c1ba304302b4163a61cde2ae5938f40053ea43298ee8ac483cd0439c80ce76bae41a95b3dc8d5ac SHA512 44d397d3a9d154d05b5231e18e624bf1ca33c690be5eeb448620ba4882110306925b78dbbbd815384ee3faeff147d2b042c01be28fb1b43568924c9657484527
23
24 diff --git a/net-wireless/blueman/blueman-2.1.2.ebuild b/net-wireless/blueman/blueman-2.1.2.ebuild
25 new file mode 100644
26 index 00000000000..36efcd261c6
27 --- /dev/null
28 +++ b/net-wireless/blueman/blueman-2.1.2.ebuild
29 @@ -0,0 +1,134 @@
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 + !net-wireless/gnome-bluetooth
102 +"
103 +
104 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
105 +
106 +pkg_pretend() {
107 + if use network; then
108 + local CONFIG_CHECK="~BRIDGE ~IP_NF_IPTABLES
109 + ~IP_NF_NAT ~IP_NF_TARGET_MASQUERADE"
110 + check_extra_config
111 + fi
112 +}
113 +
114 +pkg_setup() {
115 + python-single-r1_pkg_setup
116 +}
117 +
118 +src_prepare() {
119 + default
120 + # replace py-compile to fix py3
121 + [[ ${PV} == 9999 ]] && eautoreconf || eautomake
122 +}
123 +
124 +src_configure() {
125 + local myconf=(
126 + --docdir=/usr/share/doc/${PF}
127 + --disable-runtime-deps-check
128 + --disable-static
129 + --with-systemdsystemunitdir="$(systemd_get_systemunitdir)"
130 + --with-systemduserunitdir="$(systemd_get_userunitdir)"
131 + --with-dhcp-config="/etc/dhcp/dhcpd.conf"
132 + $(use_enable appindicator)
133 + $(use_enable policykit polkit)
134 + $(use_enable nls)
135 + $(use_enable pulseaudio)
136 + # thunar integration is a single data file with no extra deps
137 + # so install it unconditionally
138 + --enable-thunar-sendto
139 + )
140 + econf "${myconf[@]}"
141 +}
142 +
143 +src_install() {
144 + default
145 +
146 + if use policykit; then
147 + # Allow users in plugdev group to modify connections
148 + insinto /usr/share/polkit-1/rules.d
149 + doins "${FILESDIR}/01-org.blueman.rules"
150 + fi
151 +
152 + rm "${D}"/$(python_get_sitedir)/*.la || die
153 +}
154 +
155 +pkg_postinst() {
156 + xdg_icon_cache_update
157 + gnome2_schemas_update
158 +}
159 +
160 +pkg_postrm() {
161 + xdg_icon_cache_update
162 + gnome2_schemas_update
163 +}