summaryrefslogtreecommitdiff
path: root/media-sound/mp3val
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/mp3val
reinit the tree, so we can have metadata
Diffstat (limited to 'media-sound/mp3val')
-rw-r--r--media-sound/mp3val/Manifest4
-rw-r--r--media-sound/mp3val/files/mp3val-0.1.8-open.patch11
-rw-r--r--media-sound/mp3val/metadata.xml11
-rw-r--r--media-sound/mp3val/mp3val-0.1.8.ebuild37
4 files changed, 63 insertions, 0 deletions
diff --git a/media-sound/mp3val/Manifest b/media-sound/mp3val/Manifest
new file mode 100644
index 000000000000..f098a1865bad
--- /dev/null
+++ b/media-sound/mp3val/Manifest
@@ -0,0 +1,4 @@
+AUX mp3val-0.1.8-open.patch 477 SHA256 7ffae27b28a152c8cab66cd206e2066c2ec3f73835670a19975e3c1609e9cb14 SHA512 cbb11127ddecf808b41948220937078c96c87410b29676037ebb0187705f1c2f53d48c87924f9feb138ac33546d389f233940b6251d58bfc9975df7557a2aa22 WHIRLPOOL c26835ae9ce3f89edb575824f7fb15282946b6a5254e11700d1da5e2cccbf15800d58d8ace90db9817508fefef2ed0f51cd1bb21475f9c874f66298673027683
+DIST mp3val-0.1.8-src.tar.gz 21406 SHA256 95a16efe3c352bb31d23d68ee5cb8bb8ebd9868d3dcf0d84c96864f80c31c39f SHA512 62371453be53840fb0f0d87c9fcf9cbd6f5c8ae107e529f0cb6b8190ef9e7ebf564bb080c9d0a6adc3b5450673e70b5f4343dee82c1e6400750935cccebc2604 WHIRLPOOL fbcbb641c3ccccfc13ca20c4584161f5c0e0fc85aacfdc48435f9882e61f7fb780b3ddd8622cf5a423f2e0c9474a778802d36557e933422d8f9c2362ed72f956
+EBUILD mp3val-0.1.8.ebuild 658 SHA256 d82fc8ae3cd532c33d1b0d922705f404930a971640283748299ec88d48ef4306 SHA512 cb456c94947d4094f38a52e6eda4db07303e9faa5bbf238f4ec4594697b086c8d91be82ee440d266404cd116ba59ed66f956eddb32a47e8ff8ef23fde1b58602 WHIRLPOOL eea34f52b18d418dc9c1f9cb6b592b00f7ca535d31514a756819e4a59042a1ce06d225446af4b1053d1507742c5017d74eea1cc26101946b21d6c92cdc3402c9
+MISC metadata.xml 356 SHA256 21473766f0d689fcf378f83a5536a2807afce6c8aedd5823922442c88d978926 SHA512 57d04beb9754d651fc336dbc8bafb21a8d8bbe169e40049a730865e3655518b94e886f940865765e2ac5da1c3ddd284eff01904a8e4c80e405b8f32c5aa285e6 WHIRLPOOL e55c23177dae84422efebfc161236ef7c2fd53185274c8650796cd39374bff3f1a26ce0acdce8eb5b6ef250bc9e52efc58b05d055fd89566ffc04c8ab34532f1
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..9883d35b70f1
--- /dev/null
+++ b/media-sound/mp3val/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="person">
+ <email>robbat2@gentoo.org</email>
+ <name>Robin H. Johnson</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">mp3val</remote-id>
+ </upstream>
+</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..ed2f5fc906a3
--- /dev/null
+++ b/media-sound/mp3val/mp3val-0.1.8.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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
+}