diff options
author | Volkmar W. Pogatzki <gentoo@pogatzki.net> | 2022-06-23 18:26:02 +0200 |
---|---|---|
committer | Florian Schmaus <flow@gentoo.org> | 2022-07-22 19:36:29 +0200 |
commit | 3be35d01a56dad6ad4ee3d2b57282a2820f85078 (patch) | |
tree | 6e0fbdb9fc952b74cafd37241153ef8eafceed6a /dev-java | |
parent | dev-java/jakarta-annotations-api: new package, add 2.1.1 (diff) | |
download | gentoo-3be35d01a56dad6ad4ee3d2b57282a2820f85078.tar.gz gentoo-3be35d01a56dad6ad4ee3d2b57282a2820f85078.tar.bz2 gentoo-3be35d01a56dad6ad4ee3d2b57282a2820f85078.zip |
dev-java/memoryfilesystem: new package, add 2.3.0
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
Signed-off-by: Florian Schmaus <flow@gentoo.org>
Diffstat (limited to 'dev-java')
-rw-r--r-- | dev-java/memoryfilesystem/Manifest | 1 | ||||
-rw-r--r-- | dev-java/memoryfilesystem/memoryfilesystem-2.3.0.ebuild | 53 | ||||
-rw-r--r-- | dev-java/memoryfilesystem/metadata.xml | 7 |
3 files changed, 61 insertions, 0 deletions
diff --git a/dev-java/memoryfilesystem/Manifest b/dev-java/memoryfilesystem/Manifest new file mode 100644 index 000000000000..eaac963a85aa --- /dev/null +++ b/dev-java/memoryfilesystem/Manifest @@ -0,0 +1 @@ +DIST memoryfilesystem-2.3.0.tar.gz 127429 BLAKE2B 74ce26328db840d3fce6aebc089cbe6921c2ab7b7448c63aedcffc7358890785ec10f7823d7bd686e3a82bdfb84b9c7c796f49f377f577473a98b298cd04848d SHA512 1aac6b19fe0f6f6c950f13fff3507c61e3307d8d400cba664ae7907c0b4fab03166482ab6515bf355fe27498775ac8ee2850eca8c510e3e72a481b00fec63078 diff --git a/dev-java/memoryfilesystem/memoryfilesystem-2.3.0.ebuild b/dev-java/memoryfilesystem/memoryfilesystem-2.3.0.ebuild new file mode 100644 index 000000000000..f10d54eba1c3 --- /dev/null +++ b/dev-java/memoryfilesystem/memoryfilesystem-2.3.0.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +JAVA_PKG_IUSE="doc source" +MAVEN_ID="com.github.marschall:memoryfilesystem:2.3.0" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="An in memory implementation of a JSR-203 file system." +HOMEPAGE="https://github.com/marschall/memoryfilesystem" +SRC_URI="https://github.com/marschall/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" + +CP_DEPEND=" + dev-java/jakarta-annotations-api:0 +" + +DEPEND=" + >=virtual/jdk-11:* + ${CP_DEPEND} +" + +RDEPEND=" + >=virtual/jre-1.8:* + ${CP_DEPEND} +" + +S="${WORKDIR}/${P}" + +JAVA_SRC_DIR="src/main/java" +JAVA_RESOURCE_DIRS="src/main/resources" + +src_prepare() { + default + # https://github.com/marschall/memoryfilesystem/blob/2.3.0/pom.xml#L236-L259 + cat > src/main/java/module-info.java <<-EOF + module com.github.marschall.memoryfilesystem { + requires java.base; + requires static jakarta.annotation; + exports com.github.marschall.memoryfilesystem; + provides java.nio.file.spi.FileSystemProvider with + com.github.marschall.memoryfilesystem.MemoryFileSystemProvider; + } + EOF + sed \ + -e 's:javax\(.annotation.PreDestroy\):jakarta\1:' \ + -i src/main/java/com/github/marschall/memoryfilesystem/MemoryFileSystem.java || die +} diff --git a/dev-java/memoryfilesystem/metadata.xml b/dev-java/memoryfilesystem/metadata.xml new file mode 100644 index 000000000000..75321cfb5598 --- /dev/null +++ b/dev-java/memoryfilesystem/metadata.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>java@gentoo.org</email> + </maintainer> +</pkgmetadata> |