Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] Introduce argtable2 support.
@ 2011-06-13 12:14 Robin Holt
  2011-06-21 13:53 ` Robin Holt
  2011-07-12 20:50 ` Peter Korsgaard
  0 siblings, 2 replies; 4+ messages in thread
From: Robin Holt @ 2011-06-13 12:14 UTC (permalink / raw)
  To: buildroot


The argtable2 sourceforge project provides easy parsing of command line
options and file contents.

Signed-off-by: Robin Holt <holt@sgi.com>
---

I added libargtable2 into the Packages->Libraries->Other.  Its purpose
is to parse text.  It is really not of the clase of the other libraries
in libraries->Text...  If you would rather have it there, please change
it for me or let me know and I will change it.


 package/Config.in                 |    1 +
 package/argtable2/Config.in       |    7 +++++++
 package/argtable2/libargtable2.mk |   31 +++++++++++++++++++++++++++++++
 3 files changed, 39 insertions(+), 0 deletions(-)
 create mode 100644 package/argtable2/Config.in
 create mode 100644 package/argtable2/libargtable2.mk

diff --git a/package/Config.in b/package/Config.in
index 10d435c..e52ee33 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -329,6 +329,7 @@ source "package/libupnp/Config.in"
 endmenu
 
 menu "Other"
+source "package/argtable2/Config.in"
 source "package/argp-standalone/Config.in"
 source "package/libatomic_ops/Config.in"
 source "package/libcap/Config.in"
diff --git a/package/argtable2/Config.in b/package/argtable2/Config.in
new file mode 100644
index 0000000..42d067b
--- /dev/null
+++ b/package/argtable2/Config.in
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_LIBARGTABLE2
+	bool "libargtable2"
+	help
+	  A greatly simplified and yet quite robust argument parsing
+	  set of library calls.
+
+	  http://argtable.sourceforge.net/
diff --git a/package/argtable2/libargtable2.mk b/package/argtable2/libargtable2.mk
new file mode 100644
index 0000000..79cfce8
--- /dev/null
+++ b/package/argtable2/libargtable2.mk
@@ -0,0 +1,31 @@
+#############################################################
+#
+# argtable2 from sourceforge
+#
+#############################################################
+
+LIBARGTABLE2_VERSION = 13
+LIBARGTABLE2_SOURCE = argtable2-$(LIBARGTABLE2_VERSION).tar.gz
+LIBARGTABLE2_SITE = http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/argtable/
+
+LIBARGTABLE2_INSTALL_STAGING = YES
+LIBARGTABLE2_CONF_OPT= --program-prefix="" \
+		--enable-shared \
+		--enable-static \
+		--disable-nls \
+		--disable-example \
+		--disable-kernel-module \
+		--enable-lib \
+		--enable-util
+
+define LIBARGTABLE2_INSTALL_TARGET_CMDS
+	cp -dpf $(STAGING_DIR)/usr/lib/libargtable2.so* $(TARGET_DIR)/usr/lib/
+endef
+
+define LIBARGTABLE2_CLEAN_CMDS
+	-$(MAKE) -C $(@D) DESTDIR=$(STAGING_DIR) uninstall
+	-$(MAKE) -C $(@D) clean
+	rm -f $(TARGET_DIR)/usr/lib/libargtable2.so*
+endef
+
+$(eval $(call AUTOTARGETS,package,libargtable2))

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH] Introduce argtable2 support.
  2011-06-13 12:14 [Buildroot] [PATCH] Introduce argtable2 support Robin Holt
@ 2011-06-21 13:53 ` Robin Holt
  2011-06-21 14:01   ` Peter Korsgaard
  2011-07-12 20:50 ` Peter Korsgaard
  1 sibling, 1 reply; 4+ messages in thread
From: Robin Holt @ 2011-06-21 13:53 UTC (permalink / raw)
  To: buildroot

Peter,

Did I submit patch the wrong way?  What is the norm for submitting
patches to this list?  Should I have sent it to a particular
person?

Thanks,
Robin Holt

On Mon, Jun 13, 2011 at 07:14:05AM -0500, Robin Holt wrote:
> 
> The argtable2 sourceforge project provides easy parsing of command line
> options and file contents.
> 
> Signed-off-by: Robin Holt <holt@sgi.com>
> ---
> 
> I added libargtable2 into the Packages->Libraries->Other.  Its purpose
> is to parse text.  It is really not of the clase of the other libraries
> in libraries->Text...  If you would rather have it there, please change
> it for me or let me know and I will change it.
> 
> 
>  package/Config.in                 |    1 +
>  package/argtable2/Config.in       |    7 +++++++
>  package/argtable2/libargtable2.mk |   31 +++++++++++++++++++++++++++++++
>  3 files changed, 39 insertions(+), 0 deletions(-)
>  create mode 100644 package/argtable2/Config.in
>  create mode 100644 package/argtable2/libargtable2.mk
> 
> diff --git a/package/Config.in b/package/Config.in
> index 10d435c..e52ee33 100644
> --- a/package/Config.in
> +++ b/package/Config.in
> @@ -329,6 +329,7 @@ source "package/libupnp/Config.in"
>  endmenu
>  
>  menu "Other"
> +source "package/argtable2/Config.in"
>  source "package/argp-standalone/Config.in"
>  source "package/libatomic_ops/Config.in"
>  source "package/libcap/Config.in"
> diff --git a/package/argtable2/Config.in b/package/argtable2/Config.in
> new file mode 100644
> index 0000000..42d067b
> --- /dev/null
> +++ b/package/argtable2/Config.in
> @@ -0,0 +1,7 @@
> +config BR2_PACKAGE_LIBARGTABLE2
> +	bool "libargtable2"
> +	help
> +	  A greatly simplified and yet quite robust argument parsing
> +	  set of library calls.
> +
> +	  http://argtable.sourceforge.net/
> diff --git a/package/argtable2/libargtable2.mk b/package/argtable2/libargtable2.mk
> new file mode 100644
> index 0000000..79cfce8
> --- /dev/null
> +++ b/package/argtable2/libargtable2.mk
> @@ -0,0 +1,31 @@
> +#############################################################
> +#
> +# argtable2 from sourceforge
> +#
> +#############################################################
> +
> +LIBARGTABLE2_VERSION = 13
> +LIBARGTABLE2_SOURCE = argtable2-$(LIBARGTABLE2_VERSION).tar.gz
> +LIBARGTABLE2_SITE = http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/argtable/
> +
> +LIBARGTABLE2_INSTALL_STAGING = YES
> +LIBARGTABLE2_CONF_OPT= --program-prefix="" \
> +		--enable-shared \
> +		--enable-static \
> +		--disable-nls \
> +		--disable-example \
> +		--disable-kernel-module \
> +		--enable-lib \
> +		--enable-util
> +
> +define LIBARGTABLE2_INSTALL_TARGET_CMDS
> +	cp -dpf $(STAGING_DIR)/usr/lib/libargtable2.so* $(TARGET_DIR)/usr/lib/
> +endef
> +
> +define LIBARGTABLE2_CLEAN_CMDS
> +	-$(MAKE) -C $(@D) DESTDIR=$(STAGING_DIR) uninstall
> +	-$(MAKE) -C $(@D) clean
> +	rm -f $(TARGET_DIR)/usr/lib/libargtable2.so*
> +endef
> +
> +$(eval $(call AUTOTARGETS,package,libargtable2))

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH] Introduce argtable2 support.
  2011-06-21 13:53 ` Robin Holt
@ 2011-06-21 14:01   ` Peter Korsgaard
  0 siblings, 0 replies; 4+ messages in thread
From: Peter Korsgaard @ 2011-06-21 14:01 UTC (permalink / raw)
  To: buildroot

>>>>> "Robin" == Robin Holt <holt@sgi.com> writes:

 Robin> Peter,
 Robin> Did I submit patch the wrong way?  What is the norm for submitting
 Robin> patches to this list?  Should I have sent it to a particular
 Robin> person?

No, this is fine, I just have quite a big backlog of buildroot mails
because of real life stuff. I'll get to your patch (hopefully soon).

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH] Introduce argtable2 support.
  2011-06-13 12:14 [Buildroot] [PATCH] Introduce argtable2 support Robin Holt
  2011-06-21 13:53 ` Robin Holt
@ 2011-07-12 20:50 ` Peter Korsgaard
  1 sibling, 0 replies; 4+ messages in thread
From: Peter Korsgaard @ 2011-07-12 20:50 UTC (permalink / raw)
  To: buildroot

>>>>> "Robin" == Robin Holt <holt@sgi.com> writes:

 Robin> The argtable2 sourceforge project provides easy parsing of command line
 Robin> options and file contents.

Thanks, committed with minor tweaks/cleanups.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-07-12 20:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-13 12:14 [Buildroot] [PATCH] Introduce argtable2 support Robin Holt
2011-06-21 13:53 ` Robin Holt
2011-06-21 14:01   ` Peter Korsgaard
2011-07-12 20:50 ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox