[csw-devel] SF.net SVN: gar:[12498] csw/mgar/pkg
dmichelsen at users.sourceforge.net
dmichelsen at users.sourceforge.net
Tue Jan 11 13:32:42 CET 2011
Revision: 12498
http://gar.svn.sourceforge.net/gar/?rev=12498&view=rev
Author: dmichelsen
Date: 2011-01-11 12:32:41 +0000 (Tue, 11 Jan 2011)
Log Message:
-----------
getopt: Initial commit, some minor issues TBD
Added Paths:
-----------
csw/mgar/pkg/getopt/
csw/mgar/pkg/getopt/branches/
csw/mgar/pkg/getopt/tags/
csw/mgar/pkg/getopt/trunk/
csw/mgar/pkg/getopt/trunk/Makefile
csw/mgar/pkg/getopt/trunk/checksums
csw/mgar/pkg/getopt/trunk/files/
csw/mgar/pkg/getopt/trunk/files/0001-Include-locale.h-when-using-gettext.patch
Property changes on: csw/mgar/pkg/getopt/trunk
___________________________________________________________________
Added: svn:ignore
+ cookies
download
work
Added: svn:externals
+ gar https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2
Added: csw/mgar/pkg/getopt/trunk/Makefile
===================================================================
--- csw/mgar/pkg/getopt/trunk/Makefile (rev 0)
+++ csw/mgar/pkg/getopt/trunk/Makefile 2011-01-11 12:32:41 UTC (rev 12498)
@@ -0,0 +1,48 @@
+# $Id$
+NAME = getopt
+VERSION = 1.1.4
+CATEGORIES = lib
+
+DESCRIPTION = Help shell scripts parse command-line parameters
+define BLURB
+endef
+
+# TBD:
+# - The existing package uses ggetopt instead of getopt everywhere
+# - The existing package is linked against CSWggettext and CSWlibiconv
+
+MASTER_SITES = http://software.frodo.looijaard.name/getopt/files/
+DISTFILES = $(DISTNAME).tar.gz
+
+PATCHFILES = 0001-Include-locale.h-when-using-gettext.patch
+
+# File name regex to get notifications about upstream software releases
+UFILES_REGEX = $(NAME)-(\d+(?:\.\d+)*).tar.gz
+
+PACKAGES = CSWggetopt
+CATALOGNAME = ggetopt
+
+VENDOR_URL = http://software.frodo.looijaard.name/getopt/
+
+# No scipt there...
+CONFIGURE_SCRIPTS =
+
+BUILD_OVERRIDE_VARS = prefix CC CFLAGS LIBCGETOPT
+BUILD_OVERRIDE_VAR_prefix = $(prefix)
+BUILD_OVERRIDE_VAR_CC = $(CC)
+BUILD_OVERRIDE_VAR_CFLAGS = $(CFLAGS)
+BUILD_OVERRIDE_VAR_LIBCGETOPT = 0
+
+TEST_TARGET =
+
+INSTALL_OVERRIDE_VARS = prefix mandir WITH_GETTEXT
+INSTALL_OVERRIDE_VAR_prefix = $(prefix)
+INSTALL_OVERRIDE_VAR_mandir = $(mandir)
+INSTALL_OVERRIDE_VAR_WITH_GETTEXT = 1
+
+INSTALL_ARGS = install install_doc
+
+include gar/category.mk
+
+# Use correct version of 'install'
+PATH := /opt/csw/gnu:$(PATH)
Property changes on: csw/mgar/pkg/getopt/trunk/Makefile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: csw/mgar/pkg/getopt/trunk/checksums
===================================================================
--- csw/mgar/pkg/getopt/trunk/checksums (rev 0)
+++ csw/mgar/pkg/getopt/trunk/checksums 2011-01-11 12:32:41 UTC (rev 12498)
@@ -0,0 +1 @@
+02188ca68da27c4175d6e9f3da732101 getopt-1.1.4.tar.gz
Added: csw/mgar/pkg/getopt/trunk/files/0001-Include-locale.h-when-using-gettext.patch
===================================================================
--- csw/mgar/pkg/getopt/trunk/files/0001-Include-locale.h-when-using-gettext.patch (rev 0)
+++ csw/mgar/pkg/getopt/trunk/files/0001-Include-locale.h-when-using-gettext.patch 2011-01-11 12:32:41 UTC (rev 12498)
@@ -0,0 +1,27 @@
+From 93ded6e9eb0d0e84ea9ae9cda8c70af71a48d688 Mon Sep 17 00:00:00 2001
+From: Dagobert Michelsen <dam at opencsw.org>
+Date: Tue, 11 Jan 2011 13:18:09 +0100
+Subject: [PATCH] Include locale.h when using gettext
+
+---
+ getopt.c | 4 ++++
+ 1 files changed, 4 insertions(+), 0 deletions(-)
+
+diff --git a/getopt.c b/getopt.c
+index 10396a0..43e49dd 100644
+--- a/getopt.c
++++ b/getopt.c
+@@ -44,6 +44,10 @@
+ #include <string.h>
+ #include <unistd.h>
+ #include <ctype.h>
++#if WITHOUT_GETTEXT
++#else
++#include <locale.h>
++#endif
+
+ #if LIBCGETOPT
+ #include <getopt.h>
+--
+1.7.3.2
+
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the devel
mailing list