From: Patrice Clement Date: Wed, 30 Sep 2015 17:53:16 +0000 (+0000) Subject: dev-java/commons-email: Initial commit. Imported from java-overlay. Fixes bug 223359. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=25d5ff0c15d1838b0789f673f170da227b2e2c66;p=gentoo.git dev-java/commons-email: Initial commit. Imported from java-overlay. Fixes bug 223359. Signed-off-by: Patrice Clement --- diff --git a/dev-java/commons-email/Manifest b/dev-java/commons-email/Manifest new file mode 100644 index 000000000000..0a878e504eb8 --- /dev/null +++ b/dev-java/commons-email/Manifest @@ -0,0 +1 @@ +DIST commons-email-1.4-src.tar.gz 288876 SHA256 bf86115adc3e724c3e713102874d4ca686e7e6e34f9856438655be5a4c008cb0 SHA512 2a62256e284b9f4f428cf8544e46e81aa521476c41243df1c4f8a9e1bd4bcea3c768346aaab862b8c2a8b271c6012a38164c6d62867d2849a3ee0c2820fe422c WHIRLPOOL aaca35bd39e09020653af31b8147d1c323b80a7805199cb060327b0558c4ebbd86381a851edc06c63ed8bbc328a770d90e032c2edc302a6aca58b3624b6beab6 diff --git a/dev-java/commons-email/commons-email-1.4.ebuild b/dev-java/commons-email/commons-email-1.4.ebuild new file mode 100644 index 000000000000..c4837bb206fd --- /dev/null +++ b/dev-java/commons-email/commons-email-1.4.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +JAVA_PKG_IUSE="source doc test" + +inherit java-pkg-2 java-ant-2 + +DESCRIPTION="Commons Email aims to provide an API for sending email." +HOMEPAGE="http://commons.apache.org/email/" +SRC_URI="mirror://apache/commons/email/source/${P}-src.tar.gz" +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" + +# Requires a slew of packages we don't ship yet. +RESTRICT="test" + +CDEPEND="dev-java/oracle-javamail:0" + +RDEPEND=">=virtual/jre-1.6 + ${CDEPEND}" +DEPEND=">=virtual/jdk-1.6 + test? ( + dev-java/ant-junit:0 + ) + ${CDEPEND}" +IUSE="" + +S="${WORKDIR}/${P}-src" + +JAVA_ANT_REWRITE_CLASSPATH="yes" + +EANT_GENTOO_CLASSPATH="oracle-javamail" +EANT_BUILD_TARGET="package" + +java_prepare() { + cp "${FILESDIR}/${P}-build.xml" build.xml || die +} + +src_test() { + java-pkg-2_src_test +} + +src_install() { + java-pkg_newjar target/${P}.jar ${PN}.jar + dodoc {NOTICE,README,RELEASE-NOTES}.txt || die + use doc && java-pkg_dojavadoc target/site/apidocs + use source && java-pkg_dosrc src/main/java +} diff --git a/dev-java/commons-email/files/commons-email-1.4-build.xml b/dev-java/commons-email/files/commons-email-1.4-build.xml new file mode 100644 index 000000000000..9fb5f0e373bf --- /dev/null +++ b/dev-java/commons-email/files/commons-email-1.4-build.xml @@ -0,0 +1,261 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + =================================== WARNING =================================== + JUnit is not present in the test classpath or your $ANT_HOME/lib directory. Tests not executed. + =============================================================================== + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/dev-java/commons-email/metadata.xml b/dev-java/commons-email/metadata.xml new file mode 100644 index 000000000000..a620379538aa --- /dev/null +++ b/dev-java/commons-email/metadata.xml @@ -0,0 +1,8 @@ + + + + java + + monsieurp@gentoo.org + +