sys-process/memwatch: Remove default curses module.
authorPatrice Clement <monsieurp@gentoo.org>
Mon, 13 Jun 2016 12:34:45 +0000 (12:34 +0000)
committerPatrice Clement <monsieurp@gentoo.org>
Mon, 13 Jun 2016 12:36:22 +0000 (12:36 +0000)
The CMake curses module shipped with memwatch is buddy and prevents CMake from
performing a proper linking against ncurses. To work around this issue, remove
it so that CMake can find the correct ncurses library installed on the system
and link the resulting memwatch binary correctly against it.

Gentoo-Bug: https://bugs.gentoo.org/585802

Package-Manager: portage-2.2.28

sys-process/memwatch/memwatch-0.3.0-r1.ebuild [new file with mode: 0644]

diff --git a/sys-process/memwatch/memwatch-0.3.0-r1.ebuild b/sys-process/memwatch/memwatch-0.3.0-r1.ebuild
new file mode 100644 (file)
index 0000000..804b28e
--- /dev/null
@@ -0,0 +1,33 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit cmake-utils
+
+DESCRIPTION="Interactive memory viewer"
+HOMEPAGE="https://unixdev.ru/memwatch"
+SRC_URI="http://unixdev.ru/src/${P}.tar.gz"
+
+LICENSE="WTFPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="sys-libs/ncurses:0="
+RDEPEND="${DEPEND}"
+
+CMAKE_REMOVE_MODULES_LIST="FindCurses"
+
+src_configure() {
+       cmake-utils_src_configure
+}
+
+src_compile() {
+       cmake-utils_src_compile
+}
+
+src_install() {
+       cmake-utils_src_install
+}