summaryrefslogtreecommitdiff
path: root/media-sound/cdtool
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /media-sound/cdtool
reinit the tree, so we can have metadata
Diffstat (limited to 'media-sound/cdtool')
-rw-r--r--media-sound/cdtool/Manifest6
-rw-r--r--media-sound/cdtool/cdtool-2.1.8-r1.ebuild25
-rw-r--r--media-sound/cdtool/files/cdtool-2.1.8-glibc-2.10.patch111
-rw-r--r--media-sound/cdtool/metadata.xml8
4 files changed, 150 insertions, 0 deletions
diff --git a/media-sound/cdtool/Manifest b/media-sound/cdtool/Manifest
new file mode 100644
index 000000000000..33897ec895fe
--- /dev/null
+++ b/media-sound/cdtool/Manifest
@@ -0,0 +1,6 @@
+AUX cdtool-2.1.8-glibc-2.10.patch 3511 SHA256 cd5d70ec6e19d12ca83b0d5de6064d291d25385a4cea4db04637880970d21664 SHA512 5b58d80d1cd28cbedeae89bc8452d3b047faf9eb61c3444b3b3fba5a709adf834b4451fac74cf8c48fe1b6e41c33683f427856ba1d9acc4ecbb5f0eb3b135326 WHIRLPOOL 6d62c9eb99ee8daac4ceec2b3494776a296702f833be0cb3d0eda426a1de08a51fcafc6369b5dd576cf975c652642aa489bb0663045d0430b3ecbbbe86243c20
+DIST cdtool-2.1.8.tar.gz 116847 SHA256 73de81ea2de2eae64b888e1b2739ef643ccea13c79790569f8e6278369976a21 SHA512 9e4e65c753b0be024f0ceb04ec0fee52031992196e0e4a2b8dfef9dbc9feaa81462be61700c6d01f413941d66f7f3e374fb327e1bebcb79207c7b4c790cea006 WHIRLPOOL 038337d081acf3dfde53686d43d76dce10ed2a35449b724b70b90457eba82017caca4c38a455686c56eaf29d3fabca949e659df76242d323fc1ed3976b417f9a
+EBUILD cdtool-2.1.8-r1.ebuild 622 SHA256 578c8c4e97915922de3c229d8827389175ac308714f82f1d9a69c099e3d0fb0b SHA512 f4717364d0fa3d09df1c9ef2135aea4da4e98e93b9007d5baee7fa60e194be8a25bfa4a3b6c190c575a476697e11b6a3ab81aa725fd910d88997e81e9ea67c31 WHIRLPOOL 5361784e5079481662345121074b36b1d61ce49086bc6c04f7823e045c92d94212a09feb998808aa1e5409f13754adb8295610df1697957a1c2352425d64d07e
+MISC ChangeLog 2471 SHA256 2ba76b06e0d577ea1ad60f4114a933f1a2206b8646d82778c4c9d89cb9b6e627 SHA512 d6f4dc641614b644860ee7433ff8823f0a91870d6da84ed4b9cf5aed8f7a70957b675dd3e90ab3f08e6564d12460b94945b8279dcb8754910010fa2ded24f775 WHIRLPOOL a10f37ab1f8eb120b3c7840d1488b45dbb378f6293a106c91f35891aab0c95671e17f51b861a44bbd3f7529aa5580501a69f7cd292f5d69ba0e7a2882e0d42f9
+MISC ChangeLog-2015 3080 SHA256 b10f8abefebd95a34cc12ba916996afba4657da0a993f67285dc4ba104052d93 SHA512 7c87f27fb4675a2625540bfd34b9271af791d9cab24460107069a62dc9dfb1003d7895e500f0599287a41e782e1637f9125e52d5c01da78055a2502323b23b31 WHIRLPOOL 39135d21520d5d5db7e8cf0856b1e49e177b9d47b624d9c372d743bd56870b9f83f84c2647a686d18a4b34b8808f846712f98761a75609fcc8ac390bce5b3a05
+MISC metadata.xml 253 SHA256 6b992cbf9f9d479cdf83d3f9a1ec920aa0be988f39ee4f1f41fd12b917f1b36b SHA512 78b724be3e1dbd6fc3c2e92cdbacc15ea4b0e8ee6fa22f76ebdd882b3a7bbedeaf8f80a29e36ec67e0432d2dfad3f57de4bc46480f92c8e544322755292df894 WHIRLPOOL 73df5c8f06d7079d8407b50207f0c217cf57ae161fbaf3c39e168b6f11b2bfac4f61b6191a5b9beecc981c003191844660c330dc8679580e1d2d336ff4e38e00
diff --git a/media-sound/cdtool/cdtool-2.1.8-r1.ebuild b/media-sound/cdtool/cdtool-2.1.8-r1.ebuild
new file mode 100644
index 000000000000..6706ada72f63
--- /dev/null
+++ b/media-sound/cdtool/cdtool-2.1.8-r1.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="4"
+inherit eutils
+
+DESCRIPTION="collection of command-line utilities to control cdrom devices"
+HOMEPAGE="http://hinterhof.net/cdtool/"
+SRC_URI="http://hinterhof.net/cdtool/dist/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc sparc x86"
+IUSE=""
+
+RDEPEND="!media-sound/cdplay"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-glibc-2.10.patch
+ sed -i \
+ -e '/INSTALL/s:-o root::' \
+ -e '/LINKTARGET/s:/lib/:/$(notdir $(libdir))/:' \
+ -e '/^install-links:/s:$: install-files:' \
+ Makefile.in || die
+}
diff --git a/media-sound/cdtool/files/cdtool-2.1.8-glibc-2.10.patch b/media-sound/cdtool/files/cdtool-2.1.8-glibc-2.10.patch
new file mode 100644
index 000000000000..77f15a41ce68
--- /dev/null
+++ b/media-sound/cdtool/files/cdtool-2.1.8-glibc-2.10.patch
@@ -0,0 +1,111 @@
+Fix building with GLIBC 2.10+ as reported in http://bugs.gentoo.org/273764
+
+diff -ur cdtool-2.1.8.orig/cdown.c cdtool-2.1.8/cdown.c
+--- cdtool-2.1.8.orig/cdown.c 2005-10-17 22:11:59.000000000 +0300
++++ cdtool-2.1.8/cdown.c 2009-06-19 20:15:57.000000000 +0300
+@@ -325,7 +325,7 @@
+ }
+
+ /************************************************************************/
+-/* Procedure: getline
++/* Procedure: get_line
+ * Purpose: read a line of text from the CDDB server
+ *
+ * Inputs:
+@@ -333,14 +333,14 @@
+ * Returns: The line of text
+ * Notes:
+ * 1. The CDDB databases use \r\n to end lines. All lines returned
+- * by getline() have the \r and \n stripped.
++ * by get_line() have the \r and \n stripped.
+ * 2. Non-reentrant: the memory buffer returned previously is
+ * recycled
+ * 3. Do NOT modify the contents of the returned buffer past the
+ * NULL - data from the network is stored there
+ */
+ /************************************************************************/
+-char *getline(void) {
++char *get_line(void) {
+ static char *buffer = NULL;
+ static char *lastline = NULL;
+ static int buffered = 0;
+@@ -451,7 +451,7 @@
+ char *cdtitle;
+
+ netprintf(sock, "cddb read %s %s\n", categ, discid);
+- message = getline();
++ message = get_line();
+ switch (atoi(message)) {
+ case 401: fprintf(stderr, "error: entry not found\n"); return;
+ case 402: fprintf(stderr, "error: server error\n"); return;
+@@ -461,13 +461,13 @@
+ default: fprintf(stderr, "error: bad message: %s\n", message); return;
+ }
+ while (iRawMode) { /* infinite loop, or skip if !iRawMode */
+- message = getline();
++ message = get_line();
+ if (!strcmp (message, "."))
+ return;
+ printf ("%s\r\n", message);
+ }
+ do {
+- message = getline();
++ message = get_line();
+ firstword = strchr(message, '=');
+ if (firstword != NULL) {
+ *firstword = '\0';
+@@ -511,7 +511,7 @@
+ int input = 0;
+ int exact = 1;
+
+- message = getline();
++ message = get_line();
+ switch (atoi(message)) {
+ case 403: fprintf(stderr, "error: database entry is corrupt\n"); return;
+ case 409: fprintf(stderr, "error: no handshake\n"); return;
+@@ -523,7 +523,7 @@
+ if (!exact) {
+ fprintf(stderr, "CD has no exact match\n 0: None\n");
+ do {
+- message = getline();
++ message = get_line();
+ if (strcmp(message, ".") != 0) {
+ matches = realloc(matches, sizeof(char*) * (++count));
+ fprintf(stderr, " %d: ", count); printcd(message);
+@@ -628,15 +628,15 @@
+ void parsesites(void) {
+ char *buffer;
+
+- buffer = getline();
++ buffer = get_line();
+ switch (atoi(buffer)) {
+ case 210: break; /* OK */
+ case 401: fprintf(stderr, "error: no site list available\n"); return;
+ }
+- buffer = getline();
++ buffer = get_line();
+ do {
+ printf("%s\n", buffer);
+- } while (strcmp(buffer = getline(), ".") != 0);
++ } while (strcmp(buffer = get_line(), ".") != 0);
+ }
+
+ /************************************************************************/
+@@ -755,7 +755,7 @@
+ exit(3);
+ }
+
+- bleh = getline();
++ bleh = get_line();
+ if (!signon(bleh)) {
+ errormsg("%s: signon error on host %s", progname, pszHost);
+ close(sock);
+@@ -773,7 +773,7 @@
+ getuname(), gethname(), progname, VERSIONSTRING);
+
+ /* get welcome message */
+- bleh = getline();
++ bleh = get_line();
+ if (!welcome(bleh)) {
+ errormsg("%s: bad welcome message [%s]", progname, bleh);
+ close(sock);
diff --git a/media-sound/cdtool/metadata.xml b/media-sound/cdtool/metadata.xml
new file mode 100644
index 000000000000..ee7258ac28eb
--- /dev/null
+++ b/media-sound/cdtool/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 type="project">
+ <email>sound@gentoo.org</email>
+ <name>Gentoo Sound project</name>
+ </maintainer>
+</pkgmetadata>