summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--media-sound/aylet/aylet-0.5.ebuild32
1 files changed, 17 insertions, 15 deletions
diff --git a/media-sound/aylet/aylet-0.5.ebuild b/media-sound/aylet/aylet-0.5.ebuild
index 05c703dca0f4..bab06f882fe1 100644
--- a/media-sound/aylet/aylet-0.5.ebuild
+++ b/media-sound/aylet/aylet-0.5.ebuild
@@ -1,8 +1,9 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=5
-inherit eutils toolchain-funcs
+EAPI=7
+
+inherit toolchain-funcs
DESCRIPTION="Aylet plays music files in the .ay format"
HOMEPAGE="http://rus.members.beeb.net/aylet.html"
@@ -13,28 +14,29 @@ SLOT="0"
KEYWORDS="amd64 ~ppc sparc x86"
IUSE="gtk"
-RDEPEND="sys-libs/ncurses
+RDEPEND="
+ sys-libs/ncurses:=
gtk? ( x11-libs/gtk+:2 )"
-DEPEND="${RDEPEND}
- virtual/pkgconfig"
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
-src_prepare() {
- epatch "${FILESDIR}"/${P}-gtk.patch
-}
+PATCHES=( "${FILESDIR}"/${P}-gtk.patch )
src_compile() {
tc-export CC PKG_CONFIG
- emake ${PN} CURSES_LIB="$( ${PKG_CONFIG} --libs ncurses)"
+ emake aylet CURSES_LIB="$(${PKG_CONFIG} --libs ncurses)"
use gtk && emake gtk2
}
src_install() {
- dobin ${PN}
- use gtk && dobin x${PN}
+ dobin aylet
+ use gtk && dobin xaylet
- doman ${PN}.1
- use gtk && echo '.so aylet.1' > "${D}"/usr/share/man/man1/xaylet.1
+ doman aylet.1
+ if use gtk; then
+ echo '.so aylet.1' > "${ED}"/usr/share/man/man1/xaylet.1 || die
+ fi
- dodoc ChangeLog NEWS README TODO
+ einstalldocs
}