summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHorst Burkhardt <horst@adelielinux.org>2024-08-18 21:16:57 +1000
committerHorst Burkhardt <horst@adelielinux.org>2024-08-18 21:33:26 +1000
commitdd70691a2345dc325d343e351d105934ea329edb (patch)
tree2668be9d1720ef41a75d40610a321d304b484e31
parent1433912a60da06712a7b30dba54345853c695914 (diff)
downloadpackages-dd70691a2345dc325d343e351d105934ea329edb.tar.gz
packages-dd70691a2345dc325d343e351d105934ea329edb.tar.bz2
packages-dd70691a2345dc325d343e351d105934ea329edb.tar.xz
packages-dd70691a2345dc325d343e351d105934ea329edb.zip
bootstrap/jikes: new package
Signed-off-by: Horst Burkhardt <horst@adelielinux.org>
-rw-r--r--bootstrap/jikes/APKBUILD26
-rw-r--r--bootstrap/jikes/deprecated-context.patch25
2 files changed, 51 insertions, 0 deletions
diff --git a/bootstrap/jikes/APKBUILD b/bootstrap/jikes/APKBUILD
new file mode 100644
index 000000000..79121ef65
--- /dev/null
+++ b/bootstrap/jikes/APKBUILD
@@ -0,0 +1,26 @@
+# Maintainer: Horst Burkhardt <horst@adelielinux.org>
+pkgname="jikes"
+pkgver="1.22"
+pkgdesc="IBM's Java Compiler for Java 1.4"
+url="https://jikes.sourceforge.net/"
+arch="all"
+license="IBM"
+depends=""
+makedepends="autoconf automake"
+source="https://downloads.sourceforge.net/project/$pkgname/Jikes/$pkgver/$pkgname-$pkgver.tar.bz2"
+
+prepare() {
+ sed -i '/cygwin_win32_to_posix_path_list/d' configure.ac
+ autoreconf -fi
+ }
+
+build() {
+ ./configure
+ make
+ }
+
+package() {
+ make DESTDIR="$pkgdir/" install
+ }
+
+sha512sums="6b318f49f075da0cf0558512748bd77072f5b5b0428160538bcba01201c94719ec0f4b0cd0159ddb04fb3a86c323c8f11f09dc4b31cf880fb94e00c1ee0bbc58 jikes-1.22.tar.bz2"
diff --git a/bootstrap/jikes/deprecated-context.patch b/bootstrap/jikes/deprecated-context.patch
new file mode 100644
index 000000000..0fd05253a
--- /dev/null
+++ b/bootstrap/jikes/deprecated-context.patch
@@ -0,0 +1,25 @@
+--- src/decl.cpp 2004/09/26 22:40:411.144
++++ src/decl.cpp 2004/10/09 18:04:501.145
+@@ -2596,7 +2596,9 @@
+ //
+ if (control.option.deprecation &&
+ hidden_method -> IsDeprecated() &&
+- ! method -> containing_type -> file_symbol -> IsClassOnly())
++ ! method -> containing_type -> file_symbol -> IsClassOnly() &&
++ ! method -> IsDeprecated() &&
++ ! InDeprecatedContext())
+ {
+ ReportSemError(SemanticError::DEPRECATED_METHOD_OVERRIDE,
+ left_tok, right_tok, method -> Header(),
+
+diff -u -r1.159 -r1.160
+--- src/error.cpp 2004/09/26 22:40:411.159
++++ src/error.cpp 2004/10/10 02:59:401.160
+@@ -513,6 +513,7 @@
+ warning[DEPRECATED_FIELD] = WEAK_WARNING;
+ warning[DEPRECATED_METHOD] = WEAK_WARNING;
+ warning[DEPRECATED_CONSTRUCTOR] = WEAK_WARNING;
++ warning[DEPRECATED_METHOD_OVERRIDE] = WEAK_WARNING;
+
+ warning[UNNECESSARY_TYPE_IMPORT] = WEAK_WARNING;
+ warning[MULTIPLE_PUBLIC_TYPES] = WEAK_WARNING;