Skip to content

Commit

Permalink
asf
Browse files Browse the repository at this point in the history
  • Loading branch information
sandikata committed Jan 3, 2015
1 parent 2c12c12 commit 9440c20
Show file tree
Hide file tree
Showing 4 changed files with 144 additions and 0 deletions.
4 changes: 4 additions & 0 deletions net-wireless/gnome-bluetooth/Manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
AUX 61-gnome-bluetooth.rules 399 SHA256 3590ead9f0f5344b8dd7b73d11ce2750711072f26d12ad76c48f38ec75641b72 SHA512 74fd95e2afb3d3f13df72bb593ae6644a3a4975e43f5f50c622f14f756861596ef92aa331200d9fce6ff3976e8a1ed57e4053186b7a9716039ace971a6dfed0d WHIRLPOOL 5562bbf15568c101aabdbba0d0f9b17ae9ca289da8100b3ae82077fd53fdf46b00736f729a444f4ebec13e7f6bdcd5a1b27e548fc7881722d5984efde0eed5fd
AUX gnome-bluetooth-3.12.0-gold.patch 1558 SHA256 ac2058569a85377c0fc91a8a0d1cf1948c89f9be9c6110b7187c213a2a462092 SHA512 1fd112056f42e99de287757f7603c0d439916659b22d1b1f51e21220ef14a72007898a766cc68a172a8b8924d9a8db4c80e4cfec4808c51aa55665c6f8c22c45 WHIRLPOOL f32d205bc2c727df66d70b0e12f5afc7bc8d04985893b73d848e64a409b7785b797c1f596f70bc268e1e53c80c3e42457ea7091999accc0be1f15d6ccb33b80b
DIST gnome-bluetooth-3.10.0.tar.xz 1327852 SHA256 7ee4ad464abfed59f04d1a471eb25cfb95fc34eeefbe4c47580dbb50df2ab712 SHA512 49602dedaad43652e542c8ca3682158a80a1e4b1cc7c568946af71357dc209600be654977fb444e8561f87bc7d9df8179bd0a808ab1aebd0fb904fec83865c65 WHIRLPOOL 9eaf1b5e8b01f045d3c62cd4ecf73f0778947b13b09860014bb760159f1369febffdbc1b13bad94edec7d15de035aafe70bc0017bdf54035ec67476ba04edc08
EBUILD gnome-bluetooth-3.10.0.ebuild 1903 SHA256 23c178f85e3d80527fe35cb9c1fd5ce3f6f8cf7ec3a5004aa63acee9590d1ac4 SHA512 cd8039186d41f5699e9567eac421fe6d97dc67679fde7ef567f3dbece7ee9c6a60069ae2e0bcbf15bda5fb1a35cb958cdd75977541bff63f192a11b2a35098ff WHIRLPOOL 13f807c0889c954a52905e5cfa7ab92fddaea192ef903d5f9cac2b2f8b73a7678a9886abd7f17910ff50fa537f52be791b87030f9f0c11b45eede34fbadb6914
11 changes: 11 additions & 0 deletions net-wireless/gnome-bluetooth/files/61-gnome-bluetooth.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Get access to /dev/rfkill for users
# See https://bugzilla.redhat.com/show_bug.cgi?id=514798
#
# Updated for udev >= 154
# http://bugs.debian.org/582188
# https://bugzilla.redhat.com/show_bug.cgi?id=588660

ENV{ACL_MANAGE}=="0", GOTO="gnome_bluetooth_end"
ACTION!="add|change", GOTO="gnome_bluetooth_end"
KERNEL=="rfkill", GROUP="plugdev", MODE="0664", TAG+="udev-acl"
LABEL="gnome_bluetooth_end"
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
From 34f21eea0ae2b7bace570eb2d49cf868699e9213 Mon Sep 17 00:00:00 2001
From: Bastien Nocera <hadess@hadess.net>
Date: Tue, 25 Mar 2014 14:25:04 +0100
Subject: [PATCH] build: Explicitely link to libm

For the "pow()" call.

https://bugzilla.gnome.org/show_bug.cgi?id=726693
---
configure.ac | 2 ++
gnome-bluetooth-1.0.pc.in | 2 +-
lib/Makefile.am | 2 +-
3 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index 31e47f7..f7a74ed 100644
--- a/configure.ac
+++ b/configure.ac
@@ -51,6 +51,8 @@ GLIB_GSETTINGS

AC_PATH_PROG([XMLLINT],[xmllint])

+AC_CHECK_LIB([m],[sin])
+
dnl gtk-doc checks
GTK_DOC_CHECK(1.9)

diff --git a/gnome-bluetooth-1.0.pc.in b/gnome-bluetooth-1.0.pc.in
index 4350bc8..46d7dc1 100644
--- a/gnome-bluetooth-1.0.pc.in
+++ b/gnome-bluetooth-1.0.pc.in
@@ -8,5 +8,5 @@ Description: Widgets for Bluetooth device selection
Version: @VERSION@
Requires: gtk+-3.0 gio-2.0
Requires.private: libudev
-Libs: -L${libdir} -lgnome-bluetooth
+Libs: -L${libdir} -lgnome-bluetooth -lm
Cflags: -I${includedir}/gnome-bluetooth
diff --git a/lib/Makefile.am b/lib/Makefile.am
index c558d0c..c110c27 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -48,7 +48,7 @@ libgnome_bluetooth_la_SOURCES = \
$(libgnome_bluetooth_private_headers) \
$(libgnome_bluetooth_c_sources)

-libgnome_bluetooth_la_LIBADD = $(LIBGNOMEBT_LIBS)
+libgnome_bluetooth_la_LIBADD = $(LIBGNOMEBT_LIBS) $(LIBS)

libgnome_bluetooth_la_LDFLAGS = \
-version-info $(GNOMEBT_LT_VERSION) \
--
2.0.0

75 changes: 75 additions & 0 deletions net-wireless/gnome-bluetooth/gnome-bluetooth-3.10.0.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-wireless/gnome-bluetooth/Attic/gnome-bluetooth-3.10.0.ebuild,v 1.7 2014/06/16 10:39:25 tetromino Exp $

EAPI="5"
GCONF_DEBUG="yes"

inherit eutils gnome2 udev user

DESCRIPTION="Bluetooth graphical utilities integrated with GNOME"
HOMEPAGE="https://wiki.gnome.org/GnomeBluetooth"

LICENSE="GPL-2+ LGPL-2.1+ FDL-1.1+"
SLOT="2/12" # subslot = libgnome-bluetooth soname version
IUSE="+introspection"
KEYWORDS="amd64 ~arm ~ppc ~ppc64 x86"

COMMON_DEPEND="
>=dev-libs/glib-2.37.3:2
>=x11-libs/gtk+-2.91.3:3[introspection?]
virtual/udev
introspection? ( >=dev-libs/gobject-introspection-0.9.5 )
"
RDEPEND="${COMMON_DEPEND}
>=net-wireless/bluez-5
x11-themes/gnome-icon-theme-symbolic
"
DEPEND="${COMMON_DEPEND}
!net-wireless/bluez-gnome
app-text/docbook-xml-dtd:4.1.2
dev-libs/libxml2:2
dev-util/gdbus-codegen
>=dev-util/gtk-doc-am-1.9
>=dev-util/intltool-0.40.0
virtual/pkgconfig
x11-libs/libX11
x11-libs/libXi
x11-proto/xproto
"
# eautoreconf needs:
# app-text/yelp-tools
# gnome-base/gnome-common

pkg_setup() {
enewgroup plugdev
}

src_prepare() {
# Regenerate gdbus-codegen files to allow using any glib version; bug #436236
rm -v lib/bluetooth-client-glue.{c,h} || die
gnome2_src_prepare
}

src_configure() {
gnome2_src_configure \
$(use_enable introspection) \
--enable-documentation \
--disable-desktop-update \
--disable-icon-update \
--disable-static \
ITSTOOL=$(type -P true)
}

src_install() {
gnome2_src_install
udev_dorules "${FILESDIR}"/61-${PN}.rules
}

pkg_postinst() {
gnome2_pkg_postinst
if ! has_version sys-auth/consolekit[acl] && ! has_version sys-apps/systemd[acl] ; then
elog "Don't forget to add yourself to the plugdev group "
elog "if you want to be able to control bluetooth transmitter."
fi
}

0 comments on commit 9440c20

Please sign in to comment.