From c8b941a09cf8b2d51c7b0c9d66aa0d2eef8e4065 Mon Sep 17 00:00:00 2001 From: Schrijvers Luc Date: Sun, 24 Jun 2018 05:23:44 +0200 Subject: [PATCH] confuse, bump version (#2710) --- dev-libs/confuse/confuse-3.2.1.recipe | 86 +++++++++++++++++++ .../confuse/patches/confuse-3.2.1.patchset | 22 +++++ 2 files changed, 108 insertions(+) create mode 100644 dev-libs/confuse/confuse-3.2.1.recipe create mode 100644 dev-libs/confuse/patches/confuse-3.2.1.patchset diff --git a/dev-libs/confuse/confuse-3.2.1.recipe b/dev-libs/confuse/confuse-3.2.1.recipe new file mode 100644 index 000000000..212e1628b --- /dev/null +++ b/dev-libs/confuse/confuse-3.2.1.recipe @@ -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 +} diff --git a/dev-libs/confuse/patches/confuse-3.2.1.patchset b/dev-libs/confuse/patches/confuse-3.2.1.patchset new file mode 100644 index 000000000..814083294 --- /dev/null +++ b/dev-libs/confuse/patches/confuse-3.2.1.patchset @@ -0,0 +1,22 @@ +From 04010ed74a00018ef65b2b3cdbbadc90ca659f2e Mon Sep 17 00:00:00 2001 +From: begasus +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 +