forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dev-java/concurrentlinkedhashmap-lru: new package, add 1.4.2
Signed-off-by: Volkmar W. Pogatzki <[email protected]> Closes: gentoo@86b0b47 Signed-off-by: Miroslav Šulc <[email protected]>
- Loading branch information
Showing
3 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
DIST concurrentlinkedhashmap-lru-1.4.2.tar.gz 245357 BLAKE2B ac743e2be30195f171154c179ac1b4a6bc6b563b080555c664cdd57fc30d083525f03a8367a891e1087623d455adef27c7ff7416b5c8523c01fc3d5ef775a185 SHA512 95f33cdeb2e3e65be0fa26a825339c4c60eb830e07895fbae731103ef14a9599137f8fad18f9b0a582ec2552ccc1391f5d0338837395e35c1d28de977614a199 |
36 changes: 36 additions & 0 deletions
36
dev-java/concurrentlinkedhashmap-lru/concurrentlinkedhashmap-lru-1.4.2.ebuild
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Copyright 2023 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=8 | ||
|
||
JAVA_PKG_IUSE="doc source" | ||
MAVEN_ID="com.googlecode.concurrentlinkedhashmap:concurrentlinkedhashmap-lru:${PV}" | ||
|
||
inherit java-pkg-2 java-pkg-simple | ||
|
||
DESCRIPTION="A high performance version of java.util.LinkedHashMap for use as software cache" | ||
HOMEPAGE="https://github.com/ben-manes/concurrentlinkedhashmap" | ||
SRC_URI="https://github.com/ben-manes/concurrentlinkedhashmap/archive/${P}.tar.gz" | ||
S="${WORKDIR}/${PN%lru}${P}" | ||
|
||
LICENSE="Apache-2.0" | ||
SLOT="0" | ||
KEYWORDS="~amd64" | ||
|
||
CP_DEPEND="dev-java/jsr305:0" | ||
|
||
RDEPEND=">=virtual/jre-1.8:* | ||
${CP_DEPEND}" | ||
DEPEND=">=virtual/jdk-1.8:* | ||
${CP_DEPEND}" | ||
|
||
JAVA_SRC_DIR="src/main/java" | ||
|
||
src_prepare() { | ||
java-pkg-2_src_prepare | ||
# https://github.com/ben-manes/concurrentlinkedhashmap/issues/46#issuecomment-160696203 | ||
rm src/main/java/com/googlecode/concurrentlinkedhashmap/ConcurrentHashMapV8.java || die | ||
sed \ | ||
-e 's/ConcurrentHashMapV8/ConcurrentHashMap/' \ | ||
-i src/main/java/com/googlecode/concurrentlinkedhashmap/ConcurrentLinkedHashMap.java || die | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> | ||
<pkgmetadata> | ||
<maintainer type="project"> | ||
<email>[email protected]</email> | ||
</maintainer> | ||
<upstream> | ||
<remote-id type="github">ben-manes/concurrentlinkedhashmap</remote-id> | ||
</upstream> | ||
</pkgmetadata> |