diff options
Diffstat (limited to 'www-servers/jetty/jetty-6.1.26.ebuild')
-rw-r--r-- | www-servers/jetty/jetty-6.1.26.ebuild | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/www-servers/jetty/jetty-6.1.26.ebuild b/www-servers/jetty/jetty-6.1.26.ebuild new file mode 100644 index 0000000..7741458 --- /dev/null +++ b/www-servers/jetty/jetty-6.1.26.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="2" + +inherit eutils java-pkg-2 java-osgi + +DESCRIPTION="Jetty Web Server; Java Servlet container" + +SLOT="6" +SRC_URI="http://dist.codehaus.org/jetty/jetty-${PV}/jetty-${PV}-src.zip" +HOMEPAGE="http://jetty.codehaus.org/" +KEYWORDS="~amd64 ~x86" +LICENSE="Apache-2.0" + +CDEPEND="dev-java/tomcat-servlet-api:2.5" +DEPEND="${CDEPEND} + dev-java/slf4j-api + >=virtual/jre-1.4" +RDEPEND="${CDEPEND} + >=virtual/jdk-1.4" + +S="${WORKDIR}/${P}" + +src_prepare() { + java-pkg_jar-from slf4j-api + java-pkg_jar-from tomcat-servlet-api-2.5 servlet-api.jar +} + +src_compile() { + mkdir modules/util/bin || die + ejavac -cp servlet-api.jar:slf4j-api.jar -d modules/util/bin \ + $(find modules/util/src/main/java -name '*.java') + mkdir modules/jetty/bin || die + ejavac -cp servlet-api.jar:modules/util/bin -d modules/jetty/bin \ + $(find modules/jetty/src/main/java -name '*.java') +} + +src_install() { + jar -cvf jetty-util.jar -C modules/util/bin . || die +# java-pkg_dojar jetty-util.jar + java-osgi_dojar-fromfile jetty-util.jar ${FILESDIR}/jetty-util.MF org.mortbay.jetty.util || die + jar -cvf jetty.jar -C modules/jetty/bin . || die +# java-pkg_dojar jetty.jar + java-osgi_dojar-fromfile jetty.jar ${FILESDIR}/jetty.MF org.mortbay.jetty.server || die +} |