[Lunar-commits] <moonbase> powertop: add optional ncursesw

Paul Bredbury brebs at lunar-linux.org
Mon Mar 14 19:11:51 CET 2011


commit c57884f9bc581188ef812530a3d37ca12c74b31b
Author: Paul Bredbury <brebs at lunar-linux.org>
Date:   Tue Mar 15 01:11:51 2011 +0700

    powertop: add optional ncursesw
---
 utils/powertop/BUILD   |    5 ++++-
 utils/powertop/DEPENDS |    4 +++-
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/utils/powertop/BUILD b/utils/powertop/BUILD
index cdfb077..4207c18 100644
--- a/utils/powertop/BUILD
+++ b/utils/powertop/BUILD
@@ -1,6 +1,9 @@
 (
 
-  sedit  "s:ncursesw:ncurses:"  Makefile  &&
+  if ! in_depends $MODULE ncursesw ; then
+    sedit "s:ncursesw:ncurses:" Makefile
+  fi &&
+
   default_make
 
 ) > $C_FIFO 2>&1
diff --git a/utils/powertop/DEPENDS b/utils/powertop/DEPENDS
index 83c591a..e72f999 100644
--- a/utils/powertop/DEPENDS
+++ b/utils/powertop/DEPENDS
@@ -1,2 +1,4 @@
-depends  ncurses
+depends ncurses
 
+# http://www.mail-archive.com/power@bughost.org/msg01438.html
+optional_depends ncursesw "" "" "for languages other than English"


More information about the Lunar-commits mailing list