dev-java/unbescape: new package, add 1.1.6

Dependency of >=net-p2p/freenet-0.7.5_p1495,
see https://bugs.gentoo.org/878869#c5

Bug: https://bugs.gentoo.org/878869
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
Closes: https://github.com/gentoo/gentoo/pull/28955
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Volkmar W. Pogatzki
2023-01-04 13:36:48 +01:00
committed by Sam James
parent 97ee4fe54f
commit 370e220ed4
3 changed files with 47 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST unbescape-1.1.6.RELEASE.tar.gz 423423 BLAKE2B ff4f0b3bd582e4f6f13ec950eafaf336c4303d7d8c94ffa76438a9041555d17210ddcf1a36ae534511d1769723ffd6749632c702ba57d57c32abf965502e372c SHA512 0feab8deadba3e785c62400494938a532879c99bb55c91112fcb14521b7298bff482ed1f06a301835d0ed86dccaa4519c16af67884f5c02dc5be46255769b113

View File

@@ -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>java@gentoo.org</email>
</maintainer>
<upstream>
<remote-id type="github">unbescape/unbescape</remote-id>
</upstream>
</pkgmetadata>

View File

@@ -0,0 +1,36 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# Skeleton command:
# java-ebuilder --generate-ebuild --workdir . --pom pom.xml --download-uri https://github.com/unbescape/unbescape/archive/unbescape-1.1.6.RELEASE.tar.gz --slot 0 --keywords "~amd64" --ebuild unbescape-1.1.6.ebuild
EAPI=8
JAVA_PKG_IUSE="doc source"
MAVEN_ID="org.unbescape:unbescape:1.1.6.RELEASE"
inherit java-pkg-2 java-pkg-simple
DESCRIPTION="Advanced yet easy-to-use escape/unescape library for Java"
HOMEPAGE="https://www.unbescape.org"
SRC_URI="https://github.com/unbescape/unbescape/archive/unbescape-${PV}.RELEASE.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND=">=virtual/jre-1.8:*"
DEPEND=">=virtual/jdk-1.8:*"
S="${WORKDIR}/unbescape-unbescape-${PV}.RELEASE"
JAVA_AUTOMATIC_MODULE_NAME="unbescape"
JAVA_RESOURCE_DIRS="src/main/resources"
JAVA_SRC_DIR="src/main/java"
src_prepare() {
default
sed \
-e "s/\${pom.version}/${PV}.RELEASE/" \
-i src/main/resources/org/unbescape/unbescape.properties || die
}