Remove upstreamed packages
more/packages/java.scm
1082 | 1082 | (description "OSM editor.") | |
1083 | 1083 | (license license:gpl2+))) | |
1084 | 1084 | ||
1085 | - | (define-public java-jdom2 | |
1086 | - | (package | |
1087 | - | (name "java-jdom") | |
1088 | - | (version "2.0.6") | |
1089 | - | (source (origin | |
1090 | - | (method url-fetch) | |
1091 | - | (uri (string-append "https://github.com/hunterhacker/jdom/archive/JDOM-" | |
1092 | - | version ".tar.gz")) | |
1093 | - | (sha256 | |
1094 | - | (base32 | |
1095 | - | "0p8n7inqq2a25wk9ljinl3ixlx1x2la9qaman8ngd75xxjb02yc1")))) | |
1096 | - | (build-system ant-build-system) | |
1097 | - | (arguments | |
1098 | - | `(#:build-target "package" | |
1099 | - | #:tests? #f; tests are run as part of the build process | |
1100 | - | #:phases | |
1101 | - | (modify-phases %standard-phases | |
1102 | - | (replace 'install | |
1103 | - | (install-jars "build"))))) | |
1104 | - | (home-page "http://jdom.org/") | |
1105 | - | (synopsis "Access, manipulate, and output XML data") | |
1106 | - | (description "Java-based solution for accessing, manipulating, and | |
1107 | - | outputting XML data from Java code.") | |
1108 | - | (license license:bsd-4))) | |
1109 | - | ||
1110 | 1085 | ;; As of 2010-09-01, the ORO project is retired | |
1111 | 1086 | (define-public java-jakarta-regexp | |
1112 | 1087 | (package | |
… | |||
1254 | 1229 | (description "") | |
1255 | 1230 | (license (list license:gpl2 license:cddl1.0)))); either gpl2 only or cddl. | |
1256 | 1231 | ||
1257 | - | (define-public java-jboss-interceptors-api-spec | |
1258 | - | (package | |
1259 | - | (name "java-jboss-interceptors-api-spec") | |
1260 | - | (version "1.2") | |
1261 | - | (source (origin | |
1262 | - | (method url-fetch) | |
1263 | - | (uri (string-append "https://github.com/jboss/jboss-interceptors-api_spec/" | |
1264 | - | "archive/jboss-interceptors-api_" version | |
1265 | - | "_spec-1.0.0.Final.tar.gz")) | |
1266 | - | (sha256 | |
1267 | - | (base32 | |
1268 | - | "0wv8x0jp9a5qxlrgkhb5jdk2gr6vi87b4j4kjb8ryxiy9gn8g51z")))) | |
1269 | - | (build-system ant-build-system) | |
1270 | - | (arguments | |
1271 | - | `(#:jar-name "java-jboss-interceptors-api_spec.jar" | |
1272 | - | #:jdk ,icedtea-8 | |
1273 | - | #:source-dir "." | |
1274 | - | #:tests? #f)); no tests | |
1275 | - | (home-page "https://github.com/jboss/jboss-interceptors-api_spec") | |
1276 | - | (synopsis "") | |
1277 | - | (description "") | |
1278 | - | (license (list license:gpl2 license:cddl1.0)))); either gpl2 only or cddl. | |
1279 | - | ||
1280 | - | (define-public java-jboss-el-api-spec | |
1281 | - | (package | |
1282 | - | (name "java-jboss-el-api-spec") | |
1283 | - | (version "3.0") | |
1284 | - | (source (origin | |
1285 | - | (method url-fetch) | |
1286 | - | (uri (string-append "https://github.com/jboss/jboss-el-api_spec/" | |
1287 | - | "archive/jboss-el-api_" version | |
1288 | - | "_spec-1.0.7.Final.tar.gz")) | |
1289 | - | (sha256 | |
1290 | - | (base32 | |
1291 | - | "1j45ljxalwlibxl7g7iv952sjxkw275m8vyxxij8l6wdd5pf0pdh")))) | |
1292 | - | (build-system ant-build-system) | |
1293 | - | (arguments | |
1294 | - | `(#:jar-name "java-jboss-el-api_spec.jar" | |
1295 | - | #:jdk ,icedtea-8)) | |
1296 | - | (inputs | |
1297 | - | `(("java-junit" ,java-junit))) | |
1298 | - | (home-page "https://github.com/jboss/jboss-el-api_spec") | |
1299 | - | (synopsis "") | |
1300 | - | (description "") | |
1301 | - | (license (list license:gpl2 license:cddl1.0)))); either gpl2 only or cddl. | |
1302 | - | ||
1303 | 1232 | (define-public java-jboss-transaction-api-spec | |
1304 | 1233 | (package | |
1305 | 1234 | (name "java-jboss-transaction-api-spec") | |
… | |||
1371 | 1300 | (description "") | |
1372 | 1301 | (license license:asl2.0))) | |
1373 | 1302 | ||
1374 | - | (define java-xmlunit-test-resources | |
1375 | - | (origin | |
1376 | - | (method git-fetch) | |
1377 | - | (uri (git-reference | |
1378 | - | (url "https://github.com/xmlunit/test-resources.git") | |
1379 | - | (commit "a590d2ae865c3e0455691d76ba8eefccc2215aec"))) | |
1380 | - | (file-name "java-xmlunit-test-resources") | |
1381 | - | (sha256 | |
1382 | - | (base32 | |
1383 | - | "0r0glj37pg5l868yjz78gckr91cs8fysxxbp9p328dssssi91agr")))) | |
1384 | - | ||
1385 | - | (define-public java-xmlunit | |
1386 | - | (package | |
1387 | - | (name "java-xmlunit") | |
1388 | - | (version "2.4.0") | |
1389 | - | (source (origin | |
1390 | - | (method url-fetch) | |
1391 | - | (uri (string-append "https://github.com/xmlunit/xmlunit/archive/v" | |
1392 | - | version ".tar.gz")) | |
1393 | - | (sha256 | |
1394 | - | (base32 | |
1395 | - | "0gy9wbrg682m5j4p7xw2lvvp1p86vrki83kcl59h084z262ks2pl")))) | |
1396 | - | (build-system ant-build-system) | |
1397 | - | (arguments | |
1398 | - | `(#:jar-name "java-xmlunit.jar" | |
1399 | - | #:source-dir "xmlunit-core/src/main/java" | |
1400 | - | #:test-dir "xmlunit-core/src/test" | |
1401 | - | #:phases | |
1402 | - | (modify-phases %standard-phases | |
1403 | - | (add-before 'check 'copy-test-resources | |
1404 | - | (lambda* (#:key inputs #:allow-other-keys) | |
1405 | - | (copy-recursively (assoc-ref inputs "resources") "../test-resources")))))) | |
1406 | - | (native-inputs | |
1407 | - | `(("java-junit" ,java-junit) | |
1408 | - | ("java-mockito-1" ,java-mockito-1) | |
1409 | - | ("java-hamcrest-all" ,java-hamcrest-all) | |
1410 | - | ("java-objenesis" ,java-objenesis) | |
1411 | - | ("java-asm" ,java-asm) | |
1412 | - | ("java-cglib" ,java-cglib) | |
1413 | - | ("resources" ,java-xmlunit-test-resources))) | |
1414 | - | (home-page "https://github.com/xmlunit/xmlunit") | |
1415 | - | (synopsis "") | |
1416 | - | (description "") | |
1417 | - | (license license:asl2.0))) | |
1418 | - | ||
1419 | - | (define-public java-xmlunit-legacy | |
1420 | - | (package | |
1421 | - | (inherit java-xmlunit) | |
1422 | - | (name "java-xmlunit-legacy") | |
1423 | - | (arguments | |
1424 | - | `(#:jar-name "java-xmlunit-legacy.jar" | |
1425 | - | #:source-dir "xmlunit-legacy/src/main/java" | |
1426 | - | #:test-dir "xmlunit-legacy/src/test")) | |
1427 | - | (inputs | |
1428 | - | `(("java-xmlunit" ,java-xmlunit) | |
1429 | - | ("java-junit" ,java-junit))) | |
1430 | - | (native-inputs | |
1431 | - | `(("java-mockito-1" ,java-mockito-1))))) | |
1432 | - | ||
1433 | 1303 | (define-public java-spring-framework-core | |
1434 | 1304 | (package | |
1435 | 1305 | (name "java-spring-framework-core") | |
… | |||
2415 | 2285 | (description "") | |
2416 | 2286 | (license license:asl2.0))) | |
2417 | 2287 | ||
2418 | - | (define-public java-gson | |
2419 | - | (package | |
2420 | - | (name "java-gson") | |
2421 | - | (version "2.8.2") | |
2422 | - | (source (origin | |
2423 | - | (method url-fetch) | |
2424 | - | (uri (string-append "https://github.com/google/gson/archive/" | |
2425 | - | "gson-parent-" version ".tar.gz")) | |
2426 | - | (sha256 | |
2427 | - | (base32 | |
2428 | - | "1j4qnp7v046q0k48c4kyf69sxaasx2h949d3cqwsm3kzxms3x0f9")))) | |
2429 | - | (build-system ant-build-system) | |
2430 | - | (arguments | |
2431 | - | `(#:jar-name "gson.jar" | |
2432 | - | #:source-dir "gson/src/main/java" | |
2433 | - | #:test-dir "gson/src/test")) | |
2434 | - | (native-inputs | |
2435 | - | `(("java-junit" ,java-junit) | |
2436 | - | ("java-hamcrest-core" ,java-hamcrest-core))) | |
2437 | - | (home-page "") | |
2438 | - | (synopsis "") | |
2439 | - | (description "") | |
2440 | - | (license license:asl2.0))) | |
2441 | - | ||
2442 | - | (define-public java-jsoup | |
2443 | - | (package | |
2444 | - | (name "java-jsoup") | |
2445 | - | (version "1.10.3") | |
2446 | - | (source (origin | |
2447 | - | (method url-fetch) | |
2448 | - | (uri (string-append "https://github.com/jhy/jsoup/archive/jsoup-" | |
2449 | - | version ".tar.gz")) | |
2450 | - | (sha256 | |
2451 | - | (base32 | |
2452 | - | "0xbzw7rjv7s4nz1xk9b2cnin6zkpaldmc3svk71waa7hhjgp0a20")))) | |
2453 | - | (build-system ant-build-system) | |
2454 | - | (arguments | |
2455 | - | `(#:jar-name "jsoup.jar" | |
2456 | - | #:source-dir "src/main/java" | |
2457 | - | #:phases | |
2458 | - | (modify-phases %standard-phases | |
2459 | - | (add-before 'build 'copy-resources | |
2460 | - | (lambda _ | |
2461 | - | (let ((classes-dir (string-append (getcwd) "/build/classes"))) | |
2462 | - | (with-directory-excursion "src/main/java" | |
2463 | - | (for-each (lambda (file) | |
2464 | - | (let ((dist (string-append classes-dir "/" file))) | |
2465 | - | (mkdir-p (dirname dist)) | |
2466 | - | (copy-file file dist))) | |
2467 | - | (find-files "." ".*.properties"))))))))) | |
2468 | - | (native-inputs | |
2469 | - | `(("java-junit" ,java-junit) | |
2470 | - | ("java-hamcrest-core" ,java-hamcrest-core) | |
2471 | - | ("gson" ,java-gson))) | |
2472 | - | (home-page "https://jsoup.org") | |
2473 | - | (synopsis "HTML Parser") | |
2474 | - | (description "jsoup is a Java library for working with real-world HTML. It | |
2475 | - | provides a very convenient API for extracting and manipulating data, using the | |
2476 | - | best of DOM, CSS, and jquery-like methods.") | |
2477 | - | (license license:expat))) | |
2478 | - | ||
2479 | 2288 | (define-public java-commons-pool | |
2480 | 2289 | (package | |
2481 | 2290 | (name "java-commons-pool") | |
… | |||
2541 | 2350 | (description "") | |
2542 | 2351 | (license license:asl2.0))) | |
2543 | 2352 | ||
2544 | - | (define-public java-cdi-api | |
2545 | - | (package | |
2546 | - | (name "java-cdi-api") | |
2547 | - | (version "2.0") | |
2548 | - | (source (origin | |
2549 | - | (method url-fetch) | |
2550 | - | (uri (string-append "https://github.com/cdi-spec/cdi/archive/" | |
2551 | - | version ".tar.gz")) | |
2552 | - | (sha256 | |
2553 | - | (base32 | |
2554 | - | "1iv8b8bp07c5kmqic14jsr868vycjv4qv02lf3pkgp9z21mnfg5y")))) | |
2555 | - | (build-system ant-build-system) | |
2556 | - | (arguments | |
2557 | - | `(#:source-dir "api/src/main/java" | |
2558 | - | #:jar-name "java-cdi-api.jar" | |
2559 | - | #:test-dir "api/src/test" | |
2560 | - | #:jdk ,icedtea-8 | |
2561 | - | #:phases | |
2562 | - | (modify-phases %standard-phases | |
2563 | - | (replace 'check | |
2564 | - | (lambda _ | |
2565 | - | (system* "ant" "compile-tests") | |
2566 | - | ;; This fails though | |
2567 | - | (system* "java" "-cp" (string-append (getenv "CLASSPATH") | |
2568 | - | ":build/classes" | |
2569 | - | ":build/test-classes") | |
2570 | - | "org.testng.TestNG" "-verbose" "5" "-testclass" | |
2571 | - | "build/test-classes/org/jboss/cdi/api/test/CDITest.class") | |
2572 | - | #t))))) | |
2573 | - | (inputs | |
2574 | - | `(("java-javax-inject" ,java-javax-inject) | |
2575 | - | ("java-jboss-el-api-spec" ,java-jboss-el-api-spec) | |
2576 | - | ("java-jboss-interceptors-api-spec" ,java-jboss-interceptors-api-spec))) | |
2577 | - | (native-inputs | |
2578 | - | `(("java-testng" ,java-testng) | |
2579 | - | ("java-hamcrest-core" ,java-hamcrest-core))) | |
2580 | - | (home-page "") | |
2581 | - | (synopsis "") | |
2582 | - | (description "") | |
2583 | - | (license license:asl2.0))) | |
2584 | - | ||
2585 | 2353 | (define-public java-commons-dbcp2 | |
2586 | 2354 | (package | |
2587 | 2355 | (name "java-commons-dbcp2") | |
… | |||
3229 | 2997 | (("@IgnoreJRERequirement") ""))) | |
3230 | 2998 | #t))))))) | |
3231 | 2999 | ||
3232 | - | (define-public java-joda-convert | |
3233 | - | (package | |
3234 | - | (name "java-joda-convert") | |
3235 | - | (version "1.8.1") | |
3236 | - | (source (origin | |
3237 | - | (method url-fetch) | |
3238 | - | (uri (string-append "https://github.com/JodaOrg/joda-convert/archive/v" | |
3239 | - | version ".tar.gz")) | |
3240 | - | (file-name (string-append name "-" version ".tar.gz")) | |
3241 | - | (sha256 | |
3242 | - | (base32 | |
3243 | - | "1di9chp0pgvd2gxsmdaxhldwns9a2ss9705jmn97mdd69cg5zcnc")))) | |
3244 | - | (build-system ant-build-system) | |
3245 | - | (arguments | |
3246 | - | `(#:jar-name (string-append ,name "-" ,version ".jar") | |
3247 | - | #:source-dir "src/main/java" | |
3248 | - | #:test-exclude (list "**/test*/**.java"))) | |
3249 | - | (inputs | |
3250 | - | `(("java-guava" ,java-guava))) | |
3251 | - | (native-inputs | |
3252 | - | `(("java-junit" ,java-junit) | |
3253 | - | ("java-hamcrest-core" ,java-hamcrest-core))) | |
3254 | - | (home-page "") | |
3255 | - | (synopsis "") | |
3256 | - | (description "") | |
3257 | - | (license license:asl2.0))) | |
3258 | - | ||
3259 | - | (define-public java-joda-time | |
3260 | - | (package | |
3261 | - | (name "java-joda-time") | |
3262 | - | (version "2.9.9") | |
3263 | - | (source (origin | |
3264 | - | (method url-fetch) | |
3265 | - | (uri (string-append "https://github.com/JodaOrg/joda-time/archive/v" | |
3266 | - | version ".tar.gz")) | |
3267 | - | (file-name (string-append name "-" version ".tar.gz")) | |
3268 | - | (sha256 | |
3269 | - | (base32 | |
3270 | - | "1i9x91mi7yg2pasl0k3912f1pg46n37sps6rdb0v1gs8hj9ppwc1")))) | |
3271 | - | (build-system ant-build-system) | |
3272 | - | (arguments | |
3273 | - | `(#:jar-name "java-joda-time.jar" | |
3274 | - | #:source-dir "src/main/java" | |
3275 | - | #:test-include (list "**/Test*.java") | |
3276 | - | #:test-exclude (list "**/Test*Chronology.java" "**/Test*Field.java") | |
3277 | - | #:phases | |
3278 | - | (modify-phases %standard-phases | |
3279 | - | (add-after 'build 'build-resources | |
3280 | - | (lambda _ | |
3281 | - | (mkdir-p "build/classes/org/joda/time/tz/data") | |
3282 | - | (mkdir-p "build/classes/org/joda/time/format") | |
3283 | - | ;; This will produce an exception, but it's all right. | |
3284 | - | (zero? (system* "java" "-cp" (string-append "build/classes:" (getenv "CLASSPATH")) | |
3285 | - | "org.joda.time.tz.ZoneInfoCompiler" | |
3286 | - | "-src" "src/main/java/org/joda/time/tz/src" | |
3287 | - | "-dst" "build/classes/org/joda/time/tz/data" | |
3288 | - | "africa" "antarctica" "asia" "australasia" | |
3289 | - | "europe" "northamerica" "southamerica" | |
3290 | - | "pacificnew" "etcetera" "backward" "systemv")) | |
3291 | - | (for-each (lambda (f) | |
3292 | - | (copy-file f (string-append | |
3293 | - | "build/classes/org/joda/time/format/" | |
3294 | - | (basename f)))) | |
3295 | - | (find-files "src/main/java/org/joda/time/format" ".*.properties")))) | |
3296 | - | (add-before 'install 'regenerate-jar | |
3297 | - | (lambda _ | |
3298 | - | ;; We need to regenerate the jar file to add generated data. | |
3299 | - | (delete-file "build/jar/java-joda-time.jar") | |
3300 | - | (zero? (system* "jar" "-cf" "build/jar/java-joda-time.jar" "-C" | |
3301 | - | "build/classes" ".")))) | |
3302 | - | (add-before 'check 'copy-test-resources | |
3303 | - | (lambda _ | |
3304 | - | (mkdir-p "build/test-classes/org/joda/time/tz/data") | |
3305 | - | (copy-file "src/test/resources/tzdata/ZoneInfoMap" | |
3306 | - | "build/test-classes/org/joda/time/tz/data/ZoneInfoMap") | |
3307 | - | (for-each (lambda (file) | |
3308 | - | (copy-file file (string-append "build/test-classes/" | |
3309 | - | (basename file)))) | |
3310 | - | (find-files "src/test/resources/" ".*"))))))) | |
3311 | - | (inputs | |
3312 | - | `(("java-joda-convert" ,java-joda-convert))) | |
3313 | - | (native-inputs | |
3314 | - | `(("java-junit" ,java-junit) | |
3315 | - | ("java-hamcrest-core" ,java-hamcrest-core) | |
3316 | - | ("tzdata" ,tzdata))) | |
3317 | - | (home-page "") | |
3318 | - | (synopsis "") | |
3319 | - | (description "") | |
3320 | - | (license license:asl2.0))) | |
3321 | - | ||
3322 | - | (define-public java-jettison | |
3323 | - | (package | |
3324 | - | (name "java-jettison") | |
3325 | - | (version "1.3.7") | |
3326 | - | (source (origin | |
3327 | - | (method url-fetch) | |
3328 | - | (uri (string-append "https://github.com/codehaus/jettison/archive/" | |
3329 | - | "jettison-" version ".tar.gz")) | |
3330 | - | (sha256 | |
3331 | - | (base32 | |
3332 | - | "0rdhfyxywvga5wiwasc04iqnxyixn3rd8wj01c9ymhvwc3h6dpqg")))) | |
3333 | - | (build-system ant-build-system) | |
3334 | - | (arguments | |
3335 | - | `(#:jar-name "jettison.jar" | |
3336 | - | #:source-dir "src/main/java" | |
3337 | - | #:test-exclude (list "**/Abstract*.java" | |
3338 | - | ;; Abstract class | |
3339 | - | "**/DOMTest.java" | |
3340 | - | "**/BadgerFishDOMTest.java" | |
3341 | - | "**/MappedDOMTest.java"))) | |
3342 | - | (native-inputs | |
3343 | - | `(("java-junit" ,java-junit))) | |
3344 | - | (home-page "") | |
3345 | - | (synopsis "") | |
3346 | - | (description "") | |
3347 | - | (license license:asl2.0))) | |
3348 | - | ||
3349 | 3000 | ;(define-public java-xml-commons | |
3350 | 3001 | ; (package | |
3351 | 3002 | ; (name "java-xml-commons") | |
… | |||
3371 | 3022 | ; )))) | |
3372 | 3023 | ;;; actually http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231 | |
3373 | 3024 | ||
3374 | - | (define-public java-apache-xml-commons-resolver | |
3375 | - | (package | |
3376 | - | (name "java-apache-xml-commons-resolver") | |
3377 | - | (version "1.2") | |
3378 | - | (source | |
3379 | - | (origin | |
3380 | - | (method url-fetch) | |
3381 | - | (uri (string-append "mirror://apache/xerces/xml-commons/" | |
3382 | - | "xml-commons-resolver-" version ".tar.gz")) | |
3383 | - | (sha256 | |
3384 | - | (base32 "1zhy4anc3fg9f8y348bj88vmab15aavrg6nf419ifb25asyygnsm")) | |
3385 | - | (modules '((guix build utils))) | |
3386 | - | (snippet | |
3387 | - | '(begin | |
3388 | - | (for-each delete-file (find-files "." ".*\\.(jar|zip)")) | |
3389 | - | #t)))) | |
3390 | - | (build-system ant-build-system) | |
3391 | - | (arguments | |
3392 | - | `(#:jar-name (string-append "xml-resolver.jar") | |
3393 | - | #:tests? #f)); no tests | |
3394 | - | (native-inputs | |
3395 | - | `(("java-junit" ,java-junit))) | |
3396 | - | (home-page "http://xerces.apache.org/xml-commons/") | |
3397 | - | (synopsis "") | |
3398 | - | (description "TODO") | |
3399 | - | (license license:asl2.0))) | |
3400 | - | ||
3401 | - | (define-public java-jaxp | |
3402 | - | (package | |
3403 | - | (name "java-jaxp") | |
3404 | - | (version "1.4.01") | |
3405 | - | (source | |
3406 | - | (origin | |
3407 | - | (method url-fetch) | |
3408 | - | (uri (string-append "mirror://apache/xerces/xml-commons/source/" | |
3409 | - | "xml-commons-external-" version "-src.tar.gz")) | |
3410 | - | (sha256 | |
3411 | - | (base32 "0rhq32a7dl9yik7zx9h0naz2iz068qgcdiayak91wp4wr26xhjyk")))) | |
3412 | - | (build-system ant-build-system) | |
3413 | - | (arguments | |
3414 | - | `(#:jar-name "jaxp.jar" | |
3415 | - | #:jdk ,icedtea-8 | |
3416 | - | #:source-dir ".." | |
3417 | - | #:tests? #f)); no tests | |
3418 | - | ;; TODO: Debian builds several jars out of this: jaxp-1.4.jar, | |
3419 | - | ;; xml-apis.jar and xml-apis-1.4.01.jar. | |
3420 | - | (home-page "http://xerces.apache.org/xml-commons/") | |
3421 | - | (synopsis "Java XML parser and transformer APIs (DOM, SAX, JAXP, TrAX)") | |
3422 | - | (description "xml-apis.jar from the Apache XML Commons project is used by | |
3423 | - | the Xerces-J XML parser and Xalan-J XSLT processor and specifies these APIs: | |
3424 | - | ||
3425 | - | @itemize | |
3426 | - | @item Document Object Model (DOM) level 3 | |
3427 | - | @item Simple API for XML (SAX) 2.0.2 | |
3428 | - | @item Java APIs for XML Processing (JAXP) 1.3.04 | |
3429 | - | @item Transformation API for XML (TrAX) 1.3.04 | |
3430 | - | @item Document Object Model (DOM) Level 3 Load and Save | |
3431 | - | @item JSR 206 Java API for XML Processing 1.3 | |
3432 | - | @end itemize | |
3433 | - | ||
3434 | - | These classes are also used in Sun's reference implementation. A GPL'ed | |
3435 | - | implementation of these APIs can be found in the java-gnujaxp package. ") | |
3436 | - | (license license:asl2.0))) | |
3437 | - | ||
3438 | - | (define-public java-xerces | |
3439 | - | (package | |
3440 | - | (name "java-xerces") | |
3441 | - | (version "2.11.0") | |
3442 | - | (source | |
3443 | - | (origin | |
3444 | - | (method url-fetch) | |
3445 | - | (uri (string-append "mirror://apache/xerces/j/source/" | |
3446 | - | "Xerces-J-src." version ".tar.gz")) | |
3447 | - | (sha256 | |
3448 | - | (base32 "1006igwy2lqrmjvdk64v8dg6qbk9c29pm8xxx7r87n0vnpvmx6pm")) | |
3449 | - | (patches (search-patches | |
3450 | - | "java-xerces-xjavac_taskdef.patch" | |
3451 | - | "java-xerces-build_dont_unzip.patch" | |
3452 | - | "java-xerces-bootclasspath.patch" | |
3453 | - | "java-xerces-manifest_classpath.patch")))) | |
3454 | - | (build-system ant-build-system) | |
3455 | - | (arguments | |
3456 | - | `(#:tests? #f | |
3457 | - | #:jdk ,icedtea-8 | |
3458 | - | #:phases | |
3459 | - | (modify-phases %standard-phases | |
3460 | - | (add-after 'unpack 'create-build.properties | |
3461 | - | (lambda* (#:key inputs #:allow-other-keys) | |
3462 | - | (let ((jaxp (assoc-ref inputs "java-jaxp")) | |
3463 | - | (resolver (assoc-ref inputs "resolver"))) | |
3464 | - | (with-output-to-file "build.properties" | |
3465 | - | (lambda _ | |
3466 | - | (format #t | |
3467 | - | "jar.jaxp = ~a/share/java/jaxp.jar~@ | |
3468 | - | jar.apis-ext = ~a/share/java/jaxp.jar~@ | |
3469 | - | jar.resolver = ~a/share/java/xml-resolver.jar~%" | |
3470 | - | jaxp jaxp resolver)))))) | |
3471 | - | (replace 'install (install-jars "build"))))) | |
3472 | - | (native-inputs | |
3473 | - | `(("resolver" ,java-apache-xml-commons-resolver) | |
3474 | - | ("java-jaxp" ,java-jaxp))) | |
3475 | - | (home-page "https://xerces.apache.org/xerces2-j/") | |
3476 | - | (synopsis "Validating XML parser for Java with DOM level 3 support") | |
3477 | - | (description "The Xerces2 Java parser is the reference implementation of | |
3478 | - | XNI, the Xerces Native Interface, and also a fully conforming XML Schema | |
3479 | - | processor. | |
3480 | - | ||
3481 | - | Xerces2-J supports the following standards and APIs: | |
3482 | - | ||
3483 | - | @itemize | |
3484 | - | @item eXtensible Markup Language (XML) 1.0 Second Edition Recommendation | |
3485 | - | @item Namespaces in XML Recommendation | |
3486 | - | @item Document Object Model (DOM) Level 2 Core, Events, and Traversal and | |
3487 | - | Range Recommendations | |
3488 | - | @item Simple API for XML (SAX) 2.0.1 Core and Extension | |
3489 | - | @item Java APIs for XML Processing (JAXP) 1.2.01 | |
3490 | - | @item XML Schema 1.0 Structures and Datatypes Recommendations | |
3491 | - | @item Experimental implementation of the Document Object Model (DOM) Level 3 | |
3492 | - | Core and Load/Save Working Drafts | |
3493 | - | @item Provides a partial implementation of the XML Inclusions (XInclude) W3C | |
3494 | - | Candidate Recommendation | |
3495 | - | @end itemize | |
3496 | - | ||
3497 | - | Xerces is now able to parse documents written according to the XML 1.1 | |
3498 | - | Candidate Recommendation, except that it does not yet provide an option to | |
3499 | - | enable normalization checking as described in section 2.13 of this | |
3500 | - | specification. It also handles namespaces according to the XML Namespaces 1.1 | |
3501 | - | Candidate Recommendation, and will correctly serialize XML 1.1 documents if | |
3502 | - | the DOM level 3 load/save API's are in use.") | |
3503 | - | (license license:asl2.0))) | |
3504 | - | ||
3505 | 3025 | ;; This is very old (2002)! | |
3506 | 3026 | (define-public java-xmlpull | |
3507 | 3027 | (package | |
… | |||
3531 | 3051 | (description "") | |
3532 | 3052 | (license license:public-domain))) | |
3533 | 3053 | ||
3534 | - | (define-public java-xmlpull2 | |
3054 | + | (define-public java-commons-bcel | |
3535 | 3055 | (package | |
3536 | - | (name "java-xmlpull2") | |
3537 | - | (version "2.1.10") | |
3538 | - | (source (origin | |
3539 | - | (method url-fetch) | |
3540 | - | (uri (string-append "http://www.extreme.indiana.edu/xgws/xsoap/" | |
3541 | - | "PullParser/PullParser" version ".tgz")) | |
3542 | - | (sha256 | |
3543 | - | (base32 | |
3544 | - | "1kw9nhyqb7bzhn2zjbwlpi5vp5rzj89amzi3hadw2acyh2dmd0md")) | |
3545 | - | (modules '((guix build utils))) | |
3546 | - | (snippet | |
3547 | - | '(begin ;; Delete bundled jar archives. | |
3548 | - | (for-each delete-file (find-files "." ".*\\.jar")) | |
3549 | - | #t)))) | |
3550 | - | (build-system ant-build-system) | |
3551 | - | (arguments | |
3552 | - | `(#:tests? #f; no tests | |
3553 | - | #:build-target "impl" | |
3554 | - | #:phases | |
3555 | - | (modify-phases %standard-phases | |
3556 | - | (replace 'install | |
3557 | - | (lambda* (#:key outputs #:allow-other-keys) | |
3558 | - | (let ((out (string-append (assoc-ref outputs "out") "/share/java"))) | |
3559 | - | (mkdir-p out) | |
3560 | - | (copy-file "build/lib/PullParser-standard-2.1.10.jar" | |
3561 | - | (string-append out "/xmlpull2-standard.jar")) | |
3562 | - | (copy-file "build/lib/PullParser-2.1.10.jar" | |
3563 | - | (string-append out "/xmlpull2.jar")))))))) | |
3564 | - | (home-page ""); No available homepage | |
3565 | - | (synopsis "") | |
3566 | - | (description "") | |
3567 | - | (license license:public-domain))) | |
3568 | - | ||
3569 | - | (define-public java-xpp3 | |
3570 | - | (package | |
3571 | - | (name "java-xpp3") | |
3572 | - | (version "1.1.4") | |
3573 | - | (source (origin | |
3574 | - | (method url-fetch) | |
3575 | - | (uri (string-append "http://www.extreme.indiana.edu/dist/" | |
3576 | - | "java-repository/xpp3/distributions/xpp3-" | |
3577 | - | version "_src.tgz")) | |
3578 | - | (sha256 | |
3579 | - | (base32 | |
3580 | - | "1b99zrhyij5qwyhilyjdl1ykxvhk902vsvflh6gx4fir8hfvdl5p")) | |
3581 | - | (modules '((guix build utils))) | |
3582 | - | (snippet | |
3583 | - | '(begin ;; Delete bundled jar archives. | |
3584 | - | (for-each delete-file (find-files "." ".*\\.jar")) | |
3585 | - | #t)))) | |
3586 | - | (build-system ant-build-system) | |
3587 | - | (arguments | |
3588 | - | `(#:tests? #f; no tests | |
3589 | - | #:build-target "jar" | |
3590 | - | #:phases | |
3591 | - | (modify-phases %standard-phases | |
3592 | - | (replace 'install | |
3593 | - | (lambda* (#:key outputs #:allow-other-keys) | |
3594 | - | (let ((out (string-append (assoc-ref outputs "out") "/share/java"))) | |
3595 | - | (mkdir-p out) | |
3596 | - | (copy-file (string-append "build/xpp3-" ,version ".jar") | |
3597 | - | (string-append out "/xpp3.jar")))))))) | |
3598 | - | (home-page ""); No available homepage | |
3599 | - | (synopsis "") | |
3600 | - | (description "") | |
3601 | - | (license license:public-domain))) | |
3602 | - | ||
3603 | - | ;; for com.sun.msv | |
3604 | - | (define-public java-xsdlib | |
3605 | - | (package | |
3606 | - | (name "java-xsdlib") | |
3607 | - | (version "2013.2") | |
3608 | - | (source (origin | |
3609 | - | (method url-fetch) | |
3610 | - | (uri (string-append "http://central.maven.org/maven2/com/sun/msv/" | |
3611 | - | "datatype/xsd/xsdlib/" version "/xsdlib-" | |
3612 | - | version "-sources.jar")) | |
3613 | - | (sha256 | |
3614 | - | (base32 | |
3615 | - | "185i48p1xp09wbq03i9zgfl701qa262rq46yf4cajzmk3336kqim")))) | |
3616 | - | (build-system ant-build-system) | |
3617 | - | (arguments | |
3618 | - | `(#:tests? #f; no tests | |
3619 | - | #:jar-name "xsdlib.jar" | |
3620 | - | #:jdk ,icedtea-8)) | |
3621 | - | (inputs | |
3622 | - | `(("java-xerces" ,java-xerces))) | |
3623 | - | (home-page "") | |
3624 | - | (synopsis "") | |
3625 | - | (description "") | |
3626 | - | (license license:bsd-2))) | |
3627 | - | ||
3628 | - | (define-public java-commons-bcel | |
3629 | - | (package | |
3630 | - | (name "java-commons-bcel") | |
3631 | - | (version "6.0") | |
3056 | + | (name "java-commons-bcel") | |
3057 | + | (version "6.0") | |
3632 | 3058 | (source (origin | |
3633 | 3059 | (method url-fetch) | |
3634 | 3060 | (uri (string-append "mirror://apache/commons/bcel/source/bcel-" | |
… | |||
3740 | 3166 | (description "") | |
3741 | 3167 | (license license:bsd-2))) | |
3742 | 3168 | ||
3743 | - | (define-public java-dom4j | |
3744 | - | (package | |
3745 | - | (name "java-dom4j") | |
3746 | - | (version "2.1.0") | |
3747 | - | (source (origin | |
3748 | - | (method url-fetch) | |
3749 | - | (uri (string-append "https://github.com/dom4j/dom4j/archive/" | |
3750 | - | "version-" version ".tar.gz")) | |
3751 | - | (file-name (string-append name "-" version ".tar.gz")) | |
3752 | - | (sha256 | |
3753 | - | (base32 | |
3754 | - | "101drpnw6agmcvsi1jrfi0kn97r7liazrh5jbrip9vx26axn2fx9")) | |
3755 | - | (modules '((guix build utils))) | |
3756 | - | (snippet | |
3757 | - | '(begin ;; Delete bundled jar archives. | |
3758 | - | (for-each delete-file (find-files "." ".*\\.jar")) | |
3759 | - | #t)))) | |
3760 | - | (build-system ant-build-system) | |
3761 | - | (arguments | |
3762 | - | `(#:jar-name "dom4j.jar" | |
3763 | - | #:jdk ,icedtea-8 | |
3764 | - | #:source-dir "src/main/java" | |
3765 | - | #:tests? #f; Requires xalan, but xalan -> java-cup -> jflex -> java-cup... | |
3766 | - | #:phases | |
3767 | - | (modify-phases %standard-phases | |
3768 | - | (add-before 'build 'copy-jaxen-sources | |
3769 | - | (lambda* (#:key inputs #:allow-other-keys) | |
3770 | - | (mkdir-p "jaxen-sources") | |
3771 | - | (with-directory-excursion "jaxen-sources" | |
3772 | - | (system* "jar" "xf" (assoc-ref inputs "java-jaxen-sources"))) | |
3773 | - | (mkdir-p "src/main/java/org/jaxen/dom4j") | |
3774 | - | (copy-file "jaxen-sources/org/jaxen/dom4j/DocumentNavigator.java" | |
3775 | - | "src/main/java/org/jaxen/dom4j/DocumentNavigator.java") | |
3776 | - | (copy-file "jaxen-sources/org/jaxen/dom4j/Dom4jXPath.java" | |
3777 | - | "src/main/java/org/jaxen/dom4j/Dom4jXPath.java") | |
3778 | - | #t)) | |
3779 | - | (add-before 'build 'fix-old-xpp2 | |
3780 | - | (lambda _ | |
3781 | - | ;; This package normally depends on xpp2 2.0, but we can only package | |
3782 | - | ;; version 2.1.10. | |
3783 | - | (substitute* "src/main/java/org/dom4j/xpp/ProxyXmlStartTag.java" | |
3784 | - | (("public void resetStartTag") | |
3785 | - | (string-append | |
3786 | - | "public boolean removeAttributeByRawName(String name) {\n" | |
3787 | - | " return false;\n" | |
3788 | - | "}\n" | |
3789 | - | "public boolean removeAttributeByName(String name, String name2) {\n" | |
3790 | - | " return false;\n" | |
3791 | - | "}\n" | |
3792 | - | "\n" | |
3793 | - | "public void resetStartTag")) | |
3794 | - | (("Atttribute") "Attribute")) | |
3795 | - | #t))))) | |
3796 | - | (inputs | |
3797 | - | `(("java-jaxen-no-rec-deps" ,java-jaxen-no-rec-deps) | |
3798 | - | ("java-jaxen-sources" ,(package-source java-jaxen-no-rec-deps)) | |
3799 | - | ("java-xmlpull2" ,java-xmlpull2) | |
3800 | - | ("java-xpp3" ,java-xpp3) | |
3801 | - | ("java-xsdlib" ,java-xsdlib))) | |
3802 | - | (native-inputs | |
3803 | - | `(("java-testng" ,java-testng) | |
3804 | - | ("java-xerces" ,java-xerces))) | |
3805 | - | (home-page "https://dom4j.github.io/") | |
3806 | - | (synopsis "Flexible XML framework for Java") | |
3807 | - | (description "Dom4j is a flexible XML framework for Java. ") | |
3808 | - | ;; some BSD-like 5-clause license | |
3809 | - | (license (license:non-copyleft "file://LICENSE")))) | |
3810 | - | ||
3811 | - | (define-public java-jaxen-no-rec-deps | |
3812 | - | (package | |
3813 | - | (name "java-jaxen-no-rec-deps") | |
3814 | - | (version "1.1.6") | |
3815 | - | (source (origin | |
3816 | - | (method url-fetch) | |
3817 | - | (uri (string-append "https://repo1.maven.org/maven2/jaxen/jaxen/" | |
3818 | - | version "/jaxen-" version "-sources.jar")) | |
3819 | - | (sha256 | |
3820 | - | (base32 | |
3821 | - | "18pa8mks3gfhazmkyil8wsp6j1g1x7rggqxfv4k2mnixkrj5x1kx")))) | |
3822 | - | (build-system ant-build-system) | |
3823 | - | (arguments | |
3824 | - | `(#:jar-name "jaxen.jar" | |
3825 | - | #:source-dir "src" | |
3826 | - | #:tests? #f; no tests | |
3827 | - | #:phases | |
3828 | - | (modify-phases %standard-phases | |
3829 | - | (add-before 'build 'remove-dom4j | |
3830 | - | (lambda _ | |
3831 | - | (delete-file-recursively "src/org/jaxen/dom4j") | |
3832 | - | (delete-file-recursively "src/org/jaxen/xom")))))) | |
3833 | - | (inputs | |
3834 | - | `(("java-jdom" ,java-jdom))) | |
3835 | - | (home-page "") | |
3836 | - | (synopsis "") | |
3837 | - | (description "") | |
3838 | - | (license license:bsd-3))) | |
3839 | - | ||
3840 | - | (define-public java-jaxen | |
3841 | - | (package | |
3842 | - | (inherit java-jaxen-no-rec-deps) | |
3843 | - | (name "java-jaxen") | |
3844 | - | (inputs | |
3845 | - | `(("java-jodm" ,java-jdom) | |
3846 | - | ("java-xom" ,java-xom) | |
3847 | - | ("java-dom4j" ,java-dom4j))))) | |
3848 | - | ||
3849 | - | (define-public java-xom | |
3850 | - | (package | |
3851 | - | (name "java-xom") | |
3852 | - | (version "127") | |
3853 | - | (source (origin | |
3854 | - | (method url-fetch) | |
3855 | - | (uri (string-append "https://github.com/elharo/xom/archive/XOM_" | |
3856 | - | version ".tar.gz")) | |
3857 | - | (sha256 | |
3858 | - | (base32 | |
3859 | - | "04m69db1irqja12a9rfxrac8cbn9psqa1k136wh4ls4pxfsdr5wg")) | |
3860 | - | (modules '((guix build utils))) | |
3861 | - | (snippet | |
3862 | - | '(begin | |
3863 | - | (for-each delete-file | |
3864 | - | (find-files "." "\\.jar$")) | |
3865 | - | #t)))) | |
3866 | - | (build-system ant-build-system) | |
3867 | - | (arguments | |
3868 | - | `(#:jar-name "xom.jar" | |
3869 | - | #:jdk ,icedtea-8 | |
3870 | - | #:tests? #f; no tests | |
3871 | - | #:phases | |
3872 | - | (modify-phases %standard-phases | |
3873 | - | (add-before 'configure 'fix-tagsoup-dep | |
3874 | - | (lambda _ | |
3875 | - | (delete-file "src/nu/xom/tools/XHTMLJavaDoc.java")))))) | |
3876 | - | (inputs | |
3877 | - | `(("java-jdom" ,java-jdom) | |
3878 | - | ("java-junit" ,java-junit) | |
3879 | - | ("java-tomcat" ,java-tomcat) | |
3880 | - | ("java-jaxen-no-rec-deps" ,java-jaxen-no-rec-deps) | |
3881 | - | ("java-xerces" ,java-xerces))) | |
3882 | - | (home-page "") | |
3883 | - | (synopsis "") | |
3884 | - | (description "") | |
3885 | - | (license license:lgpl2.1))) | |
3886 | - | ||
3887 | - | (define-public java-kxml2 | |
3888 | - | (package | |
3889 | - | (name "java-kxml2") | |
3890 | - | (version "2.4.1") | |
3891 | - | (source (origin | |
3892 | - | (method url-fetch) | |
3893 | - | (uri (string-append "https://github.com/stefanhaustein/kxml2/archive/v" | |
3894 | - | version ".tar.gz")) | |
3895 | - | (file-name (string-append name "-" version ".tar.gz")) | |
3896 | - | (sha256 | |
3897 | - | (base32 | |
3898 | - | "0afahxsifpxgwyp3ybr1ablfwswxw8n2msfhsrrj22rpb3yzai3x")))) | |
3899 | - | (build-system ant-build-system) | |
3900 | - | (arguments | |
3901 | - | `(#:jar-name "kxml2.jar" | |
3902 | - | #:tests? #f)); no tests | |
3903 | - | (inputs | |
3904 | - | `(("java-xpp3" ,java-xpp3))) | |
3905 | - | (home-page "http://kxml.org") | |
3906 | - | (synopsis "") | |
3907 | - | (description "") | |
3908 | - | (license license:expat))) | |
3909 | - | ||
3910 | - | (define-public java-stax | |
3911 | - | (package | |
3912 | - | (name "java-stax") | |
3913 | - | (version "1.2.0") | |
3914 | - | (source (origin | |
3915 | - | (method url-fetch) | |
3916 | - | (uri (string-append "https://repo1.maven.org/maven2/stax/stax/" | |
3917 | - | version "/stax-" version "-sources.jar")) | |
3918 | - | (sha256 | |
3919 | - | (base32 | |
3920 | - | "04ba4qvbrps45j8bldbakxq31k7gjlsay9pppa9yn13fr00q586z")))) | |
3921 | - | (build-system ant-build-system) | |
3922 | - | (arguments | |
3923 | - | `(#:jar-name "stax.jar" | |
3924 | - | #:tests? #f; no tests | |
3925 | - | #:phases | |
3926 | - | (modify-phases %standard-phases | |
3927 | - | (add-before 'configure 'fix-utf8 | |
3928 | - | (lambda _ | |
3929 | - | (with-fluids ((%default-port-encoding "ISO-8859-1")) | |
3930 | - | (substitute* "src/com/wutka/dtd/Scanner.java" | |
3931 | - | (("//.*") "\n")))))))) | |
3932 | - | (home-page "") | |
3933 | - | (synopsis "") | |
3934 | - | (description "") | |
3935 | - | (license license:asl2.0))) | |
3936 | - | ||
3937 | - | (define-public java-xstream | |
3938 | - | (package | |
3939 | - | (name "java-xstream") | |
3940 | - | (version "1.4.9") | |
3941 | - | (source (origin | |
3942 | - | (method url-fetch) | |
3943 | - | (uri (string-append "https://repo1.maven.org/maven2/com/thoughtworks" | |
3944 | - | "/xstream/xstream-distribution/" version | |
3945 | - | "/xstream-distribution-" version "-src.zip")) | |
3946 | - | (file-name (string-append name "-" version ".zip")) | |
3947 | - | (sha256 | |
3948 | - | (base32 | |
3949 | - | "1cq9j9h839wc6pkrgd9bd7y94a3zrj1j741i134izqs9xx2b54fi")))) | |
3950 | - | (build-system ant-build-system) | |
3951 | - | (arguments | |
3952 | - | `(#:jar-name (string-append ,name "-" ,version ".jar") | |
3953 | - | #:tests? #f | |
3954 | - | #:jdk ,icedtea-8 | |
3955 | - | #:source-dir "xstream/src/java")) | |
3956 | - | (inputs | |
3957 | - | `(("java-jdom" ,java-jdom) | |
3958 | - | ("java-jdom2" ,java-jdom2) | |
3959 | - | ("java-cglib" ,java-cglib) | |
3960 | - | ("java-joda-time" ,java-joda-time) | |
3961 | - | ("java-jettison" ,java-jettison) | |
3962 | - | ("java-xom" ,java-xom) | |
3963 | - | ("java-xpp3" ,java-xpp3) | |
3964 | - | ("java-dom4j" ,java-dom4j) | |
3965 | - | ("java-stax2-api" ,java-stax2-api) | |
3966 | - | ("java-woodstox-core" ,java-woodstox-core) | |
3967 | - | ("java-kxml2" ,java-kxml2) | |
3968 | - | ("java-stax" ,java-stax))) | |
3969 | - | (native-inputs | |
3970 | - | `(("unzip" ,unzip))) | |
3971 | - | (home-page "https://x-stream.github.io") | |
3972 | - | (synopsis "") | |
3973 | - | (description "") | |
3974 | - | (license license:x11))) | |
3975 | - | ||
3976 | - | (define-public java-hawtjni | |
3977 | - | (package | |
3978 | - | (name "java-hawtjni") | |
3979 | - | (version "1.15") | |
3980 | - | (source (origin | |
3981 | - | (method url-fetch) | |
3982 | - | (uri (string-append "https://github.com/fusesource/hawtjni/archive/" | |
3983 | - | "hawtjni-project-" version ".tar.gz")) | |
3984 | - | (sha256 | |
3985 | - | (base32 | |
3986 | - | "1bqfd732rmh6svyx17fpw9175gc9gzkcbyps2yyrf50c3zzjas6g")))) | |
3987 | - | (build-system ant-build-system) | |
3988 | - | (arguments | |
3989 | - | `(#:jar-name "hawtjni.jar" | |
3990 | - | #:source-dir "hawtjni-generator/src/main/java:hawtjni-runtime/src/main/java" | |
3991 | - | #:tests? #f; no tests | |
3992 | - | #:phases | |
3993 | - | (modify-phases %standard-phases | |
3994 | - | (add-before 'build 'build-native | |
3995 | - | (lambda* (#:key inputs #:allow-other-keys) | |
3996 | - | (with-directory-excursion "hawtjni-generator/src/main/resources/" | |
3997 | - | (system* "gcc" "-c" "hawtjni.c" "-o" "hawtjni.o" | |
3998 | - | "-fPIC" "-O2" | |
3999 | - | (string-append "-I" (assoc-ref inputs "jdk") "/include/linux")) | |
4000 | - | (system* "gcc" "-c" "hawtjni-callback.c" "-o" "hawtjni-callback.o" | |
4001 | - | "-fPIC" "-O2" | |
4002 | - | (string-append "-I" (assoc-ref inputs "jdk") "/include/linux")) | |
4003 | - | (zero? (system* "gcc" "-o" "libhawtjni.so" "-shared" | |
4004 | - | "hawtjni.o" "hawtjni-callback.o"))))) | |
4005 | - | (add-after 'install 'install-native | |
4006 | - | (lambda* (#:key outputs #:allow-other-keys) | |
4007 | - | (let* ((out (assoc-ref outputs "out")) | |
4008 | - | (lib (string-append out "/lib")) | |
4009 | - | (inc (string-append out "/include"))) | |
4010 | - | (mkdir-p lib) | |
4011 | - | (mkdir-p inc) | |
4012 | - | (with-directory-excursion "hawtjni-generator/src/main/resources/" | |
4013 | - | (copy-file "libhawtjni.so" (string-append lib "/libhawtjni.so")) | |
4014 | - | (copy-file "hawtjni.h" (string-append inc "/hawtjni.h"))))))))) | |
4015 | - | (inputs | |
4016 | - | `(("java-commons-cli" ,java-commons-cli) | |
4017 | - | ("java-asm" ,java-asm) | |
4018 | - | ("java-geronimo-xbean-finder" ,java-geronimo-xbean-finder))) | |
4019 | - | (home-page "https://fusesource.github.io/hawtjni/") | |
4020 | - | (synopsis "") | |
4021 | - | (description "") | |
4022 | - | (license license:asl2.0))) | |
4023 | - | ||
4024 | - | (define-public java-jansi-native | |
4025 | - | (package | |
4026 | - | (name "java-jansi-native") | |
4027 | - | (version "1.7") | |
4028 | - | (source (origin | |
4029 | - | (method url-fetch) | |
4030 | - | (uri (string-append "https://github.com/fusesource/jansi-native/" | |
4031 | - | "archive/jansi-native-" version ".tar.gz")) | |
4032 | - | (sha256 | |
4033 | - | (base32 | |
4034 | - | "0j2ydlgxbzbgshqkwghbxxxnbnx1mmjgd6k5fw6xfvxw1z956yqf")))) | |
4035 | - | (build-system ant-build-system) | |
4036 | - | (arguments | |
4037 | - | `(#:jar-name "jansi-native.jar" | |
4038 | - | #:source-dir "src/main/java" | |
4039 | - | #:tests? #f; no tests | |
4040 | - | #:phases | |
4041 | - | (modify-phases %standard-phases | |
4042 | - | (add-before 'build 'build-native | |
4043 | - | (lambda* (#:key inputs #:allow-other-keys) | |
4044 | - | (substitute* "src/main/native-package/src/jansi_ttyname.c" | |
4045 | - | (("#include \"jansi_.*") "")) | |
4046 | - | ;; TODO: there are more required files for windows in windows/ | |
4047 | - | (with-directory-excursion "src/main/native-package/src" | |
4048 | - | (system* "gcc" "-c" "jansi_ttyname.c" "-o" "jansi_ttyname.o" | |
4049 | - | (string-append "-I" (assoc-ref inputs "java-hawtjni") | |
4050 | - | "/include") | |
4051 | - | (string-append "-I" (assoc-ref inputs "jdk") | |
4052 | - | "/include/linux") | |
4053 | - | "-fPIC" "-O2") | |
4054 | - | (system* "gcc" "-o" "libjansi.so" "-shared" "jansi_ttyname.o")) | |
4055 | - | ;; TODO: detect one of linux{32,64}, freebsd{32,64}, osx, windows{32,64} | |
4056 | - | (mkdir-p "build/classes/META-INF/native/linux64") | |
4057 | - | (copy-file "src/main/native-package/src/libjansi.so" | |
4058 | - | "build/classes/META-INF/native/linux64/libjansi.so"))) | |
4059 | - | (add-after 'install 'install-native | |
4060 | - | (lambda* (#:key outputs #:allow-other-keys) | |
4061 | - | (mkdir-p (string-append (assoc-ref outputs "out") "/bin")) | |
4062 | - | (copy-file "src/main/native-package/src/jansi.h" | |
4063 | - | (string-append (assoc-ref outputs "out") | |
4064 | - | "/bin/jansi.h"))))))) | |
4065 | - | (inputs | |
4066 | - | `(("java-hawtjni" ,java-hawtjni))) | |
4067 | - | (home-page "https://fusesource.github.io/jansi/") | |
4068 | - | (synopsis "") | |
4069 | - | (description "") | |
4070 | - | (license license:asl2.0))) | |
4071 | - | ||
4072 | - | (define-public java-jansi | |
4073 | - | (package | |
4074 | - | (name "java-jansi") | |
4075 | - | (version "1.16") | |
4076 | - | (source (origin | |
4077 | - | (method url-fetch) | |
4078 | - | (uri (string-append "https://github.com/fusesource/jansi/archive/" | |
4079 | - | "jansi-project-" version ".tar.gz")) | |
4080 | - | (sha256 | |
4081 | - | (base32 | |
4082 | - | "11kh3144i3fzp21dpy8zg52mjmsr214k7km9p8ly0rqk2px0qq2z")))) | |
4083 | - | (build-system ant-build-system) | |
4084 | - | (arguments | |
4085 | - | `(#:jar-name "jansi.jar" | |
4086 | - | #:source-dir "jansi/src/main/java" | |
4087 | - | #:test-dir "jansi/src/test")) | |
4088 | - | (inputs | |
4089 | - | `(("java-jansi-native" ,java-jansi-native))) | |
4090 | - | (native-inputs | |
4091 | - | `(("java-junit" ,java-junit) | |
4092 | - | ("java-hamcrest-core" ,java-hamcrest-core))) | |
4093 | - | (home-page "https://fusesource.github.io/jansi/") | |
4094 | - | (synopsis "") | |
4095 | - | (description "") | |
4096 | - | (license license:asl2.0))) | |
4097 | - | ||
4098 | - | (define-public java-jline | |
4099 | - | (package | |
4100 | - | (name "java-jline") | |
4101 | - | (version "1.0") | |
4102 | - | (source (origin | |
4103 | - | (method url-fetch) | |
4104 | - | (uri (string-append "https://github.com/jline/jline1/archive/jline-" | |
4105 | - | version ".tar.gz")) | |
4106 | - | (sha256 | |
4107 | - | (base32 | |
4108 | - | "0bi3p6vrh7a6v0fbpb6rx9plpmx5zk3lr352xzdbz2jcxg499wir")))) | |
4109 | - | (build-system ant-build-system) | |
4110 | - | (arguments | |
4111 | - | `(#:jar-name "jline.jar" | |
4112 | - | #:source-dir "src/main/java" | |
4113 | - | #:test-dir "src/test" | |
4114 | - | #:jdk ,icedtea-8 | |
4115 | - | #:phases | |
4116 | - | (modify-phases %standard-phases | |
4117 | - | (add-before 'build 'copy-resources | |
4118 | - | (lambda _ | |
4119 | - | (copy-recursively "src/main/resources" "build/classes")))))) | |
4120 | - | (native-inputs | |
4121 | - | `(("java-junit" ,java-junit))) | |
4122 | - | (home-page "https://jline.github.io") | |
4123 | - | (synopsis "") | |
4124 | - | (description "") | |
4125 | - | (license license:asl2.0))) | |
4126 | - | ||
4127 | 3169 | (define-public java-jline-2 | |
4128 | 3170 | (package | |
4129 | 3171 | (inherit java-jline) | |
… | |||
4798 | 3840 | `(#:jar-name "xmlgraphics-commons.jar" | |
4799 | 3841 | #:source-dir "src/main/java" | |
4800 | 3842 | #:test-dir "src/test" | |
4801 | - | #:tests? #f)); FIXME: need commons-xml-resolver | |
3843 | + | #:tests? #f; FIXME: need commons-xml-resolver | |
3844 | + | #:phases | |
3845 | + | (modify-phases %standard-phases | |
3846 | + | (add-before 'build 'copy-resources | |
3847 | + | (lambda _ | |
3848 | + | (copy-recursively "src/main/resources" "build/classes") | |
3849 | + | #t))))) | |
4802 | 3850 | (inputs | |
4803 | 3851 | `(("java-commons-io" ,java-commons-io) | |
4804 | 3852 | ("java-commons-logging-minimal" ,java-commons-logging-minimal))) | |
… | |||
5134 | 4182 | contexts, DOM etc, including mixtures thereof.") | |
5135 | 4183 | (license license:asl2.0))) | |
5136 | 4184 | ||
5137 | - | (define-public java-geronimo-xbean-bundleutils | |
5138 | - | (package | |
5139 | - | (inherit java-geronimo-xbean-reflect) | |
5140 | - | (name "java-geronimo-xbean-bundleutils") | |
5141 | - | (arguments | |
5142 | - | `(#:jar-name "geronimo-xbean-bundleutils.jar" | |
5143 | - | #:source-dir "xbean-bundleutils/src/main/java" | |
5144 | - | #:test-dir "xbean-bundleutils/src/test" | |
5145 | - | #:phases | |
5146 | - | (modify-phases %standard-phases | |
5147 | - | (add-before 'build 'fix-java | |
5148 | - | (lambda _ | |
5149 | - | (substitute* "xbean-bundleutils/src/main/java/org/apache/xbean/osgi/bundle/util/DelegatingBundleContext.java" | |
5150 | - | (("import org.osgi.framework.ServiceRegistration;") | |
5151 | - | (string-append "import org.osgi.framework.ServiceRegistration;\n" | |
5152 | - | "import org.osgi.framework.ServiceFactory;\n" | |
5153 | - | "import java.util.Collection;\n" | |
5154 | - | "import org.osgi.framework.ServiceObjects;")) | |
5155 | - | (("public Bundle getBundle\\(\\)") | |
5156 | - | (string-append "@Override\n" | |
5157 | - | "public <S> ServiceObjects<S> getServiceObjects(ServiceReference<S> reference) {\n" | |
5158 | - | " throw new UnsupportedOperationException();\n" | |
5159 | - | "}\n" | |
5160 | - | "@Override\n" | |
5161 | - | "public <S> ServiceRegistration<S> registerService(Class<S> clazz, ServiceFactory<S> factory, Dictionary<String, ?> properties) {" | |
5162 | - | " throw new UnsupportedOperationException();\n" | |
5163 | - | "}\n" | |
5164 | - | "public Bundle getBundle()")))))))) | |
5165 | - | (inputs | |
5166 | - | `(("java-slf4j-api" ,java-slf4j-api) | |
5167 | - | ("java-asm" ,java-asm) | |
5168 | - | ("java-osgi-framework" ,java-osgi-framework) | |
5169 | - | ("java-eclipse-osgi" ,java-eclipse-osgi) | |
5170 | - | ("java-osgi-service-packageadmin" ,java-osgi-service-packageadmin))))) | |
5171 | - | ||
5172 | - | (define-public java-geronimo-xbean-asm-util | |
5173 | - | (package | |
5174 | - | (inherit java-geronimo-xbean-reflect) | |
5175 | - | (name "java-geronimo-xbean-asm-util") | |
5176 | - | (arguments | |
5177 | - | `(#:jar-name "geronimo-xbean-asm-util.jar" | |
5178 | - | #:source-dir "xbean-asm-util/src/main/java" | |
5179 | - | #:tests? #f)); no tests | |
5180 | - | (inputs | |
5181 | - | `(("java-asm" ,java-asm))))) | |
5182 | - | ||
5183 | - | (define-public java-geronimo-xbean-finder | |
5184 | - | (package | |
5185 | - | (inherit java-geronimo-xbean-reflect) | |
5186 | - | (name "java-geronimo-xbean-finder") | |
5187 | - | (arguments | |
5188 | - | `(#:jar-name "geronimo-xbean-finder.jar" | |
5189 | - | #:source-dir "xbean-finder/src/main/java" | |
5190 | - | #:test-dir "xbean-finder/src/test")) | |
5191 | - | (inputs | |
5192 | - | `(("java-slf4j-api" ,java-slf4j-api) | |
5193 | - | ("java-asm" ,java-asm) | |
5194 | - | ("java-geronimo-xbean-bundleutils" ,java-geronimo-xbean-bundleutils) | |
5195 | - | ("java-geronimo-xbean-asm-util" ,java-geronimo-xbean-asm-util) | |
5196 | - | ("java-osgi-service-packageadmin" ,java-osgi-service-packageadmin) | |
5197 | - | ("java-osgi-framework" ,java-osgi-framework))) | |
5198 | - | (native-inputs | |
5199 | - | `(("java-junit" ,java-junit) | |
5200 | - | ("java-hamcrest-core" ,java-hamcrest-core))))) | |
5201 | - | ||
5202 | 4185 | (define-public java-plexus-component-annotations | |
5203 | 4186 | (package | |
5204 | 4187 | (inherit java-plexus-container-default) |