diff options
-rw-r--r-- | sys-process/procps/ChangeLog | 8 | ||||
-rw-r--r-- | sys-process/procps/files/procps-3.3.2-ncurses.patch | 136 | ||||
-rw-r--r-- | sys-process/procps/metadata.xml | 3 | ||||
-rw-r--r-- | sys-process/procps/procps-3.3.2_p2-r1.ebuild (renamed from sys-process/procps/procps-3.3.2_p2.ebuild) | 17 |
4 files changed, 158 insertions, 6 deletions
diff --git a/sys-process/procps/ChangeLog b/sys-process/procps/ChangeLog index e5f62d55b483..8877e8759dd3 100644 --- a/sys-process/procps/ChangeLog +++ b/sys-process/procps/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for sys-process/procps # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-process/procps/ChangeLog,v 1.61 2012/01/24 06:20:13 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-process/procps/ChangeLog,v 1.62 2012/01/24 18:40:30 vapier Exp $ + +*procps-3.3.2_p2-r1 (24 Jan 2012) + + 24 Jan 2012; Mike Frysinger <vapier@gentoo.org> -procps-3.3.2_p2.ebuild, + +procps-3.3.2_p2-r1.ebuild, +files/procps-3.3.2-ncurses.patch, metadata.xml: + Add some ncurses configure cleanups #400555. *procps-3.3.2_p2 (24 Jan 2012) diff --git a/sys-process/procps/files/procps-3.3.2-ncurses.patch b/sys-process/procps/files/procps-3.3.2-ncurses.patch new file mode 100644 index 000000000000..d717502489a8 --- /dev/null +++ b/sys-process/procps/files/procps-3.3.2-ncurses.patch @@ -0,0 +1,136 @@ +From 1928653399e4aa73a99049c34334d66345ca8b97 Mon Sep 17 00:00:00 2001 +From: Craig Small <csmall@enc.com.au> +Date: Mon, 9 Jan 2012 21:40:53 +1100 +Subject: [PATCH] watch needs a conditonal LDADD + +Makes Debian patch makefile_watch_ncurses redundant. +watch was being linked to NCURSES_LIBS when it should of been +WATCH_NCURSES_LIBS which can be ncursesw with 8bit enabled. +--- + Makefile.am | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/Makefile.am b/Makefile.am +index 06b70ed..0ec2938 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -62,7 +62,7 @@ dist_man_MANS += \ + slabtop_SOURCES = slabtop.c $(top_srcdir)/lib/strutils.c + slabtop_LDADD = @NCURSES_LIBS@ + watch_SOURCES = watch.c $(top_srcdir)/lib/strutils.c +-watch_LDADD = @NCURSES_LIBS@ ++watch_LDADD = @WATCH_NCURSES_LIBS@ + endif + + kill_SOURCES = skill.c $(top_srcdir)/lib/strutils.c +-- +1.7.8.3 + +From b953a2926549a26b185c56de17d15b232368f6d6 Mon Sep 17 00:00:00 2001 +From: Samuli Suominen <ssuominen@gentoo.org> +Date: Tue, 24 Jan 2012 12:11:46 -0500 +Subject: [PATCH] fix basic ncurses check + +The first check for ncurses is for the non-wide variant, so drop the "w". +The wide version gets checked later on based on watch8bit. + +Signed-off-by: Samuli Suominen <ssuominen@gentoo.org> +Signed-off-by: Mike Frysinger <vapier@gentoo.org> +--- + configure.ac | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + + squashed below +-- +1.7.8.3 + +From fd1295e4618ad9711d8af359e097f3162f30ebd0 Mon Sep 17 00:00:00 2001 +From: Mike Frysinger <vapier@gentoo.org> +Date: Tue, 24 Jan 2012 12:15:13 -0500 +Subject: [PATCH] fix AC_ARG_WITH(ncurses) handling + +The third arg is for "the user has specified some flag", not "the user +has disabled things", so use $withval. + +Signed-off-by: Mike Frysinger <vapier@gentoo.org> +--- + configure.ac | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/configure.ac b/configure.ac +index 838d4a4..f6a24a6 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -127,7 +127,7 @@ AC_TRY_COMPILE([#include <argp.h>], + + AC_ARG_WITH([ncurses], + AS_HELP_STRING([--without-ncurses], [build only applications not needing ncurses]), +- [with_ncurses=no], [with_ncurses=yes] ++ [with_ncurses=$withval], [with_ncurses=yes] + ) + + if test "x$with_ncurses" = xno; then +-- +1.7.8.3 + +From 32b74bce18cda251cb1f8d4b1851b1217065eaa3 Mon Sep 17 00:00:00 2001 +From: Mike Frysinger <vapier@gentoo.org> +Date: Tue, 24 Jan 2012 12:40:27 -0500 +Subject: [PATCH] use pkg-config for ncurses by default + +Newer ncurses install pkg-config files, so search those first. If they +aren't found, fall back to existing detection logic. + +Signed-off-by: Mike Frysinger <vapier@gentoo.org> +--- + configure.ac | 23 ++++++++++++++--------- + 1 files changed, 14 insertions(+), 9 deletions(-) + +diff --git a/configure.ac b/configure.ac +index f6a24a6..792222c 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -16,6 +16,7 @@ AC_PROG_CC + AM_PROG_CC_C_O + AC_PROG_INSTALL + AC_PROG_LN_S ++PKG_PROG_PKG_CONFIG + + AC_SUBST([WITH_WATCH8BIT]) + AC_ARG_ENABLE([watch8bit], +@@ -133,19 +134,23 @@ AC_ARG_WITH([ncurses], + if test "x$with_ncurses" = xno; then + AM_CONDITIONAL(WITH_NCURSES, false) + else +- AC_CHECK_LIB(ncursesw, initscr, [have_ncurses=yes], [have_ncurses=no]) +- AC_CHECK_HEADERS(curses.h ncurses.h term.h, [], [have_ncurses=no], AC_INCLUDES_DEFAULT) +- if test "x$have_ncurses" = xno; then +- AC_MSG_ERROR([ncurses support missing/incomplete (for partial build use --without-ncurses)]) +- fi ++ PKG_CHECK_MODULES([NCURSES], [ncurses], [], [ ++ AC_CHECK_LIB(ncurses, initscr, [have_ncurses=yes], [have_ncurses=no]) ++ AC_CHECK_HEADERS(curses.h ncurses.h term.h, [], [have_ncurses=no], AC_INCLUDES_DEFAULT) ++ if test "x$have_ncurses" = xno; then ++ AC_MSG_ERROR([ncurses support missing/incomplete (for partial build use --without-ncurses)]) ++ fi ++ NCURSES_LIBS="-lncurses" ++ ]) + AM_CONDITIONAL(WITH_NCURSES, true) + if test "$enable_watch8bit" = yes; then +- AC_CHECK_LIB([ncursesw], [addwstr], [WATCH_NCURSES_LIBS=-lncursesw], +- [AC_MSG_ERROR([Cannot find ncurses wide library ncursesw with --enable-watch8bit])]) ++ PKG_CHECK_MODULES([NCURSESW], [ncursesw], [WATCH_NCURSES_LIBS="$NCURSESW_LIBS"], [ ++ AC_CHECK_LIB([ncursesw], [addwstr], [WATCH_NCURSES_LIBS=-lncursesw], ++ [AC_MSG_ERROR([Cannot find ncurses wide library ncursesw with --enable-watch8bit])]) ++ ]) + else +- WATCH_NCURSES_LIBS="-lncurses" ++ WATCH_NCURSES_LIBS="$NCURSES_LIBS" + fi +- NCURSES_LIBS="-lncurses" + fi + AC_SUBST([NCURSES_LIBS]) + AC_SUBST([WATCH_NCURSES_LIBS]) +-- +1.7.8.3 + diff --git a/sys-process/procps/metadata.xml b/sys-process/procps/metadata.xml index 96a2d586367d..16e9fa35c44d 100644 --- a/sys-process/procps/metadata.xml +++ b/sys-process/procps/metadata.xml @@ -2,4 +2,7 @@ <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> <herd>base-system</herd> +<use> + <flag name='ncurses'>Build programs that use ncurses: top, slabtop, watch</flag> +</use> </pkgmetadata> diff --git a/sys-process/procps/procps-3.3.2_p2.ebuild b/sys-process/procps/procps-3.3.2_p2-r1.ebuild index befe2a21fce7..dd618c9822fd 100644 --- a/sys-process/procps/procps-3.3.2_p2.ebuild +++ b/sys-process/procps/procps-3.3.2_p2-r1.ebuild @@ -1,10 +1,10 @@ # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-process/procps/procps-3.3.2_p2.ebuild,v 1.1 2012/01/24 06:20:13 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-process/procps/procps-3.3.2_p2-r1.ebuild,v 1.1 2012/01/24 18:40:30 vapier Exp $ EAPI="4" -inherit flag-o-matic eutils toolchain-funcs multilib +inherit eutils toolchain-funcs autotools DEB_VER=${PV#*_p} MY_PV=${PV%_p*} @@ -16,9 +16,11 @@ SRC_URI="mirror://debian/pool/main/p/procps/${PN}_${MY_PV}.orig.tar.gz LICENSE="GPL-2" SLOT="0" KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" -IUSE="static-libs unicode" +IUSE="+ncurses static-libs unicode" -RDEPEND=">=sys-libs/ncurses-5.2-r2[unicode?]" +RDEPEND="ncurses? ( >=sys-libs/ncurses-5.2-r2[unicode?] )" +DEPEND="${RDEPEND} + ncurses? ( dev-util/pkgconfig )" S=${WORKDIR}/${PN}-ng-${MY_PV} @@ -28,13 +30,18 @@ src_prepare() { epatch "${FILESDIR}"/${PN}-3.3.2-noproc.patch epatch "${FILESDIR}"/${PN}-3.3.2-headers.patch + epatch "${FILESDIR}"/${PN}-3.3.2-ncurses.patch #400555 + + eautoreconf } src_configure() { econf \ --exec-prefix="${EPREFIX}/" \ --docdir='$(datarootdir)'/doc/${PF} \ - $(use_enable static-libs static) + $(use_with ncurses) \ + $(use_enable static-libs static) \ + $(use_enable unicode watch8bit) } src_install() { |