summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2016-07-16 08:51:53 +0200
committerJeroen Roovers <jer@gentoo.org>2016-07-16 08:51:53 +0200
commit15d13084ac7c5db42234805be54e9308aeb83737 (patch)
treefe9df4c636337b6640acd8d60a174b5dd7f0f11d /app-misc
parentgames-action/brutal-legend: remove deprecated games eclass (diff)
downloadgentoo-15d13084ac7c5db42234805be54e9308aeb83737.tar.gz
gentoo-15d13084ac7c5db42234805be54e9308aeb83737.tar.bz2
gentoo-15d13084ac7c5db42234805be54e9308aeb83737.zip
app-misc/dvorakng: Fix building against sys-libs/ncurses[tinfo] (bug #588920 by Aline Freitas).
Package-Manager: portage-2.3.0
Diffstat (limited to 'app-misc')
-rw-r--r--app-misc/dvorakng/dvorakng-0.6.0.ebuild25
1 files changed, 17 insertions, 8 deletions
diff --git a/app-misc/dvorakng/dvorakng-0.6.0.ebuild b/app-misc/dvorakng/dvorakng-0.6.0.ebuild
index f90b50fedd55..e6a8abada5cf 100644
--- a/app-misc/dvorakng/dvorakng-0.6.0.ebuild
+++ b/app-misc/dvorakng/dvorakng-0.6.0.ebuild
@@ -1,7 +1,8 @@
-# Copyright 1999-2010 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
+EAPI=6
inherit toolchain-funcs
DESCRIPTION="Dvorak typing tutor"
@@ -11,17 +12,25 @@ SRC_URI="http://www.free.of.pl/n/nopik/${P}rc1.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ppc ppc64 x86"
-IUSE=""
-DEPEND="sys-libs/ncurses"
-RDEPEND="${DEPEND}"
+RDEPEND="
+ sys-libs/ncurses:*
+"
+DEPEND="
+ ${RDEPEND}
+ virtual/pkgconfig
+"
-S=${WORKDIR}/dvorakng
+S=${WORKDIR}/${PN}
src_compile() {
- emake CXX="$(tc-getCXX)" CXXFLAGS="${CXXFLAGS}" LDFLAGS="${LDFLAGS}" || die "emake failed"
+ emake \
+ CXX="$(tc-getCXX)" \
+ CXXFLAGS="${CXXFLAGS}" \
+ LDFLAGS="${LDFLAGS}" \
+ LIBS="$( $(tc-getPKG_CONFIG) --libs ncurses )"
}
src_install() {
- dobin dvorakng || die "dobin failed"
- dodoc README TODO || die "dodoc failed"
+ dobin ${PN}
+ dodoc README TODO
}