1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python3_{6,7} )
7 inherit autotools gnome2-utils linux-info python-single-r1 systemd xdg-utils
9 DESCRIPTION="Simple and intuitive GTK+ Bluetooth Manager"
10 HOMEPAGE="https://github.com/blueman-project/blueman"
12 if [[ ${PV} == "9999" ]] ; then
14 EGIT_REPO_URI="https://github.com/blueman-project/blueman.git"
17 SRC_URI="https://github.com/blueman-project/${PN}/releases/download/${PV/_/.}/${P/_/.}.tar.xz"
19 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
23 # source files are mixed GPL-3+ and GPL-2+
24 LICENSE="GPL-3+ GPL-2"
26 IUSE="appindicator network nls policykit pulseaudio"
29 $(python_gen_cond_dep '
30 dev-python/pygobject:3[${PYTHON_MULTI_USEDEP}]
32 >=net-wireless/bluez-5:=
35 $(python_gen_cond_dep '
36 dev-python/cython[${PYTHON_MULTI_USEDEP}]
39 nls? ( dev-util/intltool sys-devel/gettext )"
41 $(python_gen_cond_dep '
42 dev-python/pycairo[${PYTHON_MULTI_USEDEP}]
45 x11-libs/gtk+:3[introspection]
46 x11-libs/libnotify[introspection]
48 x11-themes/adwaita-icon-theme
49 x11-themes/faenza-icon-theme
50 x11-themes/mate-icon-theme
52 appindicator? ( dev-libs/libappindicator:3[introspection] )
62 >=net-misc/networkmanager-0.8
65 policykit? ( sys-auth/polkit )
68 media-sound/pulseaudio[bluetooth]
69 media-sound/pulseaudio-modules-bt
72 !net-wireless/gnome-bluetooth
75 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
79 local CONFIG_CHECK="~BRIDGE ~IP_NF_IPTABLES
80 ~IP_NF_NAT ~IP_NF_TARGET_MASQUERADE"
86 python-single-r1_pkg_setup
91 # replace py-compile to fix py3
92 [[ ${PV} == 9999 ]] && eautoreconf || eautomake
97 --docdir=/usr/share/doc/${PF}
98 --disable-runtime-deps-check
100 --with-systemdsystemunitdir="$(systemd_get_systemunitdir)"
101 --with-systemduserunitdir="$(systemd_get_userunitdir)"
102 --with-dhcp-config="/etc/dhcp/dhcpd.conf"
103 $(use_enable appindicator)
104 $(use_enable policykit polkit)
106 $(use_enable pulseaudio)
107 # thunar integration is a single data file with no extra deps
108 # so install it unconditionally
109 --enable-thunar-sendto
117 if use policykit; then
118 # Allow users in plugdev group to modify connections
119 insinto /usr/share/polkit-1/rules.d
120 doins "${FILESDIR}/01-org.blueman.rules"
123 rm "${D}"/$(python_get_sitedir)/*.la || die
127 xdg_icon_cache_update
128 gnome2_schemas_update
132 xdg_icon_cache_update
133 gnome2_schemas_update