summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorDanny Milosavljevic <dannym@friendly-machines.com>2026-04-01 00:16:02 +0200
committerDanny Milosavljevic <dannym@friendly-machines.com>2026-05-03 02:30:18 +0200
commit47ebad274971041b3b1866fc36b1f769cc7a5412 (patch)
treee8f8e03abd68c0eddc53c2ea418e3428c053cc6b /gnu
parent24956625a1f95c59634f1645dcbd2bbb16d0ad2d (diff)
gnu: Add java-osgi-annotation@8.1.0.
* gnu/packages/java.scm (java-osgi-annotation-8.1.0): New variable. Change-Id: Iea6567ab0c26c296b64417c6f8c7982156d75efa
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/java.scm48
1 files changed, 48 insertions, 0 deletions
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 8cdad78a2a7..d5221898a91 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -7366,6 +7366,54 @@ the OSGi annotation module, providing additional services to help dynamic
7366components.") 7366components.")
7367 (license license:asl2.0))) 7367 (license license:asl2.0)))
7368 7368
7369(define-public java-osgi-annotation-8.1.0
7370 ;; Upstream tags the monorepo as 8.0.0.1, but osgi.annotation/bnd.bnd sets
7371 ;; the annotation artifact's release/minor version to 8.1, yielding 8.1.0.
7372 (let ((tag "8.0.0.1"))
7373 (package
7374 (name "java-osgi-annotation")
7375 (version "8.1.0")
7376 (source (origin
7377 (method git-fetch)
7378 (uri (git-reference
7379 (url "https://github.com/osgi/osgi")
7380 (commit tag)))
7381 (modules '((guix build utils)))
7382 (snippet
7383 '(begin
7384 (for-each delete-file
7385 (find-files "." "\\.jar$"))
7386 #t))
7387 (file-name (git-file-name name version))
7388 (sha256
7389 (base32
7390 "0s0ig6prnkvjp9159087mf16ihbqc91qlwdi1l0n5afhh2z5cnn5"))))
7391 (build-system ant-build-system)
7392 (arguments
7393 (list
7394 #:tests? #f
7395 #:jar-name "osgi-annotation.jar"
7396 #:phases
7397 #~(modify-phases %standard-phases
7398 (add-after 'unpack 'prepare-source-layout
7399 (lambda _
7400 (mkdir-p "src")
7401 (for-each
7402 (lambda (directory)
7403 (invoke "cp" "-r" (string-append directory "/.") "src/"))
7404 '("org.osgi.annotation.bundle/src"
7405 "org.osgi.annotation.versioning/src"))))
7406 (add-before 'install 'create-pom
7407 (generate-pom.xml "pom.xml" "org.osgi" "osgi.annotation"
7408 #$version))
7409 (replace 'install (install-from-pom "pom.xml")))))
7410 (home-page "https://www.osgi.org")
7411 (synopsis "Annotations for use in compiling OSGi bundles")
7412 (description "OSGi, for Open Services Gateway initiative framework, is a
7413module system and service platform for the Java programming language. This
7414package contains the annotation classes used at compile time.")
7415 (license license:asl2.0))))
7416
7369(define-public java-osgi-core 7417(define-public java-osgi-core
7370 (package 7418 (package
7371 (name "java-osgi-core") 7419 (name "java-osgi-core")