diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /media-sound/mp3gain | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'media-sound/mp3gain')
-rw-r--r-- | media-sound/mp3gain/Manifest | 2 | ||||
-rw-r--r-- | media-sound/mp3gain/files/1.4.6-option-parser.patch | 348 | ||||
-rw-r--r-- | media-sound/mp3gain/metadata.xml | 12 | ||||
-rw-r--r-- | media-sound/mp3gain/mp3gain-1.4.6-r3.ebuild | 38 | ||||
-rw-r--r-- | media-sound/mp3gain/mp3gain-1.5.2.ebuild | 37 |
5 files changed, 437 insertions, 0 deletions
diff --git a/media-sound/mp3gain/Manifest b/media-sound/mp3gain/Manifest new file mode 100644 index 000000000000..fbe330027906 --- /dev/null +++ b/media-sound/mp3gain/Manifest @@ -0,0 +1,2 @@ +DIST mp3gain-1_4_6-src.zip 111408 SHA256 e1ad9aeb18403cf9ea54af830e1371523d6d5373bfef01a8964e3735deaf7d4f +DIST mp3gain-1_5_2-src.zip 129435 SHA256 dbadc7a41a8a3b87d3a21a1989701cfe72d2090c3ead02b0b396a19a8acf6fca SHA512 1a7ac51bf0108c1f6fbd610c513bf7fd2c64d340a2ba23dc9fa5c3b896b279474f31f2d60318f409576e39f7643dd585d3e159e2a4db4553f7c9cc3761b7f388 WHIRLPOOL 4a0584c52090100e9f9fe2c53ac6614965976f1ada9134212734966199a6c116ce2e304ed54ec240c489c293928daf664f109d003d29c5c79c1e3b4a6ee08403 diff --git a/media-sound/mp3gain/files/1.4.6-option-parser.patch b/media-sound/mp3gain/files/1.4.6-option-parser.patch new file mode 100644 index 000000000000..7b4085e9abda --- /dev/null +++ b/media-sound/mp3gain/files/1.4.6-option-parser.patch @@ -0,0 +1,348 @@ +--- mp3gain.c.old 2004-12-23 15:47:04.000000000 -0500 ++++ mp3gain.c 2006-03-13 22:15:28.000000000 -0500 +@@ -46,7 +46,8 @@ +
+ #include <stdio.h>
+ #include <stdlib.h>
+-#include <math.h>
++#include <math.h> ++#include <ctype.h>
+ #include "apetag.h"
+
+ #ifndef WIN32
+@@ -1181,10 +1182,11 @@ + static
+ void errUsage(char *progname) {
+ showVersion(progname);
+- fprintf(stderr,"copyright(c) 2001-2004 by Glen Sawyer\n");
++ fprintf(stderr,"copyright(c) 2001-2004 by Glen Sawyer\n"); ++ fprintf(stderr,"portions copyright(c) 2006 by Stephan Sokolow\n");
+ fprintf(stderr,"uses mpglib, which can be found at http://www.mpg123.de\n");
+ fprintf(stderr,"Usage: %s [options] <infile> [<infile 2> ...]\n",progname);
+- fprintf(stderr," --use %c? or %ch for a full list of options\n",SWITCH_CHAR,SWITCH_CHAR);
++ fprintf(stderr," --use %c?, %ch, or --help for a full list of options\n",SWITCH_CHAR,SWITCH_CHAR);
+ fclose(stdout);
+ fclose(stderr);
+ exit(1);
+@@ -1195,7 +1197,8 @@ + static
+ void fullUsage(char *progname) {
+ showVersion(progname);
+- fprintf(stderr,"copyright(c) 2001-2004 by Glen Sawyer\n");
++ fprintf(stderr,"copyright(c) 2001-2004 by Glen Sawyer\n"); ++ fprintf(stderr,"portions copyright(c) 2006 by Stephan Sokolow\n");
+ fprintf(stderr,"uses mpglib, which can be found at http://www.mpg123.de\n");
+ fprintf(stderr,"Usage: %s [options] <infile> [<infile 2> ...]\n",progname);
+ fprintf(stderr,"options:\n");
+@@ -1227,9 +1230,14 @@ + fprintf(stderr,"\t%cs d - delete stored tag info (no other processing)\n",SWITCH_CHAR);
+ fprintf(stderr,"\t%cs s - skip (ignore) stored tag info (do not read or write tags)\n",SWITCH_CHAR);
+ fprintf(stderr,"\t%cs r - force re-calculation (do not read tag info)\n",SWITCH_CHAR);
+- fprintf(stderr,"\t%cu - undo changes made by mp3gain (based on stored tag info)\n",SWITCH_CHAR);
+- fprintf(stderr,"\t%cw - \"wrap\" gain change if gain+change > 255 or gain+change < 0\n",SWITCH_CHAR);
+- fprintf(stderr,"\t (use \"%c? wrap\" switch for a complete explanation)\n",SWITCH_CHAR);
++ fprintf(stderr,"\t%cu - undo changes made by mp3gain (based on stored tag info)\n",SWITCH_CHAR); ++ fprintf(stderr,"\t%cw - \"wrap\" gain change if gain+change > 255 or gain+change < 0\n",SWITCH_CHAR); ++ fprintf(stderr,"\t (use \"%c? wrap\" switch for a complete explanation)\n",SWITCH_CHAR); ++ fprintf(stderr,"\t-- - force everything beyond this point to be treated as arguments.\n"); ++ fprintf(stderr,"long options:\n"); ++ fprintf(stderr,"\t--auto - same as %cr %ck %cp\n", SWITCH_CHAR, SWITCH_CHAR, SWITCH_CHAR); ++ fprintf(stderr,"\t--help - show this message\n"); ++ fprintf(stderr,"\t--recursive - TODO\n");
+ fprintf(stderr,"If you specify %cr and %ca, only the second one will work\n",SWITCH_CHAR,SWITCH_CHAR);
+ fprintf(stderr,"If you do not specify %cc, the program will stop and ask before\n applying gain change to a file that might clip\n",SWITCH_CHAR);
+ fclose(stdout);
+@@ -1245,7 +1253,20 @@ + fprintf(stderr, "haveTrackPeak %d trackPeak %f\n",info->haveTrackPeak, info->trackPeak);
+ fprintf(stderr, "haveMinMaxGain %d min %d max %d\n",info->haveMinMaxGain, info->minGain, info->maxGain);
+ }
+-
++ ++void showHelp(int argc, char **argv, int i) { ++ if ((argv[i][2] == 'w')||(argv[i][2] == 'W')) { ++ wrapExplanation(); ++ } else { ++ if (i+1 < argc) { ++ if ((argv[i+1][0] == 'w')||(argv[i+1][0] =='W')) ++ wrapExplanation(); ++ } else { ++ fullUsage(argv[0]); ++ } ++ } ++ fullUsage(argv[0]); ++} +
+ #ifdef WIN32
+ int __cdecl main(int argc, char **argv) { /*make sure this one is standard C declaration*/
+@@ -1282,7 +1303,7 @@ + int fileStart;
+ int numFiles;
+ int databaseFormat = 0;
+- int i;
++ int i, j;
+ int *fileok;
+ int goAhead;
+ int directGain = 0;
+@@ -1303,7 +1324,10 @@ + double curAlbumPeak = 0;
+ unsigned char curAlbumMinGain = 0;
+ unsigned char curAlbumMaxGain = 0;
+- char chtmp;
++ char chtmp; ++ ++ /* Variables used in the improved option parser */ ++ int parseOptions = !0;
+
+ gSuccess = 1;
+
+@@ -1316,28 +1340,28 @@ + fileStart = 1;
+ numFiles = 0;
+
+- for (i = 1; i < argc; i++) {
+-#ifdef WIN32
+- if ((argv[i][0] == '/')||((argv[i][0] == '-') && (strlen(argv[i])==2))) { /* don't need to force single-character command parameters */
+-#else
+- if (((argv[i][0] == '/')||(argv[i][0] == '-'))&&
+- (strlen(argv[i])==2)) {
+-#endif
+- fileStart++;
+- switch(argv[i][1]) {
+- case 'a':
+- case 'A':
++ for (i = 1; i < argc; i++) { ++ /* ++ TODO: Implement support for: ++ - consider including the glob-parsing support from vorbisgain's so-called recursive support. ++ */ ++ if ((parseOptions) && (argv[i][0] == SWITCH_CHAR) && (strlen(argv[i]) >= 2) ) {
++ fileStart++; ++ ++ if (!strcmp(argv[i],"--")) { /* Support for the standard "--" option to force the end of the option parsing. */ ++ parseOptions = 0; ++ continue; ++ } else if (argv[i][1] != '-') { /* Ensure that this isn't a long option. */ ++ for (j = 1; j < strlen(argv[i]); j++) { ++ switch(tolower(argv[i][j])) {
++ case 'a':
+ applyTrack = 0;
+ applyAlbum = !0;
+ break;
+-
+- case 'c':
+- case 'C':
++ case 'c':
+ ignoreClipWarning = !0;
+ break;
+-
+- case 'd':
+- case 'D':
++ case 'd':
+ if (argv[i][2] != '\0') {
+ dBGainMod = atof(argv[i]+2);
+ }
+@@ -1352,14 +1376,10 @@ + }
+ }
+ break;
+-
+- case 'f':
+- case 'F':
++ case 'f':
+ Reckless = 1;
+ break;
+-
+- case 'g':
+- case 'G':
++ case 'g':
+ directGain = !0;
+ directSingleChannelGain = 0;
+ if (argv[i][2] != '\0') {
+@@ -1376,32 +1396,14 @@ + }
+ }
+ break;
+-
+- case 'h':
+- case 'H':
+- case '?':
+- if ((argv[i][2] == 'w')||(argv[i][2] == 'W')) {
+- wrapExplanation();
+- }
+- else {
+- if (i+1 < argc) {
+- if ((argv[i+1][0] == 'w')||(argv[i+1][0] =='W'))
+- wrapExplanation();
+- }
+- else {
+- fullUsage(argv[0]);
+- }
+- }
+- fullUsage(argv[0]);
+- break;
+-
+- case 'k':
+- case 'K':
+- autoClip = !0;
+- break;
+-
+- case 'l':
+- case 'L':
++ case 'h':
++ case '?':
++ showHelp(argc, argv, i); ++ break;
++ case 'k':
++ autoClip = !0;
++ break;
++ case 'l':
+ directSingleChannelGain = !0;
+ directGain = 0;
+ if (argv[i][2] != '\0') {
+@@ -1429,9 +1431,7 @@ + }
+ }
+ break;
+-
+- case 'm':
+- case 'M':
++ case 'm':
+ if (argv[i][2] != '\0') {
+ mp3GainMod = atoi(argv[i]+2);
+ }
+@@ -1446,30 +1446,20 @@ + }
+ }
+ break;
+-
+- case 'o':
+- case 'O':
++ case 'o':
+ databaseFormat = !0;
+ break;
+-
+- case 'p':
+- case 'P':
++ case 'p':
+ saveTime = !0;
+ break;
+-
+- case 'q':
+- case 'Q':
++ case 'q':
+ QuietMode = !0;
+ break;
+-
+- case 'r':
+- case 'R':
++ case 'r':
+ applyTrack = !0;
+ applyAlbum = 0;
+ break;
+-
+- case 's':
+- case 'S':
++ case 's':
+ chtmp = 0;
+ if (argv[i][2] == '\0') {
+ if (i+1 < argc) {
+@@ -1482,59 +1472,56 @@ + } else {
+ chtmp = argv[i][2];
+ }
+- switch (chtmp) {
+- case 'c':
+- case 'C':
+- checkTagOnly = !0;
+- break;
+- case 'd':
+- case 'D':
+- deleteTag = !0;
+- break;
+- case 's':
+- case 'S':
+- skipTag = !0;
+- break;
+- case 'r':
+- case 'R':
+- forceRecalculateTag = !0;
+- break;
+- default:
+- errUsage(argv[0]);
+- }
+-
+- break;
+-
+- case 't':
+- case 'T':
++ switch (tolower(chtmp)) {
++ case 'c':
++ checkTagOnly = !0;
++ break;
++ case 'd':
++ deleteTag = !0;
++ break;
++ case 's':
++ skipTag = !0;
++ break;
++ case 'r':
++ forceRecalculateTag = !0;
++ break;
++ default:
++ errUsage(argv[0]);
++ }
++ break;
++ case 't':
+ UsingTemp = !0;
+ break;
+-
+- case 'u':
+- case 'U':
++ case 'u':
+ undoChanges = !0;
+ break;
+-
+- case 'v':
+- case 'V':
++ case 'v':
+ showVersion(argv[0]);
+- fclose(stdout);
+- fclose(stderr);
++ fclose(stdout);
++ fclose(stderr);
+ exit(0);
+-
+- case 'w':
+- case 'W':
++ case 'w':
+ wrapGain = !0;
+ break;
+-
+- case 'x':
+- case 'X':
++ case 'x':
+ maxAmpOnly = !0;
+ break;
+-
+- default:
+- fprintf(stderr,"I don't recognize option %s\n",argv[i]);
+- }
++ default:
++ fprintf(stderr,"I don't recognize option %s\n",argv[i]); ++ } ++ }
++ } else if (!strncmp(argv[i],"--",2)) { /* This is a long option and must be parsed as such */ ++ if (!strcasecmp(argv[i],"--auto")) { ++ autoClip = !0; /* -k */ ++ saveTime = !0; /* -p */ ++ applyTrack = !0; /* -r */ ++ applyAlbum = 0; /* -r */ ++ } else if (!strcasecmp(argv[i],"--help")) { ++ showHelp(argc, argv, i); ++ } else if (!strcasecmp(argv[i],"--recursive")) { ++ fprintf(stderr,"Sorry, --recursive has not been implemented yet.\n\t However, the following command seems to be equivalent:\n\t`find /path/to/mp3s -iname \"*.mp3\" -exec mp3gain -r {} \\;`\n\tThe use of --auto in place of -r is recommended.\n"); ++ } ++ }
+ }
+ }
+ /* now stored in tagInfo--- maxsample = malloc(sizeof(Float_t) * argc); */
diff --git a/media-sound/mp3gain/metadata.xml b/media-sound/mp3gain/metadata.xml new file mode 100644 index 000000000000..ea3b89738a14 --- /dev/null +++ b/media-sound/mp3gain/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>sound</herd> + <maintainer> + <email>chainsaw@gentoo.org</email> + <name>Tony Vroon</name> + </maintainer> + <upstream> + <remote-id type="sourceforge">mp3gain</remote-id> + </upstream> +</pkgmetadata> diff --git a/media-sound/mp3gain/mp3gain-1.4.6-r3.ebuild b/media-sound/mp3gain/mp3gain-1.4.6-r3.ebuild new file mode 100644 index 000000000000..5c29defc123a --- /dev/null +++ b/media-sound/mp3gain/mp3gain-1.4.6-r3.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit eutils flag-o-matic toolchain-funcs + +IUSE="" + +MY_P=${P//./_} +S=${WORKDIR} + +DESCRIPTION="MP3Gain automatically adjusts mp3s so that they all have the same volume" +HOMEPAGE="http://mp3gain.sourceforge.net" +SRC_URI="mirror://sourceforge/${PN}/${MY_P}-src.zip" + +SLOT="0" +LICENSE="LGPL-2.1" +KEYWORDS="alpha amd64 hppa ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" + +DEPEND="app-arch/unzip" +RDEPEND="" + +src_unpack() { + unpack ${A} + cd "${S}" + + filter-flags -O* + sed -i -e "s:CC=.*:CC=$(tc-getCC):" \ + -e "s:CFLAGS= -Wall -O3 -DHAVE_MEMCPY:CFLAGS+= -Wall -DHAVE_MEMCPY:" \ + -e "s:LIBS=.*:LIBS= ${LDFLAGS} -lm:" \ + "${S}"/Makefile \ + || die "Unable to adjust build system compiler/flags." + epatch "${FILESDIR}"/${PV}-option-parser.patch +} + +src_install () { + dobin mp3gain +} diff --git a/media-sound/mp3gain/mp3gain-1.5.2.ebuild b/media-sound/mp3gain/mp3gain-1.5.2.ebuild new file mode 100644 index 000000000000..06af3c1c6f6a --- /dev/null +++ b/media-sound/mp3gain/mp3gain-1.5.2.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=2 +inherit toolchain-funcs + +MY_P=${P//./_} + +DESCRIPTION="A program to analyze and adjust MP3 files to same volume" +HOMEPAGE="http://mp3gain.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${MY_P}-src.zip" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="alpha amd64 hppa ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" +IUSE="" + +RDEPEND="" +DEPEND="app-arch/unzip" + +S=${WORKDIR} + +src_prepare() { + sed -i \ + -e 's:CFLAGS= -Wall -O2:CFLAGS+= -Wall:' \ + -e 's:$(CC) -o:$(CC) $(LDFLAGS) -o:' \ + Makefile || die +} + +src_compile() { + emake CC="$(tc-getCC)" || die +} + +src_install() { + dobin mp3gain || die +} |