1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
8 DESCRIPTION="High-level interface for the Resource Description Framework"
9 HOMEPAGE="http://librdf.org/"
10 SRC_URI="http://download.librdf.org/source/${P}.tar.gz"
12 LICENSE="Apache-2.0 GPL-2 LGPL-2.1"
14 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos"
15 IUSE="berkdb iodbc mysql odbc postgres sqlite static-libs"
17 RDEPEND="dev-libs/libltdl:0
18 mysql? ( virtual/mysql )
19 sqlite? ( =dev-db/sqlite-3* )
20 berkdb? ( sys-libs/db )
21 >=media-libs/raptor-2.0.14
22 >=dev-libs/rasqal-0.9.32
23 postgres? ( dev-db/postgresql )
24 iodbc? ( dev-db/libiodbc )
25 odbc? ( dev-db/unixODBC )"
29 MAKEOPTS="${MAKEOPTS} -j1" #500574, required for both src_compile() and src_install()
32 elibtoolize # NOTE: this is for fbsd .so version
36 local myconf=( --without-virtuoso )
38 myconf=( --with-virtuoso --with-iodbc --without-unixodbc )
40 myconf=( --with-virtuoso --with-unixodbc --without-iodbc )
45 --with-bdb-include="$(db_includedir)"
46 --with-bdb-lib="${EPREFIX}"/usr/$(get_libdir)
47 --with-bdb-dbname="$(db_libname)"
51 # FIXME: upstream doesn't test with --with-threads and testsuite fails
53 $(use_enable static-libs static) \
54 $(use_with berkdb bdb) \
57 $(use_with postgres postgresql) \
59 --with-html-dir="${EPREFIX}"/usr/share/doc/${PF}/html \
65 export REDLAND_TEST_CLONING_STORAGE_TYPE=hashes
66 export REDLAND_TEST_CLONING_STORAGE_NAME=test
67 export REDLAND_TEST_CLONING_STORAGE_OPTIONS="hash-type='memory',dir='.',write='yes',new='yes',contexts='yes'"
74 dohtml {FAQS,NEWS,README,RELEASE,TODO}.html
75 find "${ED}" -name '*.la' -exec sed -i -e "/^dependency_libs/s:=.*:='':" {} +
77 # !!! REMOVE THIS ON VERSION BUMP, see bug 468298 for proper fix !!!
78 if [[ -n ${LDFLAGS} ]]; then
80 -e "s:${LDFLAGS} ::g" \
81 "${ED}"/usr/$(get_libdir)/pkgconfig/${PN}.pc || die
84 # https://bugs.gentoo.org/467768
85 local _rdocdir=/usr/share/doc/${PF}/html/${PN}
86 [[ -d ${ED}/${_rdocdir} ]] && dosym ${_rdocdir} /usr/share/gtk-doc/html/${PN}