From: "Jeroen Roovers" <jer@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-cdr/cuecue/files/, app-cdr/cuecue/
Date: Fri, 15 May 2020 07:33:49 +0000 (UTC) [thread overview]
Message-ID: <1589528021.b04f51efbcb86d59a1657347973e19168e5dd538.jer@gentoo> (raw)
commit: b04f51efbcb86d59a1657347973e19168e5dd538
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
AuthorDate: Fri May 15 07:25:18 2020 +0000
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
CommitDate: Fri May 15 07:33:41 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b04f51ef
app-cdr/cuecue: Fix building with CFLAGS=-fno-common
Also:
- Drop flag-o-matic
- Set AR
- Set RDEPEND
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Closes: https://bugs.gentoo.org/show_bug.cgi?id=707444
Closes: https://bugs.gentoo.org/show_bug.cgi?id=722024
Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>
app-cdr/cuecue/cuecue-0.2.2-r3.ebuild | 53 ++++++++++++++++++++++
app-cdr/cuecue/files/cuecue-0.2.2-fno-common.patch | 11 +++++
2 files changed, 64 insertions(+)
diff --git a/app-cdr/cuecue/cuecue-0.2.2-r3.ebuild b/app-cdr/cuecue/cuecue-0.2.2-r3.ebuild
new file mode 100644
index 00000000000..03166b162e3
--- /dev/null
+++ b/app-cdr/cuecue/cuecue-0.2.2-r3.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+inherit toolchain-funcs
+
+DESCRIPTION="Cuecue converts .cue + [.ogg|.flac|.wav|.mp3] to .cue + .bin"
+HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage"
+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 )
+"
+RDEPEND="
+ ${DEPEND}
+"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-flac113.diff # bug 157706
+ "${FILESDIR}"/${P}-namespace.patch
+ "${FILESDIR}"/${P}-unused.patch
+ "${FILESDIR}"/${P}-fno-common.patch
+)
+
+src_configure() {
+ econf \
+ $(use_enable flac) \
+ $(use_enable mp3) \
+ $(use_enable vorbis ogg) \
+ --disable-libFLACtest \
+ --disable-oggtest \
+ --disable-vorbistest
+}
+
+src_compile() {
+ emake AR="$(tc-getAR)" CFLAGS="${CFLAGS}"
+}
+
+src_install() {
+ default
+
+ insinto /usr/include
+ doins src/libcuecue/cuecue.h
+}
diff --git a/app-cdr/cuecue/files/cuecue-0.2.2-fno-common.patch b/app-cdr/cuecue/files/cuecue-0.2.2-fno-common.patch
new file mode 100644
index 00000000000..9eb8b18e838
--- /dev/null
+++ b/app-cdr/cuecue/files/cuecue-0.2.2-fno-common.patch
@@ -0,0 +1,11 @@
+--- a/src/libcuecue/cuecue_internal.h
++++ b/src/libcuecue/cuecue_internal.h
+@@ -57,7 +57,7 @@
+ typedef int (*FUNC_DECODER)(char* file_source, char* file_destination, PROGRESS_CALLBACK callback);
+
+ #define CUECUE_ERROR_LENGTH 1024
+-char cuecue_error[CUECUE_ERROR_LENGTH];
++extern char cuecue_error[CUECUE_ERROR_LENGTH];
+
+ #endif /* __CUECUE_INTERNAL__ */
+
next reply other threads:[~2020-05-15 7:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-15 7:33 Jeroen Roovers [this message]
-- strict thread matches above, loose matches on Subject: below --
2022-11-22 3:23 [gentoo-commits] repo/gentoo:master commit in: app-cdr/cuecue/files/, app-cdr/cuecue/ Sam James
2016-08-19 6:38 Jeroen Roovers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1589528021.b04f51efbcb86d59a1657347973e19168e5dd538.jer@gentoo \
--to=jer@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox