diff options
author | Richard Farina <zerochaos@gentoo.org> | 2014-05-05 08:22:49 +0000 |
---|---|---|
committer | Richard Farina <zerochaos@gentoo.org> | 2014-05-05 08:22:49 +0000 |
commit | 071d5a1470cbb336e1ff72f2ca4fa8c5e859028f (patch) | |
tree | d1454f6cb6687fb7fbd3e8980943b28c7ae258fd /net-wireless/blueman/blueman-9999.ebuild | |
parent | Version bump (diff) | |
download | historical-071d5a1470cbb336e1ff72f2ca4fa8c5e859028f.tar.gz historical-071d5a1470cbb336e1ff72f2ca4fa8c5e859028f.tar.bz2 historical-071d5a1470cbb336e1ff72f2ca4fa8c5e859028f.zip |
initial commit of 9999 ebuild with bluez5 support, if we like it, we can snapshot
Package-Manager: portage-2.2.8-r1/cvs/Linux x86_64
Manifest-Sign-Key: 0xDD11F94A
Diffstat (limited to 'net-wireless/blueman/blueman-9999.ebuild')
-rw-r--r-- | net-wireless/blueman/blueman-9999.ebuild | 108 |
1 files changed, 108 insertions, 0 deletions
diff --git a/net-wireless/blueman/blueman-9999.ebuild b/net-wireless/blueman/blueman-9999.ebuild new file mode 100644 index 000000000000..ce05c3ef671b --- /dev/null +++ b/net-wireless/blueman/blueman-9999.ebuild @@ -0,0 +1,108 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-wireless/blueman/blueman-9999.ebuild,v 1.1 2014/05/05 08:22:45 zerochaos Exp $ + +EAPI="5" + +PYTHON_DEPEND="2:2.7" + +inherit eutils python gnome2-utils autotools + +DESCRIPTION="GTK+ Bluetooth Manager, designed to be simple and intuitive for everyday bluetooth tasks." +HOMEPAGE="http://blueman-project.org/" + +if [[ ${PV} == "9999" ]] ; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/${PN}-project/${PN}.git" + EGIT_BRANCH="bluez5" + KEYWORDS="" +else + SRC_URI="http://download.tuxfamily.org/${PN}/${P}.tar.gz" + KEYWORDS="~amd64 ~ppc ~x86" +fi + +LICENSE="GPL-3" +SLOT="0" +IUSE="gconf sendto network nls policykit pulseaudio" + +CDEPEND="dev-libs/glib:2 + x11-libs/gtk+:3 + x11-libs/startup-notification + dev-python/pygobject:2 + >=net-wireless/bluez-4.61 + x11-libs/libnotify" +DEPEND="${CDEPEND} + nls? ( dev-util/intltool sys-devel/gettext ) + virtual/pkgconfig + >=dev-python/pyrex-0.9.8" +RDEPEND="${CDEPEND} + >=app-mobilephone/obex-data-server-0.4.4 + sys-apps/dbus + dev-python/pygtk + dev-python/notify-python + dev-python/dbus-python + x11-themes/hicolor-icon-theme + gconf? ( dev-python/gconf-python ) + sendto? ( gnome-base/nautilus ) + network? ( || ( net-dns/dnsmasq + =net-misc/dhcp-3* + >=net-misc/networkmanager-0.8 ) ) + policykit? ( sys-auth/polkit ) + pulseaudio? ( media-sound/pulseaudio )" + +pkg_setup() { + python_set_active_version 2.7 + python_pkg_setup +} + +src_prepare() { + # disable pyc compiling + ln -sf $(type -P true) py-compile + + sed -i \ + -e '/^Encoding/d' \ + data/blueman-manager.desktop.in || die "sed failed" + + epatch \ + "${FILESDIR}/${PN}-9999-plugins-conf-file.patch" \ + "${FILESDIR}/${PN}-9999-set-codeset-for-gettext-to-UTF-8-always.patch" + eautoreconf +} + +src_configure() { + econf \ + --disable-static \ + $(use_enable policykit polkit) \ + $(use_enable sendto) \ + --disable-hal \ + $(use_enable nls) +} + +src_install() { + default + + python_convert_shebangs 2.7 "${D}"/usr/bin/blueman-* "${D}/usr/libexec/blueman-mechanism" + + rm "${D}"/$(python_get_sitedir)/*.la + use sendto && rm "${D}"/usr/lib*/nautilus-sendto/plugins/*.la + + use gconf || rm "${D}"/$(python_get_sitedir)/${PN}/plugins/config/Gconf.py + use policykit || rm -rf "${D}"/usr/share/polkit-1 + use pulseaudio || rm "${D}"/$(python_get_sitedir)/${PN}/{main/Pulse*.py,plugins/applet/Pulse*.py} + + python_need_rebuild +} + +pkg_preinst() { + gnome2_icon_savelist +} + +pkg_postinst() { + python_mod_optimize ${PN} + gnome2_icon_cache_update +} + +pkg_postrm() { + python_mod_cleanup ${PN} + gnome2_icon_cache_update +} |