diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /media-sound/lastfmplayer |
reinit the tree, so we can have metadata
Diffstat (limited to 'media-sound/lastfmplayer')
6 files changed, 264 insertions, 0 deletions
diff --git a/media-sound/lastfmplayer/Manifest b/media-sound/lastfmplayer/Manifest new file mode 100644 index 000000000000..a379aa851c76 --- /dev/null +++ b/media-sound/lastfmplayer/Manifest @@ -0,0 +1,10 @@ +AUX lastfmplayer-1.5.4.27091-gcc47.patch 1059 SHA256 718bd0c5ec07b353e29647f203f0e55252039e1601b31257409e834a9d0797c1 SHA512 5850ab4951e015652635c559d8fe1688ff52f4ad4c865d6ea82584b2abc2fbe989a4a33253a8aac451dbc98ccde7d560065d39b2c87e646d5c772238dee6d03c WHIRLPOOL d049db683dbe06a2518a5f1e9d6f2bd596f5f4d4261ca7696cbe902ce69156e3fb05311c58e0b24185969f4cf9c96362c099e204c91eca518aee5c9593c8c035 +AUX lastfmplayer-1.5.4.27091-glib.h.patch 461 SHA256 c2371dc7d74bc9cf07d9663df52bb4142c7e8dd6dad9366856c97526c0649c34 SHA512 1f2b297f47fc7a18792e83dd2963386ade4cb6f86ade16a2c939132a4234be2379b7d71669482121e4a930dd737f1e6656736e42c0e4f4859fe7a84a60de3b85 WHIRLPOOL 1d2e4ed685e9f1d255dd7dfc94f42d379d5edc92f825d230dcc7fa7974d2cc74a5e6ef7b8f52ff85e94638a6442ec127d78af53663fe66d9e76dbb6e6729f533 +AUX lastfmplayer-extensions-path.patch 1507 SHA256 4ec6beecbe5de40937b148ac72bc7d52a81f7636c8ef11b1a821db6488578153 SHA512 aaaed7a58cb21b511d1b75feb21b30b907c84943f1306c14c3f66d64a197c91b26389b3f29c7b7fe3eadbbbdfd53658619188eef31d9712a1fa3b602acd31c75 WHIRLPOOL e1fe341ac365e930deae4288ae62dd43ada1093d93f999a4bb8aff8c01b72fa76a827cc0f37fbf9cf6a1662cdd652b5efdeda99ded8bf670bf6e44c4a05fac49 +DIST dbusextension-2.0.tar.bz2 11101 SHA256 db9f5040b593886a36ec409bb1e5b96f2225132207c841cc0b3c15c6242741d2 SHA512 f277a8e4452f2d80b93111ef956f54999881d44df6beaf4294a8dc9468c5f6c2660bbd34f7d363c0541e2f46078fd6ab311b6d30547f5369fe84be1045f849f8 WHIRLPOOL e2c8aef7e8112fb3959f653a53861da5ba77f57c33ea4cafe157f8e060e98362acd8220602bc2ffae7c9437526df902fd10c5c5b5f4175bcbc9c2b1bddc988e5 +DIST lastfm-1.5.4.27091+dfsg.tar.gz 1480448 SHA256 b26596f35e71c9f5b20505486cb73f34404bbef01949c166929f566a5d9d6505 SHA512 72506c942217973fc170c2f37bf3a91fbd6378e626d891913aefa6bf7fcfa96751e2fb7c048405d7f1aad18bc9121bf066afb78b1a2498172af59d03fd80493b WHIRLPOOL 8da1761606cc50a0b17f77694b1ab8ab8c26d55eb8dd8abcc10c23afd3256f802c935d499db48614379f45f72ef754e0d00b65ca59091e58a84ff355b40e8c8a +DIST lastfm_1.5.4.27091+dfsg-2.debian.tar.gz 69004 SHA256 e5953574db35c098b0d82537d69c0e15369bd3d3a84920a7ae42948ce9d42db7 SHA512 ef4f9995681f77ff8751d1d4d28bb68f5640b54f9646c79fafc53b3d20ba155b60baca29047ebe01f01919c89d2bfb1aeee573aa2946ac382c6de984eb81f923 WHIRLPOOL 2df70e0112bec474f010785b36ce6a0575d07aaa9c38dcd27cefcabce2394fbecb8406b0674469805c9509620ddb64cb1623c602e26cd5521ead23951d2c4978 +EBUILD lastfmplayer-1.5.4.27091-r3.ebuild 4483 SHA256 0ba88d4c50a232e400bbee69a3a8a752517a2a6a892a1aa4937e10dcccab8af0 SHA512 f0be1d54d6cf313d627a84d87dd0dc9da92d344533ccfbcbc55e7167125378f51d5d487240c55b9bb182722d82fcfc3b22f93de7144e5e5ead6de117452a3b0a WHIRLPOOL fc4a51d58d3d6cff1a0c64b3513126e0275e0eb449eca591473a00a76293eb734a6c902ee19c20645e5d71f01b558612f02c98b326a618c6e4ef1983e950a3f1 +MISC ChangeLog 2805 SHA256 28c62f858364f4f86f8dd8c2990b2a6127a11ac8accf12824b1bc1388779a623 SHA512 cbdb24b95fedddd5258d0e2672ebb19a78bbb6679f8c87491c6f5a5f7e7bb353220c20ff112a0819aba3f6577ecd4b5e5d930d0e6d8a48915b6ac5ac3f5640fd WHIRLPOOL 103e303ba7ac88b3efefe771baa9fb8e6e735c8e86012676c8fc0f8010e1c109cc6c5e93192291c66fcd6f0047f3c6ca214cb6e6edebf70baf60ba89a035ab84 +MISC ChangeLog-2015 14052 SHA256 637522e963b4bc3f07ee95eee17bde0dc5ccd2244fbc0158c69e16d6caf233ba SHA512 c227e7d9b53c7b937463c540c7281b5dcb05608bb036b8f1736a12169e02483c1f68b778fd87ccbdcc8564fae7e7e9fd06d0c4f5575010bd62d4c8a01ae334b6 WHIRLPOOL 399bf1cdeafd6d1e39fb54f2412ac52d561ee01574f401f301adadaab815f274e4bbfbfccdeebb1542e9bc1fc173c5f7d0e22e63ef41bda20d1342bd05344273 +MISC metadata.xml 249 SHA256 a591aa91a9c413e7f7e24fd25b924ce2dfef686da8b4ce38bebb088ebfdba9db SHA512 9a100fb26586365eda99724330a03a512f4d0be18d39c3a195ba02c2fc841edeee99d22512acf5a058a3b978d3a74f4d963a5aff9aa343b6cb4086cdfefe6343 WHIRLPOOL ae5b0c583f3a07ed1ccf651b5b9c8d6c8c637fba2d505fc4b028ea60239fc0a84e37a169b5114f879712ae74f7f41960a2cc6b59e67cacc7f964b105b5fb8723 diff --git a/media-sound/lastfmplayer/files/lastfmplayer-1.5.4.27091-gcc47.patch b/media-sound/lastfmplayer/files/lastfmplayer-1.5.4.27091-gcc47.patch new file mode 100644 index 000000000000..5a6009b21859 --- /dev/null +++ b/media-sound/lastfmplayer/files/lastfmplayer-1.5.4.27091-gcc47.patch @@ -0,0 +1,50 @@ +Description: Fix compilation with gcc 4.7 +Author: John Stamp <jstamp@users.sourceforge.net> +http://bugs.debian.org/667236 +https://bugs.gentoo.org/show_bug.cgi?id=423221 +--- a/src/libUnicorn/UnicornCommon.cpp ++++ b/src/libUnicorn/UnicornCommon.cpp +@@ -32,6 +32,8 @@ + #ifdef WIN32 + #include <windows.h> + #include <shlobj.h> ++#else ++ #include <unistd.h> + #endif + + using namespace std; +--- a/src/lastfmapplication.cpp ++++ b/src/lastfmapplication.cpp +@@ -59,6 +59,8 @@ + + #ifdef WIN32 + #include <windows.h> ++#else ++ #include <unistd.h> + #endif + + #ifdef Q_WS_MAC +--- a/src/libUnicorn/Settings.h ++++ b/src/libUnicorn/Settings.h +@@ -105,7 +105,7 @@ + public: + MyQSettings( const UserSettings* const s ) + { +- beginGroup( s->username() ); ++ this->beginGroup( s->username() ); + } + }; + +--- a/src/playerlistener.cpp ++++ b/src/playerlistener.cpp +@@ -33,6 +33,10 @@ + #include <iostream>
+ #include <algorithm>
+
++#ifdef Q_OS_UNIX
++ #include <unistd.h>
++#endif
++
+ using namespace std;
+
+
diff --git a/media-sound/lastfmplayer/files/lastfmplayer-1.5.4.27091-glib.h.patch b/media-sound/lastfmplayer/files/lastfmplayer-1.5.4.27091-glib.h.patch new file mode 100644 index 000000000000..146fd1b361b1 --- /dev/null +++ b/media-sound/lastfmplayer/files/lastfmplayer-1.5.4.27091-glib.h.patch @@ -0,0 +1,16 @@ + src/mediadevices/ipod/IpodDevice.cpp | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/src/mediadevices/ipod/IpodDevice.cpp b/src/mediadevices/ipod/IpodDevice.cpp +index 3e40672..f3bad0e 100644 +--- a/src/mediadevices/ipod/IpodDevice.cpp ++++ b/src/mediadevices/ipod/IpodDevice.cpp +@@ -35,7 +35,7 @@ + extern "C" + { + #include <gpod/itdb.h> +- #include <glib/glist.h> ++ #include <glib.h> + } + + #define TABLE_NAME "IpodDeviceTracks" diff --git a/media-sound/lastfmplayer/files/lastfmplayer-extensions-path.patch b/media-sound/lastfmplayer/files/lastfmplayer-extensions-path.patch new file mode 100644 index 000000000000..6805dd0eb7ea --- /dev/null +++ b/media-sound/lastfmplayer/files/lastfmplayer-extensions-path.patch @@ -0,0 +1,44 @@ +Index: lastfm-1.5.4.27091+dfsg/definitions.pro.inc +=================================================================== +--- lastfm-1.5.4.27091+dfsg.orig/definitions.pro.inc ++++ lastfm-1.5.4.27091+dfsg/definitions.pro.inc +@@ -10,7 +10,7 @@ CONFIG( service ) { + CONFIG += plugin + + win32: DESTDIR = $$BIN_DIR +- else: DESTDIR = $$BIN_DIR/services ++ else: DESTDIR = $$BIN_DIR/lastfm_services + + TARGET = srv_$$TARGET + } +@@ -19,7 +19,7 @@ CONFIG( extension ) { + CONFIG += plugin + + win32: DESTDIR = $$BIN_DIR +- else: DESTDIR = $$BIN_DIR/extensions ++ else: DESTDIR = $$BIN_DIR/lastfm_services/extensions + + TARGET = ext_$$TARGET + } +Index: lastfm-1.5.4.27091+dfsg/src/libMoose/MooseCommon.cpp +=================================================================== +--- lastfm-1.5.4.27091+dfsg.orig/src/libMoose/MooseCommon.cpp ++++ lastfm-1.5.4.27091+dfsg/src/libMoose/MooseCommon.cpp +@@ -112,7 +112,7 @@ servicePath( QString name ) + // Hack to get it working with VS2005 + dirPath = qApp->applicationDirPath(); + #else +- dirPath = qApp->applicationDirPath() + "/services"; ++ dirPath = "/usr/lib/lastfm_services"; + #endif + + #ifndef QT_NO_DEBUG +@@ -358,7 +358,7 @@ extensionPaths() + // Hack to get it working with VS2005 + QString path = qApp->applicationDirPath(); + #else +- QString path = qApp->applicationDirPath() + "/extensions"; ++ QString path = "/usr/lib/lastfm_services/extensions"; + #endif + + #ifndef QT_NO_DEBUG diff --git a/media-sound/lastfmplayer/lastfmplayer-1.5.4.27091-r3.ebuild b/media-sound/lastfmplayer/lastfmplayer-1.5.4.27091-r3.ebuild new file mode 100644 index 000000000000..5423b1a7c3eb --- /dev/null +++ b/media-sound/lastfmplayer/lastfmplayer-1.5.4.27091-r3.ebuild @@ -0,0 +1,136 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils multilib readme.gentoo toolchain-funcs qmake-utils qt4-r2 + +MY_P="${P/lastfmplayer/lastfm}+dfsg" + +DESCRIPTION="A player for last.fm radio streams" +HOMEPAGE="http://www.last.fm/help/player + http://www.mehercule.net/staticpages/index.php/lastfm" +SRC_URI="https://dev.gentoo.org/~hwoarang/distfiles/lastfm-${PV}+dfsg.tar.gz + https://dev.gentoo.org/~hwoarang/distfiles/lastfm_${PV}+dfsg-2.debian.tar.gz + dbus? ( http://glue.umd.edu/~rossatok/dbusextension-2.0.tar.bz2 )" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~arm ppc x86" +IUSE="dbus ipod" + +RDEPEND="dev-qt/qtgui:4 + dev-qt/qtsql:4 + media-libs/libsamplerate + sci-libs/fftw + media-libs/libmad + ipod? ( >=media-libs/libgpod-0.5.2 ) + media-libs/alsa-lib" +DEPEND="${RDEPEND} + app-arch/sharutils" + +S=${WORKDIR}/${MY_P} + +src_prepare() { + DISABLE_AUTOFORMATTING="yes" + DOC_CONTENTS="To use the Last.fm player with a mozilla based browser: +1. Install gnome-base/gconf +2. gconftool-2 -t string -s /desktop/gnome/url-handlers/lastfm/command \"/usr/bin/lastfm %s\" +3. gconftool-2 -s /desktop/gnome/url-handlers/lastfm/needs_terminal false -t bool +4. gconftool-2 -t bool -s /desktop/gnome/url-handlers/lastfm/enabled true + +If you experience awkward fonts or widgets, try running qtconfig." + + qt4-r2_src_prepare + # Use a different extensions path + epatch "${FILESDIR}"/${PN}-extensions-path.patch + einfo "Applying Debian patchset" + sed -i "/^tray-icon-size.diff/d" "${WORKDIR}"/debian/patches/series + cd "${S}" + for i in $( < "${WORKDIR}"/debian/patches/series); do + epatch "${WORKDIR}"/debian/patches/$i + done + if ! use ipod ; then + sed -i '/src\/mediadevices\/ipod/d' LastFM.pro || die "sed failed" + fi + #fix plugin search path for multilib support + sed -i -e "s:/usr/lib/:/usr/$(get_libdir)/:g" \ + "${S}"/src/libMoose/MooseCommon.cpp + if use dbus; then + mv "${WORKDIR}"/dbus "${S}"/src/dbus + sed -i -e "/include/s:../definitions.pro.in:definitions.pro.in:" \ + -e "/TARGET/s:dbusextension:LastFmDbusExtension:" \ + "${S}"/src/dbus/dbusextension.pro + fi + + # only glib.h can be included directly in >glib-2.32 + epatch "${FILESDIR}"/${P}-glib.h.patch + # Gcc 4.7 definitions. Bug #423221 + epatch "${FILESDIR}"/${P}-gcc47.patch +} + +src_configure() { + if use dbus; then + pushd "${S}"/src/dbus + eqmake4 dbusextension.pro + popd >> /dev/null + fi + qt4-r2_src_configure +} + +src_compile() { + emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" || die "emake failed" + if use dbus; then + einfo "Building DBUS plugin" + emake -C "${S}"/src/dbus || die "failed to build dbus extension" + fi + cd i18n; "$(qt4_get_bindir)"/lrelease *.ts +} + +src_install() { + cd "${WORKDIR}" + # Docs + dodoc "${S}"/ChangeLog.txt "${S}"/README debian/README.source + doman debian/lastfm.1 + + # Copied from debian/rules + insinto /usr/share + doins -r debian/package-files/share/icons || die "failed to install icons" + insinto /usr/share/lastfm/icons + doins "${S}"/bin/data/icons/*.png \ + || die "failed to install application icons" + insinto /usr/share/lastfm + doins "${S}"/bin/data/*.png || die "failed to install icons" + dodir /usr/$(get_libdir)/lastfm_services/ + insinto /usr/$(get_libdir)/lastfm_services/ + insopts -m0755 + doins -r "${S}"/bin/lastfm_services/*.so || die "failed to install plugins" + if use dbus; then + insinto /usr/$(get_libdir)/lastfm_services/extensions/ + insopts -m0755 + doins "${S}"/bin/lastfm_services/extensions/*.so + fi + insinto /usr/$(get_libdir) + insopts -m0755 + doins "${S}"/bin/libLastFmTools.so.1* || die "failed to install library" + doins "${S}"/bin/libMoose.so.1* || die "failed to install library" + #fix symlinks + cd "${D}"/usr/$(get_libdir)/ + ln -sfn libLastFmTools.so.1.0.0 libLastFmTools.so.1 + ln -sfn libLastFmTools.so.1.0.0 libLastFmTools.so.1.0 + ln -sfn libMoose.so.1.0.0 libMoose.so.1 + ln -sfn libMoose.so.1.0.0 libMoose.so.1.0 + cd "${WORKDIR}" + newbin "${S}"/bin/last.fm lastfm + insinto /usr/share/lastfm/i18n + doins "${S}"/i18n/*.qm || die "failed to install translations" + fperms 755 /usr/bin/lastfm + rm -f "${D}"/usr/share/lastfm/icons/{*profile24,systray_mac}.png + # create desktop entry + doicon "${WORKDIR}"/debian/package-files/share/icons/hicolor/48x48/apps/lastfm.png + # Allow arguments when launching application. Bug #395277 + make_desktop_entry lastfm "Last.fm Player" lastfm + sed -i -e "/^Exec/s:lastfm:& %U:" \ + "${D}"/usr/share/applications/lastfm-${PN}.desktop || die + + readme.gentoo_create_doc +} diff --git a/media-sound/lastfmplayer/metadata.xml b/media-sound/lastfmplayer/metadata.xml new file mode 100644 index 000000000000..c870d0eef0ab --- /dev/null +++ b/media-sound/lastfmplayer/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>sound@gentoo.org</email> + <name>Gentoo Sound project</name> +</maintainer> +</pkgmetadata> |