You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
1.3 KiB
58 lines
1.3 KiB
11 years ago
|
# Copyright 1999-2014 Gentoo Foundation
|
||
13 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
11 years ago
|
# $Header: /var/cvsroot/gentoo-x86/dev-java/cos/cos-20021105-r3.ebuild,v 1.1 2014/03/08 18:07:01 tomwij Exp $
|
||
|
|
||
|
EAPI="5"
|
||
13 years ago
|
|
||
|
JAVA_PKG_IUSE="doc source"
|
||
11 years ago
|
|
||
13 years ago
|
inherit java-pkg-2 java-ant-2
|
||
|
|
||
|
MY_PV=05Nov2002
|
||
|
MY_P=${PN}-${MY_PV}
|
||
11 years ago
|
|
||
13 years ago
|
DESCRIPTION="The com.oreilly.servlet package is a class library for servlet developers."
|
||
|
HOMEPAGE="http://servlets.com/cos/"
|
||
|
SRC_URI="http://servlets.com/${PN}/${MY_P}.zip"
|
||
|
|
||
|
LICENSE="cos"
|
||
|
SLOT="0"
|
||
|
KEYWORDS="~amd64 ~x86"
|
||
11 years ago
|
|
||
|
IUSE="${JAVA_PKG_IUSE}"
|
||
13 years ago
|
|
||
|
RDEPEND=">=virtual/jre-1.4
|
||
|
java-virtuals/servlet-api:2.3"
|
||
11 years ago
|
|
||
13 years ago
|
DEPEND=">=virtual/jdk-1.4
|
||
11 years ago
|
app-arch/unzip:0
|
||
13 years ago
|
${RDEPEND}"
|
||
|
|
||
11 years ago
|
S="${WORKDIR}"
|
||
|
|
||
|
java_prepare() {
|
||
|
rm -r lib classes *.war || die
|
||
|
|
||
|
# TODO: Not sure how to fix the compilation error for this class;
|
||
|
# so, we'll just delete it for now...
|
||
|
rm src/com/oreilly/servlet/CacheHttpServlet.java || die
|
||
13 years ago
|
|
||
11 years ago
|
cp "${FILESDIR}"/build-${PV}.xml build.xml || die
|
||
13 years ago
|
|
||
|
cat > build.properties <<-EOF
|
||
|
classpath=$(java-pkg_getjars servlet-api-2.3)
|
||
|
EOF
|
||
|
}
|
||
|
|
||
|
src_compile() {
|
||
|
eant -Dproject.name=${PN} jar $(use_doc)
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
java-pkg_dojar dist/${PN}.jar
|
||
11 years ago
|
dodoc readme.txt license.txt
|
||
13 years ago
|
|
||
|
use doc && java-pkg_dojavadoc dist/doc/api
|
||
|
use source && java-pkg_dosrc src/com
|
||
|
}
|