summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2020-11-14 16:04:42 +0100
committerDavid Seifert <soap@gentoo.org>2020-11-14 16:04:42 +0100
commite5c2dd8db6424f075e1811b8ea697630176e7488 (patch)
tree43a0c9ca5ce8e670cd7adf2f62e2eb1cb3ea0630 /media-sound/aylet/aylet-0.5.ebuild
parentmedia-sound/fmtools: Port to EAPI 7 (diff)
downloadgentoo-e5c2dd8db6424f075e1811b8ea697630176e7488.tar.gz
gentoo-e5c2dd8db6424f075e1811b8ea697630176e7488.tar.bz2
gentoo-e5c2dd8db6424f075e1811b8ea697630176e7488.zip
media-sound/aylet: Port to EAPI 7
Package-Manager: Portage-3.0.9, Repoman-3.0.2 Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'media-sound/aylet/aylet-0.5.ebuild')
-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
}