summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2019-06-16 17:21:27 +0200
committerDavid Seifert <soap@gentoo.org>2019-06-16 17:21:27 +0200
commit0688ce490c6d454855b4b3e016edd4a11ef087de (patch)
tree0a8b14fb20537b2fe8f0ddfa031167b259bd9a66 /media-sound/split2flac
parentmedia-sound/split2flac: Update live ebuild (diff)
downloadgentoo-0688ce490c6d454855b4b3e016edd4a11ef087de.tar.gz
gentoo-0688ce490c6d454855b4b3e016edd4a11ef087de.tar.bz2
gentoo-0688ce490c6d454855b4b3e016edd4a11ef087de.zip
media-sound/split2flac: Port to EAPI 7
Package-Manager: Portage-2.3.67, Repoman-2.3.14 Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'media-sound/split2flac')
-rw-r--r--media-sound/split2flac/split2flac-122.ebuild33
1 files changed, 16 insertions, 17 deletions
diff --git a/media-sound/split2flac/split2flac-122.ebuild b/media-sound/split2flac/split2flac-122.ebuild
index b93363779abc..90ea1c6a5fd4 100644
--- a/media-sound/split2flac/split2flac-122.ebuild
+++ b/media-sound/split2flac/split2flac-122.ebuild
@@ -1,22 +1,23 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI="5"
-
-EGIT_REPO_URI="https://github.com/ftrvxmtrx/split2flac.git"
+EAPI=7
inherit bash-completion-r1
-[[ ${PV} == *9999* ]] && inherit git-2
+
+if [[ ${PV} == *9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/ftrvxmtrx/split2flac.git"
+else
+ SRC_URI="https://github.com/ftrvxmtrx/split2flac/archive/${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="amd64 x86"
+fi
DESCRIPTION="sh script to split an APE/FLAC/WV/WAV audio image with CUE sheet into tracks"
HOMEPAGE="https://github.com/ftrvxmtrx/split2flac"
-[[ ${PV} == *9999* ]] || \
-SRC_URI="https://github.com/ftrvxmtrx/split2flac/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
-[[ ${PV} == *9999* ]] || \
-KEYWORDS="amd64 x86"
IUSE="enca flake imagemagick mac mp3 mp4 ogg replaygain wavpack"
RDEPEND="
@@ -34,20 +35,18 @@ RDEPEND="
mp3? ( media-sound/mp3gain )
ogg? ( media-sound/vorbisgain )
)
- imagemagick? ( media-gfx/imagemagick )
-"
-
-src_configure() { :; }
-
-src_compile() { :; }
+ imagemagick? ( media-gfx/imagemagick )"
src_install() {
dobin ${PN}
newbashcomp ${PN}-bash-completion.sh ${PN}
dosym ${PN} /usr/bin/split2wav
- for i in mp3 mp4 ogg
- do
+
+ local i
+ for i in mp3 mp4 ogg; do
use $i && dosym ${PN} /usr/bin/split2${i/mp4/m4a}
done
+
+ einstalldocs
}