[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/20: gnu: Add java-mail.
From: |
julien lepiller |
Subject: |
06/20: gnu: Add java-mail. |
Date: |
Sat, 18 Nov 2017 05:32:57 -0500 (EST) |
roptat pushed a commit to branch master
in repository guix.
commit 3ff47c666560f99e30ac7be08d934994958df031
Author: Julien Lepiller <address@hidden>
Date: Sun Nov 5 12:40:24 2017 +0100
gnu: Add java-mail.
* gnu/packages/java.scm (java-mail): New variable.
---
gnu/packages/java.scm | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 51 insertions(+)
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index f317245..d2ca7f4 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -6909,3 +6909,54 @@ messages between two or more clients. It is a messaging
standard that allows
application components to create, send, receive, and read messages.")
; either gpl2 only with GPL Classpath Exception, or cddl.
(license (list license:gpl2 license:cddl1.0))))
+
+(define-public java-mail
+ (package
+ (name "java-mail")
+ (version "1.6.0")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "https://github.com/javaee/javamail/archive/"
+ "JAVAMAIL-1_6_0.tar.gz"))
+ (sha256
+ (base32
+ "1b4rg7fpj50ld90a71iz2m4gm3f5cnw18p3q3rbrrryjip46kx92"))))
+ (build-system ant-build-system)
+ (arguments
+ `(#:jar-name "java-mail.jar"
+ #:jdk ,icedtea-8
+ #:source-dir "mail/src/main/java"
+ #:test-dir "mail/src/test"
+ #:test-exclude
+ (list "**/CollectorFormatterTest.java"
+ "**/CompactFormatterTest.java"
+ "**/DurationFilterTest.java"
+ "**/MailHandlerTest.java"
+ "**/GetLocalAddressTest.java"
+ ;; FIXME: both end with:
+ ;; java.lang.ClassNotFoundException:
+ ;; javax.mail.internet.MimeMultipartParseTest
+ "**/MimeMultipartParseTest.java"
+ "**/SearchTermSerializationTest.java")
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'configure 'move-version.java
+ (lambda _
+ (copy-file "mail/src/main/resources/javax/mail/Version.java"
+ "mail/src/main/java/javax/mail/Version.java")))
+ (add-before 'build 'copy-resources
+ (lambda _
+ (copy-recursively "mail/src/main/resources/META-INF"
+ "build/classes/META-INF")
+ #t)))))
+ (native-inputs
+ `(("junit" ,java-junit)
+ ("hamcrest" ,java-hamcrest-core)))
+ (home-page "https://javaee.github.io/javamail/")
+ (synopsis "Mail-related functionnalities in Java")
+ (description "The JavaMail API provides a platform-independent and
+protocol-independent framework to build mail and messaging applications.")
+ ;; General Public License Version 2 only ("GPL") or the Common Development
+ ;; and Distribution License("CDDL")
+ (license (list license:cddl1.1
+ license:gpl2)))); with classpath exception
- branch master updated (82af2c2 -> a083729), julien lepiller, 2017/11/18
- 05/20: gnu: Add java-jboss-jms-api-spec., julien lepiller, 2017/11/18
- 01/20: gnu: Add bitshuffle., julien lepiller, 2017/11/18
- 03/20: gnu: Add java-iq80-snappy., julien lepiller, 2017/11/18
- 02/20: gnu: Add java-snappy., julien lepiller, 2017/11/18
- 09/20: gnu: Add java-commons-collections., julien lepiller, 2017/11/18
- 11/20: gnu: Add java-kafka-clients., julien lepiller, 2017/11/18
- 17/20: gnu: Add java-plexus-container-default-bootstrap., julien lepiller, 2017/11/18
- 06/20: gnu: Add java-mail.,
julien lepiller <=
- 04/20: licenses: Add cddl1.1., julien lepiller, 2017/11/18
- 08/20: gnu: Add java-commons-csv., julien lepiller, 2017/11/18
- 13/20: gnu: Add java-log4j-1.2-api., julien lepiller, 2017/11/18
- 14/20: gnu: Add java-jdom., julien lepiller, 2017/11/18
- 12/20: gnu: Add java-log4j-core., julien lepiller, 2017/11/18
- 20/20: gnu: Add java-plexus-container-default., julien lepiller, 2017/11/18
- 07/20: gnu: Add java-jeromq., julien lepiller, 2017/11/18
- 18/20: gnu: Add java-plexus-io., julien lepiller, 2017/11/18
- 10/20: gnu: Add java-commons-beanutils., julien lepiller, 2017/11/18
- 15/20: gnu: Add java-geronimo-xbean-reflect., julien lepiller, 2017/11/18