mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-22 23:07:10 -08:00
Merge updates from master
This commit is contained in:
@@ -1,86 +0,0 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
JAVA_PKG_IUSE="doc examples source"
|
||||
inherit java-pkg-2 java-ant-2
|
||||
|
||||
DESCRIPTION="A speech synthesis system written entirely in Java"
|
||||
HOMEPAGE="https://freetts.sourceforge.io/"
|
||||
SRC_URI="https://downloads.sourceforge.net/${PN}/${P}-src.zip"
|
||||
|
||||
LICENSE="jsapi? ( sun-bcla-jsapi ) freetts"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~arm64 ppc64 x86"
|
||||
IUSE="jsapi mbrola"
|
||||
|
||||
DEPEND=">=virtual/jdk-1.8:*
|
||||
${RDEPEND}
|
||||
jsapi? ( app-arch/sharutils )"
|
||||
RDEPEND=">=virtual/jre-1.8:*
|
||||
mbrola? ( >=app-accessibility/mbrola-3.0.1h-r6 ) "
|
||||
BDEPEND="app-arch/unzip"
|
||||
|
||||
# Tests aren't present.
|
||||
RESTRICT="test"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/jsapi-gentoo.diff )
|
||||
|
||||
DOCS=( ANNOUNCE.txt README.txt RELEASE_NOTES )
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
# Prepare source directory.
|
||||
mkdir src || die "Failed to create source directory."
|
||||
mv com de src/ || die "Failed to move files to source directory."
|
||||
|
||||
# Prepare library directory.
|
||||
cd lib || die "Lib directory not present."
|
||||
chmod 0755 jsapi.sh || die "jsapi.sh not present or can't change permissions."
|
||||
|
||||
use mbrola && echo "mbrola.base=/usr/share/mbrola/" >> "${S}"/speech.properties
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
if use jsapi; then
|
||||
pushd lib
|
||||
./jsapi.sh || die "jsapi.sh failed"
|
||||
popd
|
||||
fi
|
||||
|
||||
eant jars
|
||||
}
|
||||
|
||||
# Tests aren't present.
|
||||
# http://freetts.sourceforge.net/docs/index.php#how_test
|
||||
#src_test() {
|
||||
# ANT_TASKS="ant-junit" eant junit
|
||||
#}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
java-pkg_dojar lib/*.jar mbrola/*.jar
|
||||
|
||||
use mbrola && local jflags="--java_args -Dmbrola.base=/usr/share/mbrola"
|
||||
|
||||
java-pkg_dolauncher ${PN} --main com.sun.speech.freetts.FreeTTS ${jflags}
|
||||
|
||||
insinto /usr/share/${PN}
|
||||
doins speech.properties
|
||||
doins -r tools
|
||||
|
||||
if use doc ; then
|
||||
docinto html
|
||||
dodoc -r docs/*
|
||||
java-pkg_dojavadoc javadoc
|
||||
fi
|
||||
|
||||
if use examples ; then
|
||||
java-pkg_doexamples demo
|
||||
fi
|
||||
|
||||
if use source ; then
|
||||
java-pkg_dosrc src/*
|
||||
fi
|
||||
}
|
||||
@@ -1,3 +1,2 @@
|
||||
DIST gson-2.10.2_pre20231128.tar.gz 451312 BLAKE2B d16e0510e0806fd33e8d49b5a8fb73e969b89acb2598ca34a43faa97a09debc99466ab472176d60d617aa20b2190884def25881f0bf651e96be2c1bb9a976d70 SHA512 37f2073e5eee2cb85626040552ac750f4917abd05e3b7944c30a2d5ace6888424870a95a0ceba89bf2dadf9ab33e6bbae1591509b84f35aba4521780764c0877
|
||||
DIST gson-parent-2.11.0.tar.gz 458360 BLAKE2B 88d242c725b054ac5e7e3ef31f312f77dd03aea29f6604770253564d80f84cd752b43d74dd416785836d08884e462275f8ec924a00e2ffee195c0237bc2bac0b SHA512 1834b7c95f0a40ff1bcf8088f3ffdb8332ae38d452bab4ad2c9271421e75a9236645d1ee0fdb58c2f32eac86cf503afa3de19f08eb422cc91c4d32e370c36eac
|
||||
DIST truth-1.1.3.jar 243021 BLAKE2B a59149038c62ef5dd352b13d4b393e1b7715fbafe5ed86ec2d16d722c738a31dcdca10132fc73b17b367ac4309e5407ba2e489f8d4c8fbca60ce5f35ae75d1e3 SHA512 f29a9fb070aff8a32358a7b6c8998c0095de5d8d68afa7f7bac759c7050309deff929e767657ecbbefd96163460f10255ca01bc567ab30df4834b9d916a4fae8
|
||||
|
||||
@@ -1,87 +0,0 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
JAVA_PKG_IUSE="doc source test"
|
||||
MAVEN_ID="com.google.code.gson:gson:${PV}"
|
||||
JAVA_TESTING_FRAMEWORKS="junit-4"
|
||||
|
||||
inherit java-pkg-2 java-pkg-simple
|
||||
|
||||
DESCRIPTION="Gson JSON library"
|
||||
HOMEPAGE="https://github.com/google/gson"
|
||||
# SRC_URI="https://github.com/google/gson/archive/gson-parent-${PV}.tar.gz"
|
||||
# S="${WORKDIR}/gson-gson-parent-${PV}/gson"
|
||||
MY_COMMIT="b17b1a0e98dcaf4b61823e1f0c29dda44c0ea3d5"
|
||||
SRC_URI="https://github.com/google/gson/archive/${MY_COMMIT}.tar.gz -> ${P}.tar.gz
|
||||
test? ( https://repo1.maven.org/maven2/com/google/truth/truth/1.1.3/truth-1.1.3.jar )"
|
||||
S="${WORKDIR}/gson-${MY_COMMIT}/gson"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~arm arm64 ppc64 x86"
|
||||
|
||||
DEPEND="
|
||||
dev-java/error-prone-annotations:0
|
||||
>=virtual/jdk-17:*
|
||||
test? (
|
||||
dev-java/guava:0
|
||||
dev-java/guava-testlib:0
|
||||
)"
|
||||
# src/test/java/com/google/gson/functional/Java17RecordTest.java:78:
|
||||
# error: records are not supported in -source 11
|
||||
RDEPEND=">=virtual/jre-17:*"
|
||||
|
||||
DOCS=(
|
||||
../CHANGELOG.md
|
||||
../GsonDesignDocument.md
|
||||
../README.md
|
||||
../Troubleshooting.md
|
||||
../UserGuide.md
|
||||
)
|
||||
|
||||
PATCHES=( "${FILESDIR}/gson-2.10.2-GsonVersionDiagnosticsTest.patch" )
|
||||
|
||||
JAVA_CLASSPATH_EXTRA="error-prone-annotations"
|
||||
JAVA_RESOURCE_DIRS="src/main/resources"
|
||||
JAVA_SRC_DIR=(
|
||||
"src/main/java"
|
||||
"src/main/java-templates"
|
||||
)
|
||||
|
||||
JAVA_TEST_EXCLUDES=(
|
||||
# requires the test class to be obfuscated using proguard which we do not have atm
|
||||
"com.google.gson.functional.EnumWithObfuscatedTest"
|
||||
# testComGoogleGsonAnnotationsPackage(com.google.gson.regression.OSGiTest)
|
||||
# junit.framework.AssertionFailedError: Cannot find com.google.gson OSGi bundle manifest
|
||||
"com.google.gson.regression.OSGiTest"
|
||||
)
|
||||
JAVA_TEST_GENTOO_CLASSPATH="
|
||||
guava
|
||||
guava-testlib
|
||||
junit-4
|
||||
"
|
||||
JAVA_TEST_RESOURCE_DIRS="src/test/resources"
|
||||
JAVA_TEST_SRC_DIR="src/test/java"
|
||||
|
||||
src_prepare() {
|
||||
default #780585
|
||||
java-pkg-2_src_prepare
|
||||
sed -e "s/\${project.version}/${PV}/g" \
|
||||
-i src/main/java-templates/com/google/gson/internal/GsonBuildConfig.java \
|
||||
|| die "Failed to set version"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
if ! use test; then
|
||||
JAVA_PKG_WANT_SOURCE="1.8"
|
||||
JAVA_PKG_WANT_TARGET="1.8"
|
||||
fi
|
||||
java-pkg-simple_src_compile
|
||||
}
|
||||
|
||||
src_test() {
|
||||
JAVA_GENTOO_CLASSPATH_EXTRA="${DISTDIR}/truth-1.1.3.jar:testdata.jar"
|
||||
java-pkg-simple_src_test
|
||||
}
|
||||
Reference in New Issue
Block a user