wok-6.x view ecj/receipt @ rev 25080
updated os-prober (1.79 -> 1.80)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Jun 15 16:08:36 2022 +0100 (2022-06-15) |
parents | 928ee03b0b6f |
children | f7324cde07d7 |
line source
1 # SliTaz package receipt.
3 PACKAGE="ecj"
4 VERSION="4.14"
5 CATEGORY="development"
6 TAGS="compiler java"
7 SHORT_DESC="The Eclipse standalone batch Java compiler and Ant compiler adapter."
8 MAINTAINER="rcx@zoominternet.net"
9 LICENSE="other"
10 WEB_SITE="http://www.eclipse.org/jdt/core/"
12 TARBALL="$PACKAGE-$VERSION.jar"
13 # 3.4.2: WGET_URL="http://download.eclipse.org/eclipse/downloads/drops/R-$VERSION-200902111700/$TARBALL"
14 # 3.5.2: WGET_URL="http://download.eclipse.org/eclipse/downloads/drops/R-$VERSION-201002111343/$TARBALL"
15 # 3.6: WGET_URL="http://download.eclipse.org/eclipse/downloads/drops/R-$VERSION-201006080911/$TARBALL"
16 # 4.10:
17 WGET_URL="http://download.eclipse.org/eclipse/downloads/drops4/R-$VERSION-201812060815/$TARBALL"
18 # 4.14:
19 WGET_URL="http://download.eclipse.org/eclipse/downloads/drops4/R-$VERSION-201912100610/$TARBALL"
21 SUGGESTED="java-jre"
22 DEPENDS=""
23 BUILD_DEPENDS=""
25 # What is the latest version available today?
26 current_version()
27 {
28 wget -O - ${WGET_URL%/*/*/*}/ 2>/dev/null | \
29 sed '/Latest Release"/!d;s|.*R-||;s|-.*||;q'
30 }
32 # Rules to configure and make the package.
33 compile_rules()
34 {
35 # Build the ecj shell script to use the current version
36 mkdir -p $DESTDIR/usr/bin &&
37 echo "#!/bin/sh" > $DESTDIR/usr/bin/ecj &&
38 echo "ECJ_VERSION=$VERSION" >> $DESTDIR/usr/bin/ecj &&
39 cat $stuff/ecj.sh.part >> $DESTDIR/usr/bin/ecj &&
40 chmod +x $DESTDIR/usr/bin/ecj &&
41 mkdir -p $DESTDIR/usr/share/java &&
42 cp -a $src/*.jar $DESTDIR/usr/share/java
43 }
45 # Rules to gen a SliTaz package suitable for Tazpkg.
46 genpkg_rules()
47 {
48 mkdir -p $fs
49 cp -a $install/usr $fs
50 }