summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2017-02-19 15:46:42 -0800
committerRobin H. Johnson <robbat2@gentoo.org>2017-02-19 16:36:34 -0800
commit448b5d8a832f56338ef9120886c60ab9efe6bb85 (patch)
treed31d96467c40651f9ec71599b0d51d42abf6955b /media-sound
parentnet-nds/openldap: drop unused ICU linkage (diff)
downloadgentoo-448b5d8a832f56338ef9120886c60ab9efe6bb85.tar.gz
gentoo-448b5d8a832f56338ef9120886c60ab9efe6bb85.tar.bz2
gentoo-448b5d8a832f56338ef9120886c60ab9efe6bb85.zip
media-sound/mp3val: new package, dependency for media-sound/beets[badfiles]
Package-Manager: portage-2.3.2
Diffstat (limited to 'media-sound')
-rw-r--r--media-sound/mp3val/Manifest1
-rw-r--r--media-sound/mp3val/files/mp3val-0.1.8-open.patch11
-rw-r--r--media-sound/mp3val/metadata.xml8
-rw-r--r--media-sound/mp3val/mp3val-0.1.8.ebuild38
4 files changed, 58 insertions, 0 deletions
diff --git a/media-sound/mp3val/Manifest b/media-sound/mp3val/Manifest
new file mode 100644
index 000000000000..ab31b2b9b8aa
--- /dev/null
+++ b/media-sound/mp3val/Manifest
@@ -0,0 +1 @@
+DIST mp3val-0.1.8-src.tar.gz 21406 SHA256 95a16efe3c352bb31d23d68ee5cb8bb8ebd9868d3dcf0d84c96864f80c31c39f SHA512 62371453be53840fb0f0d87c9fcf9cbd6f5c8ae107e529f0cb6b8190ef9e7ebf564bb080c9d0a6adc3b5450673e70b5f4343dee82c1e6400750935cccebc2604 WHIRLPOOL fbcbb641c3ccccfc13ca20c4584161f5c0e0fc85aacfdc48435f9882e61f7fb780b3ddd8622cf5a423f2e0c9474a778802d36557e933422d8f9c2362ed72f956
diff --git a/media-sound/mp3val/files/mp3val-0.1.8-open.patch b/media-sound/mp3val/files/mp3val-0.1.8-open.patch
new file mode 100644
index 000000000000..2b844c1fac1e
--- /dev/null
+++ b/media-sound/mp3val/files/mp3val-0.1.8-open.patch
@@ -0,0 +1,11 @@
+--- mp3val-0.1.8-src/crossapi.cpp.orig 2010-05-03 10:45:53.000000000 -0700
++++ mp3val-0.1.8-src/crossapi.cpp 2017-02-19 23:38:21.000000000 -0000
+@@ -241,7 +241,7 @@
+ //Moving failed due to different logical drives of source and destination. Let's copy:
+ id=open(szOldName,O_RDONLY);
+ if(id==-1) return 0;
+- od=open(szNewName,O_WRONLY|O_CREAT|O_TRUNC);
++ od=open(szNewName, O_WRONLY|O_CREAT|O_TRUNC, S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH);
+ if(od==-1) {
+ close(id);
+ return 0;
diff --git a/media-sound/mp3val/metadata.xml b/media-sound/mp3val/metadata.xml
new file mode 100644
index 000000000000..a4e0d354f696
--- /dev/null
+++ b/media-sound/mp3val/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="person">
+ <email>robbat2@gentoo.org</email>
+ <name>Robin H. Johnson</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/media-sound/mp3val/mp3val-0.1.8.ebuild b/media-sound/mp3val/mp3val-0.1.8.ebuild
new file mode 100644
index 000000000000..a707e167f39e
--- /dev/null
+++ b/media-sound/mp3val/mp3val-0.1.8.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=6
+inherit eutils
+
+DESCRIPTION="Validate and fix MPEG audio files"
+HOMEPAGE="http://mp3val.sourceforge.net/"
+SRC_URI="mirror://sourceforge/mp3val/${P}-src.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+S="${WORKDIR}/${P}-src"
+
+PATCHES=(
+ "${FILESDIR}/${P}-open.patch"
+)
+
+src_prepare() {
+ edos2unix "${S}"/{*.{cpp,h},Makefile*}
+ chmod a-x "${S}"/*
+ sed -i -e '/^C.*FLAGS.*=/d' "${S}"/Makefile.linux
+ default
+}
+
+src_compile() {
+ emake -f Makefile.linux
+}
+
+src_install() {
+ dobin mp3val
+ dohtml manual.html
+ dodoc changelog.txt
+}