# Copyright 1999-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=9 JAVA_PKG_IUSE="doc source" 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" S="${WORKDIR}/unbescape-unbescape-${PV}.RELEASE" LICENSE="Apache-2.0" SLOT="0" KEYWORDS="~amd64 ~arm64" RDEPEND=">=virtual/jre-1.8:*" DEPEND=">=virtual/jdk-1.8:*" JAVA_AUTOMATIC_MODULE_NAME="unbescape" JAVA_RESOURCE_DIRS="src/main/resources" JAVA_SRC_DIR="src/main/java" src_prepare() { java-pkg-2_src_prepare sed \ -e "s/\${pom.version}/${PV}.RELEASE/" \ -i src/main/resources/org/unbescape/unbescape.properties || die }