diff options
Diffstat (limited to 'sys-process/htop')
-rw-r--r-- | sys-process/htop/Manifest | 13 | ||||
-rw-r--r-- | sys-process/htop/files/htop-1.0.3-tinfo.patch | 62 | ||||
-rw-r--r-- | sys-process/htop/files/htop-2.0.0-tinfo.patch | 82 | ||||
-rw-r--r-- | sys-process/htop/files/htop-2.0.2-tinfo.patch | 73 | ||||
-rw-r--r-- | sys-process/htop/htop-1.0.3-r1.ebuild | 74 | ||||
-rw-r--r-- | sys-process/htop/htop-1.0.3.ebuild | 82 | ||||
-rw-r--r-- | sys-process/htop/htop-2.0.1.ebuild | 61 | ||||
-rw-r--r-- | sys-process/htop/htop-2.0.2.ebuild | 61 | ||||
-rw-r--r-- | sys-process/htop/metadata.xml | 22 |
9 files changed, 530 insertions, 0 deletions
diff --git a/sys-process/htop/Manifest b/sys-process/htop/Manifest new file mode 100644 index 000000000000..39eaacbf7dd4 --- /dev/null +++ b/sys-process/htop/Manifest @@ -0,0 +1,13 @@ +AUX htop-1.0.3-tinfo.patch 2588 SHA256 2b7b939a9e2f7ee06885f2b5e7ea4931647229eabb175cb408d1d47723bd629b SHA512 071a24efb5536baae05478bb2035da0c6f1f42c7d99be92d6e8f534d78ea5ba90bdb4a8fd4d9fa27cad2097f2b593bf60dd9fa6a84758eb2f3cfbc5a58f02bf4 WHIRLPOOL 5c141c7ec1624e9b7dbf57db79262bdb9d3c68fdd37ba4696b700f53ade8a41af618f44d1e947d47e081e4290ca31265aaf7945505131a06765943005ada7dff +AUX htop-2.0.0-tinfo.patch 3850 SHA256 f061093acc1b7f43d5b2c7ee21c2c05f1163dd93e9343f11b3d3a49f3501de81 SHA512 8b2d64eaafa1dbf7217371750e9cd8bccaed80ff416f2773ce387dda8fbb81093f52392fc6b6b7377fc22b7831d5d9601ab54319df6681df090cd11ee93eb4fd WHIRLPOOL 5e4e48974e95a70035e0ac80e3006c728bae50cb3da82cb18c9197a147ed8badddce0ef55ebc8661f1ff819edfb9b6791803e5a65ca8751994b6ca90c93023d6 +AUX htop-2.0.2-tinfo.patch 3655 SHA256 5534d481252f96843f854b835a71bca274892fac91dc50475424a399e73824a6 SHA512 33273ddcb89e955ef499854fb9361b65bafa83cce8e91f4ef62dd70fc29e58e169148c957d9cd0c5a123b9e5fe66f838212c8066bff12ada38c430087d02b210 WHIRLPOOL e8da5df7695c86629dfa75abfa11f99ac55ff29ae814e5084d05af6c03e6d2c28135554505495a62e69ca8d3610bb4cfac3d3088252ae71d0deaaf8c2ccb116f +DIST htop-1.0.3.tar.gz 399306 SHA256 055c57927f75847fdc222b5258b079a9542811a9dcf5421c615c7e17f55d1829 SHA512 4c5c784b093bcad06eb2e8d8bb215e14f6e838a3d47d8da8402344c270c1724f85d0bcde2899571ba5d0e5a02274a0c3390a76fed61785b2604b51351f08f232 WHIRLPOOL 14b8879210025aff9a1e098314a1b35d2bb6fcfaab42b95670e3726c61d471b1618486e6fc3dbbc97043e85f9a22196d97e676f3b2dd98250326be8527bdebbe +DIST htop-2.0.1.tar.gz 477196 SHA256 f410626dfaf6b70fdf73cd7bb33cae768869707028d847fed94a978e974f5666 SHA512 57991a55b69028c01549b067ec749099466df5b08a0ed9a65dd779e6d2c8ee0a5d9c330bb6c727b04a349146ad441b7115718e433d1f8232f74b28903fb351ff WHIRLPOOL 0bfd3bd5eff3a4597b349e83510cefaf8dbf0dacf8161ab0fea50216a44915cbf7d506d1479daf4e064803e0b6a0f65180fa7aa52d6ab161774a579ccb1dfe7d +DIST htop-2.0.2.tar.gz 476364 SHA256 179be9dccb80cee0c5e1a1f58c8f72ce7b2328ede30fb71dcdf336539be2f487 SHA512 1c9bf71a36c56b301667aa6d03756fc757fbcb63e848d9581d10db3df6193cdeb00e55ceb6e2392794ac03ea034b04459a8fe550b3ac2318cd86263a74c78cda WHIRLPOOL 24468bbe22b67e84302561c4e3b593f7fa29a862e29ac66a0c5a2605c47885edf0cdfbbda7cd61519cea8ae51cb50e57ad3284e1fc728199088c60400a48b631 +EBUILD htop-1.0.3-r1.ebuild 1936 SHA256 77c720860d0b593d6cf1310266c0a19797e0b928816b8198b49ae33fbd1a0f53 SHA512 cbfad60ba2750f95b99ed0d51094a457c20a67954d8b3bf9878ff666c8b378e913415bd86703d1b1dc3f51ba63afd40ef7976eb9de902c81ba3221897355c487 WHIRLPOOL 4997816ff7c9a5c663e5dc1fa56b559969865974c7ae9ea5e0e804b2f1f924204788b4b52030c4feba16085f5e729b7ffa26b06aa606883ff2e672158ec63879 +EBUILD htop-1.0.3.ebuild 2097 SHA256 3fbd45697556f6b03916db29e3ab3168828f1623bcc3d987f3ff6122e65a3813 SHA512 ee81709d86fa64b5e9900f99f75f6f08bbb1ad2c64a9c456e53a85fd94067e53103707b46f8b96d0e771f983b7613fe860e14c018e379efba557906bb9b2cbfb WHIRLPOOL 090ff7fd1459ba7d1f4aa06e04a88456b746629516b2036a3d77e9526b77a50b5581b048df0a0dad4d6d380f693b5b4a109ba7f9202c02b4030e46718fe5e524 +EBUILD htop-2.0.1.ebuild 1388 SHA256 903c57dc293f80851c0f1f36c3d581cb92b882fb6e1905f43c6e1e318457cd68 SHA512 fcf3f2f083d5d26f2946402d83e721bff4c395b8497c551cc4be3ac25f78e904a3df8c6e78970689398526bf84bcc17be5e1e43e81b96cad452fe516251df6dd WHIRLPOOL f0f9f481559ee507c7c22c10e68d171abe0a817f81d0ee508d9a7648434b897501d83e757179557e347e64a4c8d993e1b554d8c4257c691578b4193c1fa1dfed +EBUILD htop-2.0.2.ebuild 1378 SHA256 09de413bf113248d8e5451e4572c0ff9f8c7e5ad7c12a148fe84f5961d8b44b6 SHA512 3a72437bdf1d2d7ee2ec53fe38912fa5e56e4344de29913934cb46b026f138c2756b97421528fa2859a99ae016ab1f027dc3961c0c6507ff5790e49c2e14b0d7 WHIRLPOOL 20435e98aaca15ea4c079912aab4ab673aee3bfdd0bdc3763af3eabcbe69f021b5e460ff9f3a16811487bf6877b7899da13c043b36b9ec8f4505fe576a0aa273 +MISC ChangeLog 5582 SHA256 f3e9468e9f02ed6e44fbe7e375b6aa99b9c7825d4b02e004efbe3245d5586ed1 SHA512 047b26fb043c883aea58d791e473539dc35e2acd467a26fab83f3a2043c8647b19fb9b07e951e5acd425ee96e28e89a8b7b394bceb0cbe58bf14d36278a13798 WHIRLPOOL c2c90d68797e1c6e3e3cf6706530452d9092f4f19f014854973ffc2ebb99d963fe888f1ed6f8b9399de3940600ccb6a1d1c3e0e2a9261cf11315e493a90e8845 +MISC ChangeLog-2015 20241 SHA256 0fe9ba9376f78a3e0300e3f82cae399897c6d43e1a87a062bcf7afae8d8e0cc3 SHA512 e0796ed68ee5a08ecd0a323762e49755d6f34be058dd06b3c38235d32b5677faf05faa886be059e184d39d86b5d29c02e181a0a5a5dc2290e5cfe2166034ceea WHIRLPOOL b4578af6d5bf213b0f0d3c873c40977818a19a605cbd4a158cf5c96576e48ac02ebd0e7e1cf9d783c30a9f8510f1c73c4726cd66d56d76f18866f1df47dad40a +MISC metadata.xml 830 SHA256 3ce82fea0c9491ece33c2be8298cbe997066e40c6ff18e54ce48742a116df16a SHA512 0019a634b333e013f48aacd2c59825a7650cb02c3a6f31b57963e16845cef07d1f6b4108fece6cd12ed29d5730c52aa87d43d81303b359bbbc661b4b60e19d05 WHIRLPOOL 4d1bab68438a081b96bceb5149800f0f7c3d2d53a20fb49999d45664de71e298b112f23bb46c9e5d355be570a91944baed3cbc5a89b8fbb5b024e806ad6e256b diff --git a/sys-process/htop/files/htop-1.0.3-tinfo.patch b/sys-process/htop/files/htop-1.0.3-tinfo.patch new file mode 100644 index 000000000000..62a887baf376 --- /dev/null +++ b/sys-process/htop/files/htop-1.0.3-tinfo.patch @@ -0,0 +1,62 @@ +diff --git a/Makefile.am b/Makefile.am +index 820e2e5..85f49e9 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -36,6 +36,8 @@ SUFFIXES = .h + BUILT_SOURCES = $(myhtopheaders) + htop_SOURCES = $(myhtopheaders) $(myhtopsources) config.h + ++htop_LDADD = $(NCURSES_LIBS) ++ + profile: + $(MAKE) all CFLAGS="-pg" AM_CPPFLAGS="-pg -O2 -DNDEBUG" + +diff --git a/configure.ac b/configure.ac +index 2b934e8..3593885 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -20,6 +20,7 @@ AM_PROG_CC_C_O + AC_DISABLE_SHARED + AC_ENABLE_STATIC + AC_PROG_LIBTOOL ++PKG_PROG_PKG_CONFIG + + # Checks for libraries. + AC_CHECK_LIB([m], [ceil], [], [missing_libraries="$missing_libraries libm"]) +@@ -89,20 +90,24 @@ fi + + AC_ARG_ENABLE(unicode, [AC_HELP_STRING([--enable-unicode], [enable Unicode support])], ,enable_unicode="yes") + if test "x$enable_unicode" = xyes; then +- AC_CHECK_LIB([ncursesw], [refresh], [], [ +- missing_libraries="$missing_libraries libncursesw" +- AC_MSG_ERROR([You may want to use --disable-unicode or install libncursesw.]) ++ PKG_CHECK_MODULES([NCURSES], [ncursesw],[ ++ AC_CHECK_LIB([ncursesw], [refresh], [], [ ++ 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"])])])]) + ]) +- 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 +- AC_CHECK_LIB([ncurses], [refresh], [], [missing_libraries="$missing_libraries libncurses"]) +- AC_CHECK_HEADERS([curses.h],[:], +- [AC_CHECK_HEADERS([ncurses/curses.h],[:], +- [AC_CHECK_HEADERS([ncurses/ncurses.h],[:], +- [AC_CHECK_HEADERS([ncurses.h],[:],[missing_headers="$missing_headers $ac_header"])])])]) ++ PKG_CHECK_MODULES([NCURSES], [ncurses],[ ++ AC_CHECK_LIB([ncurses], [refresh], [], [missing_libraries="$missing_libraries libncurses"]) ++ AC_CHECK_HEADERS([curses.h],[:], ++ [AC_CHECK_HEADERS([ncurses/curses.h],[:], ++ [AC_CHECK_HEADERS([ncurses/ncurses.h],[:], ++ [AC_CHECK_HEADERS([ncurses.h],[:],[missing_headers="$missing_headers $ac_header"])])])]) ++ ]) + fi + + if test ! -z "$missing_libraries"; then diff --git a/sys-process/htop/files/htop-2.0.0-tinfo.patch b/sys-process/htop/files/htop-2.0.0-tinfo.patch new file mode 100644 index 000000000000..e04019519e0c --- /dev/null +++ b/sys-process/htop/files/htop-2.0.0-tinfo.patch @@ -0,0 +1,82 @@ +--- htop-2.0.0/configure.ac ++++ htop-2.0.0/configure.ac +@@ -23,6 +23,7 @@ + AC_DISABLE_SHARED + AC_ENABLE_STATIC + AC_PROG_LIBTOOL ++PKG_PROG_PKG_CONFIG + + # Checks for platform. + # ---------------------------------------------------------------------- +@@ -175,32 +176,36 @@ + + 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"])])])]) ++ PKG_CHECK_MODULES([NCURSES], [ncursesw],[ ++ 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" +- )))) ++ PKG_CHECK_MODULES([NCURSES], [ncurses],[ ++ 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],[:], +- [AC_CHECK_HEADERS([ncurses/ncurses.h],[:], +- [AC_CHECK_HEADERS([ncurses.h],[:],[missing_headers="$missing_headers $ac_header"])])])]) ++ AC_CHECK_HEADERS([curses.h],[:], ++ [AC_CHECK_HEADERS([ncurses/curses.h],[:], ++ [AC_CHECK_HEADERS([ncurses/ncurses.h],[:], ++ [AC_CHECK_HEADERS([ncurses.h],[:],[missing_headers="$missing_headers $ac_header"])])])]) ++ ]) + fi + + if test "$my_htop_platform" = "freebsd"; then +--- htop-2.0.0/Makefile.am ++++ htop-2.0.0/Makefile.am +@@ -85,6 +85,8 @@ + BUILT_SOURCES = $(myhtopheaders) $(myhtopplatheaders) + htop_SOURCES = $(myhtopheaders) $(myhtopplatheaders) $(myhtopsources) $(myhtopplatsources) config.h + ++htop_LDADD = $(NCURSES_LIBS) ++ + target: + echo $(htop_SOURCES) + diff --git a/sys-process/htop/files/htop-2.0.2-tinfo.patch b/sys-process/htop/files/htop-2.0.2-tinfo.patch new file mode 100644 index 000000000000..4a536c0251a1 --- /dev/null +++ b/sys-process/htop/files/htop-2.0.2-tinfo.patch @@ -0,0 +1,73 @@ +--- htop-2.0.2/configure.ac ++++ htop-2.0.2/configure.ac +@@ -185,32 +185,36 @@ + + AC_ARG_ENABLE(unicode, [AS_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.]) +- )))))) ++ PKG_CHECK_MODULES([NCURSES], [ncursesw],[ ++ 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"])])])]) ++ 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" +- )))) ++ PKG_CHECK_MODULES([NCURSES], [ncurses],[ ++ 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],[:], +- [AC_CHECK_HEADERS([ncurses/ncurses.h],[:], +- [AC_CHECK_HEADERS([ncurses.h],[:],[missing_headers="$missing_headers $ac_header"])])])]) ++ AC_CHECK_HEADERS([curses.h],[:], ++ [AC_CHECK_HEADERS([ncurses/curses.h],[:], ++ [AC_CHECK_HEADERS([ncurses/ncurses.h],[:], ++ [AC_CHECK_HEADERS([ncurses.h],[:],[missing_headers="$missing_headers $ac_header"])])])]) ++ ]) + fi + + if test "$my_htop_platform" = "freebsd"; then +--- htop-2.0.2/Makefile.am ++++ htop-2.0.2/Makefile.am +@@ -85,6 +85,8 @@ + BUILT_SOURCES = $(myhtopheaders) $(myhtopplatheaders) + htop_SOURCES = $(myhtopheaders) $(myhtopplatheaders) $(myhtopsources) $(myhtopplatsources) config.h + ++htop_LDADD = $(NCURSES_LIBS) ++ + target: + echo $(htop_SOURCES) + diff --git a/sys-process/htop/htop-1.0.3-r1.ebuild b/sys-process/htop/htop-1.0.3-r1.ebuild new file mode 100644 index 000000000000..3f35a581888a --- /dev/null +++ b/sys-process/htop/htop-1.0.3-r1.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +AUTOTOOLS_AUTORECONF=true + +inherit autotools-utils linux-info + +DESCRIPTION="interactive process viewer" +HOMEPAGE="http://hisham.hm/htop/" +SRC_URI="http://hisham.hm/htop/releases/${PV}/${P}.tar.gz" + +LICENSE="BSD GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux" +IUSE="kernel_FreeBSD kernel_linux oom openvz unicode vserver" + +RDEPEND="sys-libs/ncurses:0=[unicode?]" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +DOCS=( ChangeLog README ) + +CONFIG_CHECK="~TASKSTATS ~TASK_XACCT ~TASK_IO_ACCOUNTING ~CGROUPS" + +# config.h problems +AUTOTOOLS_IN_SOURCE_BUILD=1 + +PATCHES=("${FILESDIR}/${P}-tinfo.patch") + +pkg_setup() { + if use kernel_FreeBSD && ! [[ -f ${ROOT}/compat/linux/proc/stat && -f ${ROOT}/compat/linux/proc/meminfo ]]; then + echo + eerror "htop requires linprocfs mounted at /compat/linux/proc to build and function." + eerror "To mount it, type:" + [ -d /compat/linux/proc ] || eerror "mkdir -p /compat/linux/proc" + eerror "mount -t linprocfs none /compat/linux/proc" + eerror "Alternatively, place this information into /etc/fstab" + echo + die "htop needs /compat/linux/proc mounted" + fi + + if ! has_version sys-process/lsof; then + ewarn "To use lsof features in htop(what processes are accessing" + ewarn "what files), you must have sys-process/lsof installed." + fi + + linux-info_pkg_setup +} + +src_prepare() { + rm missing || die + + autotools-utils_src_prepare +} + +src_configure() { + [[ $CBUILD != $CHOST ]] && export ac_cv_file__proc_{meminfo,stat}=yes #328971 + + local myeconfargs=() + + use kernel_FreeBSD && myeconfargs+=( --with-proc=/compat/linux/proc ) + + myeconfargs+=( + $(use_enable openvz) + $(use_enable kernel_linux cgroup) + $(use_enable vserver) + $(use_enable unicode) + $(use_enable oom) + --enable-taskstats + ) + autotools-utils_src_configure +} diff --git a/sys-process/htop/htop-1.0.3.ebuild b/sys-process/htop/htop-1.0.3.ebuild new file mode 100644 index 000000000000..1665da56d72f --- /dev/null +++ b/sys-process/htop/htop-1.0.3.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +AUTOTOOLS_AUTORECONF=true + +inherit autotools-utils linux-info python-any-r1 + +DESCRIPTION="interactive process viewer" +HOMEPAGE="http://hisham.hm/htop/" +SRC_URI="http://hisham.hm/htop/releases/${PV}/${P}.tar.gz" + +LICENSE="BSD GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 ~sh sparc x86 ~amd64-linux ~x86-linux" +IUSE="kernel_FreeBSD kernel_linux oom openvz unicode vserver" + +RDEPEND="sys-libs/ncurses:0=[unicode?]" +DEPEND="${RDEPEND} + ${PYTHON_DEPS} + virtual/pkgconfig" + +DOCS=( ChangeLog README ) + +CONFIG_CHECK="~TASKSTATS ~TASK_XACCT ~TASK_IO_ACCOUNTING ~CGROUPS" + +# config.h problems +AUTOTOOLS_IN_SOURCE_BUILD=1 + +PATCHES=("${FILESDIR}/${P}-tinfo.patch") + +pkg_setup() { + if use kernel_FreeBSD && ! [[ -f ${ROOT}/compat/linux/proc/stat && -f ${ROOT}/compat/linux/proc/meminfo ]]; then + echo + eerror "htop requires linprocfs mounted at /compat/linux/proc to build and function." + eerror "To mount it, type:" + [ -d /compat/linux/proc ] || eerror "mkdir -p /compat/linux/proc" + eerror "mount -t linprocfs none /compat/linux/proc" + eerror "Alternatively, place this information into /etc/fstab" + echo + die "htop needs /compat/linux/proc mounted" + fi + + if ! has_version sys-process/lsof; then + ewarn "To use lsof features in htop(what processes are accessing" + ewarn "what files), you must have sys-process/lsof installed." + fi + + python-any-r1_pkg_setup + linux-info_pkg_setup +} + +src_prepare() { + rm missing || die + + sed \ + -e '1c\#!'"${EPREFIX}"'/usr/bin/python' \ + -i scripts/MakeHeader.py || die + + autotools-utils_src_prepare +} + +src_configure() { + [[ $CBUILD != $CHOST ]] && export ac_cv_file__proc_{meminfo,stat}=yes #328971 + + local myeconfargs=() + + use kernel_FreeBSD && myeconfargs+=( --with-proc=/compat/linux/proc ) + + myeconfargs+=( + $(use_enable openvz) + $(use_enable kernel_linux cgroup) + $(use_enable vserver) + $(use_enable unicode) + $(use_enable oom) + --enable-taskstats + ) + autotools-utils_src_configure +} diff --git a/sys-process/htop/htop-2.0.1.ebuild b/sys-process/htop/htop-2.0.1.ebuild new file mode 100644 index 000000000000..a2b10fdb96a6 --- /dev/null +++ b/sys-process/htop/htop-2.0.1.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools linux-info + +DESCRIPTION="interactive process viewer" +HOMEPAGE="http://hisham.hm/htop/" +SRC_URI="http://hisham.hm/htop/releases/${PV}/${P}.tar.gz" + +LICENSE="BSD GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux" +IUSE="kernel_FreeBSD kernel_linux openvz unicode vserver" + +RDEPEND="sys-libs/ncurses:0=[unicode?]" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +DOCS=( ChangeLog README ) + +CONFIG_CHECK="~TASKSTATS ~TASK_XACCT ~TASK_IO_ACCOUNTING ~CGROUPS" + +PATCHES=( + "${FILESDIR}/${PN}-2.0.0-tinfo.patch" +) + +pkg_setup() { + if ! has_version sys-process/lsof; then + ewarn "To use lsof features in htop(what processes are accessing" + ewarn "what files), you must have sys-process/lsof installed." + fi + + linux-info_pkg_setup +} + +src_prepare() { + rm missing || die + + default + eautoreconf +} + +src_configure() { + [[ $CBUILD != $CHOST ]] && export ac_cv_file__proc_{meminfo,stat}=yes #328971 + + local myeconfargs=() + + myeconfargs+=( + # fails to build against recent hwloc versions + --disable-hwloc + --enable-taskstats + $(use_enable kernel_linux cgroup) + $(use_enable kernel_linux linux-affinity) + $(use_enable openvz) + $(use_enable unicode) + $(use_enable vserver) + ) + econf ${myeconfargs[@]} +} diff --git a/sys-process/htop/htop-2.0.2.ebuild b/sys-process/htop/htop-2.0.2.ebuild new file mode 100644 index 000000000000..b8537f91509d --- /dev/null +++ b/sys-process/htop/htop-2.0.2.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools linux-info + +DESCRIPTION="interactive process viewer" +HOMEPAGE="http://hisham.hm/htop/" +SRC_URI="http://hisham.hm/htop/releases/${PV}/${P}.tar.gz" + +LICENSE="BSD GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 ~sh sparc x86 ~amd64-linux ~x86-linux" +IUSE="kernel_FreeBSD kernel_linux openvz unicode vserver" + +RDEPEND="sys-libs/ncurses:0=[unicode?]" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +DOCS=( ChangeLog README ) + +CONFIG_CHECK="~TASKSTATS ~TASK_XACCT ~TASK_IO_ACCOUNTING ~CGROUPS" + +PATCHES=( + "${FILESDIR}/${PN}-2.0.2-tinfo.patch" +) + +pkg_setup() { + if ! has_version sys-process/lsof; then + ewarn "To use lsof features in htop(what processes are accessing" + ewarn "what files), you must have sys-process/lsof installed." + fi + + linux-info_pkg_setup +} + +src_prepare() { + rm missing || die + + default + eautoreconf +} + +src_configure() { + [[ $CBUILD != $CHOST ]] && export ac_cv_file__proc_{meminfo,stat}=yes #328971 + + local myeconfargs=() + + myeconfargs+=( + # fails to build against recent hwloc versions + --disable-hwloc + --enable-taskstats + $(use_enable kernel_linux cgroup) + $(use_enable kernel_linux linux-affinity) + $(use_enable openvz) + $(use_enable unicode) + $(use_enable vserver) + ) + econf ${myeconfargs[@]} +} diff --git a/sys-process/htop/metadata.xml b/sys-process/htop/metadata.xml new file mode 100644 index 000000000000..31af477b5ce7 --- /dev/null +++ b/sys-process/htop/metadata.xml @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>idl0r@gentoo.org</email> + <name>Christian Ruppert</name> + </maintainer> + <maintainer type="person"> + <email>polynomial-c@gentoo.org</email> + <name>Lars Wendler</name> + </maintainer> + <use> + <flag name="oom">Add column to track the OOM-killer score of processes</flag> + <flag name="openvz">Enable openvz support</flag> + <flag name="vserver">Enable vserver support</flag> + </use> + <longdescription> +htop is an interactive process viewer for Linux. It aims to be a 'better top': +you can scroll the process list vertically and horizontally, and select a +process to be killed with the arrow keys instead of by typing its process id. + </longdescription> +</pkgmetadata> |