# Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=5 inherit eutils DESCRIPTION="Guacamole is a html5 vnc client as servlet" HOMEPAGE="http://guac-dev.org/" SRC_URI="mirror://sourceforge/${PN}/${PN}-client-${PV}.tar.gz mysql? ( https://sourceforge.net/projects/${PN}/files/current/extensions/${PN}-auth-jdbc-${PV}.tar.gz ) postgres? ( https://sourceforge.net/projects/${PN}/files/current/extensions/${PN}-auth-jdbc-${PV}.tar.gz ) noauth? ( https://sourceforge.net/projects/${PN}/files/current/extensions/${PN}-auth-noauth-${PV}.tar.gz ) ldap? ( https://sourceforge.net/projects/guacamole/files/current/extensions/${PN}-auth-ldap-${PV}.tar.gz )" S="${WORKDIR}/${PN}-client-${PV}" LICENSE="MIT" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="ldap mysql postgres noauth" REQUIRED_USE="ldap? ( !mysql !postgres !noauth ) mysql? ( !ldap !postgres !noauth ) postgres? ( !ldap !mysql !noauth ) noauth? ( !ldap !mysql !noauth )" DEPEND="dev-java/maven-bin:*" RDEPEND="${DEPEND} www-servers/tomcat[websockets] >virtual/jre-1.6 net-misc/guacamole-server mysql? ( virtual/mysql ) postgres? ( dev-db/postgresql ) ldap? ( net-nds/openldap )" src_compile() { mkdir "${HOME}"/.m2 cat /usr/share/`readlink /usr/bin/mvn | sed 's:mvn:maven-bin:'`/conf/settings.xml | \ sed -e 's:/path/to/local/repo:'${HOME}/.m2':g' -e 's: