diff options
author | Patrice Clement <monsieurp@gentoo.org> | 2015-10-01 16:45:22 +0000 |
---|---|---|
committer | Patrice Clement <monsieurp@gentoo.org> | 2015-10-01 16:47:33 +0000 |
commit | c73e7913519f74f7e13b6db378286fbb4930ab73 (patch) | |
tree | 00f85aaece7b46026bdabc94cd6ea999c26a216d /dev-libs/clearsilver | |
parent | profiles: plasma: avoid app-crypt/pinentry REQUIRED_USE blocker (diff) | |
download | gentoo-c73e7913519f74f7e13b6db378286fbb4930ab73.tar.gz gentoo-c73e7913519f74f7e13b6db378286fbb4930ab73.tar.bz2 gentoo-c73e7913519f74f7e13b6db378286fbb4930ab73.zip |
dev-libs/clearsilver: Add Java support. Fixes bug 251091.
Package-Manager: portage-2.2.18
Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
Diffstat (limited to 'dev-libs/clearsilver')
-rw-r--r-- | dev-libs/clearsilver/clearsilver-0.10.5-r3.ebuild | 98 | ||||
-rw-r--r-- | dev-libs/clearsilver/files/clearsilver-0.10.5-disable-java-tests.patch | 11 |
2 files changed, 109 insertions, 0 deletions
diff --git a/dev-libs/clearsilver/clearsilver-0.10.5-r3.ebuild b/dev-libs/clearsilver/clearsilver-0.10.5-r3.ebuild new file mode 100644 index 000000000000..2365d91673a4 --- /dev/null +++ b/dev-libs/clearsilver/clearsilver-0.10.5-r3.ebuild @@ -0,0 +1,98 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +# Please note: apache, java, mono and ruby support disabled for now. +# Fill a bug if you need it. +# +# dju@gentoo.org, 4th July 2005 + +EAPI=5 +GENTOO_DEPEND_ON_PERL="no" +PYTHON_DEPEND="python? 2" + +inherit autotools eutils multilib perl-app python java-pkg-opt-2 + +DESCRIPTION="Clearsilver is a fast, powerful, and language-neutral HTML template system" +HOMEPAGE="http://www.clearsilver.net/" +SRC_URI="http://www.clearsilver.net/downloads/${P}.tar.gz" + +LICENSE="Apache-1.1" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd" +IUSE="perl python zlib perl java" + +DEPEND="perl? ( dev-lang/perl:= ) + zlib? ( sys-libs/zlib ) + java? ( >=virtual/jdk-1.6 )" + +RDEPEND=" + java? ( >=virtual/jre-1.6 ) + ${DEPEND}" + +DOCS=(README INSTALL) + +pkg_setup() { + if use python; then + DOCS+=(README.python) + python_set_active_version 2 + python_pkg_setup + fi + + if use java; then + java-pkg-opt-2_pkg_setup + fi +} + +src_prepare() { + epatch "${FILESDIR}"/${P}-perl_installdir.patch + + use zlib && epatch "${FILESDIR}"/${P}-libz.patch + + epatch "${FILESDIR}"/${P}-libdir.patch + sed -i -e "s:GENTOO_LIBDIR:$(get_libdir):" configure.in + eautoreconf + + # Fix for Gentoo/Freebsd + [[ "${ARCH}" == FreeBSD ]] && touch ${S}/features.h ${S}/cgi/features.h + + if use java; then + java-pkg-opt-2_src_prepare + fi +} + +src_configure() { + econf \ + $(use_enable perl) \ + $(use_with perl perl /usr/bin/perl) \ + $(use_enable python) \ + $(use_with python python /usr/bin/python) \ + $(use_enable zlib compression) \ + $(use_enable java) \ + $(use_with java java $(java-config -O)) \ + "--disable-apache" \ + "--disable-ruby" \ + "--disable-csharp" + + # Java tests fail. Maybe investigate why? + if use java; then + epatch "${FILESDIR}"/${P}-disable-java-tests.patch + fi +} + +src_compile() { + default +} + +src_install () { + default + + if use perl; then + perl_delete_localpod || die "perl_delete_localpod failed" + fi + + if use java; then + java-pkg_doso "java-jni/lib${PN}-jni.so" + java-pkg_dojar "java-jni/${PN}.jar" + fi +} diff --git a/dev-libs/clearsilver/files/clearsilver-0.10.5-disable-java-tests.patch b/dev-libs/clearsilver/files/clearsilver-0.10.5-disable-java-tests.patch new file mode 100644 index 000000000000..de9c391ff337 --- /dev/null +++ b/dev-libs/clearsilver/files/clearsilver-0.10.5-disable-java-tests.patch @@ -0,0 +1,11 @@ +--- java-jni/Makefile.orig 2015-10-01 16:20:55.775486000 +0000 ++++ java-jni/Makefile 2015-10-01 16:21:59.027486000 +0000 +@@ -26,7 +26,7 @@ + + TARGETS = org_clearsilver_HDF.h org_clearsilver_CS.h $(NEO_UTIL_SO) + +-all: $(TARGETS) test ++all: $(TARGETS) + + $(NEO_UTIL_JAVA_JAR): $(NEO_UTIL_JAVA_SRC) + $(MKDIR) org/clearsilver |