# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=5 inherit cmake-utils java-pkg-opt-2 versionator DESCRIPTION="Zorba NoSQL query processor (JSON, XML, etc.)" HOMEPAGE="http://www.zorba-xquery.com" SRC_URI="https://launchpad.net/${PN}/trunk/$(get_version_component_range 1-2)/+download/zorba-${PV}.tar.gz" LICENSE="Apache-2.0" SLOT="0" KEYWORDS="~amd64" IUSE="debug java" DEPEND=">=dev-libs/libxml2-2.2.16 sys-apps/util-linux >=dev-libs/xerces-c-2.8.0 dev-libs/icu java? ( >=dev-lang/swig-1.3.40 =virtual/jdk-1.6* )" # * sys-apps/util-linux is for libUUID # * dev-libs/xerces-c is actually optional (not needed when using # ZORBA_NO_XMLSCHEMA=ON with CMake) # * dev-libs/icu: documentation says "ICU4C 3.6 or later", whereas Portage has # something like dev-libs/icu-49.1.2 at the moment. # * dev-lang/swig: # Java didn't work for me with dev-java/oracle-jdk-bin-1.7, so I restricted it # to 1.6. # Note that bindings for Java, Ruby, PHP, Python are auto-generated if these # are installed; I do not currently enforce bindings for a language not to be # generated if the respective use flag is missing. # # http://www.zorba-xquery.com/html/documentation/2.8.0/zorba/build_prerequisites # also mentions: # * Iconv 1.12 (seems to be part of sys-libs/glibc) # * CURL >= 7.12 (optional; net-misc/curl) # Build will automatically use an installed CURL unless we say # ZORBA_SUPPRESS_CURL=ON # * LibXslt >= 1.1.24 (optional; dev-libs/libxslt) # Enable with ZORBA_XQUERYX=ON # * Flex and Bison not needed to install, just when developing Zorba # * further dependencies under "Non-core Module Requirements" RDEPEND=">=dev-libs/libxml2-2.2.16 sys-apps/util-linux >=dev-libs/xerces-c-2.8.0 dev-libs/icu java? ( =virtual/jdk-1.6* )" MAKEOPTS+=" -j1" pkg_setup() { if use java; then java-pkg-opt-2_pkg_setup fi } src_configure() { filter-flags -j? cmake-utils_src_configure } src_install() { cmake-utils_src_install dodoc AUTHORS.txt ChangeLog KNOWN_ISSUES.txt NOTICE.txt README.txt }