summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-gfx/duhdraw/duhdraw-2.8.13-r1.ebuild')
-rw-r--r--media-gfx/duhdraw/duhdraw-2.8.13-r1.ebuild21
1 files changed, 12 insertions, 9 deletions
diff --git a/media-gfx/duhdraw/duhdraw-2.8.13-r1.ebuild b/media-gfx/duhdraw/duhdraw-2.8.13-r1.ebuild
index 64e4f8d7f28..ead35424858 100644
--- a/media-gfx/duhdraw/duhdraw-2.8.13-r1.ebuild
+++ b/media-gfx/duhdraw/duhdraw-2.8.13-r1.ebuild
@@ -1,8 +1,8 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=5
-inherit toolchain-funcs eutils
+EAPI=7
+inherit toolchain-funcs
DESCRIPTION="ASCII art editor"
HOMEPAGE="http://www.cs.helsinki.fi/u/penberg/duhdraw"
@@ -12,16 +12,19 @@ LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux ~ppc-macos"
-DEPEND="sys-libs/ncurses"
+DEPEND="sys-libs/ncurses:0="
RDEPEND="${DEPEND}"
+BDEPEND="virtual/pkgconfig"
-src_prepare() {
- epatch "${FILESDIR}"/${P}-macos.patch
- epatch "${FILESDIR}"/${P}-prestrip.patch
-}
+PATCHES=(
+ "${FILESDIR}"/${P}-macos.patch
+ "${FILESDIR}"/${P}-prestrip.patch
+)
src_compile() {
- emake CC="$(tc-getCC) ${CFLAGS} ${LDFLAGS}"
+ emake \
+ CC="$(tc-getCC) ${CFLAGS} ${LDFLAGS}" \
+ LIBS="$($(tc-getPKG_CONFIG) --libs ncurses)"
}
src_install() {