summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2012-01-28 04:17:20 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2012-01-28 04:17:20 +0000
commit18f7eb331e902d3b9d0ee458ad0d0fba04bfb8ed (patch)
tree348a7ff3d260ff73dad79af61934626727ffaba9 /media-libs/liblrdf
parentold (diff)
downloadgentoo-2-18f7eb331e902d3b9d0ee458ad0d0fba04bfb8ed.tar.gz
gentoo-2-18f7eb331e902d3b9d0ee458ad0d0fba04bfb8ed.tar.bz2
gentoo-2-18f7eb331e902d3b9d0ee458ad0d0fba04bfb8ed.zip
old
(Portage version: 2.2.0_alpha84/cvs/Linux x86_64)
Diffstat (limited to 'media-libs/liblrdf')
-rw-r--r--media-libs/liblrdf/ChangeLog9
-rw-r--r--media-libs/liblrdf/files/liblrdf-0.4.0-dontbuild-tests.patch16
-rw-r--r--media-libs/liblrdf/files/liblrdf-0.4.0-raptor2-pkgconfig.patch10
-rw-r--r--media-libs/liblrdf/files/liblrdf-0.4.0-raptor2.patch195
-rw-r--r--media-libs/liblrdf/files/liblrdf-0.4.0-rename_clashing_md5_symbols.patch20
-rw-r--r--media-libs/liblrdf/liblrdf-0.4.0-r20.ebuild40
6 files changed, 8 insertions, 282 deletions
diff --git a/media-libs/liblrdf/ChangeLog b/media-libs/liblrdf/ChangeLog
index aeba6b3a5b2c..cc448bdaf211 100644
--- a/media-libs/liblrdf/ChangeLog
+++ b/media-libs/liblrdf/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for media-libs/liblrdf
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/liblrdf/ChangeLog,v 1.56 2012/01/28 04:16:14 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/liblrdf/ChangeLog,v 1.57 2012/01/28 04:17:19 ssuominen Exp $
+
+ 28 Jan 2012; Samuli Suominen <ssuominen@gentoo.org>
+ -liblrdf-0.4.0-r20.ebuild, -files/liblrdf-0.4.0-dontbuild-tests.patch,
+ -files/liblrdf-0.4.0-raptor2-pkgconfig.patch,
+ -files/liblrdf-0.4.0-raptor2.patch,
+ -files/liblrdf-0.4.0-rename_clashing_md5_symbols.patch:
+ old
28 Jan 2012; Samuli Suominen <ssuominen@gentoo.org> liblrdf-0.5.0.ebuild:
ppc/ppc64 stable wrt #391805
diff --git a/media-libs/liblrdf/files/liblrdf-0.4.0-dontbuild-tests.patch b/media-libs/liblrdf/files/liblrdf-0.4.0-dontbuild-tests.patch
deleted file mode 100644
index fdb683d5c70b..000000000000
--- a/media-libs/liblrdf/files/liblrdf-0.4.0-dontbuild-tests.patch
+++ /dev/null
@@ -1,16 +0,0 @@
-http://bugs.gentoo.org/226281
-
---- examples/Makefile.am
-+++ examples/Makefile.am
-@@ -1,7 +1,9 @@
--noinst_PROGRAMS = showdefaults showtaxonomy dumpstatements export_test \
-- subclass_test add_test instances_test remove_test multi_test \
-+TESTS = showtaxonomy dumpstatements export_test \
-+ subclass_test add_test instances_test multi_test \
- setting_test scale_test
-
-+check_PROGRAMS = showdefaults $(TESTS) remove_test
-+
- LIBS = ../src/liblrdf.la
-
- pkgdata_DATA = ladspa.rdfs
diff --git a/media-libs/liblrdf/files/liblrdf-0.4.0-raptor2-pkgconfig.patch b/media-libs/liblrdf/files/liblrdf-0.4.0-raptor2-pkgconfig.patch
deleted file mode 100644
index b2190743d936..000000000000
--- a/media-libs/liblrdf/files/liblrdf-0.4.0-raptor2-pkgconfig.patch
+++ /dev/null
@@ -1,10 +0,0 @@
---- lrdf.pc.in
-+++ lrdf.pc.in
-@@ -6,5 +6,5 @@
- Name: liblrdf
- Version: @VERSION@
- Description: liblrdf, a lightweight RDF library with extensions for LADSPA
--Libs: -L${libdir} -llrdf
--Cflags: -I${includedir}
-+Libs: -L${libdir} @RAPTOR_LIBS@ -llrdf
-+Cflags: @RAPTOR_CFLAGS@ -I${includedir}
diff --git a/media-libs/liblrdf/files/liblrdf-0.4.0-raptor2.patch b/media-libs/liblrdf/files/liblrdf-0.4.0-raptor2.patch
deleted file mode 100644
index 1d202489aa26..000000000000
--- a/media-libs/liblrdf/files/liblrdf-0.4.0-raptor2.patch
+++ /dev/null
@@ -1,195 +0,0 @@
-http://projects.archlinux.org/svntogit/packages.git/plain/liblrdf/trunk/raptor2.diff
-
---- src/Makefile.am
-+++ src/Makefile.am
-@@ -4,5 +4,5 @@ lib_LTLIBRARIES = liblrdf.la
- noinst_HEADERS = lrdf_md5.h md5_loc.h ladspa.h
-
- liblrdf_la_SOURCES = lrdf.c lrdf_multi.c md5.c
--liblrdf_la_LIBADD = -lraptor
-+liblrdf_la_LIBADD = -lraptor2
- liblrdf_la_LDFLAGS = -version-info @LRDF_LIBTOOL_VERSION@
---- src/lrdf.c
-+++ src/lrdf.c
-@@ -18,6 +18,7 @@
- static unsigned int lrdf_uid = 0; /* A unique(ish) id to append to genid's to
- * avoid clashses */
-
-+static raptor_world *world = NULL;
- static lrdf_statement *triples = NULL;
- static lrdf_statement *free_triples;
- static lrdf_string_hash *resources_hash[LRDF_HASH_SIZE];
-@@ -43,8 +44,7 @@ static void lrdf_remove_triple_hash(lrdf_triple_hash ** tbl,
- lrdf_hash hash, lrdf_statement * s);
- static void lrdf_add_closure_hash(lrdf_closure_hash ** tbl,
- lrdf_hash subject, lrdf_hash object);
--static void lrdf_store(void *user_data,
-- const raptor_statement * statement);
-+static void lrdf_store(void *user_data, raptor_statement * statement);
- void lrdf_free_statements(lrdf_statement * s);
- void lrdf_copy_statement(lrdf_statement * from, lrdf_statement * to);
- void lrdf_rebuild_taxonomic_closure(lrdf_closure_hash ** fwd_tbl,
-@@ -71,7 +71,7 @@ void lrdf_init()
- unsigned int i;
- struct timeval tv;
-
-- raptor_init();
-+ world = raptor_new_world();
- lrdf_more_triples(256);
-
- /* A UID to add to genids to make them safer */
-@@ -112,7 +112,8 @@ void lrdf_more_triples(int count)
-
- void lrdf_cleanup()
- {
-- raptor_finish();
-+ raptor_free_world(world);
-+ world = NULL;
-
- lrdf_free_string_hash(resources_hash);
- lrdf_free_string_hash(literals_hash);
-@@ -232,26 +233,29 @@ void lrdf_remove_matches(lrdf_statement *pattern)
- }
- }
-
--static void lrdf_store(void *user_data, const raptor_statement * statement)
-+static const char *lrdf_term_as_string(char *tmp, int tmp_len,
-+ const raptor_term *term)
-+{
-+ switch (term->type) {
-+ case RAPTOR_TERM_TYPE_URI:
-+ return (const char *) raptor_uri_as_string(term->value.uri);
-+ case RAPTOR_TERM_TYPE_LITERAL:
-+ return (const char *) term->value.literal.string;
-+ case RAPTOR_TERM_TYPE_BLANK:
-+ snprintf(tmp, tmp_len, "_:%s.%x", term->value.blank.string, lrdf_uid);
-+ return tmp;
-+ default:
-+ return "(?)";
-+ }
-+}
-+
-+static void lrdf_store(void *user_data, raptor_statement * statement)
- {
- lrdf_statement *s = lrdf_alloc_statement();
- char tmps[128], tmpp[128], tmpo[128];
-- char *subj = (char *) statement->subject,
-- *pred = (char *) statement->predicate,
-- *obj = (char *) statement->object;
--
-- if (statement->subject_type == RAPTOR_IDENTIFIER_TYPE_ANONYMOUS) {
-- snprintf(tmps, 127, "_:%s.%x", subj, lrdf_uid);
-- subj = tmps;
-- }
-- if (statement->predicate_type == RAPTOR_IDENTIFIER_TYPE_ANONYMOUS) {
-- snprintf(tmpp, 127, "_:%s.%x", pred, lrdf_uid);
-- pred = tmpp;
-- }
-- if (statement->object_type == RAPTOR_IDENTIFIER_TYPE_ANONYMOUS) {
-- snprintf(tmpo, 127, "_:%s.%x", obj, lrdf_uid);
-- obj = tmpo;
-- }
-+ const char *subj = lrdf_term_as_string(tmps, 128, statement->subject),
-+ *pred = lrdf_term_as_string(tmpp, 128, statement->predicate),
-+ *obj = lrdf_term_as_string(tmpo, 128, statement->object);
-
- s->shash = lrdf_gen_hash(subj);
- s->phash = lrdf_gen_hash(pred);
-@@ -261,7 +265,7 @@ static void lrdf_store(void *user_data, const raptor_statement * statement)
-
- s->subject = lrdf_check_hash(resources_hash, s->shash, subj);
- s->predicate = lrdf_check_hash(resources_hash, s->phash, pred);
-- if (statement->object_type == RAPTOR_IDENTIFIER_TYPE_LITERAL) {
-+ if (statement->object->type == RAPTOR_TERM_TYPE_LITERAL) {
- s->object = lrdf_check_hash(literals_hash, s->ohash, obj);
- s->object_type = lrdf_literal;
- } else {
-@@ -537,28 +541,22 @@ void lrdf_rebuild_taxonomic_closure(lrdf_closure_hash ** fwd_tbl,
- free(pathto);
- }
-
--static void lrdf_error_handler(void *data, raptor_locator * locator,
-- const char *message);
-+static void lrdf_log_handler(void *data, raptor_log_message *message);
-
--static void lrdf_error_handler(void *data, raptor_locator * locator,
-- const char *message)
-+static void lrdf_log_handler(void *data, raptor_log_message *message)
- {
-- fprintf(stderr, "liblrdf: error - ");
-- raptor_print_locator(stderr, locator);
-- fprintf(stderr, " - %s\n", message);
--
-- raptor_parse_abort((raptor_parser*)data);
--}
-+ const char *severity = "error";
-+ if (message->level == RAPTOR_LOG_LEVEL_WARN) {
-+ severity = "warning";
-+ }
-
--static void lrdf_warning_handler(void *data, raptor_locator * locator,
-- const char *message);
-+ fprintf(stderr, "liblrdf: %s - ", severity);
-+ raptor_locator_print(message->locator, stderr);
-+ fprintf(stderr, " - %s\n", message->text);
-
--static void lrdf_warning_handler(void *data, raptor_locator * locator,
-- const char *message)
--{
-- fprintf(stderr, "liblrdf: warning - ");
-- raptor_print_locator(stderr, locator);
-- fprintf(stderr, " - %s\n", message);
-+ if (message->level != RAPTOR_LOG_LEVEL_WARN) {
-+ raptor_parser_parse_abort((raptor_parser*)data);
-+ }
- }
-
-
-@@ -593,15 +591,15 @@ int lrdf_read_file_intl(const char *uri)
- lrdf_hash source;
-
- //printf("lrdf: reading %s\n", uri);
-- ruri = raptor_new_uri(uri);
-- furi = raptor_new_uri(uri);
-+ ruri = raptor_new_uri(world, (const unsigned char *) uri);
-+ furi = raptor_new_uri(world, (const unsigned char *) uri);
- source = lrdf_gen_hash(uri);
- lrdf_check_hash(resources_hash, source, uri);
-
- if (strstr(uri, ".rdf")) {
-- parser = raptor_new_parser("rdfxml");
-+ parser = raptor_new_parser(world, "rdfxml");
- } else {
-- parser = raptor_new_parser("ntriples");
-+ parser = raptor_new_parser(world, "ntriples");
- }
- if (!parser) {
- fprintf(stderr, "liblrdf: failed to create parser\n");
-@@ -609,12 +607,11 @@ int lrdf_read_file_intl(const char *uri)
- return 1;
- }
-
-- raptor_set_error_handler(parser, parser, lrdf_error_handler);
-- raptor_set_warning_handler(parser, NULL, lrdf_warning_handler);
-- raptor_set_statement_handler(parser, &source, lrdf_store);
-- raptor_set_default_generate_id_parameters(parser, NULL, ++lrdf_uid);
-+ raptor_world_set_log_handler(world, parser, lrdf_log_handler);
-+ raptor_parser_set_statement_handler(parser, &source, lrdf_store);
-+ raptor_world_set_generate_bnodeid_parameters(world, NULL, ++lrdf_uid);
-
-- if (raptor_parse_file(parser, furi, ruri)) {
-+ if (raptor_parser_parse_file(parser, furi, ruri)) {
- raptor_free_uri(furi);
- raptor_free_uri(ruri);
- raptor_free_parser(parser);
---- configure.ac
-+++ configure.ac
-@@ -18,7 +18,7 @@
- AC_HEADER_STDC
- AC_CHECK_HEADERS([errno.h limits.h stdlib.h string.h unistd.h])
-
--PKG_CHECK_MODULES(RAPTOR, raptor >= 0.9.11)
-+PKG_CHECK_MODULES(RAPTOR, raptor2 >= 0.9.11)
-
- # Checks for typedefs, structures, and compiler characteristics.
- AC_C_CONST
diff --git a/media-libs/liblrdf/files/liblrdf-0.4.0-rename_clashing_md5_symbols.patch b/media-libs/liblrdf/files/liblrdf-0.4.0-rename_clashing_md5_symbols.patch
deleted file mode 100644
index 7d4c6def70f5..000000000000
--- a/media-libs/liblrdf/files/liblrdf-0.4.0-rename_clashing_md5_symbols.patch
+++ /dev/null
@@ -1,20 +0,0 @@
-From Debian patchset of liblrdf0 package; also reported at sf.net lrdf project page
-
---- src/lrdf_md5.h
-+++ src/lrdf_md5.h
-@@ -32,6 +32,15 @@
- #ifndef __MD5_H__
- #define __MD5_H__
-
-+/* Change function names to prevent symbol conflicts */
-+#define md5_init _lrdf_md5_init
-+#define md5_buffer _lrdf_md5_buffer
-+#define md5_sig_from_string _lrdf_md5_sig_from_string
-+#define md5_finish _lrdf_md5_finish
-+#define md5_process _lrdf_md5_process
-+#define md5_sig_to_string _lrdf_md5_sig_to_string
-+#define md5_get_result _lrdf_md5_get_result
-+
- /*
- * Size of a standard MD5 signature in bytes. This definition is for
- * external programs only. The MD5 routines themselves reference the
diff --git a/media-libs/liblrdf/liblrdf-0.4.0-r20.ebuild b/media-libs/liblrdf/liblrdf-0.4.0-r20.ebuild
deleted file mode 100644
index e097d60cd9d0..000000000000
--- a/media-libs/liblrdf/liblrdf-0.4.0-r20.ebuild
+++ /dev/null
@@ -1,40 +0,0 @@
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/liblrdf/liblrdf-0.4.0-r20.ebuild,v 1.7 2011/10/18 16:57:28 ssuominen Exp $
-
-EAPI=4
-inherit autotools eutils
-
-DESCRIPTION="A library for the manipulation of RDF file in LADSPA plugins"
-HOMEPAGE="http://lrdf.sourceforge.net/"
-SRC_URI="mirror://sourceforge/lrdf/${P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="amd64 hppa ppc ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos"
-IUSE="static-libs"
-
-RDEPEND="media-libs/raptor:2
- >=media-libs/ladspa-sdk-1.12"
-DEPEND="${RDEPEND}
- dev-util/pkgconfig"
-
-DOCS=( AUTHORS ChangeLog README )
-
-src_prepare() {
- epatch \
- "${FILESDIR}"/${P}-dontbuild-tests.patch \
- "${FILESDIR}"/${P}-raptor2{,-pkgconfig}.patch \
- "${FILESDIR}"/${P}-rename_clashing_md5_symbols.patch
-
- eautoreconf
-}
-
-src_configure() {
- econf $(use_enable static-libs static)
-}
-
-src_install() {
- default
- rm -f "${ED}"usr/lib*/liblrdf.la
-}