[csw-devel] SF.net SVN: gar:[16267] csw/mgar/pkg/libconfuse/trunk
dmichelsen at users.sourceforge.net
dmichelsen at users.sourceforge.net
Thu Nov 24 21:34:01 CET 2011
Revision: 16267
http://gar.svn.sourceforge.net/gar/?rev=16267&view=rev
Author: dmichelsen
Date: 2011-11-24 20:34:00 +0000 (Thu, 24 Nov 2011)
Log Message:
-----------
libconfuse/trunk: Rework package split
Modified Paths:
--------------
csw/mgar/pkg/libconfuse/trunk/Makefile
Removed Paths:
-------------
csw/mgar/pkg/libconfuse/trunk/files/setopt.diff
Modified: csw/mgar/pkg/libconfuse/trunk/Makefile
===================================================================
--- csw/mgar/pkg/libconfuse/trunk/Makefile 2011-11-24 18:02:22 UTC (rev 16266)
+++ csw/mgar/pkg/libconfuse/trunk/Makefile 2011-11-24 20:34:00 UTC (rev 16267)
@@ -2,18 +2,7 @@
VERSION = 2.7
CATEGORIES = lib
-PACKAGING_PLATFORMS = solaris10-sparc solaris10-i386
-
-# For libConfuse 2.7, the test suite doesn't compile cleanly on Solaris,
-# so we skip it. This should be re-assessed with each new release
-# from upstream. Proposed fixes for the test suite to be submitted
-# upstream.
-ifeq ($(VERSION),2.7)
-#TEST_TARGET = check
-TEST_SCRIPTS =
-endif
-
-DESCRIPTION = a configuration file parser library
+DESCRIPTION = A configuration file parser library
define BLURB
libConfuse is a configuration file parser library, licensed under
the terms of the ISC license, and written in C. It supports sections
@@ -24,32 +13,34 @@
to a program using a simple API.
endef
-#MASTER_SITES = http://bzero.se/confuse/
MASTER_SITES = http://savannah.nongnu.org/download/confuse/
-PATCHFILES =
-DISTFILES = confuse-$(VERSION).tar.gz
-DISTFILES += $(PATCHFILES)
DISTNAME = confuse-$(VERSION)
+DISTFILES += $(DISTNAME).tar.gz
-EXTRA_DOCS = $(PATCHFILES)
+PACKAGING_PLATFORMS = solaris10-sparc solaris10-i386
-PACKAGES += CSWlibconfuse0-1
-SPKG_DESC_CSWlibconfuse0-1 = a configuration file parser library
+LICENSE = AUTHORS
-PACKAGES += CSWlibconfuse0-dev
-SPKG_DESC_CSWlibconfuse0-dev = Development files for libconfuse
-RUNTIME_DEP_PKGS_CSWlibconfuse0-dev = CSWlibconfuse0-1
+PACKAGES += CSWlibconfuse0
+SPKG_DESC_CSWlibconfuse0 = A configuration file parser library, libconfuse.so.0
+PKGFILES_CSWlibconfuse0 += $(call pkgfiles_lib,libconfuse.so.0)
+OBSOLETED_BY_CSWlibconfuse0 += CSWlibconfuse
-# We define upstream file regex so we can be notifed of new upstream software release
-UFILES_REGEX = $(NAME)-(\d+(?:\.\d+)*).tar.gz
+PACKAGES += CSWlibconfuse-dev
+SPKG_DESC_CSWlibconfuse-dev = Development files for libconfuse.so.0
+# PKGFILES is catchall
+RUNTIME_DEP_PKGS_CSWlibconfuse-dev += CSWlibconfuse0
-# If the url used to check for software update is different of MASTER_SITES, then
-# uncomment the next line. Otherwise it is set by default to the value of MASTER_SITES
-# UPSTREAM_MASTER_SITES =
-
BUILD64 = 1
CONFIGURE_ARGS = $(DIRPATHS)
CONFIGURE_ARGS += --enable-shared --disable-nls
+# For libConfuse 2.7, the test suite doesn't compile cleanly on Solaris,
+# so we skip it. This should be re-assessed with each new release
+# from upstream. Proposed fixes for the test suite to be submitted
+# upstream.
+SKIPTEST-2.7 = 1
+SKIPTEST = $(SKIPTEST-$(VERSION))
+
include gar/category.mk
Deleted: csw/mgar/pkg/libconfuse/trunk/files/setopt.diff
===================================================================
--- csw/mgar/pkg/libconfuse/trunk/files/setopt.diff 2011-11-24 18:02:22 UTC (rev 16266)
+++ csw/mgar/pkg/libconfuse/trunk/files/setopt.diff 2011-11-24 20:34:00 UTC (rev 16267)
@@ -1,39 +0,0 @@
---- confuse-2.6/src/confuse.c (revision x)
-+++ confuse-2.6/src/confuse.c (revision y)
-@@ -65,7 +65,6 @@
-
- static int cfg_parse_internal(cfg_t *cfg, int level,
- int force_state, cfg_opt_t *force_opt);
--static cfg_value_t *cfg_setopt(cfg_t *cfg, cfg_opt_t *opt, char *value);
-
- #define STATE_CONTINUE 0
- #define STATE_EOF -1
-@@ -531,7 +530,7 @@
- }
- }
-
--static cfg_value_t *cfg_setopt(cfg_t *cfg, cfg_opt_t *opt, char *value)
-+DLLIMPORT cfg_value_t *cfg_setopt(cfg_t *cfg, cfg_opt_t *opt, char *value)
- {
- cfg_value_t *val = 0;
- int b;
---- confuse-2.6/src/confuse.h (revision x)
-+++ confuse-2.6/src/confuse.h (revision y)
-@@ -839,6 +839,16 @@
- */
- DLLIMPORT int __export cfg_parse_boolean(const char *s);
-
-+/** Set an option (create an instance of an option).
-+ *
-+ * @param cfg The configuration file context.
-+ * @param opt The option definition.
-+ * @param value The initial value for the option.
-+ *
-+ * @return Returns a pointer to the value object.
-+ */
-+DLLIMPORT cfg_value_t __export *cfg_setopt(cfg_t *cfg, cfg_opt_t *opt, char *value);
-+
- /** Return an option given it's name.
- *
- * @param cfg The configuration file context.
-
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