summaryrefslogtreecommitdiff
path: root/media-sound/twolame
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/twolame
reinit the tree, so we can have metadata
Diffstat (limited to 'media-sound/twolame')
-rw-r--r--media-sound/twolame/Manifest7
-rw-r--r--media-sound/twolame/files/0.3.13-perl-tests.patch32
-rw-r--r--media-sound/twolame/metadata.xml11
-rw-r--r--media-sound/twolame/twolame-0.3.13-r1.ebuild43
-rw-r--r--media-sound/twolame/twolame-0.3.13-r2.ebuild49
5 files changed, 142 insertions, 0 deletions
diff --git a/media-sound/twolame/Manifest b/media-sound/twolame/Manifest
new file mode 100644
index 000000000000..ea5794f3db51
--- /dev/null
+++ b/media-sound/twolame/Manifest
@@ -0,0 +1,7 @@
+AUX 0.3.13-perl-tests.patch 779 SHA256 cbdfd45f30ab87bbf3cd5f33d0c2b99f2a64f353f9c13b7aa0f0a377a5495b60 SHA512 1c483daf75991fa6d390360d9108803f65fa894745140d3955f73ce8e87eb813a068efa810988ac462ed22ae0bf3d0f95b63feb5c823ce3bfa3a0dc9b9a8f413 WHIRLPOOL c0e30298a11f4af773d89787c99f7ffae470d7926fab08fe41c94a2d4e38b7b8e925271c73d90c9f8a94d363698feee203d1b25b63bd4a1b138465003ea0110c
+DIST twolame-0.3.13.tar.gz 660415 SHA256 98f332f48951f47f23f70fd0379463aff7d7fb26f07e1e24e42ddef22cc6112a SHA512 241ae5faebf05cb919959bb0545cb89e9b71cfb07f92a7118d864499ea4f0065ddaa646ab1482ffbcbca427d52c2436764074bd67fd19a1eb9979987f23163f7 WHIRLPOOL 489943692b60fbb5b63c9c4b95730ce854dcaab278023bb9fb472e0b84755bcfe7d71097bcbb4555a1181b3c27a6e8f2cf0cff2eddd5d515b4a0fa8a19c9a532
+EBUILD twolame-0.3.13-r1.ebuild 1278 SHA256 21e5d2f1b68b3ff32c12a3cdaaacbefb936e1af2c10a3fa4e24aa59dd9836d95 SHA512 7bd73ac55b501c24bd9d46946412bdd784e3d11036863b185f81f8a91d1ebdbbc0a12ab9567e8dc5cd1335f61aa6276c976db34464d474905192835cb2a4e8c3 WHIRLPOOL f68c1d307db520cb482298d75032b08185ea33bbfa68e748dad8b71c17a78fa892578880b00aeb18694adbccdc83daeb969346978e981ce581240ede69d14504
+EBUILD twolame-0.3.13-r2.ebuild 1402 SHA256 406e6b7f3123eb69e4448d036908c61b6982a80a511f23f6a3a4121bcea426f4 SHA512 31f74520758c88099e465b30fc9e7f1a97142005671b0e732bf4e9912461b1d2878e17abb0c14a87b78d69556f9ee2f818fc04659dec8dc799287ae5e6c61858 WHIRLPOOL 80780bca34b04e5f1674dd9da826e9f4cb1712efeb3d67ca7e9ed395cb5863ca7f1dcf278a014333e3ae88a9d1d00bffbba5d3e6bc0cc037b0121595b9871624
+MISC ChangeLog 2715 SHA256 b996eb54678863cec6503bad987fcd634c3316d45d2151fb731bcee94f9d902b SHA512 e45ed23e52eb1d378afee3c91cefb8a9fde6070ecb5cb35a1a4763faf26e973beb7ba56431018c429394827d336b90b67742e56fc58d16a35baf7c7316e51d92 WHIRLPOOL 0b9493b0b1a77a30604b3aed4a264425556e00674bf5e2a97dcb598d812499cd0b0da99b3d6b526f76741eb62cbcd9ed6715cf75e93567e13d2072b02e8f74cd
+MISC ChangeLog-2015 6884 SHA256 383fbd13f6c5acd03565ae83a70fa98bda2fc357374eea0c57616c9f87e960ae SHA512 4c8ab343b7355c20628e40df5bb7866faf0f3bb358e979312067bff8bb952b460ea9530f764f788ecb38c7f9709436ea989a6a8bb7435383b402744267490af8 WHIRLPOOL 3a6fc6df6aca9994b70b74a9a89b14ec58b87473fa762ad7726bd4bc6e2d794db57d0839ad57996aa02940dcbf482979dfd980ef7e11fa3db6ea66ce009631f9
+MISC metadata.xml 330 SHA256 64c1b8ba850abc84fcae7d98c727bb903e24242817c4e4c0b2b0e7c510e91e91 SHA512 4ef98f0ddd18034ac0ea2e93a84560e62b02c3ee6186f980b20733d88f68e36f3724f2b2b8c138393f9c6da1b4b943f318fcc85b5f57817fbaac33d68e4b6ea8 WHIRLPOOL 134bfe16581bdb3071ff81982afcce78564d3302740ea2b488729ec7419ce73a0ce3c2a1e533c8dc5bd3099b900d5eaca84d7339b37b2199f5b2938fe26a7b29
diff --git a/media-sound/twolame/files/0.3.13-perl-tests.patch b/media-sound/twolame/files/0.3.13-perl-tests.patch
new file mode 100644
index 000000000000..5ec5b6601770
--- /dev/null
+++ b/media-sound/twolame/files/0.3.13-perl-tests.patch
@@ -0,0 +1,32 @@
+From 11a5ecb89de1e61b016f3d7f358b09a4e611f1ad Mon Sep 17 00:00:00 2001
+From: Kent Fredric <kentfredric@gmail.com>
+Date: Tue, 17 Jan 2017 12:18:10 +1300
+Subject: [PATCH] tests/test.pl: stat the right file
+
+stat(@_) is effectively stat scalar @_
+
+becasue "stat" has a signature of "$" which coerces arrays to
+scalars, which here, returns the length of the array.
+
+This is going to be number 1, instead of the desired argument,
+ the filename.
+---
+ tests/test.pl | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/tests/test.pl b/tests/test.pl
+index 658eadf..5513d6e 100755
+--- a/tests/test.pl
++++ b/tests/test.pl
+@@ -185,7 +185,7 @@ sub input_filepath {
+ }
+
+ sub filesize {
+- return (stat(@_))[7];
++ return (stat($_[0]))[7];
+ }
+
+ sub md5_file {
+--
+2.11.0
+
diff --git a/media-sound/twolame/metadata.xml b/media-sound/twolame/metadata.xml
new file mode 100644
index 000000000000..9a145f2f8a0c
--- /dev/null
+++ b/media-sound/twolame/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">twolame</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-sound/twolame/twolame-0.3.13-r1.ebuild b/media-sound/twolame/twolame-0.3.13-r1.ebuild
new file mode 100644
index 000000000000..72f6a6d3ffdc
--- /dev/null
+++ b/media-sound/twolame/twolame-0.3.13-r1.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+AUTOTOOLS_PRUNE_LIBTOOL_FILES=all
+inherit autotools-multilib
+
+DESCRIPTION="An optimised MPEG Audio Layer 2 (MP2) encoder"
+HOMEPAGE="http://www.twolame.org"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
+IUSE="static-libs"
+
+RDEPEND=">=media-libs/libsndfile-1.0.25[${MULTILIB_USEDEP}]
+ abi_x86_32? ( !<=app-emulation/emul-linux-x86-soundlibs-20130224-r6
+ !app-emulation/emul-linux-x86-soundlibs[-abi_x86_32(-)] )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+DOCS=( AUTHORS ChangeLog README TODO )
+
+src_prepare() {
+ sed -i -e '/CFLAGS/s:-O3::' configure || die
+
+ if [[ ${CHOST} == *solaris* ]]; then
+ # libsndfile doesn't like -std=c99 on Solaris
+ sed -i -e '/CFLAGS/s:-std=c99::' configure || die
+ # configure isn't really bourne shell (comment 0) or dash (comment 6)
+ # compatible, bug #388885
+ export CONFIG_SHELL=${BASH}
+ fi
+
+ autotools-multilib_src_prepare
+}
+
+src_install() {
+ autotools-multilib_src_install \
+ pkgdocdir="${EPREFIX}/usr/share/doc/${PF}"
+}
diff --git a/media-sound/twolame/twolame-0.3.13-r2.ebuild b/media-sound/twolame/twolame-0.3.13-r2.ebuild
new file mode 100644
index 000000000000..1660d631865f
--- /dev/null
+++ b/media-sound/twolame/twolame-0.3.13-r2.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils multilib-minimal
+
+DESCRIPTION="An optimised MPEG Audio Layer 2 (MP2) encoder"
+HOMEPAGE="http://www.twolame.org"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
+IUSE="static-libs"
+
+RDEPEND=">=media-libs/libsndfile-1.0.25[${MULTILIB_USEDEP}]
+ abi_x86_32? ( !<=app-emulation/emul-linux-x86-soundlibs-20130224-r6
+ !app-emulation/emul-linux-x86-soundlibs[-abi_x86_32(-)] )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+PATCHES=( "${FILESDIR}/${PV}-perl-tests.patch" )
+
+src_prepare() {
+ sed -i -e '/CFLAGS/s:-O3::' configure || die
+ # remove -Werror, bug 493940
+ sed -i -e '/WARNING_CFLAGS/s:-Werror::' configure || die
+
+ if [[ ${CHOST} == *solaris* ]]; then
+ # libsndfile doesn't like -std=c99 on Solaris
+ sed -i -e '/CFLAGS/s:-std=c99::' configure || die
+ # configure isn't really bourne shell (comment 0) or dash (comment 6)
+ # compatible, bug #388885
+ export CONFIG_SHELL=${BASH}
+ fi
+
+ default
+}
+
+multilib_src_configure() {
+ ECONF_SOURCE=${S} \
+ econf $(use_enable static-libs static)
+}
+
+multilib_src_install_all() {
+ default
+ prune_libtool_files --all
+}