1 |
commit: f31ebb52d9947fd1edee7b075a33298aa3934333 |
2 |
Author: Brian Evans <grknight <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Feb 11 14:56:14 2019 +0000 |
4 |
Commit: Brian Evans <grknight <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 11 15:11:53 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f31ebb52 |
7 |
|
8 |
dev-libs/redland: Revbump for EAPI update and dependency change |
9 |
|
10 |
Non-maintainer commit |
11 |
|
12 |
Bug: https://bugs.gentoo.org/665882 |
13 |
Package-Manager: Portage-2.3.59, Repoman-2.3.12 |
14 |
Signed-off-by: Brian Evans <grknight <AT> gentoo.org> |
15 |
|
16 |
dev-libs/redland/redland-1.0.17-r2.ebuild | 88 +++++++++++++++++++++++++++++++ |
17 |
1 file changed, 88 insertions(+) |
18 |
|
19 |
diff --git a/dev-libs/redland/redland-1.0.17-r2.ebuild b/dev-libs/redland/redland-1.0.17-r2.ebuild |
20 |
new file mode 100644 |
21 |
index 00000000000..1f2d86face1 |
22 |
--- /dev/null |
23 |
+++ b/dev-libs/redland/redland-1.0.17-r2.ebuild |
24 |
@@ -0,0 +1,88 @@ |
25 |
+# Copyright 1999-2019 Gentoo Authors |
26 |
+# Distributed under the terms of the GNU General Public License v2 |
27 |
+ |
28 |
+EAPI=7 |
29 |
+inherit db-use libtool |
30 |
+ |
31 |
+DESCRIPTION="High-level interface for the Resource Description Framework" |
32 |
+HOMEPAGE="http://librdf.org/" |
33 |
+SRC_URI="http://download.librdf.org/source/${P}.tar.gz" |
34 |
+ |
35 |
+LICENSE="Apache-2.0 GPL-2 LGPL-2.1" |
36 |
+SLOT="0" |
37 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos" |
38 |
+IUSE="berkdb iodbc mysql odbc postgres sqlite static-libs" |
39 |
+ |
40 |
+RDEPEND="dev-libs/libltdl:0 |
41 |
+ mysql? ( dev-db/mysql-connector-c:0= ) |
42 |
+ sqlite? ( =dev-db/sqlite-3* ) |
43 |
+ berkdb? ( sys-libs/db ) |
44 |
+ >=media-libs/raptor-2.0.14 |
45 |
+ >=dev-libs/rasqal-0.9.32 |
46 |
+ postgres? ( dev-db/postgresql ) |
47 |
+ iodbc? ( dev-db/libiodbc ) |
48 |
+ odbc? ( dev-db/unixODBC )" |
49 |
+DEPEND="${RDEPEND} |
50 |
+ virtual/pkgconfig" |
51 |
+ |
52 |
+MAKEOPTS="${MAKEOPTS} -j1" #500574, required for both src_compile() and src_install() |
53 |
+ |
54 |
+src_prepare() { |
55 |
+ default |
56 |
+ elibtoolize # NOTE: this is for fbsd .so version |
57 |
+} |
58 |
+ |
59 |
+src_configure() { |
60 |
+ local myconf=( --without-virtuoso ) |
61 |
+ if use iodbc; then |
62 |
+ myconf=( --with-virtuoso --with-iodbc --without-unixodbc ) |
63 |
+ elif use odbc; then |
64 |
+ myconf=( --with-virtuoso --with-unixodbc --without-iodbc ) |
65 |
+ fi |
66 |
+ |
67 |
+ if use berkdb; then |
68 |
+ myconf+=( |
69 |
+ --with-bdb-include="$(db_includedir)" |
70 |
+ --with-bdb-lib="${EPREFIX}"/usr/$(get_libdir) |
71 |
+ --with-bdb-dbname="$(db_libname)" |
72 |
+ ) |
73 |
+ fi |
74 |
+ |
75 |
+ # FIXME: upstream doesn't test with --with-threads and testsuite fails |
76 |
+ econf \ |
77 |
+ $(use_enable static-libs static) \ |
78 |
+ $(use_with berkdb bdb) \ |
79 |
+ $(use_with mysql) \ |
80 |
+ $(use_with sqlite) \ |
81 |
+ $(use_with postgres postgresql) \ |
82 |
+ --without-threads \ |
83 |
+ --with-html-dir="${EPREFIX}"/usr/share/doc/${PF}/html \ |
84 |
+ "${myconf[@]}" |
85 |
+} |
86 |
+ |
87 |
+src_test() { |
88 |
+ if ! use berkdb; then |
89 |
+ export REDLAND_TEST_CLONING_STORAGE_TYPE=hashes |
90 |
+ export REDLAND_TEST_CLONING_STORAGE_NAME=test |
91 |
+ export REDLAND_TEST_CLONING_STORAGE_OPTIONS="hash-type='memory',dir='.',write='yes',new='yes',contexts='yes'" |
92 |
+ fi |
93 |
+ default |
94 |
+} |
95 |
+ |
96 |
+src_install() { |
97 |
+ default |
98 |
+ docinto html |
99 |
+ dodoc {FAQS,NEWS,README,RELEASE,TODO}.html |
100 |
+ find "${ED}" -name '*.la' -exec sed -i -e "/^dependency_libs/s:=.*:='':" {} + |
101 |
+ |
102 |
+ # !!! REMOVE THIS ON VERSION BUMP, see bug 468298 for proper fix !!! |
103 |
+ if [[ -n ${LDFLAGS} ]]; then |
104 |
+ sed -i \ |
105 |
+ -e "s:${LDFLAGS} ::g" \ |
106 |
+ "${ED}"/usr/$(get_libdir)/pkgconfig/${PN}.pc || die |
107 |
+ fi |
108 |
+ |
109 |
+ # https://bugs.gentoo.org/467768 |
110 |
+ local _rdocdir=/usr/share/doc/${PF}/html/${PN} |
111 |
+ [[ -d ${ED}/${_rdocdir} ]] && dosym ${_rdocdir} /usr/share/gtk-doc/html/${PN} |
112 |
+} |