summaryrefslogtreecommitdiff
path: root/media-plugins/deadbeef-gnome-mmkeys
diff options
context:
space:
mode:
authorAlexe-Cristia Moldovan <contact@crism.ro>2015-06-18 15:10:15 +0300
committerAlexe-Cristia Moldovan <contact@crism.ro>2015-06-18 15:10:15 +0300
commita8da050bbbbe6352753c07b7b1d4753dbcf8eb7a (patch)
treeac98ee727877dfadccb41a14676982b7fa206d97 /media-plugins/deadbeef-gnome-mmkeys
parentdc45a05bcf51a824e2837ae148f39283e81ff40f (diff)
add deadbeef plugins
Diffstat (limited to 'media-plugins/deadbeef-gnome-mmkeys')
-rw-r--r--media-plugins/deadbeef-gnome-mmkeys/Manifest1
-rw-r--r--media-plugins/deadbeef-gnome-mmkeys/deadbeef-gnome-mmkeys-20131012.ebuild22
-rw-r--r--media-plugins/deadbeef-gnome-mmkeys/deadbeef-gnome-mmkeys-99999999.ebuild20
-rw-r--r--media-plugins/deadbeef-gnome-mmkeys/files/deadbeef-gnome-mmkeys.patch23
4 files changed, 66 insertions, 0 deletions
diff --git a/media-plugins/deadbeef-gnome-mmkeys/Manifest b/media-plugins/deadbeef-gnome-mmkeys/Manifest
new file mode 100644
index 00000000..c6e52181
--- /dev/null
+++ b/media-plugins/deadbeef-gnome-mmkeys/Manifest
@@ -0,0 +1 @@
+DIST deadbeef-gnome-mmkeys-20131012.tar.gz 3471 SHA256 4c0083058fd437ca38b15d5722a050560e64433e31557a8a90420e4c6468042f SHA512 9dbb4fd326461dd374a3f4613c747ce7543d7d43edc1a58b2b3ac3d375f8564bf52c32835faa3c30ccbf79f879185eb5720ba3d6fad0ca2946df5256bfc1f8e6 WHIRLPOOL 2e967126db777aaad129ddd9d6878f22af28e9c2e4c7f56c06134f09e2baa1a7050ae6dabba5ec9c854cbd1582560495cc2e1ba90e7a17075fb3aab75db2a094
diff --git a/media-plugins/deadbeef-gnome-mmkeys/deadbeef-gnome-mmkeys-20131012.ebuild b/media-plugins/deadbeef-gnome-mmkeys/deadbeef-gnome-mmkeys-20131012.ebuild
new file mode 100644
index 00000000..7c5a2499
--- /dev/null
+++ b/media-plugins/deadbeef-gnome-mmkeys/deadbeef-gnome-mmkeys-20131012.ebuild
@@ -0,0 +1,22 @@
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit deadbeef-plugins
+
+GITHUB_COMMIT="8e95cd380ba457fe6b666e5e704aa823d5eca1fa"
+
+DESCRIPTION="DeaDBeeF gnome (via dbus) multimedia keys plugin"
+HOMEPAGE="https://github.com/barthez/deadbeef-gnome-mmkeys"
+SRC_URI="https://github.com/barthez/${PN}/archive/${GITHUB_COMMIT}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+KEYWORDS="~*"
+
+RDEPEND+=" sys-apps/dbus:0"
+
+S="${WORKDIR}/${PN}-${GITHUB_COMMIT}"
+
+src_prepare() {
+ epatch "${FILESDIR}/${PN}.patch"
+}
diff --git a/media-plugins/deadbeef-gnome-mmkeys/deadbeef-gnome-mmkeys-99999999.ebuild b/media-plugins/deadbeef-gnome-mmkeys/deadbeef-gnome-mmkeys-99999999.ebuild
new file mode 100644
index 00000000..deb9638b
--- /dev/null
+++ b/media-plugins/deadbeef-gnome-mmkeys/deadbeef-gnome-mmkeys-99999999.ebuild
@@ -0,0 +1,20 @@
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit deadbeef-plugins git-r3
+
+GITHUB_USERNAME="barthez"
+
+DESCRIPTION="DeaDBeeF gnome (via dbus) multimedia keys plugin"
+HOMEPAGE="https://github.com/barthez/deadbeef-gnome-mmkeys"
+EGIT_REPO_URI="https://github.com/barthez/${PN}.git"
+
+LICENSE="GPL-2"
+KEYWORDS=""
+
+RDEPEND+=" sys-apps/dbus:0"
+
+src_prepare() {
+ epatch "${FILESDIR}/${PN}.patch"
+}
diff --git a/media-plugins/deadbeef-gnome-mmkeys/files/deadbeef-gnome-mmkeys.patch b/media-plugins/deadbeef-gnome-mmkeys/files/deadbeef-gnome-mmkeys.patch
new file mode 100644
index 00000000..1f64cd47
--- /dev/null
+++ b/media-plugins/deadbeef-gnome-mmkeys/files/deadbeef-gnome-mmkeys.patch
@@ -0,0 +1,23 @@
+diff --git a/Makefile b/Makefile
+index 35b19ca..e4f147e 100644
+--- a/Makefile
++++ b/Makefile
+@@ -1,6 +1,6 @@
+-CC = gcc
+-INCLUDES = $(shell pkg-config --cflags gio-2.0 glib-2.0)
+-LIBS = $(shell pkg-config --libs gio-2.0 glib-2.0)
++CC ?= gcc
++INCLUDES ?= $(shell pkg-config --cflags gio-2.0 glib-2.0)
++LIBS ?= $(shell pkg-config --libs gio-2.0 glib-2.0)
+ OPTIONS = -fPIC -shared
+ NAME = ddb_gnome_mmkeys
+ ROOTDIR = /
+@@ -11,7 +11,7 @@ all: plugin
+ plugin: $(NAME).so
+
+ $(NAME).so: $(NAME).c
+- $(CC) $(INCLUDES) $(OPTIONS) -o $(NAME).so $(NAME).c $(LIBS)
++ $(CC) $(CFLAGS) $(INCLUDES) $(OPTIONS) -o $(NAME).so $(NAME).c $(LIBS) $(LDFLAGS)
+
+ install:
+ mkdir -p $(ROOTDIR)$(INSTALL_DIR)