Skip to contentSkip to conversation

svn commit: trunk/buildroot/package/grep

Buildroot jacmet at uclibc.org 2 participants 3 messages Jul 23, 2008

lore
Share & tools
lore
#0 lore raw

Author: jacmet
Date: 2008-07-23 03:35:53 -0700 (Wed, 23 Jul 2008) New Revision: 22930

Log:
grep: gettext/libintl is only required if locale is enabled

Modified:
trunk/buildroot/package/grep/Config.in
trunk/buildroot/package/grep/grep.mk

Changeset:
Modified: trunk/buildroot/package/grep/Config.in
===================================================================

buildroot/package/grep/Config.in +3 -3
@@ -1,8 +1,8 @@
 config BR2_PACKAGE_GREP
 	bool "grep"
-	select BR2_PACKAGE_GETTEXT
-	select BR2_PACKAGE_LIBINTL
+	select BR2_PACKAGE_GETTEXT if BR2_ENABLE_LOCALE
+	select BR2_PACKAGE_LIBINTL if BR2_ENABLE_LOCALE
 	help
 	  The GNU regular expression matcher.
-	  Needs gettext
+
 	  http://www.gnu.org/software/grep/grep.html

Modified: trunk/buildroot/package/grep/grep.mk
===================================================================

buildroot/package/grep/grep.mk +5 -1
@@ -11,6 +11,10 @@
 GNUGREP_BINARY:=src/grep
 GNUGREP_TARGET_BINARY:=bin/grep
 
+ifeq ($(BR2_ENABLE_LOCALE),y)
+GNUGREP_EXTRA_DEPS:=gettext libintl
+endif
+
 $(DL_DIR)/$(GNUGREP_SOURCE):
 	 $(WGET) -P $(DL_DIR) $(GNUGREP_SITE)/$(GNUGREP_SOURCE)
 
@@ -65,7 +69,7 @@
 	    cp -a $(GNUGREP_DIR)/src/grep $(GNUGREP_DIR)/src/egrep \
 		$(GNUGREP_DIR)/src/fgrep $(TARGET_DIR)/bin/; fi
 
-grep: uclibc gettext libintl grep-target_binary
+grep: uclibc $(GNUGREP_EXTRA_DEPS) grep-target_binary
 
 grep-clean:
 	$(MAKE) DESTDIR=$(TARGET_DIR) -C $(GNUGREP_DIR) uninstall
#1 lore raw
Quoted 46 lines · jacmet at uclibc.org

Author: jacmet
Date: 2008-07-23 03:35:53 -0700 (Wed, 23 Jul 2008) New Revision: 22930

Log:
grep: gettext/libintl is only required if locale is enabled

Modified:
trunk/buildroot/package/grep/Config.in
trunk/buildroot/package/grep/grep.mk

Changeset:
Modified: trunk/buildroot/package/grep/Config.in
===================================================================

buildroot/package/grep/Config.in +0 -0
@@ -1,8 +1,8 @@

config BR2_PACKAGE_GREP
bool "grep"

buildroot/package/grep/Config.in +2 -2
-	select BR2_PACKAGE_GETTEXT
-	select BR2_PACKAGE_LIBINTL
+	select BR2_PACKAGE_GETTEXT if BR2_ENABLE_LOCALE
+	select BR2_PACKAGE_LIBINTL if BR2_ENABLE_LOCALE

help
The GNU regular expression matcher.

buildroot/package/grep/Config.in +1 -1
-	  Needs gettext
+

http://www.gnu.org/software/grep/grep.html

Modified: trunk/buildroot/package/grep/grep.mk
===================================================================

buildroot/package/grep/grep.mk +0 -0
@@ -11,6 +11,10 @@

GNUGREP_BINARY:=src/grep
GNUGREP_TARGET_BINARY:=bin/grep

buildroot/package/grep/grep.mk +4 -0
+ifeq ($(BR2_ENABLE_LOCALE),y)
+GNUGREP_EXTRA_DEPS:=gettext libintl
+endif
+

$(DL_DIR)/$(GNUGREP_SOURCE):

	 $(WGET) -P $(DL_DIR) $(GNUGREP_SITE)/$(GNUGREP_SOURCE)

buildroot/package/grep/grep.mk line 72

Quoted 5 lines
buildroot/package/grep/grep.mk +1 -1
@@ -65,7 +69,7 @@
 	    cp -a $(GNUGREP_DIR)/src/grep $(GNUGREP_DIR)/src/egrep \
 		$(GNUGREP_DIR)/src/fgrep $(TARGET_DIR)/bin/; fi
 
-grep: uclibc gettext libintl grep-target_binary
+grep: uclibc $(GNUGREP_EXTRA_DEPS) grep-target_binary
grep: uclibc $(if $(BR2_ENABLE_LOCALE),gettext libintl) \
	$(TARGET_DIR)/$(GNUGREP_TARGET_BINARY)

would have been less chatty, fwiw.

Quoted 3 lines

grep-clean:

	$(MAKE) DESTDIR=$(TARGET_DIR) -C $(GNUGREP_DIR) uninstall
#2 lore raw
Quoted 3 lines

buildroot/package/grep/grep.mk line 72

Quoted 3 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Bernhard" == Bernhard Fischer <[email protected]> writes:

buildroot/package/grep/grep.mk +1 -1
-grep: uclibc gettext libintl grep-target_binary
+grep: uclibc $(GNUGREP_EXTRA_DEPS) grep-target_binary

Bernhard> grep: uclibc $(if $(BR2_ENABLE_LOCALE),gettext libintl) \
Bernhard> $(TARGET_DIR)/$(GNUGREP_TARGET_BINARY)

Bernhard> would have been less chatty, fwiw.

True. It does make for a pretty long line though - Fixed.

Thanks.

Signature · 1 line
Bye, Peter Korsgaard