From 5deadca7219297a3c1f90eca00544a00e33efdbc Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 22 Jul 2022 20:47:41 +0100 Subject: gentoo auto-resync : 22:07:2022 - 20:47:41 --- .../memoryfilesystem/memoryfilesystem-2.3.0.ebuild | 53 ++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 dev-java/memoryfilesystem/memoryfilesystem-2.3.0.ebuild (limited to 'dev-java/memoryfilesystem/memoryfilesystem-2.3.0.ebuild') 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 +} -- cgit v1.2.3