[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/32: gnu: Add java-jsoup.
From: |
julien lepiller |
Subject: |
02/32: gnu: Add java-jsoup. |
Date: |
Sat, 10 Feb 2018 13:05:08 -0500 (EST) |
roptat pushed a commit to branch master
in repository guix.
commit c2b3857ebe0d9034f9b22acb152a29d41623bd88
Author: Julien Lepiller <address@hidden>
Date: Sat Nov 18 14:54:06 2017 +0100
gnu: Add java-jsoup.
* gnu/packages/web.scm (java-jsoup): New variable.
---
gnu/packages/web.scm | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index fb07643..1497b38 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -6119,6 +6119,44 @@ container.")))
("server" ,java-eclipse-jetty-server-9.2)
,@(package-inputs java-eclipse-jetty-util-9.2)))))
+(define-public java-jsoup
+ (package
+ (name "java-jsoup")
+ (version "1.10.3")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "https://github.com/jhy/jsoup/archive/jsoup-"
+ version ".tar.gz"))
+ (sha256
+ (base32
+ "0xbzw7rjv7s4nz1xk9b2cnin6zkpaldmc3svk71waa7hhjgp0a20"))))
+ (build-system ant-build-system)
+ (arguments
+ `(#:jar-name "jsoup.jar"
+ #:source-dir "src/main/java"
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'build 'copy-resources
+ (lambda _
+ (let ((classes-dir (string-append (getcwd) "/build/classes")))
+ (with-directory-excursion "src/main/java"
+ (for-each (lambda (file)
+ (let ((dist (string-append classes-dir "/" file)))
+ (mkdir-p (dirname dist))
+ (copy-file file dist)))
+ (find-files "." ".*.properties"))))
+ #t)))))
+ (native-inputs
+ `(("java-junit" ,java-junit)
+ ("java-hamcrest-core" ,java-hamcrest-core)
+ ("java-gson" ,java-gson)))
+ (home-page "https://jsoup.org")
+ (synopsis "HTML parser")
+ (description "Jsoup is a Java library for working with real-world HTML. It
+provides a very convenient API for extracting and manipulating data, using the
+best of DOM, CSS, and jQuery-like methods.")
+ (license l:expat)))
+
(define-public tidyp
(package
(name "tidyp")
- branch master updated (04162e8 -> 73a1f10), julien lepiller, 2018/02/10
- 01/32: gnu: Add java-gson., julien lepiller, 2018/02/10
- 02/32: gnu: Add java-jsoup.,
julien lepiller <=
- 05/32: gnu: Add java-geronimo-xbean-finder., julien lepiller, 2018/02/10
- 09/32: gnu: Add java-jboss-el-api-spec., julien lepiller, 2018/02/10
- 04/32: gnu: Add java-geronimo-xbean-asm-util., julien lepiller, 2018/02/10
- 03/32: gnu: Add java-geronimo-xbean-bundleutils., julien lepiller, 2018/02/10
- 08/32: gnu: Add java-jansi., julien lepiller, 2018/02/10
- 16/32: gnu: Add java-apache-xml-commons-resolver., julien lepiller, 2018/02/10
- 06/32: gnu: Add java-hawtjni., julien lepiller, 2018/02/10
- 14/32: licenses: Add W3C license., julien lepiller, 2018/02/10
- 07/32: gnu: Add java-jansi-native., julien lepiller, 2018/02/10
- 30/32: gnu: Add java-jline., julien lepiller, 2018/02/10