mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-24 23:47:14 -08:00
Merge updates from master
This commit is contained in:
@@ -0,0 +1,81 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
JAVA_PKG_IUSE="doc source test"
|
||||
|
||||
inherit java-pkg-2 verify-sig
|
||||
|
||||
DESCRIPTION="High-performance, full-featured text search engine written entirely in Java"
|
||||
HOMEPAGE="https://lucene.apache.org"
|
||||
SRC_URI="https://archive.apache.org/dist/${PN}/java/${P}-src.tar.gz
|
||||
verify-sig? ( https://archive.apache.org/dist/${PN}/java/${P}-src.tar.gz.asc )"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="2.4"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH="/usr/share/openpgp-keys/lucene.apache.org.asc"
|
||||
BDEPEND="verify-sig? ( sec-keys/openpgp-keys-apache-lucene )"
|
||||
|
||||
# Restricting to jdk:1.8 since it fails to build with openjdk-17
|
||||
# BUILD FAILED
|
||||
# /var/tmp/portage/dev-java/lucene-2.4.1-r3/work/lucene-2.4.1/build.xml:52: \
|
||||
# rmic does not exist under Java 15 and higher,
|
||||
# use rmic of an older JDK and explicitly set the executable attribute
|
||||
DEPEND="
|
||||
dev-java/javacc:0
|
||||
virtual/jdk:1.8
|
||||
test? (
|
||||
>=dev-java/ant-1.10.14-r3:0[junit]
|
||||
dev-java/junit:0
|
||||
)"
|
||||
|
||||
RDEPEND=">=virtual/jre-1.8:*"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/lucene-2.4.1-skipFailingTest.patch"
|
||||
"${FILESDIR}/lucene-2.4.1-javacc.home.patch"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default #780585
|
||||
java-pkg-2_src_prepare
|
||||
java-pkg_clean
|
||||
|
||||
cat > build.properties <<-EOF || die
|
||||
ant.build.javac.source=$(java-pkg_get-source)
|
||||
ant.build.javac.target=$(java-pkg_get-target)
|
||||
javac.source=$(java-pkg_get-source)
|
||||
javac.target=$(java-pkg_get-target)
|
||||
javacc.home=${EPREFIX}/usr/share/javacc/lib/
|
||||
junit-location.jar=$(java-pkg_getjars --build-only junit)
|
||||
EOF
|
||||
|
||||
rm docs/skin/images/instruction_arrow.png || die #: broken IDAT window length
|
||||
rm docs/images/instruction_arrow.png || die #: broken IDAT window length
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
eant javacc
|
||||
|
||||
eant -Dversion=${PV} jar-core jar-demo
|
||||
use doc && eant -Dversion=${PV} javadocs-core javadocs-demo
|
||||
}
|
||||
|
||||
src_test() {
|
||||
ant test-core
|
||||
}
|
||||
|
||||
src_install() {
|
||||
einstalldocs
|
||||
java-pkg_newjar "build/${PN}-core-${PV}.jar" "${PN}-core.jar"
|
||||
java-pkg_newjar "build/${PN}-demos-${PV}.jar" "${PN}-demos.jar"
|
||||
|
||||
if use doc; then
|
||||
dodoc -r docs
|
||||
java-pkg_dohtml -r build/docs/api
|
||||
fi
|
||||
use source && java-pkg_dosrc src/java/org
|
||||
}
|
||||
@@ -2255,6 +2255,7 @@ java-pkg_force-compiler() {
|
||||
}
|
||||
|
||||
# @FUNCTION: use_doc
|
||||
# @DEPRECATED: none
|
||||
# @DESCRIPTION:
|
||||
#
|
||||
# Helper function for getting ant to build javadocs. If the user has USE=doc,
|
||||
|
||||
@@ -1 +1 @@
|
||||
DIST discord-0.0.67.tar.gz 103553534 BLAKE2B 8b4bd3fd6e0d3635c068f279a9f66d9b7d1500b0e971883923b54338a291cdc7244159df8431a89896e8653d83316531b5beba5404e4ac7a45a416631a3c929c SHA512 59b29f2fcf841553547b94b0555d47a43d56ff4ae29bae1ae00a2ae5d78c01a995f27953daa3bf306f5e379af165889361a017a85ef2d09b6f9e38b1cfffcd6c
|
||||
DIST discord-0.0.68.tar.gz 103552884 BLAKE2B 949f2fc8591a5b076420930484788ce605ffccfbbfcc2cd458c214634d18d8945317d5b041d606137903d2479d022f94e462c537757469f0edd978c9d55ce37c SHA512 38375d2c778a36ce5676b6409ac399ad1fcb4e79abd0b08918132fa2c3fcd287b51e95457d8d4c9745957bbbad614041f925fbf7141f2d6d517ef79c9e878f9a
|
||||
|
||||
Reference in New Issue
Block a user