add libconf with perl patch
git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@1526 6952d904-891a-0410-993b-d76249ca496b
This commit is contained in:
parent
fa9939870d
commit
8217ec13b5
209
dev-util/libconf/ChangeLog
Normal file
209
dev-util/libconf/ChangeLog
Normal file
@ -0,0 +1,209 @@
|
|||||||
|
# ChangeLog for dev-util/libconf
|
||||||
|
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/dev-util/libconf/ChangeLog,v 1.48 2009/07/02 23:57:49 jer Exp $
|
||||||
|
|
||||||
|
02 Jul 2009; Jeroen Roovers <jer@gentoo.org> libconf-0.42.10-r1.ebuild:
|
||||||
|
Marked ~hppa too.
|
||||||
|
|
||||||
|
29 Feb 2008; Brent Baude <ranger@gentoo.org> libconf-0.42.10-r1.ebuild:
|
||||||
|
keyworded ~arch for ppc64, bug 211757
|
||||||
|
|
||||||
|
09 Feb 2007; Damien Krotkine <dams@gentoo.org> libconf-0.42.10-r1.ebuild:
|
||||||
|
corrected homepage. bug #166128
|
||||||
|
|
||||||
|
18 Jan 2007; Damien Krotkine <dams@gentoo.org> libconf-0.42.10-r1.ebuild:
|
||||||
|
corrected SRC_URI, corrected copyright date
|
||||||
|
|
||||||
|
18 Jan 2007; Damien Krotkine <dams@gentoo.org> libconf-0.40.00.ebuild:
|
||||||
|
corrected SRC_URI, corrected copyright date
|
||||||
|
|
||||||
|
28 Nov 2006; Tiziano Müller <dev-zero@gentoo.org>
|
||||||
|
+files/0.42.10-fbsd.patch, libconf-0.42.10-r1.ebuild:
|
||||||
|
Added fixes and patch for FreeBSD. ~x86-fbsd keyword added.
|
||||||
|
|
||||||
|
28 Nov 2006; Tiziano Müller <dev-zero@gentoo.org>
|
||||||
|
-libconf-0.42.00.ebuild, -libconf-0.42.00-r1.ebuild,
|
||||||
|
-libconf-0.42.10.ebuild, libconf-0.42.10-r1.ebuild:
|
||||||
|
Dropped old versions. Cleaned up the ebuild.
|
||||||
|
|
||||||
|
07 Jun 2006; Damien Krotkine <dams@gentoo.org> libconf-0.40.00.ebuild:
|
||||||
|
added xml IUSE, bug #135972
|
||||||
|
|
||||||
|
02 Mar 2006; Damien Krotkine <dams@gentoo.org> +libconf-0.42.10-r1.ebuild:
|
||||||
|
correcting bug #118123
|
||||||
|
|
||||||
|
*libconf-0.42.10-r1 (02 Mar 2006)
|
||||||
|
|
||||||
|
02 Mar 2006; Damien Krotkine <dams@gentoo.org> +libconf-0.42.10-r1.ebuild:
|
||||||
|
correcting
|
||||||
|
|
||||||
|
14 Dec 2005; Damien Krotkine <dams@gentoo.org> libconf-0.42.10.ebuild:
|
||||||
|
setting DESTDIR when installing (bug #115469)
|
||||||
|
|
||||||
|
26 Nov 2005; Tom Martin <slarti@gentoo.org> libconf-0.42.10.ebuild:
|
||||||
|
Multilib fix -- ebuild will install to a multilib-strict environment now.
|
||||||
|
Also, remove call to make check in src_compile.
|
||||||
|
|
||||||
|
23 Nov 2005; Luis Medinas <metalgod@gentoo.org> libconf-0.40.00.ebuild:
|
||||||
|
Stable on amd64. Fixing bug #113291.
|
||||||
|
|
||||||
|
*libconf-0.42.10 (22 Nov 2005)
|
||||||
|
|
||||||
|
22 Nov 2005; Damien Krotkine <dams@gentoo.org> +libconf-0.42.10.ebuild:
|
||||||
|
cleaned old version, version bump, added python binding compilation
|
||||||
|
|
||||||
|
*libconf-0.42.00-r1 (20 Nov 2005)
|
||||||
|
|
||||||
|
20 Nov 2005; Damien Krotkine <dams@gentoo.org> +libconf-0.42.00-r1.ebuild:
|
||||||
|
removed stupid reference to wxwidgets
|
||||||
|
|
||||||
|
*libconf-0.42.00 (18 Nov 2005)
|
||||||
|
|
||||||
|
18 Nov 2005; Damien Krotkine <dams@gentoo.org> +libconf-0.42.00.ebuild:
|
||||||
|
version bump : python, ruby, bash bindings, xml support
|
||||||
|
|
||||||
|
30 Oct 2005; Jason Wever <weeve@gentoo.org> libconf-0.40.00.ebuild:
|
||||||
|
Stable on SPARC.
|
||||||
|
|
||||||
|
02 Oct 2005; Aron Griffis <agriffis@gentoo.org> libconf-0.40.00.ebuild:
|
||||||
|
Mark 0.40.00 stable on ia64
|
||||||
|
|
||||||
|
10 Sep 2005; Aron Griffis <agriffis@gentoo.org> libconf-0.40.00.ebuild:
|
||||||
|
Mark 0.40.00 stable on alpha
|
||||||
|
|
||||||
|
03 Sep 2005; Markus Rothe <corsair@gentoo.org> libconf-0.40.00.ebuild:
|
||||||
|
Stable on ppc64
|
||||||
|
|
||||||
|
*libconf-0.40.00 (27 Aug 2005)
|
||||||
|
|
||||||
|
27 Aug 2005; Damien Krotkine <dams@gentoo.org> +libconf-0.40.00.ebuild:
|
||||||
|
major version bump
|
||||||
|
|
||||||
|
23 Aug 2005; Aron Griffis <agriffis@gentoo.org> libconf-0.39.21.ebuild:
|
||||||
|
stable on ia64
|
||||||
|
|
||||||
|
12 Jul 2005; Simon Stelling <blubb@gentoo.org> libconf-0.39.21.ebuild:
|
||||||
|
stable on amd64
|
||||||
|
|
||||||
|
*libconf-0.39.21 (20 Jun 2005)
|
||||||
|
|
||||||
|
20 Jun 2005; <dams@gentoo.org> +libconf-0.39.21.ebuild:
|
||||||
|
new version
|
||||||
|
|
||||||
|
02 Jun 2005; <dams@gentoo.org> libconf-0.39.18.ebuild:
|
||||||
|
marked stable on ppc64
|
||||||
|
|
||||||
|
*libconf-0.39.18 (02 Jun 2005)
|
||||||
|
|
||||||
|
02 Jun 2005; <dams@gentoo.org> +libconf-0.39.18.ebuild:
|
||||||
|
new version
|
||||||
|
|
||||||
|
*libconf-0.39.16 (08 May 2005)
|
||||||
|
|
||||||
|
08 May 2005; <dams@gentoo.org> +libconf-0.39.16.ebuild:
|
||||||
|
version bump
|
||||||
|
|
||||||
|
*libconf-0.39.15 (08 May 2005)
|
||||||
|
|
||||||
|
08 May 2005; <dams@gentoo.org> +libconf-0.39.15.ebuild:
|
||||||
|
version bump
|
||||||
|
|
||||||
|
*libconf-0.39.14 (07 May 2005)
|
||||||
|
|
||||||
|
07 May 2005; <dams@gentoo.org> +libconf-0.39.14.ebuild:
|
||||||
|
version bump
|
||||||
|
|
||||||
|
01 Apr 2005; Aron Griffis <agriffis@gentoo.org> libconf-0.39.8.ebuild:
|
||||||
|
stable on ia64
|
||||||
|
|
||||||
|
*libconf-0.39.13 (29 Mar 2005)
|
||||||
|
|
||||||
|
29 Mar 2005; <dams@gentoo.org> +libconf-0.39.13.ebuild:
|
||||||
|
version 0.39.13 : xml import/export, resolv template correction
|
||||||
|
|
||||||
|
*libconf-0.39.12 (21 Mar 2005)
|
||||||
|
|
||||||
|
21 Mar 2005; <dams@gentoo.org> +libconf-0.39.12.ebuild:
|
||||||
|
version 0.39.12
|
||||||
|
|
||||||
|
07 Mar 2005; Markus Rothe <corsair@gentoo.org> libconf-0.39.8.ebuild:
|
||||||
|
Stable on ppc64
|
||||||
|
|
||||||
|
*libconf-0.39.11 (19 Feb 2005)
|
||||||
|
|
||||||
|
19 Feb 2005; <dams@gentoo.org> +libconf-0.39.11.ebuild:
|
||||||
|
version 0.39.11, command line tool correction
|
||||||
|
|
||||||
|
*libconf-0.39.10 (17 Feb 2005)
|
||||||
|
|
||||||
|
17 Feb 2005; <dams@gentoo.org> +libconf-0.39.10.ebuild:
|
||||||
|
correcting a multiple filehandlers bug
|
||||||
|
|
||||||
|
*libconf-0.39.9 (15 Feb 2005)
|
||||||
|
|
||||||
|
15 Feb 2005; <dams@gentoo.org> +libconf-0.39.9.ebuild:
|
||||||
|
version 0.39.9
|
||||||
|
|
||||||
|
*libconf-0.39.8 (24 Jan 2005)
|
||||||
|
|
||||||
|
24 Jan 2005; <dams@gentoo.org> +libconf-0.39.8.ebuild:
|
||||||
|
typo
|
||||||
|
|
||||||
|
24 Jan 2005; <dams@gentoo.org> :
|
||||||
|
- true-shell use debug
|
||||||
|
- new feature : xml import and export
|
||||||
|
|
||||||
|
*libconf-0.39.7 (17 Jan 2005)
|
||||||
|
|
||||||
|
17 Jan 2005; <dams@gentoo.org> +libconf-0.39.7.ebuild:
|
||||||
|
- the Shell template can now use a true shell binary to use shell
|
||||||
|
interpretation
|
||||||
|
|
||||||
|
*libconf-0.39.6 (07 Jan 2005)
|
||||||
|
|
||||||
|
07 Jan 2005; <dams@gentoo.org> +libconf-0.39.6.ebuild:
|
||||||
|
. version 0.39.6
|
||||||
|
. corrected 2005 copyrights
|
||||||
|
|
||||||
|
*libconf-0.39.5 (08 Dec 2004)
|
||||||
|
|
||||||
|
08 Dec 2004; <dams@gentoo.org> +libconf-0.39.5.ebuild:
|
||||||
|
version 0.39.5, needed for latest profuse
|
||||||
|
|
||||||
|
*libconf-0.39.4 (30 Nov 2004)
|
||||||
|
|
||||||
|
30 Nov 2004; <dams@gentoo.org> +libconf-0.39.4.ebuild:
|
||||||
|
version 0.39.4
|
||||||
|
|
||||||
|
26 Nov 2004; <dams@gentoo.org> :
|
||||||
|
version 0.39.3
|
||||||
|
|
||||||
|
*libconf-0.39.2 (14 Nov 2004)
|
||||||
|
|
||||||
|
14 Nov 2004; <dams@gentoo.org> +libconf-0.39.2.ebuild:
|
||||||
|
version 0.39.2, required for profuse
|
||||||
|
|
||||||
|
*libconf-0.39.1 (19 Oct 2004)
|
||||||
|
|
||||||
|
19 Oct 2004; <dams@gentoo.org> +libconf-0.39.1.ebuild:
|
||||||
|
version 0.39.1 (corrects etags bug, thanks pylon)
|
||||||
|
|
||||||
|
*libconf-0.39_alpha (10 Oct 2004)
|
||||||
|
|
||||||
|
10 Oct 2004; <dams@gentoo.org> +libconf-0.39_alpha.ebuild:
|
||||||
|
version 0.39_alpha
|
||||||
|
|
||||||
|
*libconf-0.29 (09 Mar 2004)
|
||||||
|
|
||||||
|
09 Mar 2004; Dams,,, <dams@gentoo.org> libconf-0.29.ebuild:
|
||||||
|
. version 0.29
|
||||||
|
. added make check in compile rule
|
||||||
|
|
||||||
|
*libconf-0.28 (26 Feb 2004)
|
||||||
|
|
||||||
|
26 Feb 2004; Seemant Kulleen <seemant@gentoo.org> libconf-0.28.ebuild,
|
||||||
|
metadata.xml:
|
||||||
|
New abstraction library and utilities for interacting with configuration
|
||||||
|
files. The app/lib itself is written by Dams (at gentoo dot org). Seemant
|
||||||
|
committed it to portage.
|
||||||
|
|
7
dev-util/libconf/Manifest
Normal file
7
dev-util/libconf/Manifest
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
AUX 0.42.10-fbsd.patch 1850 RMD160 534d06dac6a2190a21d03cbc01e97bc50d2f17f1 SHA1 22688c4f67bb36d33672881ce03934b98a5c4b1e SHA256 760b13b41e618c7de9a0132e00e7be3f00cc64cfa51869fd3bbf432164183e73
|
||||||
|
DIST perl-Libconf-0.40.00.tar.bz2 321119 RMD160 7e6dd1c172e58fae3bfd0e287773040e8acab2ec SHA1 27821d97b17de246c8b1e2fbc5e33df639c4fda2 SHA256 9ae847b73d1aabb6d60ceaeda3a8cc14041b557bcfc91c8951c97659fa94eaf1
|
||||||
|
DIST perl-Libconf-0.42.10.tar.bz2 203303 RMD160 55e59e22fb8f2a0b4954abe52af03a58a1ed9847 SHA1 278200ceb40a51be14a250bcf35f4f0d6e46afb3 SHA256 91fc840042f0072c2de8520a044e5842df63c0f6f1c41ff989090c34c01ad40e
|
||||||
|
EBUILD libconf-0.40.00.ebuild 762 RMD160 d6c691d2f9bfa35d05a9d1a9e08abf566ea3263d SHA1 e760aa3ec01d186149104d0f89dff85f198c2d35 SHA256 5affcf3a142425ddd7738d14637b1db8e4e6cecb8df15db9dd97ec5b7d9ad163
|
||||||
|
EBUILD libconf-0.42.10-r1.ebuild 1690 RMD160 81b5c2e3ea0fc24bbe1f11268562118778171c55 SHA1 f3d90d934afaa2f249b5cee6e734c38087eb2dfc SHA256 901b968a2366d29a44da5e5fe6d41a2bc54004d53ce2ff3341fb0d809997cab1
|
||||||
|
MISC ChangeLog 6182 RMD160 d5b724a910aaeebda94b01f25221da0a6188b115 SHA1 452e9d74d9063f23c718a7203c6a12f56add116c SHA256 a1178bb91ace73c7d13a3d3a4bcf9ac4db40ce5a652f07240bbef6ce230957cd
|
||||||
|
MISC metadata.xml 284 RMD160 d34a08cf3b7481409cfe53b033da70d654e7a132 SHA1 65de00127c5630c17a87531fc68e5dcb6d06bc73 SHA256 b3f4651cafe0c058bff035950a89a8fd476f19a06bdc3b7f5ed0b5981ddd333a
|
51
dev-util/libconf/files/0.42.10-fbsd.patch
Normal file
51
dev-util/libconf/files/0.42.10-fbsd.patch
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
--- bindings/c/src/conf2xml.c.orig 2006-11-28 09:49:23 +0100
|
||||||
|
+++ bindings/c/src/conf2xml.c 2006-11-28 09:49:34 +0100
|
||||||
|
@@ -7,7 +7,6 @@
|
||||||
|
#include <string.h>
|
||||||
|
#include "conf2xml.h"
|
||||||
|
|
||||||
|
-#include <error.h>
|
||||||
|
#include <errno.h>
|
||||||
|
/* #define ARGC(a) ((sizeof(a)/sizeof(a[0]))) */
|
||||||
|
/* #define STR_MAX_SIZE 256 */
|
||||||
|
@@ -39,17 +38,17 @@
|
||||||
|
|
||||||
|
char * conf2xml (char *filename, char *template, char *template_options) {
|
||||||
|
STRLEN l;
|
||||||
|
- if (my_perl == NULL) error (NOT_INITIALIZED, 0, "conf2xml has not been initialized. Call conf2xml_init first");
|
||||||
|
+ if (my_perl == NULL) errc (NOT_INITIALIZED, 0, "conf2xml has not been initialized. Call conf2xml_init first");
|
||||||
|
|
||||||
|
if (!template) {
|
||||||
|
template = malloc(sizeof(char));
|
||||||
|
- if (!template) error (ENOMEM, ENOMEM, NULL);
|
||||||
|
+ if (!template) errc (ENOMEM, ENOMEM, NULL);
|
||||||
|
*template = '\0';
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!template_options) {
|
||||||
|
template_options = malloc(sizeof(char));
|
||||||
|
- if (!template_options) error (ENOMEM, ENOMEM, NULL);;
|
||||||
|
+ if (!template_options) errc (ENOMEM, ENOMEM, NULL);;
|
||||||
|
*template_options = '\0';
|
||||||
|
}
|
||||||
|
|
||||||
|
@@ -66,7 +65,7 @@
|
||||||
|
1
|
||||||
|
);
|
||||||
|
char *perl_code = malloc(sizeof(char) * code_length);
|
||||||
|
- if (!perl_code) error (ENOMEM, ENOMEM, NULL);;
|
||||||
|
+ if (!perl_code) errc (ENOMEM, ENOMEM, NULL);;
|
||||||
|
*perl_code = '\0';
|
||||||
|
strncat(perl_code, perl_code1, strlen(perl_code1));
|
||||||
|
strncat(perl_code, filename, strlen(filename));
|
||||||
|
--- bindings/python/src/setup.py.orig 2006-11-28 09:50:43 +0100
|
||||||
|
+++ bindings/python/src/setup.py 2006-11-28 09:50:50 +0100
|
||||||
|
@@ -12,7 +12,6 @@
|
||||||
|
ext_modules=[
|
||||||
|
Extension(
|
||||||
|
'conf2xml',
|
||||||
|
- sources=['conf2xmlmodule.c'],
|
||||||
|
- libraries=['dl'],
|
||||||
|
+ sources=['conf2xmlmodule.c']
|
||||||
|
)]
|
||||||
|
)
|
11
dev-util/libconf/files/libconf-0.42.10-perl510.patch
Normal file
11
dev-util/libconf/files/libconf-0.42.10-perl510.patch
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
--- perl-Libconf-0.42.10/bindings/c/src/conf2xml.c 2005-11-07 01:02:03.000000000 -0800
|
||||||
|
+++ perl-Libconf-0.42.10/bindings/c/src/conf2xml.c.new 2008-07-22 17:01:33.000000000 -0700
|
||||||
|
@@ -19,7 +19,7 @@
|
||||||
|
char *embedding[] = { "", "-e", "0" };
|
||||||
|
|
||||||
|
if (my_perl != NULL) conf2xml_free();
|
||||||
|
- PERL_SYS_INIT3(&argc,&argv,&env);
|
||||||
|
+ PERL_SYS_INIT3(NULL,NULL,NULL);
|
||||||
|
my_perl = perl_alloc();
|
||||||
|
perl_construct( my_perl );
|
||||||
|
perl_parse(my_perl, xs_init, 3, embedding, (char **)NULL);
|
72
dev-util/libconf/libconf-0.42.10-r1.ebuild
Normal file
72
dev-util/libconf/libconf-0.42.10-r1.ebuild
Normal file
@ -0,0 +1,72 @@
|
|||||||
|
# Copyright 1999-2008 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: $
|
||||||
|
|
||||||
|
EAPI=2
|
||||||
|
|
||||||
|
inherit eutils multilib toolchain-funcs
|
||||||
|
|
||||||
|
MY_P=perl-Libconf-${PV}
|
||||||
|
|
||||||
|
DESCRIPTION="Centralized abstraction layer for system configuration files"
|
||||||
|
HOMEPAGE="http://damien.krotkine.com/libconf/"
|
||||||
|
SRC_URI="http://damien.krotkine.com/libconf/dist/${MY_P}.tar.bz2"
|
||||||
|
|
||||||
|
SLOT="0"
|
||||||
|
LICENSE="GPL-2"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
|
||||||
|
|
||||||
|
IUSE="python ruby"
|
||||||
|
DEPEND="dev-lang/perl
|
||||||
|
dev-perl/DelimMatch
|
||||||
|
dev-perl/XML-Twig
|
||||||
|
python? ( >=dev-lang/python-2.4.2 )
|
||||||
|
ruby? ( >=dev-lang/ruby-1.8.3 )"
|
||||||
|
|
||||||
|
S="${WORKDIR}"/${MY_P}
|
||||||
|
|
||||||
|
bindings() {
|
||||||
|
local mybindings
|
||||||
|
mybindings="bash"
|
||||||
|
use python && mybindings="${mybindings} python"
|
||||||
|
use ruby && mybindings="${mybindings} ruby"
|
||||||
|
echo ${mybindings}
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
[[ ${USERLAND} == *BSD ]] && epatch "${FILESDIR}"/${PV}-fbsd.patch
|
||||||
|
epatch "${FILESDIR}"/${P}-perl510.patch
|
||||||
|
|
||||||
|
# Multilib fix
|
||||||
|
sed -i \
|
||||||
|
-e "/^LIB_DIR/ { s:lib:$(get_libdir): }" \
|
||||||
|
-e 's/^CF=-Wall/CF=$(CFLAGS)/' \
|
||||||
|
bindings/c/src/Makefile || die "sed failed"
|
||||||
|
|
||||||
|
sed -i \
|
||||||
|
-e 's/ /\t/' \
|
||||||
|
perl-Libconf/Makefile || die "sed failed"
|
||||||
|
|
||||||
|
sed -i \
|
||||||
|
-e '/^MAKE =/d' \
|
||||||
|
Makefile perl-Libconf/Makefile || die "sed failed"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
emake \
|
||||||
|
BINDINGS="$(bindings)" \
|
||||||
|
CC=$(tc-getCC) \
|
||||||
|
|| die "make failed"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
emake \
|
||||||
|
BINDINGS="$(bindings)" \
|
||||||
|
PREFIX="${D}"/usr DESTDIR="${D}" ROOT="${D}" \
|
||||||
|
CPA="cp -pR" install || die "emake install failed"
|
||||||
|
|
||||||
|
dodoc AUTHORS ChangeLog \
|
||||||
|
bindings/ruby/src/{AUTHORS,README} \
|
||||||
|
bindings/python/src/README
|
||||||
|
}
|
||||||
|
|
9
dev-util/libconf/metadata.xml
Normal file
9
dev-util/libconf/metadata.xml
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||||
|
<pkgmetadata>
|
||||||
|
<herd>perl</herd>
|
||||||
|
<maintainer>
|
||||||
|
<email>dams@gentoo.org</email>
|
||||||
|
<name>Primary Maintainer is Dams. Secondary is Seemant</name>
|
||||||
|
</maintainer>
|
||||||
|
</pkgmetadata>
|
Loading…
Reference in New Issue
Block a user