From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35394) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eCZOA-0001rH-3A for guix-patches@gnu.org; Wed, 08 Nov 2017 18:04:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eCZO6-00043H-VH for guix-patches@gnu.org; Wed, 08 Nov 2017 18:04:06 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:50506) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eCZO6-00043D-QV for guix-patches@gnu.org; Wed, 08 Nov 2017 18:04:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eCZO6-0002Dp-IH for guix-patches@gnu.org; Wed, 08 Nov 2017 18:04:02 -0500 Subject: [bug#29221] [PATCH 05/19] gnu: Add java-mail. Resent-Message-ID: Date: Wed, 8 Nov 2017 23:03:19 +0000 From: ng0 Message-ID: <20171108230319.ohgktgc7oh5grvje@abyayala> References: <20171108231537.34a601cc@lepiller.eu> <20171108225140.6587-1-julien@lepiller.eu> <20171108225140.6587-5-julien@lepiller.eu> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="p2ckn6vzjmpx4jwm" Content-Disposition: inline In-Reply-To: <20171108225140.6587-5-julien@lepiller.eu> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: julien@lepiller.eu Cc: 29221@debbugs.gnu.org --p2ckn6vzjmpx4jwm Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable julien@lepiller.eu transcribed 3.8K bytes: > From: Julien Lepiller >=20 > * gnu/packages/java.scm (java-mail): New variable. I didn't follow any of the past Java commits, but shouldn't this mention: > * gnu/packages/java.scm (java-jboss-jms-api-spec): New variable. as well? Only recently I learned that python with python2 variants in the same commit should mention both, so I guess this applies here aswell if java-mail can not build without the java-jboss-jms-api-spec. However, just from reading the definitions it's not clear to me why the 2 were bundled. > --- > gnu/packages/java.scm | 77 +++++++++++++++++++++++++++++++++++++++++++++= ++++++ > 1 file changed, 77 insertions(+) >=20 > diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm > index 37e3f5180..67805bae7 100644 > --- a/gnu/packages/java.scm > +++ b/gnu/packages/java.scm > @@ -6949,3 +6949,80 @@ done to the IDE or continuous integration servers = which simplifies adoption.") > ("reflect" ,java-powermock-reflect) > ("support" ,java-powermock-api-support) > ("cglib" ,java-cglib))))) > + > +(define-public java-jboss-jms-api-spec > + (package > + (name "java-jboss-jms-api-spec") > + (version "2.0") > + (source (origin > + (method url-fetch) > + (uri (string-append "https://github.com/jboss/jboss-jms-ap= i_spec/" > + "archive/jboss-jms-api_" version > + "_spec-1.0.1.Final.tar.gz")) > + (sha256 > + (base32 > + "07bqblw9kq2i8q92bz70fvavq5xjfkaixl8xa0m0cypjgy82rb7m"))= )) > + (build-system ant-build-system) > + (arguments > + `(#:jar-name "java-jboss-jms-api_spec.jar" > + #:jdk ,icedtea-8 > + #:source-dir "." > + #:tests? #f)); no tests > + (home-page "https://github.com/jboss/jboss-jms-api_spec") > + (synopsis "Java Message Service API specification") > + (description "Java Message Service (JMS) API is used to send messages > +messages between two or more clients. It is a messaging standard that a= llows > +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/ar= chive/" > + "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 Devel= opment > + ;; and Distribution License("CDDL") > + (license (list license:cddl1.1 > + license:gpl2)))); with classpath exception > --=20 > 2.15.0 >=20 >=20 >=20 >=20 >=20 --=20 GnuPG: A88C8ADD129828D7EAC02E52E22F9BBFEE348588 GnuPG: https://dist.ng0.infotropique.org/dist/keys/ WWW: https://ng0.infotropique.org --p2ckn6vzjmpx4jwm Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEqIyK3RKYKNfqwC5S4i+bv+40hYgFAloDjTcACgkQ4i+bv+40 hYj2/BAArYENwOJfsAU7rUKXIEjccygGVokjFxa6S6LKJ+lGer+kgv04dC+TlUlV dxt6MAwRZ7PBZ7gkTJF520ZEEEFxMzL75qfiT8rBTMisDBkNRIOyM74xFSIg5G+C 6bfhtQ1hDD4zcsodbvhU2gMUixRi6SdeTsyLvyblPlDnA/T4sfkkxmZapwGdp5La ljhnNVmGob6I+BV494bg4J+FSIHG9d2g2FVjChAiF+TLxlE/rfV+2SXJscxxGehT INnEeOEQd3k67ogS12vRP11gU3Fk1B8k5gnhcrc8OD4woxmA8IZf0z6yL2u3mGAG b46AxW0qjvjX4dMqZnXQJLoWbeMJgDy23K5QKE1qQfO6EqL3HX6wLvTn7kknKPtq whPCyhjEZo849027igXqquqtXSLcvXt40NRq3SjKQ7Lh0SNkVEABG/LV8TZMV1xm z8r9R6biT8z04VjiZEgeWa6UrcTPwA3mmN0GofImYlzZi4+Vy4fWm5yhE/N2HhbY 8Z4Z9k/0OMorDXwL6KqvaDD00k4IBQSWIay4StaqXXiJegPjpyzyi4ZdYenC+A48 QqYoYBFSORi0ml8qSzl5AlD7zOYeGP/lVkaAndvvcTCwD5sHOMLz1p8RezsfZolg M5Ho7h4F4YlIAZ2UH/OQ14t2JpfrF/knr1ji5SqEmGZb79zXyAQ= =D4VC -----END PGP SIGNATURE----- --p2ckn6vzjmpx4jwm--