diff options
author | 2022-09-10 09:13:49 +0100 | |
---|---|---|
committer | 2022-09-10 09:40:22 +0100 | |
commit | 93d41551827b98e3b161b81f0d24c4bec0bf21fc (patch) | |
tree | a339ad963bf03dc08e70667ee3b67c5d59a344e5 /media-sound/shnflacverify/shnflacverify-0.3-r1.ebuild | |
parent | media-sound/moc: EAPI 8, add media-libs/flac subslot dep (diff) | |
download | gentoo-93d41551827b98e3b161b81f0d24c4bec0bf21fc.tar.gz gentoo-93d41551827b98e3b161b81f0d24c4bec0bf21fc.tar.bz2 gentoo-93d41551827b98e3b161b81f0d24c4bec0bf21fc.zip |
media-sound/shnflacverify: EAPI 8
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-sound/shnflacverify/shnflacverify-0.3-r1.ebuild')
-rw-r--r-- | media-sound/shnflacverify/shnflacverify-0.3-r1.ebuild | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/media-sound/shnflacverify/shnflacverify-0.3-r1.ebuild b/media-sound/shnflacverify/shnflacverify-0.3-r1.ebuild new file mode 100644 index 000000000000..a0e70430e399 --- /dev/null +++ b/media-sound/shnflacverify/shnflacverify-0.3-r1.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit edos2unix + +DESCRIPTION="Manage the verification of checksums related to Shorten and FLAC files" +HOMEPAGE="https://sourceforge.net/projects/shnflacverify/" +SRC_URI="http://downloads.sourceforge.net/project/${PN}/${PN}/${P}/${P}.zip" +S="${WORKDIR}" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +BDEPEND="app-arch/unzip" +RDEPEND=" + dev-lang/perl + media-libs/flac + media-sound/shntool + sys-apps/coreutils +" + +src_prepare() { + default + + edos2unix *.txt + + local X + for X in flac md5sum shntool metaflac; do + einfo "setting \$${X}_cmd to $(type -p ${X})" + sed -i -e "s|^\(\$${X}_cmd\s*=\s*'\)[^']*\('.*\)|\1$(type -p ${X})\2|g" shnflac* || die + done +} + +src_install() { + local X + for X in *.pl; do newbin "${X}" "${X%.*}"; done + newdoc README.txt README +} |