diff options
author | BlackNoxis <steven.darklight@gmail.com> | 2014-12-31 22:37:52 +0200 |
---|---|---|
committer | BlackNoxis <steven.darklight@gmail.com> | 2014-12-31 22:37:52 +0200 |
commit | d59f5f405188d93f5c00e21840930d4f1eaf8dd1 (patch) | |
tree | 91af19c93a18c173b81109aefffa90fbd41ac230 /media-sound/pithos | |
parent | ea8a28a03b13e387b14c15c0eb3e3f8be42ab0b4 (diff) |
Added media gfx,libs,sound
Diffstat (limited to 'media-sound/pithos')
-rw-r--r-- | media-sound/pithos/Manifest | 1 | ||||
-rw-r--r-- | media-sound/pithos/files/pithos-20130808-detect-datadir.patch | 16 | ||||
-rw-r--r-- | media-sound/pithos/files/pithos-20130808-dont-notify-volume.patch | 13 | ||||
-rw-r--r-- | media-sound/pithos/files/setup.py | 37 | ||||
-rw-r--r-- | media-sound/pithos/metadata.xml | 8 | ||||
-rw-r--r-- | media-sound/pithos/pithos-20130808.ebuild | 49 |
6 files changed, 124 insertions, 0 deletions
diff --git a/media-sound/pithos/Manifest b/media-sound/pithos/Manifest new file mode 100644 index 00000000..810e6ce3 --- /dev/null +++ b/media-sound/pithos/Manifest @@ -0,0 +1 @@ +DIST pithos-20130808.tar.gz 138217 SHA256 aee6755562a5391ad9e1edcc35633e11f8575ee128da4d0faf5d8746966ca317 SHA512 c62df5c9b45569ea59cc013c69c2359e8217ee2aac4d87dbc7bdd0af6a72926f1962f213bec9885891621abb9f4ffe01b9f49e6728b1025042eadc5ddabe49a4 WHIRLPOOL d21ca3695a96d12c5a93f21d3b9c109b2dd1b72c289a5aac00a59ca40cdf3bf72ffe8a0d2a56cd210e44d2173fc6c38c9f0d02ac7cb8af7d5d5d390c0d49a28a diff --git a/media-sound/pithos/files/pithos-20130808-detect-datadir.patch b/media-sound/pithos/files/pithos-20130808-detect-datadir.patch new file mode 100644 index 00000000..ba3414bb --- /dev/null +++ b/media-sound/pithos/files/pithos-20130808-detect-datadir.patch @@ -0,0 +1,16 @@ +diff --git a/pithos/pithosconfig.py b/pithos/pithosconfig.py +index dfaaf5d..f82b458 100644 +--- a/pithos/pithosconfig.py ++++ b/pithos/pithosconfig.py +@@ -16,7 +16,10 @@ + + # where your project will head for your data (for instance, images and ui files) + # by default, this is ../data, relative your trunk layout +-__pithos_data_directory__ = '../data/' ++from os.path import isdir, normpath, join ++__pithos_data_directory__ = (normpath(join(__file__, '../data/')) ++ if isdir(join(__file__, '../data/')) ++ else '/usr/share/pithos') + __license__ = 'GPL-3' + + VERSION = '0.3.17' diff --git a/media-sound/pithos/files/pithos-20130808-dont-notify-volume.patch b/media-sound/pithos/files/pithos-20130808-dont-notify-volume.patch new file mode 100644 index 00000000..cf605b32 --- /dev/null +++ b/media-sound/pithos/files/pithos-20130808-dont-notify-volume.patch @@ -0,0 +1,13 @@ +diff --git a/bin/pithos b/bin/pithos +index 725ad7b..62ddd88 100755 +--- a/bin/pithos ++++ b/bin/pithos +@@ -204,7 +204,7 @@ class PithosWindow(gtk.Window): + bus.connect("message::eos", self.on_gst_eos) + bus.connect("message::buffering", self.on_gst_buffering) + bus.connect("message::error", self.on_gst_error) +- self.player.connect("notify::volume", self.on_gst_volume) ++ #self.player.connect("notify::volume", self.on_gst_volume) + self.player.connect("notify::source", self.on_gst_source) + self.time_format = gst.Format(gst.FORMAT_TIME) + diff --git a/media-sound/pithos/files/setup.py b/media-sound/pithos/files/setup.py new file mode 100644 index 00000000..0d5776ae --- /dev/null +++ b/media-sound/pithos/files/setup.py @@ -0,0 +1,37 @@ +# replacement for setup.py for pithos as the included one is.. less than ideal + +from os import walk +from glob import glob +from os.path import join +from setuptools import setup, find_packages + +DATA_DIR = '/usr/share/pithos/' +ICON_DIR = '/usr/share/icons/hicolor/' +APP_DIR = '/usr/share/applications' + +datadir = 'data' +datadirs = ['ui', 'media'] +icondir = 'data/icons' +bindir = 'bin' + +datafiles = [[(join(DATA_DIR, root.partition(datadir)[2].lstrip('/')), [join(root, f) for f in files]) + for root, dirs, files in walk(join(datadir, data))][0] for data in datadirs] + +datafiles += ([(join(ICON_DIR, root.partition(icondir)[2].lstrip('/')), [join(root, f) for f in files]) + for root, dirs, files in walk(icondir)]) + +datafiles += [(APP_DIR, glob('*.desktop'))] + +setup( + name='pithos', + version='0.3', + ext_modules=[], + license='GPL-3', + author='Kevin Mehall', + author_email='km@kevinmehall.net', + description='Pandora.com client for the GNOME desktop', + packages=find_packages(), + url='https://launchpad.net/pithos', + data_files=datafiles, + scripts=glob('bin/*'), +) diff --git a/media-sound/pithos/metadata.xml b/media-sound/pithos/metadata.xml new file mode 100644 index 00000000..34013640 --- /dev/null +++ b/media-sound/pithos/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> + <email>chutzpah@gentoo.org</email> + <name>Patrick McLean</name> + </maintainer> +</pkgmetadata> diff --git a/media-sound/pithos/pithos-20130808.ebuild b/media-sound/pithos/pithos-20130808.ebuild new file mode 100644 index 00000000..c7dddcc0 --- /dev/null +++ b/media-sound/pithos/pithos-20130808.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-sound/pithos/pithos-20130808.ebuild,v 1.2 2014/04/06 10:45:27 eva Exp $ + +EAPI=5 +PYTHON_COMPAT=(python2_7) +inherit eutils distutils-r1 + +if [[ ${PV} == 99999999 ]]; then + inherit git-2 + EGIT_REPO_URI="git://github.com/kevinmehall/pithos.git + https://github.com/kevinmehall/pithos.git" +else + MY_PV="6c9a9ff1660bb8c35b846cb5763f8a131228b6d4" + SRC_URI="https://github.com/kevinmehall/${PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz" + S="${WORKDIR}/${PN}-${MY_PV}" +fi + +DESCRIPTION="A Pandora Radio (pandora.com) player for the GNOME Desktop" +HOMEPAGE="http://kevinmehall.net/p/pithos/" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="gnome" + +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" + +RDEPEND="dev-python/pyxdg[${PYTHON_USEDEP}] + dev-python/pygobject:2[${PYTHON_USEDEP}] + dev-python/notify-python[${PYTHON_USEDEP}] + dev-python/pygtk[${PYTHON_USEDEP}] + dev-python/gst-python:0.10[${PYTHON_USEDEP}] + dev-python/dbus-python[${PYTHON_USEDEP}] + media-plugins/gst-plugins-meta:0.10[aac,http,mp3] + gnome? ( gnome-base/gnome-settings-daemon ) + !gnome? ( dev-libs/keybinder[python] )" + +PATCHES=( + "${FILESDIR}"/${P}-detect-datadir.patch + "${FILESDIR}"/${P}-dont-notify-volume.patch +) + +src_prepare() { + # replace the build system with something more sane + cp "${FILESDIR}"/setup.py "${S}" + + distutils-r1_src_prepare +} |