aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan McGregor <dan.mcgregor@usask.ca>2016-09-15 08:26:27 -0600
committerDan McGregor <dan.mcgregor@usask.ca>2016-12-16 16:00:26 -0600
commitfd795818770c1a3aa33f4df198e2a9b8319fd4e0 (patch)
tree464cd910a197976c1bdc12d2044246344528128a
parent55c8a76da5dc099a7bc3838495c672140cedb78e (diff)
downloadmeta-openembedded-contrib-fd795818770c1a3aa33f4df198e2a9b8319fd4e0.tar.gz
meta-openembedded-contrib-fd795818770c1a3aa33f4df198e2a9b8319fd4e0.tar.bz2
meta-openembedded-contrib-fd795818770c1a3aa33f4df198e2a9b8319fd4e0.zip
htop: update to 2.0.3dankm/krogoth-htop
Signed-off-by: Dan McGregor <dan.mcgregor@usask.ca>
-rw-r--r--meta-oe/recipes-support/htop/files/disable-script.patch34
-rw-r--r--meta-oe/recipes-support/htop/htop_1.0.3.bb22
-rw-r--r--meta-oe/recipes-support/htop/htop_2.0.3.bb22
3 files changed, 56 insertions, 22 deletions
diff --git a/meta-oe/recipes-support/htop/files/disable-script.patch b/meta-oe/recipes-support/htop/files/disable-script.patch
new file mode 100644
index 0000000000..404e76d791
--- /dev/null
+++ b/meta-oe/recipes-support/htop/files/disable-script.patch
@@ -0,0 +1,34 @@
+diff --git a/configure.ac b/configure.ac
+index 3bd58bc..8ffcda4 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -175,27 +175,22 @@ m4_define([HTOP_CHECK_LIB],
+
+ AC_ARG_ENABLE(unicode, [AC_HELP_STRING([--enable-unicode], [enable Unicode support])], ,enable_unicode="yes")
+ if test "x$enable_unicode" = xyes; then
+- HTOP_CHECK_SCRIPT([ncursesw6], [addnwstr], [HAVE_LIBNCURSESW], "ncursesw6-config",
+- HTOP_CHECK_SCRIPT([ncursesw], [addnwstr], [HAVE_LIBNCURSESW], "ncursesw5-config",
+- HTOP_CHECK_SCRIPT([ncurses], [addnwstr], [HAVE_LIBNCURSESW], "ncurses5-config",
+ HTOP_CHECK_LIB([ncursesw6], [addnwstr], [HAVE_LIBNCURSESW],
+ HTOP_CHECK_LIB([ncursesw], [addnwstr], [HAVE_LIBNCURSESW],
+ HTOP_CHECK_LIB([ncurses], [addnwstr], [HAVE_LIBNCURSESW],
+ missing_libraries="$missing_libraries libncursesw"
+ AC_MSG_ERROR([You may want to use --disable-unicode or install libncursesw.])
+- ))))))
++ )))
+
+ AC_CHECK_HEADERS([ncursesw/curses.h],[:],
+ [AC_CHECK_HEADERS([ncurses/ncurses.h],[:],
+ [AC_CHECK_HEADERS([ncurses/curses.h],[:],
+ [AC_CHECK_HEADERS([ncurses.h],[:],[missing_headers="$missing_headers $ac_header"])])])])
+ else
+- HTOP_CHECK_SCRIPT([ncurses6], [refresh], [HAVE_LIBNCURSES], "ncurses6-config",
+- HTOP_CHECK_SCRIPT([ncurses], [refresh], [HAVE_LIBNCURSES], "ncurses5-config",
+ HTOP_CHECK_LIB([ncurses6], [refresh], [HAVE_LIBNCURSES],
+ HTOP_CHECK_LIB([ncurses], [refresh], [HAVE_LIBNCURSES],
+ missing_libraries="$missing_libraries libncurses"
+- ))))
++ ))
+
+ AC_CHECK_HEADERS([curses.h],[:],
+ [AC_CHECK_HEADERS([ncurses/curses.h],[:],
diff --git a/meta-oe/recipes-support/htop/htop_1.0.3.bb b/meta-oe/recipes-support/htop/htop_1.0.3.bb
deleted file mode 100644
index 4e445c8b35..0000000000
--- a/meta-oe/recipes-support/htop/htop_1.0.3.bb
+++ /dev/null
@@ -1,22 +0,0 @@
-SUMMARY = "htop process monitor"
-HOMEPAGE = "http://htop.sf.net"
-SECTION = "console/utils"
-LICENSE = "GPLv2"
-
-LIC_FILES_CHKSUM = "file://COPYING;md5=c312653532e8e669f30e5ec8bdc23be3"
-
-DEPENDS = "ncurses"
-RDEPENDS_${PN} = "ncurses-terminfo"
-
-SRC_URI = "http://hisham.hm/htop/releases/${PV}/htop-${PV}.tar.gz"
-
-SRC_URI[md5sum] = "e768b9b55c033d9c1dffda72db3a6ac7"
-SRC_URI[sha256sum] = "055c57927f75847fdc222b5258b079a9542811a9dcf5421c615c7e17f55d1829"
-
-LDFLAGS_append_libc-uclibc = " -lubacktrace"
-
-do_configure_prepend () {
- rm -rf ${S}/config.h
-}
-
-inherit autotools
diff --git a/meta-oe/recipes-support/htop/htop_2.0.3.bb b/meta-oe/recipes-support/htop/htop_2.0.3.bb
new file mode 100644
index 0000000000..57bbeb1a91
--- /dev/null
+++ b/meta-oe/recipes-support/htop/htop_2.0.3.bb
@@ -0,0 +1,22 @@
+SUMMARY = "htop process monitor"
+HOMEPAGE = "http://hisham.hm/htop"
+SECTION = "console/utils"
+LICENSE = "GPLv2"
+
+LIC_FILES_CHKSUM = "file://COPYING;md5=c312653532e8e669f30e5ec8bdc23be3"
+
+DEPENDS = "ncurses"
+RDEPENDS_${PN} = "ncurses-terminfo"
+
+SRC_URI = " \
+ git://github.com/hishamhm/htop.git \
+ file://disable-script.patch \
+ "
+
+SRCREV = "f80e577c5973069c1c84d7435eec60adc968da82"
+
+S = "${WORKDIR}/git"
+
+LDFLAGS_append_libc-uclibc = " -lubacktrace"
+
+inherit autotools pkgconfig