summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'gnustep-apps')
-rw-r--r--gnustep-apps/cynthiune/ChangeLog9
-rw-r--r--gnustep-apps/cynthiune/cynthiune-0.9.5-r4.ebuild67
-rw-r--r--gnustep-apps/cynthiune/files/cynthiune-0.9.5-libmpcdecsv7.patch48
3 files changed, 123 insertions, 1 deletions
diff --git a/gnustep-apps/cynthiune/ChangeLog b/gnustep-apps/cynthiune/ChangeLog
index 9105c5abcf03..3f421de45a2b 100644
--- a/gnustep-apps/cynthiune/ChangeLog
+++ b/gnustep-apps/cynthiune/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for gnustep-apps/cynthiune
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/gnustep-apps/cynthiune/ChangeLog,v 1.20 2009/06/19 16:44:33 voyageur Exp $
+# $Header: /var/cvsroot/gentoo-x86/gnustep-apps/cynthiune/ChangeLog,v 1.21 2009/07/26 15:33:11 ssuominen Exp $
+
+*cynthiune-0.9.5-r4 (26 Jul 2009)
+
+ 26 Jul 2009; Samuli Suominen <ssuominen@gentoo.org>
+ +cynthiune-0.9.5-r4.ebuild, +files/cynthiune-0.9.5-libmpcdecsv7.patch:
+ Use transition package media-libs/libmpcdecsv7 instead of
+ media-libs/libmpcdec for Musepack support.
*cynthiune-0.9.5-r3 (19 Jun 2009)
diff --git a/gnustep-apps/cynthiune/cynthiune-0.9.5-r4.ebuild b/gnustep-apps/cynthiune/cynthiune-0.9.5-r4.ebuild
new file mode 100644
index 000000000000..c06c8f2b5012
--- /dev/null
+++ b/gnustep-apps/cynthiune/cynthiune-0.9.5-r4.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/gnustep-apps/cynthiune/cynthiune-0.9.5-r4.ebuild,v 1.1 2009/07/26 15:33:11 ssuominen Exp $
+
+inherit gnustep-2
+
+S=${WORKDIR}/${P/c/C}
+
+DESCRIPTION="Free software and romantic music player for GNUstep."
+HOMEPAGE="http://organact.mine.nu/~wolfgang/cynthiune"
+SRC_URI="http://organact.mine.nu/~wolfgang/cynthiune/${P/c/C}.tar.gz"
+
+IUSE="flac mad modplug musepack timidity vorbis"
+
+KEYWORDS="~amd64 ~ppc ~x86"
+LICENSE="GPL-2"
+SLOT="0"
+
+RDEPEND="media-libs/audiofile
+ media-libs/taglib
+ flac? ( media-libs/flac )
+ mad? ( media-libs/libid3tag
+ media-libs/libmad )
+ musepack? ( media-libs/libmpcdecsv7 )
+ modplug? ( media-libs/libmodplug )
+ timidity? ( media-sound/timidity++ )
+ vorbis? ( >=media-libs/libogg-1.1.2
+ >=media-libs/libvorbis-1.0.1-r2 )
+ =media-libs/musicbrainz-2*"
+DEPEND="${RDEPEND}
+ mad? ( dev-util/pkgconfig )"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch "${FILESDIR}"/${P}-flac-1.1.3.patch
+ epatch "${FILESDIR}"/${P}-set-macro.patch
+ epatch "${FILESDIR}"/${P}-NSCellExtensions.patch
+ epatch "${FILESDIR}"/${P}-NSMutableDictionary.patch
+ epatch "${FILESDIR}"/${P}-gnustep-make-2.patch
+ epatch "${FILESDIR}"/${P}-as-needed.patch
+ epatch "${FILESDIR}"/${P}-libmpcdecsv7.patch
+}
+
+cynthiune_get_config() {
+ # Gentoo doesn't have libavi (any more)
+ local myconf="disable-windowsmedia=yes disable-arts=yes disable-esound=yes"
+ use flac || myconf="${myconf} disable-flac=yes disable-flactags=yes"
+ use mad || myconf="${myconf} disable-mp3=yes disable-id3tag=yes"
+ use modplug || myconf="${myconf} disable-mod=yes"
+ use musepack || myconf="${myconf} disable-musepack=yes"
+ use timidity || myconf="${myconf} disable-timidity=yes"
+ use vorbis || myconf="${myconf} disable-ogg=yes disable-vorbistags=yes"
+
+ echo ${myconf}
+}
+
+src_compile() {
+ egnustep_env
+ egnustep_make "$(cynthiune_get_config)" || die "make failed"
+}
+
+src_install() {
+ egnustep_env
+ egnustep_install "$(cynthiune_get_config)" || die
+}
diff --git a/gnustep-apps/cynthiune/files/cynthiune-0.9.5-libmpcdecsv7.patch b/gnustep-apps/cynthiune/files/cynthiune-0.9.5-libmpcdecsv7.patch
new file mode 100644
index 000000000000..f458998e290a
--- /dev/null
+++ b/gnustep-apps/cynthiune/files/cynthiune-0.9.5-libmpcdecsv7.patch
@@ -0,0 +1,48 @@
+diff -ur Cynthiune-0.9.5.orig/Bundles/Musepack/CNSFileHandle.h Cynthiune-0.9.5/Bundles/Musepack/CNSFileHandle.h
+--- Cynthiune-0.9.5.orig/Bundles/Musepack/CNSFileHandle.h 2006-03-22 00:33:28.000000000 +0200
++++ Cynthiune-0.9.5/Bundles/Musepack/CNSFileHandle.h 2009-07-26 18:31:10.000000000 +0300
+@@ -23,7 +23,7 @@
+ #ifndef CNSFILEHANDLE_H
+ #define CNSFILEHANDLE_H
+
+-#include <mpcdec/config_types.h>
++#include <mpcdecsv7/config_types.h>
+
+ #ifdef __cplusplus
+ extern "C" {
+diff -ur Cynthiune-0.9.5.orig/Bundles/Musepack/GNUmakefile.preamble Cynthiune-0.9.5/Bundles/Musepack/GNUmakefile.preamble
+--- Cynthiune-0.9.5.orig/Bundles/Musepack/GNUmakefile.preamble 2005-12-07 18:42:43.000000000 +0200
++++ Cynthiune-0.9.5/Bundles/Musepack/GNUmakefile.preamble 2009-07-26 18:31:32.000000000 +0300
+@@ -19,7 +19,7 @@
+ # the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ # Boston, MA 02111-1307, USA.
+
+-MUSEPACK_LIBS = -lmpcdec
++MUSEPACK_LIBS = -lmpcdecsv7
+
+ ADDITIONAL_INCLUDE_DIRS += -I../..
+
+diff -ur Cynthiune-0.9.5.orig/Bundles/Musepack/Musepack.m Cynthiune-0.9.5/Bundles/Musepack/Musepack.m
+--- Cynthiune-0.9.5.orig/Bundles/Musepack/Musepack.m 2006-03-31 11:17:11.000000000 +0300
++++ Cynthiune-0.9.5/Bundles/Musepack/Musepack.m 2009-07-26 18:30:54.000000000 +0300
+@@ -30,7 +30,7 @@
+ #import <Cynthiune/Format.h>
+ #import <Cynthiune/utils.h>
+
+-#import <mpcdec/mpcdec.h>
++#import <mpcdecsv7/mpcdec.h>
+
+ #import "Musepack.h"
+ #import "CNSFileHandle.h"
+diff -ur Cynthiune-0.9.5.orig/Cynthiune.pbproj/project.pbxproj Cynthiune-0.9.5/Cynthiune.pbproj/project.pbxproj
+--- Cynthiune-0.9.5.orig/Cynthiune.pbproj/project.pbxproj 2006-03-31 11:35:16.000000000 +0300
++++ Cynthiune-0.9.5/Cynthiune.pbproj/project.pbxproj 2009-07-26 18:31:59.000000000 +0300
+@@ -3405,7 +3405,7 @@
+ FRAMEWORK_SEARCH_PATHS = /home/wolfgang/programmes/gnustep/Cynthiune/build;
+ OPTIMIZATION_CFLAGS = "-O0";
+ OTHER_CFLAGS = "";
+- OTHER_LDFLAGS = "-lmpcdec";
++ OTHER_LDFLAGS = "-lmpcdecsv7";
+ OTHER_REZFLAGS = "";
+ PRODUCT_NAME = Musepack;
+ SECTORDER_FLAGS = "";