forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Package-Manager: portage-2.3.0
- Loading branch information
Jeroen Roovers
committed
Aug 19, 2016
1 parent
813a8e5
commit 8ef6aaf
Showing
4 changed files
with
90 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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[]= | ||
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |