diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-12 11:50:53 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-12 11:50:53 -0500 |
| commit | 290aebdea65a02557706eaeda477fef0437b6a48 (patch) | |
| tree | f87a939169a508a2e943570501b64cc16b411cda /app-text/trang | |
| parent | 6783ddcd4b73d9ce586a71770caed352bec93b16 (diff) | |
| download | baldeagleos-repo-290aebdea65a02557706eaeda477fef0437b6a48.tar.gz baldeagleos-repo-290aebdea65a02557706eaeda477fef0437b6a48.tar.xz baldeagleos-repo-290aebdea65a02557706eaeda477fef0437b6a48.zip | |
Adding metadata
Diffstat (limited to 'app-text/trang')
| -rw-r--r-- | app-text/trang/Manifest | 1 | ||||
| -rw-r--r-- | app-text/trang/files/trang-20220510-CompactSyntaxTokenManager.patch | 130 | ||||
| -rw-r--r-- | app-text/trang/metadata.xml | 9 | ||||
| -rw-r--r-- | app-text/trang/trang-20241231.ebuild | 124 |
4 files changed, 0 insertions, 264 deletions
diff --git a/app-text/trang/Manifest b/app-text/trang/Manifest deleted file mode 100644 index 62ce12d8b9fd..000000000000 --- a/app-text/trang/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST trang-20241231.tar.gz 14317272 BLAKE2B 420bd2148f90bbda03d91c0e748fb785e89286e5b9b565cc31e81306e5c832a6b683b51bd132b7f16e7cbce798eaf1b13d23a4b035ef77a1b13bb25366866523 SHA512 6e0d9c69b5fe663b2e014e0a30b6d92018a349b982698631f346a1fe7657e8a8c5b785df1c1188f4caf61acfccbaf9fc2f6478f2dfb425ef6ef510a865bdaaa3 diff --git a/app-text/trang/files/trang-20220510-CompactSyntaxTokenManager.patch b/app-text/trang/files/trang-20220510-CompactSyntaxTokenManager.patch deleted file mode 100644 index ef633528e5fc..000000000000 --- a/app-text/trang/files/trang-20220510-CompactSyntaxTokenManager.patch +++ /dev/null @@ -1,130 +0,0 @@ -# mod/rng-parse/mod.xml lines 16-17 - 's/java.io.IOException/EOFException/' - ---- a/gensrc/main/com/thaiopensource/relaxng/parse/compact/CompactSyntaxTokenManager.java -+++ b/gensrc/main/com/thaiopensource/relaxng/parse/compact/CompactSyntaxTokenManager.java -@@ -219,7 +219,7 @@ private int jjMoveStringLiteralDfa0_0(){ - } - private int jjMoveStringLiteralDfa1_0(long active0){ - try { curChar = input_stream.readChar(); } -- catch(java.io.IOException e) { -+ catch(EOFException e) { - jjStopStringLiteralDfa_0(0, active0); - return 1; - } -@@ -264,7 +264,7 @@ private int jjMoveStringLiteralDfa2_0(long old0, long active0){ - if (((active0 &= old0)) == 0L) - return jjStartNfa_0(0, old0); - try { curChar = input_stream.readChar(); } -- catch(java.io.IOException e) { -+ catch(EOFException e) { - jjStopStringLiteralDfa_0(1, active0); - return 2; - } -@@ -307,7 +307,7 @@ private int jjMoveStringLiteralDfa3_0(long old0, long active0){ - if (((active0 &= old0)) == 0L) - return jjStartNfa_0(1, old0); - try { curChar = input_stream.readChar(); } -- catch(java.io.IOException e) { -+ catch(EOFException e) { - jjStopStringLiteralDfa_0(2, active0); - return 3; - } -@@ -342,7 +342,7 @@ private int jjMoveStringLiteralDfa4_0(long old0, long active0){ - if (((active0 &= old0)) == 0L) - return jjStartNfa_0(2, old0); - try { curChar = input_stream.readChar(); } -- catch(java.io.IOException e) { -+ catch(EOFException e) { - jjStopStringLiteralDfa_0(3, active0); - return 4; - } -@@ -387,7 +387,7 @@ private int jjMoveStringLiteralDfa5_0(long old0, long active0){ - if (((active0 &= old0)) == 0L) - return jjStartNfa_0(3, old0); - try { curChar = input_stream.readChar(); } -- catch(java.io.IOException e) { -+ catch(EOFException e) { - jjStopStringLiteralDfa_0(4, active0); - return 5; - } -@@ -426,7 +426,7 @@ private int jjMoveStringLiteralDfa6_0(long old0, long active0){ - if (((active0 &= old0)) == 0L) - return jjStartNfa_0(4, old0); - try { curChar = input_stream.readChar(); } -- catch(java.io.IOException e) { -+ catch(EOFException e) { - jjStopStringLiteralDfa_0(5, active0); - return 6; - } -@@ -465,7 +465,7 @@ private int jjMoveStringLiteralDfa7_0(long old0, long active0){ - if (((active0 &= old0)) == 0L) - return jjStartNfa_0(5, old0); - try { curChar = input_stream.readChar(); } -- catch(java.io.IOException e) { -+ catch(EOFException e) { - jjStopStringLiteralDfa_0(6, active0); - return 7; - } -@@ -492,7 +492,7 @@ private int jjMoveStringLiteralDfa8_0(long old0, long active0){ - if (((active0 &= old0)) == 0L) - return jjStartNfa_0(6, old0); - try { curChar = input_stream.readChar(); } -- catch(java.io.IOException e) { -+ catch(EOFException e) { - jjStopStringLiteralDfa_0(7, active0); - return 8; - } -@@ -517,7 +517,7 @@ private int jjMoveStringLiteralDfa9_0(long old0, long active0){ - if (((active0 &= old0)) == 0L) - return jjStartNfa_0(7, old0); - try { curChar = input_stream.readChar(); } -- catch(java.io.IOException e) { -+ catch(EOFException e) { - jjStopStringLiteralDfa_0(8, active0); - return 9; - } -@@ -537,7 +537,7 @@ private int jjStartNfaWithStates_0(int pos, int kind, int state) - jjmatchedKind = kind; - jjmatchedPos = pos; - try { curChar = input_stream.readChar(); } -- catch(java.io.IOException e) { return pos + 1; } -+ catch(EOFException e) { return pos + 1; } - return jjMoveNfa_0(state, pos + 1); - } - static final long[] jjbitVec0 = { -@@ -1131,7 +1131,7 @@ private int jjMoveNfa_0(int startState, int curPos) - if ((i = jjnewStateCnt) == (startsAt = 43 - (jjnewStateCnt = startsAt))) - return curPos; - try { curChar = input_stream.readChar(); } -- catch(java.io.IOException e) { return curPos; } -+ catch(EOFException e) { return curPos; } - } - } - private int jjMoveStringLiteralDfa0_1() -@@ -1294,7 +1294,7 @@ private int jjMoveNfa_1(int startState, int curPos) - if ((i = jjnewStateCnt) == (startsAt = 10 - (jjnewStateCnt = startsAt))) - return curPos; - try { curChar = input_stream.readChar(); } -- catch(java.io.IOException e) { return curPos; } -+ catch(EOFException e) { return curPos; } - } - } - private int jjMoveStringLiteralDfa0_2() -@@ -1427,7 +1427,7 @@ private int jjMoveNfa_2(int startState, int curPos) - if ((i = jjnewStateCnt) == (startsAt = 7 - (jjnewStateCnt = startsAt))) - return curPos; - try { curChar = input_stream.readChar(); } -- catch(java.io.IOException e) { return curPos; } -+ catch(EOFException e) { return curPos; } - } - } - -@@ -1686,7 +1686,7 @@ public Token getNextToken() - String error_after = null; - boolean EOFSeen = false; - try { input_stream.readChar(); input_stream.backup(1); } -- catch (java.io.IOException e1) { -+ catch (EOFException e1) { - EOFSeen = true; - error_after = curPos <= 1 ? "" : input_stream.GetImage(); - if (curChar == '\n' || curChar == '\r') { diff --git a/app-text/trang/metadata.xml b/app-text/trang/metadata.xml deleted file mode 100644 index 3f89ec24b9fb..000000000000 --- a/app-text/trang/metadata.xml +++ /dev/null @@ -1,9 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="project"> - <email>java@gentoo.org</email> - <name>Java</name> - </maintainer> - <origin>baldeagleos-repo</origin> -</pkgmetadata> diff --git a/app-text/trang/trang-20241231.ebuild b/app-text/trang/trang-20241231.ebuild deleted file mode 100644 index a4eb0d1b0f77..000000000000 --- a/app-text/trang/trang-20241231.ebuild +++ /dev/null @@ -1,124 +0,0 @@ -# Copyright 1999-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -JAVA_PKG_IUSE="doc test" -JAVA_TESTING_FRAMEWORKS="testng" - -inherit java-pkg-2 java-pkg-simple prefix - -DESCRIPTION="Multi-format schema converter based on RELAX NG" -HOMEPAGE="http://thaiopensource.com/relaxng/trang.html" -SRC_URI="https://github.com/relaxng/jing-trang/archive/V${PV}.tar.gz -> ${P}.tar.gz" -S="${WORKDIR}/jing-${P}" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="amd64 ~arm64 ~ppc64" - -BDEPEND=" - app-i18n/unicode-data - dev-java/saxon:9 -" - -CP_DEPEND=" - dev-java/xerces:2 - dev-java/xml-commons-resolver:0 -" - -JAVACC_SLOT="7.0.13" - -DEPEND=" - ${CP_DEPEND} - dev-java/javacc:${JAVACC_SLOT} - dev-java/testng:0 - >=virtual/jdk-1.8:* -" - -RDEPEND=" - ${CP_DEPEND} - >=virtual/jre-1.8:* -" - -JAVA_CLASSPATH_EXTRA="testng" -JAVA_GENTOO_CLASSPATH_EXTRA="util:helper" -JAVA_JAR_FILENAME="trang.jar" -JAVA_MAIN_CLASS="com.thaiopensource.relaxng.translate.Driver" -JAVA_RESOURCE_DIRS=( meta resources/src/main ) -JAVA_SRC_DIR=( {gen,}src/main ) -JAVA_TEST_RESOURCE_DIRS="src/test" -JAVA_TEST_SRC_DIR="src/test" - -src_prepare() { - java-pkg-2_src_prepare - java-pkg_clean - - eprefixify mod/regex/mod.xml # Do we still need this? - - # javac of old openjdk:8 does not create its output directory, see bug #934306 - # separating some sources which are needed only for compilation - mkdir helper util || die - cp -r mod/{catalog,datatype,jaxp,pattern,resolver,rng-parse}/src helper || die - - # most of the mods are not needed for the final trang.jar - rm -r mod/{dtdinst,nvdl,picl,rng-jarv,rng-validate,schematron,validate,xerces} || die - rm -r mod/{jaxp,pattern,rng-jaxp} || die - - # move all remainig stuff to "src/main" resp. "src/test" - mkdir -p resources src meta/META-INF/services || die - mv {mod/,}regex-gen || die # but not this one which is needed in two JAVA_SRC_DIRs - cp -r mod/*/src/{main,test} src || die - - # populate META-INF/services - echo com.thaiopensource.datatype.xsd.DatatypeLibraryFactoryImpl \ - > meta/META-INF/services/org.relaxng.datatype.DatatypeLibraryFactory || die - echo com.thaiopensource.datatype.xsd.regex.xerces2.RegexEngineImpl \ - > meta/META-INF/services/com.thaiopensource.datatype.xsd.regex.RegexEngine || die - - echo "version=${PV}" \ - > src/main/com/thaiopensource/relaxng/translate/resources/Version.properties || die - - # java-pkg-simple expects resources in JAVA_RESOURCE_DIRS - find src -type f ! -name '*.java' ! -name 'CompactSyntax.jj' ! -name 'package.html' \ - | xargs cp --parent -t resources || die - - # code generation according to mod/rng-parse/mod.xml - local OUT_DIR="gensrc/main/com/thaiopensource/relaxng/parse/compact" - mkdir -p "${OUT_DIR}" - "javacc-${JAVACC_SLOT}" -GRAMMAR_ENCODING=UTF-8 \ - -JDK_VERSION=1.8 \ - -OUTPUT_DIRECTORY="${OUT_DIR}" \ - helper/src/main/com/thaiopensource/relaxng/parse/compact/CompactSyntax.jj \ - || die "Code generation with java.jj failed" - rm "${OUT_DIR}/JavaCharStream.java" || die - - # mod/rng-parse/mod.xml lines 16-17 - 's/java.io.IOException/EOFException/' - eapply "${FILESDIR}/trang-20220510-CompactSyntaxTokenManager.patch" || die -} - -src_compile() { - einfo "Compiling some classes needed for code generation" - ejavac -d util \ - $(find regex-gen/src/main mod/util/src/main -name "*.java") || die - - einfo "Code generation" - "$(java-config -J)" -cp "util" \ - com.thaiopensource.datatype.xsd.regex.java.gen.NamingExceptionsGen \ - "com.thaiopensource.datatype.xsd.regex.java.NamingExceptions" \ - "src/main" || die - - "$(java-config -J)" -cp "util" \ - com.thaiopensource.datatype.xsd.regex.java.gen.CategoriesGen \ - "com.thaiopensource.datatype.xsd.regex.java.Categories" \ - "src/main" \ - "/usr/share/unicode-data/UnicodeData.txt" || die - - einfo "Compiling classes which are not needed for the final trang.jar" - ejavac -d helper \ - -cp "util:$(java-pkg_getjars --build-only xml-commons-resolver)" \ - $(find gensrc/main helper/src/main -name "*.java") || die - - einfo "Compiling trang.jar" - java-pkg-simple_src_compile -} |
