/[gentoo-x86]/net-wireless/blueman/blueman-2.0.ebuild
Gentoo

Contents of /net-wireless/blueman/blueman-2.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat Aug 8 16:16:09 2015 UTC (4 years, 5 months ago) by mgorny
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +26 -6 lines
Add additional deps and kernel checks for USE=network. Bug #487378.

(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key EFB4464E!)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-wireless/blueman/blueman-2.0.ebuild,v 1.1 2015/08/08 15:35:02 mgorny Exp $
4
5 EAPI="5"
6
7 PYTHON_COMPAT=( python2_7 )
8 inherit eutils gnome2-utils linux-info python-single-r1
9
10 DESCRIPTION="GTK+ Bluetooth Manager, designed to be simple and intuitive for everyday bluetooth tasks"
11 HOMEPAGE="https://github.com/blueman-project/blueman"
12
13 if [[ ${PV} == "9999" ]] ; then
14 inherit autotools git-r3
15 EGIT_REPO_URI="https://github.com/blueman-project/blueman.git"
16 KEYWORDS=""
17 else
18 SRC_URI="https://github.com/blueman-project/${PN}/releases/download/${PV}/${P}.tar.xz"
19 KEYWORDS="~amd64 ~x86"
20 fi
21
22 LICENSE="GPL-3"
23 SLOT="0"
24 IUSE="appindicator network nls policykit pulseaudio thunar"
25
26 COMMON_DEPEND="
27 dev-python/pygobject:3
28 >=net-wireless/bluez-4.61:=
29 ${PYTHON_DEPS}"
30 DEPEND="${COMMON_DEPEND}
31 dev-python/cython[${PYTHON_USEDEP}]
32 virtual/pkgconfig
33 nls? ( dev-util/intltool sys-devel/gettext )"
34 RDEPEND="${COMMON_DEPEND}
35 dev-python/dbus-python[${PYTHON_USEDEP}]
36 dev-python/pycairo[${PYTHON_USEDEP}]
37 sys-apps/dbus
38 x11-libs/gtk+:3[introspection]
39 x11-libs/libnotify[introspection]
40 || (
41 x11-themes/faenza-icon-theme
42 x11-themes/gnome-icon-theme
43 x11-themes/mate-icon-theme
44 )
45 appindicator? ( dev-libs/libappindicator:3[introspection] )
46 network? (
47 net-dns/avahi[autoipd]
48 net-firewall/iptables
49 sys-apps/net-tools
50 || (
51 net-dns/dnsmasq
52 net-misc/dhcp
53 >=net-misc/networkmanager-0.8
54 )
55 )
56 policykit? ( sys-auth/polkit )
57 pulseaudio? ( media-sound/pulseaudio[bluetooth] )
58 thunar? ( xfce-base/thunar )
59 !net-wireless/gnome-bluetooth
60 "
61
62 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
63
64 pkg_pretend() {
65 if use network; then
66 local CONFIG_CHECK="~BRIDGE ~IP_NF_IPTABLES
67 ~IP_NF_NAT ~IP_NF_TARGET_MASQUERADE"
68 linux-info_pkg_setup
69 fi
70 }
71
72 pkg_setup() {
73 pkg_pretend
74 python-single-r1_pkg_setup
75 }
76
77 src_prepare() {
78 epatch \
79 "${FILESDIR}/${P}-set-codeset-for-gettext-to-UTF-8-always.patch"
80 [[ ${PV} == 9999 ]] && eautoreconf
81 }
82
83 src_configure() {
84 econf \
85 --docdir=/usr/share/doc/${PF} \
86 --disable-runtime-deps-check \
87 --disable-static \
88 $(use_enable policykit polkit) \
89 $(use_enable nls) \
90 $(use_enable thunar thunar-sendto)
91 }
92
93 src_install() {
94 default
95
96 python_fix_shebang "${D}"
97 rm "${D}"/$(python_get_sitedir)/*.la || die
98
99 use appindicator || { rm "${D}"/$(python_get_sitedir)/${PN}/plugins/applet/AppIndicator.py* || die; }
100 use pulseaudio || { rm "${D}"/$(python_get_sitedir)/${PN}/{main/Pulse*.py*,plugins/manager/Pulse*.py*} || die; }
101 }
102
103 pkg_preinst() {
104 gnome2_icon_savelist
105 gnome2_schemas_savelist
106 }
107
108 pkg_postinst() {
109 gnome2_icon_cache_update
110 gnome2_schemas_update
111 }
112
113 pkg_postrm() {
114 gnome2_icon_cache_update
115 gnome2_schemas_update
116 }

  ViewVC Help
Powered by ViewVC 1.1.20