summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorDanny Milosavljevic <dannym@friendly-machines.com>2026-04-01 00:16:13 +0200
committerDanny Milosavljevic <dannym@friendly-machines.com>2026-05-03 02:30:18 +0200
commitc97a0b330e266a3a9ca164c8d9c142b1fc0e169d (patch)
tree7903c771d94002f3151f770f88a8b9ad874011f9 /gnu
parent47ebad274971041b3b1866fc36b1f769cc7a5412 (diff)
gnu: Add java-osgi-core@8.0.0.
* gnu/packages/java.scm (java-osgi-core-8.0.0): New variable. Change-Id: I7297efbb9efb431d2716c2dbb39df62907924c0c
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/java.scm58
1 files changed, 58 insertions, 0 deletions
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index d5221898a91..d216a65df14 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -7445,6 +7445,64 @@ and service platform for the Java programming language. This package contains
7445the OSGi Core module.") 7445the OSGi Core module.")
7446 (license license:asl2.0))) 7446 (license license:asl2.0)))
7447 7447
7448(define-public java-osgi-core-8.0.0
7449 ;; Upstream uses release-train tags for the monorepo; osgi.core/bnd.bnd
7450 ;; emits artifact version 8.0.0 from the r8-core-final checkout.
7451 (let ((tag "r8-core-final"))
7452 (package
7453 (name "java-osgi-core")
7454 (version "8.0.0")
7455 (source (origin
7456 (method git-fetch)
7457 (uri (git-reference
7458 (url "https://github.com/osgi/osgi")
7459 (commit tag)))
7460 (modules '((guix build utils)))
7461 (snippet
7462 '(begin
7463 (for-each delete-file
7464 (find-files "." "\\.jar$"))
7465 #t))
7466 (file-name (git-file-name name version))
7467 (sha256
7468 (base32
7469 "01z4c3jakzjdh4m0j71shppa1nfgaqgxwajnhyv56s1l1a9hxb6x"))))
7470 (build-system ant-build-system)
7471 (arguments
7472 (list
7473 #:tests? #f
7474 #:jar-name "osgi-core.jar"
7475 #:phases
7476 #~(modify-phases %standard-phases
7477 (add-after 'unpack 'prepare-source-layout
7478 (lambda _
7479 (mkdir-p "src")
7480 (for-each
7481 (lambda (directory)
7482 (invoke "cp" "-r" (string-append directory "/.") "src/"))
7483 '("org.osgi.dto/src"
7484 "org.osgi.framework/src"
7485 "org.osgi.resource/src"
7486 "org.osgi.service.condition/src"
7487 "org.osgi.service.condpermadmin/src"
7488 "org.osgi.service.log/src"
7489 "org.osgi.service.packageadmin/src"
7490 "org.osgi.service.permissionadmin/src"
7491 "org.osgi.service.resolver/src"
7492 "org.osgi.service.startlevel/src"
7493 "org.osgi.service.url/src"
7494 "org.osgi.util.tracker/src"))))
7495 (add-before 'install 'create-pom
7496 (generate-pom.xml "pom.xml" "org.osgi" "osgi.core" #$version))
7497 (replace 'install (install-from-pom "pom.xml")))))
7498 (inputs (list java-osgi-annotation-8.1.0))
7499 (home-page "https://www.osgi.org")
7500 (synopsis "Core module of OSGi framework")
7501 (description "OSGi, for Open Services Gateway initiative framework, is a
7502module system and service platform for the Java programming language. This
7503package contains the OSGi Core module.")
7504 (license license:asl2.0))))
7505
7448(define-public java-osgi-service-event 7506(define-public java-osgi-service-event
7449 (package 7507 (package
7450 (name "java-osgi-service-event") 7508 (name "java-osgi-service-event")