diff options
author | Alexe-Cristia Moldovan <contact@crism.ro> | 2015-06-18 15:10:15 +0300 |
---|---|---|
committer | Alexe-Cristia Moldovan <contact@crism.ro> | 2015-06-18 15:10:15 +0300 |
commit | a8da050bbbbe6352753c07b7b1d4753dbcf8eb7a (patch) | |
tree | ac98ee727877dfadccb41a14676982b7fa206d97 /media-plugins/deadbeef-infobar | |
parent | dc45a05bcf51a824e2837ae148f39283e81ff40f (diff) |
add deadbeef plugins
Diffstat (limited to 'media-plugins/deadbeef-infobar')
6 files changed, 106 insertions, 0 deletions
diff --git a/media-plugins/deadbeef-infobar/Manifest b/media-plugins/deadbeef-infobar/Manifest new file mode 100644 index 00000000..8b557bb7 --- /dev/null +++ b/media-plugins/deadbeef-infobar/Manifest @@ -0,0 +1 @@ +DIST deadbeef-infobar-1.4.tar.gz 30720 SHA256 ee2a950e4008f28d2640084407a9af06287ad2f10c4593f6e1bcc100f9803c31 SHA512 7beac74626d512251f732796da156b3742a0002a00264ca3e59f11809701749272ea3a51063a875c5252c65ed85dcdad037a563ebcf1482480f000b528ba51a4 WHIRLPOOL e5b1362611ad180233fea642a6385c78b255fa67389f7280543a91f67367fe9082edc42f51d9f3eb4c8bf0df3566b4f2ae598029798b3e02727ec8e2f11132a6 diff --git a/media-plugins/deadbeef-infobar/deadbeef-infobar-1.4.ebuild b/media-plugins/deadbeef-infobar/deadbeef-infobar-1.4.ebuild new file mode 100644 index 00000000..76c79ad4 --- /dev/null +++ b/media-plugins/deadbeef-infobar/deadbeef-infobar-1.4.ebuild @@ -0,0 +1,32 @@ +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +DEADBEEF_GUI="yes" + +inherit deadbeef-plugins + +DESCRIPTION="DeaDBeeF infobar plugin for DeadBeeF that shows lyrics and artist's biography for the current track" +HOMEPAGE="https://bitbucket.org/dsimbiriatin/deadbeef-infobar" +SRC_URI="https://bitbucket.org/dsimbiriatin/${PN}/downloads/${P}.tar.gz" + +LICENSE="GPL-2" +KEYWORDS="~*" + +RDEPEND+=" dev-libs/libxml2:2 + x11-libs/gdk-pixbuf:2[jpeg] + media-sound/deadbeef:0[curl]" + +DEPEND="${RDEPEND}" + +src_prepare() { + epatch "${FILESDIR}/${PN}-cflags.diff" + epatch "${FILESDIR}/${PN}-load-gtk2-and-gtk3-version-fix.diff" + + use gtk2 && epatch "${FILESDIR}/${PN}-focus-fix.diff" +} + +src_compile() { + use gtk2 && emake gtk2 + use gtk3 && emake gtk3 +} diff --git a/media-plugins/deadbeef-infobar/deadbeef-infobar-9999.ebuild b/media-plugins/deadbeef-infobar/deadbeef-infobar-9999.ebuild new file mode 100644 index 00000000..34b76bde --- /dev/null +++ b/media-plugins/deadbeef-infobar/deadbeef-infobar-9999.ebuild @@ -0,0 +1,32 @@ +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +DEADBEEF_GUI="yes" + +inherit deadbeef-plugins mercurial + +DESCRIPTION="DeaDBeeF infobar plugin that shows lyrics and artist's biography for the current track" +HOMEPAGE="https://bitbucket.org/dsimbiriatin/deadbeef-infobar" +EHG_REPO_URI="https://bitbucket.org/dsimbiriatin/${PN}" + +LICENSE="GPL-2" +KEYWORDS="" + +RDEPEND+=" dev-libs/libxml2:2 + x11-libs/gdk-pixbuf:2[jpeg] + media-sound/deadbeef:0[curl]" + +DEPEND="${RDEPEND}" + +src_prepare() { + epatch "${FILESDIR}/${PN}-cflags.diff" + epatch "${FILESDIR}/${PN}-load-gtk2-and-gtk3-version-fix.diff" + + use gtk2 && epatch "${FILESDIR}/${PN}-focus-fix.diff" +} + +src_compile() { + use gtk2 && emake gtk2 + use gtk3 && emake gtk3 +} diff --git a/media-plugins/deadbeef-infobar/files/deadbeef-infobar-cflags.diff b/media-plugins/deadbeef-infobar/files/deadbeef-infobar-cflags.diff new file mode 100644 index 00000000..16bc042f --- /dev/null +++ b/media-plugins/deadbeef-infobar/files/deadbeef-infobar-cflags.diff @@ -0,0 +1,12 @@ +diff -r b870df1b662c Makefile +--- a/Makefile Thu Jan 30 15:13:12 2014 +0200 ++++ b/Makefile Thu Jul 10 09:00:29 2014 +0200 +@@ -42,7 +42,7 @@ + endef + + define link +- $(CC) $(LDFLAGS) $1 $2 $3 -o $@ ++ $(CC) $(CFLAGS) $(LDFLAGS) $1 $2 $3 -o $@ + endef + + # Builds both GTK+2 and GTK+3 versions of the plugin. diff --git a/media-plugins/deadbeef-infobar/files/deadbeef-infobar-focus-fix.diff b/media-plugins/deadbeef-infobar/files/deadbeef-infobar-focus-fix.diff new file mode 100644 index 00000000..b80016cf --- /dev/null +++ b/media-plugins/deadbeef-infobar/files/deadbeef-infobar-focus-fix.diff @@ -0,0 +1,14 @@ +diff -r b870df1b662c ui.c +--- a/ui.c Thu Jan 30 15:13:12 2014 +0200 ++++ b/ui.c Thu Jul 10 09:00:29 2014 +0200 +@@ -19,6 +19,10 @@ + + #include "ui.h" + ++#if !GTK_CHECK_VERSION(2,18,0) ++#define gtk_widget_set_can_focus(widget, canfocus) {if (canfocus) GTK_WIDGET_SET_FLAGS (widget, GTK_CAN_FOCUS); else GTK_WIDGET_UNSET_FLAGS(widget, GTK_CAN_FOCUS);} ++#endif ++ + static GtkWidget *infobar_tabs; + static GtkWidget *infobar_toggles; + diff --git a/media-plugins/deadbeef-infobar/files/deadbeef-infobar-load-gtk2-and-gtk3-version-fix.diff b/media-plugins/deadbeef-infobar/files/deadbeef-infobar-load-gtk2-and-gtk3-version-fix.diff new file mode 100644 index 00000000..1ed84ba0 --- /dev/null +++ b/media-plugins/deadbeef-infobar/files/deadbeef-infobar-load-gtk2-and-gtk3-version-fix.diff @@ -0,0 +1,15 @@ +diff -r b870df1b662c infobar.c +--- a/infobar.c Thu Jan 30 15:13:12 2014 +0200 ++++ b/infobar.c Thu Jul 10 09:00:29 2014 +0200 +@@ -333,6 +333,11 @@ + .plugin.version_major = 1, + .plugin.version_minor = 4, + .plugin.type = DB_PLUGIN_MISC, ++#if !GTK_CHECK_VERSION(3, 0, 0) ++ .plugin.id = "infobar_gtk2", ++#else ++ .plugin.id = "infobar_gtk3", ++#endif + .plugin.name = "Infobar", + .plugin.descr = "Infobar plugin for DeadBeeF audio player.\nFetches and shows:\n" + "- song's lyrics;\n- artist's biography;\n- list of similar artists.\n\n" |