-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-EAPI=2
-inherit eutils
+EAPI=6
DESCRIPTION="A perl script to convert MP3 files to Ogg Vorbis files"
HOMEPAGE="http://faceprint.com/code/"
S=${WORKDIR}
-src_unpack() {
- cp -f "${DISTDIR}"/${PN} "${WORKDIR}" || die
-}
+PATCHES=(
+ "${FILESDIR}/${P}-r4-mpg321.patch"
+ "${FILESDIR}/${P}-r4-quality.patch"\
+ "${FILESDIR}/${P}-r5-german_umlaut.patch"
+ "${FILESDIR}/${P}-r6-force-filename-stringification.patch"
+)
-src_prepare() {
- epatch "${FILESDIR}"/${P}-r4-mpg321.patch \
- "${FILESDIR}"/${P}-r4-quality.patch \
- "${FILESDIR}"/${P}-r5-german_umlaut.patch \
- "${FILESDIR}"/${P}-r6-force-filename-stringification.patch
+src_unpack() {
+ cp -f "${DISTDIR}"/${PN} "${WORKDIR}" || die "Copying sources failed"
}
src_install() {
- dobin mp32ogg || die
+ dobin mp32ogg
}