confuse, bump version (#2710)

This commit is contained in:
Schrijvers Luc
2018-06-24 05:23:44 +02:00
committed by waddlesplash
parent bd6b49cbf2
commit c8b941a09c
2 changed files with 108 additions and 0 deletions

View File

@@ -0,0 +1,86 @@
SUMMARY="A configuration file parser library"
DESCRIPTION="libConfuse is a configuration file parser library, licensed \
under the terms of the ISC license, and written in C. It supports sections \
and (lists of) values (strings, integers, floats, booleans or other \
sections), as well as some other features (such as single/double-quoted \
strings, environment variable expansion, functions and nested include \
statements). It makes it very easy to add configuration file capability to \
a program using a simple API.
The goal of libConfuse is not to be the configuration file parser library \
with a gazillion of features. Instead, it aims to be easy to use and quick to \
integrate with your code. libConfuse was called libcfg before, but its name \
was changed to not confuse itself with other similar libraries."
HOMEPAGE="http://www.nongnu.org/confuse/"
COPYRIGHT="2002-2017 Martin Hedenfalk
2015 Peter Rosin"
LICENSE="ISC"
REVISION="1"
SOURCE_URI="https://github.com/martinh/libconfuse/archive/v$portVersion.tar.gz"
CHECKSUM_SHA256="2eff8e3c300c4ed1d67fdb13f9d31a72a68e31874b4640db15334305bc40cebd"
SOURCE_FILENAME="confuse-$portVersion.tar.gz"
SOURCE_DIR="libconfuse-$portVersion"
PATCHES="confuse-$portVersion.patchset"
ARCHITECTURES="x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
libVersion=2.0.0
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
PROVIDES="
confuse$secondaryArchSuffix = $portVersion
lib:libconfuse$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libiconv$secondaryArchSuffix
lib:libintl$secondaryArchSuffix
"
PROVIDES_devel="
confuse${secondaryArchSuffix}_devel = $portVersion
devel:libconfuse$secondaryArchSuffix = $libVersionCompat
"
REQUIRES_devel="
lib:confuse$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libiconv$secondaryArchSuffix
devel:libintl$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoconf
cmd:autom4te
cmd:automake
cmd:flex
cmd:gcc$secondaryArchSuffix
cmd:libtoolize$secondaryArchSuffix
cmd:make
"
defineDebugInfoPackage confuse$secondaryArchSuffix \
"$libDir"/libconfuse.so.$libVersion
BUILD()
{
export CFLAGS="-D_BSD_SOURCE"
export LDFLAGS="-lbsd"
./autogen.sh
runConfigure ./configure
make
}
INSTALL()
{
make install
prepareInstalledDevelLib libconfuse
packageEntries devel $developDir
}
TEST()
{
make check
}

View File

@@ -0,0 +1,22 @@
From 04010ed74a00018ef65b2b3cdbbadc90ca659f2e Mon Sep 17 00:00:00 2001
From: begasus <begasus@gmail.com>
Date: Mon, 18 Jun 2018 21:43:32 +0200
Subject: import previous patch
diff --git a/configure.ac b/configure.ac
index 5178d36..1735c5a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -8,7 +8,7 @@ AM_MAINTAINER_MODE
AM_INIT_AUTOMAKE([foreign dist-xz])
AM_SILENT_RULES([no])
-AM_CONFIG_HEADER(config.h)
+AC_CONFIG_HEADER(config.h)
AC_CONFIG_SRCDIR(src/confuse.c)
# Checks for programs.
--
2.16.4