dev-libs/link-grammar:5.3.3: fixed bug #574872
authorDennis Lamm <expeditioneer@gentoo.org>
Wed, 17 Feb 2016 21:34:37 +0000 (22:34 +0100)
committerDennis Lamm <expeditioneer@gentoo.org>
Wed, 17 Feb 2016 21:34:51 +0000 (22:34 +0100)
Package-Manager: portage-2.2.26

dev-libs/link-grammar/link-grammar-5.3.3.ebuild

index 546f5cdd60fed6a00b65966b7eea9c111c4c72a4..dbbbfc4efa8fd32140c15cf44f8e3f0faf823a0d 100644 (file)
@@ -15,18 +15,21 @@ LICENSE="LGPL-2.1"
 SLOT="0"
 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
 
-IUSE="aspell +hunspell java python static-libs threads"
+IUSE="aspell +hunspell +java python static-libs threads"
 
 DEPEND="
        aspell? ( app-text/aspell )
        hunspell? ( app-text/hunspell )
-       java? ( >=virtual/jdk-0:= dev-java/ant-core )
+       java? ( >=virtual/jdk-1.6:=
+                       dev-java/ant-core )
        ${PYTHON_DEPS}"
 
 RDEPEND="${DEPEND}"
 
 pkg_setup() {
-       java-pkg-opt-2_pkg_setup
+       if use java; then
+               java-pkg-opt-2_pkg_setup
+       fi
        if use aspell && use hunspell; then
                ewarn "You have enabled 'aspell' and 'hunspell' support, but both cannot coexist,"
                ewarn "only aspell will be build. Press Ctrl+C and set only 'hunspell' USE flag if"
@@ -40,7 +43,9 @@ src_unpack() {
 }
 
 src_prepare() {
-       java-pkg-opt-2_src_prepare
+       if use java; then
+               java-pkg-opt-2_src_prepare
+       fi
        ./autogen.sh || die
 }