wok annotate ecj/receipt @ rev 25808

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