Skip to content

Commit

Permalink
app-cdr/cuecue: Fix build issues.
Browse files Browse the repository at this point in the history
Package-Manager: portage-2.3.0
  • Loading branch information
Jeroen Roovers committed Aug 19, 2016
1 parent 813a8e5 commit 8ef6aaf
Show file tree
Hide file tree
Showing 4 changed files with 90 additions and 3 deletions.
53 changes: 53 additions & 0 deletions app-cdr/cuecue/cuecue-0.2.2-r2.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=6
inherit flag-o-matic

DESCRIPTION="Cuecue converts .cue + [.ogg|.flac|.wav|.mp3] to .cue + .bin"
HOMEPAGE="http://cuecue.berlios.de/"
#SRC_URI="mirror://berlios/cuecue/${P}.tar.gz"
SRC_URI="mirror://gentoo/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
# Enable one use flag by default, bug 254745"
IUSE="flac mp3 +vorbis"
REQUIRED_USE="|| ( flac mp3 vorbis )"

DEPEND="
flac? ( media-libs/flac )
mp3? ( media-libs/libmad )
vorbis? ( media-libs/libvorbis media-libs/libogg )
"

PATCHES=(
"${FILESDIR}"/${P}-flac113.diff # bug 157706
"${FILESDIR}"/${P}-namespace.patch
"${FILESDIR}"/${P}-unused.patch
)
DOCS="CHANGES README TODO"

src_configure() {
econf \
$(use_enable flac) \
$(use_enable mp3) \
$(use_enable vorbis ogg) \
--disable-dependency-tracking \
--disable-libFLACtest \
--disable-oggtest \
--disable-vorbistest
}

src_compile() {
emake CFLAGS="${CFLAGS}"
}

src_install() {
default

insinto /usr/include
doins src/libcuecue/cuecue.h
}
5 changes: 2 additions & 3 deletions app-cdr/cuecue/files/cuecue-0.2.2-flac113.diff
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
diff -Naur src.orig/libcuecue/flac.c src/libcuecue/flac.c
--- src.orig/libcuecue/flac.c 2004-09-22 04:28:21.000000000 +0200
+++ src/libcuecue/flac.c 2007-02-27 23:25:36.000000000 +0100
--- a/src/libcuecue/flac.c
+++ b/src/libcuecue/flac.c
@@ -27,6 +27,12 @@
#include "cuecue.h"
#include "cuecue_internal.h"
Expand Down
12 changes: 12 additions & 0 deletions app-cdr/cuecue/files/cuecue-0.2.2-namespace.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
--- a/src/libcuecue/cuecue.c
+++ b/src/libcuecue/cuecue.c
@@ -24,7 +24,9 @@


#define LINE_MAX 1024
+#ifndef FILENAME_MAX
#define FILENAME_MAX 1024
+#endif

FUNC_DECODER decoders[]=
{
23 changes: 23 additions & 0 deletions app-cdr/cuecue/files/cuecue-0.2.2-unused.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
--- a/src/libcuecue/cuecue.c
+++ b/src/libcuecue/cuecue.c
@@ -163,12 +163,8 @@
char str[CUECUE_FILENAME_MAX];
char *ext;
int i;
- int found=0;
-
- ext = strrchr(filename,'.');

for(i=0; i<DECODER_MAX; i++) {
- char *ext;

strcpy(str,filename);
ext = strrchr(str,'.');
@@ -176,7 +172,6 @@
strcpy(ext,Extensions[i]);
if (FileExists(str)) {
strcpy(cuefile,str);
- found=1;
return 1;
}
}

0 comments on commit 8ef6aaf

Please sign in to comment.