summaryrefslogtreecommitdiff
path: root/media-sound/mpg321
diff options
context:
space:
mode:
Diffstat (limited to 'media-sound/mpg321')
-rw-r--r--media-sound/mpg321/Manifest9
-rw-r--r--media-sound/mpg321/files/mpg321-0.2.12-check-for-lround.patch16
-rw-r--r--media-sound/mpg321/files/mpg321-0.3.2-format-security.patch38
-rw-r--r--media-sound/mpg321/metadata.xml11
-rw-r--r--media-sound/mpg321/mpg321-0.3.1-r1.ebuild48
-rw-r--r--media-sound/mpg321/mpg321-0.3.2.ebuild51
6 files changed, 173 insertions, 0 deletions
diff --git a/media-sound/mpg321/Manifest b/media-sound/mpg321/Manifest
new file mode 100644
index 000000000000..c580172a8906
--- /dev/null
+++ b/media-sound/mpg321/Manifest
@@ -0,0 +1,9 @@
+AUX mpg321-0.2.12-check-for-lround.patch 670 SHA256 dff04950c7d68b48728378a4fd84dbfe7befa7853a36b18df2edfc24df939638 SHA512 391a98bdf102d3016e98005ddc84b6b303e1fd5653ddcaa13cda0b09b84952bee99f3ebbb6ad763a21965c47692a7011e167b7f990cea760ecf88dbaa34de3a2 WHIRLPOOL 9b0f95ecd9fcb9a19d5ee05c8d74f58830431eb8ea3b485dd8880628f69e4eac07c536b5fe32ef7e73f870afa418c821a831954697836493efb1e9d6351845e1
+AUX mpg321-0.3.2-format-security.patch 1188 SHA256 e6dd3a92b1d563e2301e3a1544a23201bd614206ef1616548233c08214147a33 SHA512 2296934348c898704558f2dac9b7cbd90126d58804df834540688d0c3b35231f488aed036cec200464309cddc2c1adf43759ce87e99d5c370527c552b8e59089 WHIRLPOOL 70b7f00468d2577e741ca78bfd3e1b7451287644e28752d33a5daf7b3ea9926a692dbd7d6be4801d8fe9560e5a0708d1be2eb6e3aca243bfd4394f03ae1b110e
+DIST mpg321-0.3.1.tar.gz 151104 SHA256 0b9c23d75a89236ade9830e0319d7e799efea9f6af262d6defda962037d65579 SHA512 77a7b975f2d31f670eb786ccb9601820945e60b19a188e7337bd2ff0237c7ee47970c27adf78cf633d4a561e89b06de3eacf9f2ec11373abcdcb75c322f19eee WHIRLPOOL 81ee33186d25fdadc288cb09cfa9a124531ac1fbe8e7c10cf748b5960f12de46d536ff7bde9fbb98979d57939fe10ad87179c193bf350dd4932731276eb330bf
+DIST mpg321-0.3.2.tar.gz 151139 SHA256 056fcc03e3f5c5021ec74bb5053d32c4a3b89b4086478dcf81adae650eac284e SHA512 f1bead2c11e4cde0f1a87e1b2e3d216ef80c9a5dd8b219841961688d44a5fc63a54b7af07359766fde0b2712ddc5d0a90b20149c3228cb2d70e830e15c8ab234 WHIRLPOOL 01db416053b2ee883aa31b98251b276a368a339f4a645cf30a066ae498eab2811be09349d04301c30393c1e9ba5804758c71db67526ca79121a24ffb47528ebb
+EBUILD mpg321-0.3.1-r1.ebuild 1061 SHA256 a11153d4d7d7fe2f0099ffc3a79adf87c4d46bb5c4dfd65c05b00d36520b3ccf SHA512 7b9efa755badf7d998f557ad567be698b3233d8d3af050c7b5e68aa8e0946c528cdec456c1cf7684d9b873da2a9bc2657957042d8c47db67f087be0c373ee90d WHIRLPOOL 211e5976d857b1bb753c297ad1732657b4f6fc5b292a04068528f9376b483450f7b72ccc08dc6090f02065287c66b40121a7e07853b315e1a54cd50197bbb704
+EBUILD mpg321-0.3.2.ebuild 1189 SHA256 8a224a4475a8607755b205c21032a758492a927c4d0ff273d7e97017ee5393a6 SHA512 e14146237c6f354cba6c686973d43662696bd71cbbb05418d5a4406db2716d7729f52221faa873084374ca6109a62a5dfd86539f09464c955dc372b2abdbec48 WHIRLPOOL 4d551b7a60a0f40b915f528326d613b6911001677f5814ff1e63a378aaaaa98641089f1e6d7add29ef3d6f55f268da37363abe5e687719e1f6b6748b6609abe9
+MISC ChangeLog 3792 SHA256 0ef92b4ca53bd5d1069140fe13e5e1115c48ca7c7f99a82d6d8de480842a45da SHA512 447fa1a8b2c6173b63319a4969185b3742d85501ed3057dd59d6468ad667baf3e3d10a945bd11b040414800c4f05f0a1027ea95052cee71d88d8193b36d84e91 WHIRLPOOL 6816488be20c0998e0fea35a1d7a3360731e5f7f3639cd27508e619f35883e519df257a4dbedc29bb708ed29fb67d5efcaba51422794421414097cc0b759f454
+MISC ChangeLog-2015 12148 SHA256 99c67c12f763088dd6ab56685d77d0004cbfd0f55b285637e812fadc34958c54 SHA512 68cb2ac762492f2f6a66fd3496c84ebdffbe8fd11c6dda26ec7bfc3b0e97b01bbf8a313dbfaaf4c74c1b07b1d66688ab3225a250f5d4ecc46618c80dc63deb6b WHIRLPOOL f704dfa433677015d29874cb0886b677f6ad2e9f1806411afaf47b9d8e8716d4284c8db663d392d6ad40109f32e4aac8ce721a4791265397b0606d63b7301077
+MISC metadata.xml 329 SHA256 4e06cf94f4374a9b04e347b11abc1d357e44db78662766ed4f152186be3ee55f SHA512 7f66ba87cde258577f41f82b9056b613d1da1741a3dbefe2185562549cf53050d5073b24f07f2b7de25f06b55cdde55653cb8de03d97806a2c47224b8e100764 WHIRLPOOL 860f4525894eab2bb5dcfbebcc7856be8bd5d1fe8beb3a6820805d5540223ecee1818dff158d8ad21d882f6ce0cc2641b43332e9254c357436f69a278dce4f9b
diff --git a/media-sound/mpg321/files/mpg321-0.2.12-check-for-lround.patch b/media-sound/mpg321/files/mpg321-0.2.12-check-for-lround.patch
new file mode 100644
index 000000000000..ca52f7241167
--- /dev/null
+++ b/media-sound/mpg321/files/mpg321-0.2.12-check-for-lround.patch
@@ -0,0 +1,16 @@
+diff -ur mpg321-0.2.12-1.orig//configure.ac mpg321-0.2.12-1/configure.ac
+--- mpg321-0.2.12-1.orig//configure.ac 2010-07-03 07:46:40.000000000 -0400
++++ mpg321-0.2.12-1/configure.ac 2011-08-20 19:50:32.143229893 -0400
+@@ -75,6 +75,12 @@
+
+ AC_CHECK_FUNCS([gethostbyname memset munmap socket strchr strdup strerror strrchr strstr gettimeofday select getenv putenv setenv unsetenv strcasecmp])
+
++dnl Check if math library is needed.
++AC_CHECK_FUNC(lround)
++if test "$ac_cv_func_lround" = no; then
++ AC_CHECK_LIB(m, lround)
++fi
++
+ AC_ARG_ENABLE(mpg123_symlink,
+ [ --enable-mpg123-symlink Enable symlink of mpg123 to mpg321 [[default=yes]] ],
+ ,enable_mpg123_symlink=yes)
diff --git a/media-sound/mpg321/files/mpg321-0.3.2-format-security.patch b/media-sound/mpg321/files/mpg321-0.3.2-format-security.patch
new file mode 100644
index 000000000000..732ca2c60225
--- /dev/null
+++ b/media-sound/mpg321/files/mpg321-0.3.2-format-security.patch
@@ -0,0 +1,38 @@
+--- /var/tmp/portage/media-sound/mpg321-0.3.2/work/mpg321-0.3.2-orig/mpg321.c 2012-03-25 14:27:49.000000000 +0200
++++ /tmp/mpg321.c 2015-08-12 23:34:20.395331151 +0200
+@@ -183,7 +183,7 @@
+ else{
+ #endif
+ if(!(options.opt & MPG321_ENABLE_BUFFER))
+- fprintf(stderr,"Volume: %ld%% \r",volume);
++ fprintf(stderr,"Volume: %d%% \r",volume);
+ #ifdef HAVE_ALSA
+ }
+ #endif
+@@ -233,7 +233,7 @@
+ else{
+ #endif
+ if(!(options.opt & MPG321_ENABLE_BUFFER))
+- fprintf(stderr,"Volume: %ld%% \r",volume);
++ fprintf(stderr,"Volume: %d%% \r",volume);
+ #ifdef HAVE_ALSA
+ }
+ #endif
+@@ -447,7 +447,7 @@
+ {
+ if(!names[i])
+ {
+- printf(emptystring);
++ printf("%s", emptystring);
+ }
+
+ else
+@@ -465,7 +465,7 @@
+ for (i=0; i<=5; i++) {
+ fprintf (stderr, "%s", info_id3[i].name);
+ if (!names[i]) {
+- fprintf (stderr, emptystring);
++ fprintf (stderr, "%s", emptystring);
+ } else {
+ fprintf (stderr, "%s", names[i]);
+ free (names[i]);
diff --git a/media-sound/mpg321/metadata.xml b/media-sound/mpg321/metadata.xml
new file mode 100644
index 000000000000..9f7b457900b6
--- /dev/null
+++ b/media-sound/mpg321/metadata.xml
@@ -0,0 +1,11 @@
+<?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>
+ <upstream>
+ <remote-id type="sourceforge">mpg321</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-sound/mpg321/mpg321-0.3.1-r1.ebuild b/media-sound/mpg321/mpg321-0.3.1-r1.ebuild
new file mode 100644
index 000000000000..30b7149702f7
--- /dev/null
+++ b/media-sound/mpg321/mpg321-0.3.1-r1.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit autotools eutils
+
+DESCRIPTION="A realtime MPEG 1.0/2.0/2.5 audio player for layers 1, 2 and 3"
+HOMEPAGE="http://mpg321.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 ~arm hppa ia64 ~mips ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
+IUSE="ipv6"
+
+RDEPEND="app-eselect/eselect-mpg123
+ >=media-libs/libao-1
+ media-libs/libid3tag
+ media-libs/libmad
+ sys-libs/zlib"
+DEPEND="${RDEPEND}"
+
+S=${WORKDIR}/${P}-orig
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-0.2.12-check-for-lround.patch
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --disable-mpg123-symlink \
+ $(use_enable ipv6)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ dodoc AUTHORS BUGS HACKING README* THANKS TODO # NEWS and ChangeLog are dead
+ mv "${ED}"/usr/bin/mpg321{,-mpg123}
+}
+
+pkg_postinst() {
+ eselect mpg123 update ifunset
+}
+
+pkg_postrm() {
+ eselect mpg123 update ifunset
+}
diff --git a/media-sound/mpg321/mpg321-0.3.2.ebuild b/media-sound/mpg321/mpg321-0.3.2.ebuild
new file mode 100644
index 000000000000..00ba08fb4df8
--- /dev/null
+++ b/media-sound/mpg321/mpg321-0.3.2.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit autotools eutils
+
+DESCRIPTION="A realtime MPEG 1.0/2.0/2.5 audio player for layers 1, 2 and 3"
+HOMEPAGE="http://mpg321.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P/-/_}.orig.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 ~arm hppa ia64 ~mips ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
+IUSE="alsa ipv6"
+
+RDEPEND="app-eselect/eselect-mpg123
+ >=media-libs/libao-1
+ media-libs/libid3tag
+ media-libs/libmad
+ sys-libs/zlib
+ alsa? ( media-libs/alsa-lib )"
+DEPEND="${RDEPEND}"
+
+S=${WORKDIR}/${P}-orig
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-0.2.12-check-for-lround.patch \
+ "${FILESDIR}"/${P}-format-security.patch
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --disable-mpg123-symlink \
+ $(use_enable ipv6) \
+ $(use_enable alsa)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ dodoc AUTHORS BUGS HACKING README* THANKS TODO # NEWS and ChangeLog are dead
+ mv "${ED}"/usr/bin/mpg321{,-mpg123}
+}
+
+pkg_postinst() {
+ eselect mpg123 update ifunset
+}
+
+pkg_postrm() {
+ eselect mpg123 update ifunset
+}