Skip to content

Commit

Permalink
Updating
Browse files Browse the repository at this point in the history
  • Loading branch information
fusion809 committed Nov 7, 2016
1 parent 65a6038 commit 40113c9
Show file tree
Hide file tree
Showing 16 changed files with 136 additions and 26 deletions.
5 changes: 5 additions & 0 deletions recipes/meta/eclipse/Recipe-android
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
filename=$(basename $0)
suffix=${filename/Recipe-/}
printf $suffix
./Recipe ./eclipse-${suffix}.yml
5 changes: 5 additions & 0 deletions recipes/meta/eclipse/Recipe-committers
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
filename=$(basename $0)
suffix=${filename/Recipe-/}
printf $suffix
./Recipe ./eclipse-${suffix}.yml
Binary file added recipes/meta/eclipse/eclipse-android.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 35 additions & 0 deletions recipes/meta/eclipse/eclipse-android.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
app: eclipse-android

ingredients:
script:
- VERSION="$(wget -q https://www.eclipse.org/downloads/eclipse-packages/ -O - | grep "eclipse-android.*gtk.tar.gz" | head -n 1 | cut -d '"' -f 4 | cut -d '/' -f 10 | sed 's/eclipse-android-//g' | sed 's/-linux-gtk.tar.gz//g')"
- REV=$(printf $VERSION | cut -d '-' -f 2)
- if [[ -n $REV ]]; then
- URL="http://mirror.internode.on.net/pub/eclipse/technology/epp/downloads/release/${VERSION/-$REV/}/$REV/eclipse-android-$VERSION-linux-gtk-x86_64.tar.gz"
- else
- URL="http://mirror.internode.on.net/pub/eclipse/technology/epp/downloads/release/$VERSION/R/eclipse-android-$VERSION-R-linux-gtk-x86_64.tar.gz"
- fi
- echo $VERSION > VERSION
- wget -c "$URL" --trust-server-names
- tar zxvf eclipse*.gz
- JDK_URL=$(wget -q http://www.oracle.com/technetwork/java/javase/downloads/index.html -O - | grep "[0-9]u[0-9]" | head -n 1 | cut -d '"' -f 20)
- JDK_VERSION=$(wget -q http://www.oracle.com/$JDK_URL -O - | grep "linux-x64.tar.gz" | tail -n 1 | cut -d '"' -f 12 | cut -d '/' -f 7)
- wget -c --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/$JDK_VERSION/jre-${JDK_VERSION/-*/}-linux-x64.tar.gz

script:
- cp -r ../eclipse/* usr/bin/
- mkdir -p usr/lib/jvm/
- tar xf ../jre*.gz -C usr/lib/jvm/
- mkdir -p bin
- ( cd ./bin; ln -sf ../usr/lib/jvm/jre*/bin/java . )
- cp ../../eclipse-android.png .
- cat > eclipse-android.desktop <<EOF
- [Desktop Entry]
- Version=1.0
- Type=Application
- Name=Eclipse Android IDE
- Icon=eclipse-android
- Exec=eclipse
- Categories=Development;IDE;Android
- Terminal=false
- EOF
35 changes: 35 additions & 0 deletions recipes/meta/eclipse/eclipse-committers.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
app: eclipse-committers

ingredients:
script:
- VERSION="$(wget -q https://www.eclipse.org/downloads/eclipse-packages/ -O - | grep "eclipse-committers.*gtk.tar.gz" | head -n 1 | cut -d '"' -f 4 | cut -d '/' -f 10 | sed 's/eclipse-committers-//g' | sed 's/-linux-gtk.tar.gz//g')"
- REV=$(printf $VERSION | cut -d '-' -f 2)
- if [[ -n $REV ]]; then
- URL="http://mirror.internode.on.net/pub/eclipse/technology/epp/downloads/release/${VERSION/-$REV/}/$REV/eclipse-committers-$VERSION-linux-gtk-x86_64.tar.gz"
- else
- URL="http://mirror.internode.on.net/pub/eclipse/technology/epp/downloads/release/$VERSION/R/eclipse-committers-$VERSION-R-linux-gtk-x86_64.tar.gz"
- fi
- echo $VERSION > VERSION
- wget -c "$URL" --trust-server-names
- tar zxvf eclipse*.gz
- JDK_URL=$(wget -q http://www.oracle.com/technetwork/java/javase/downloads/index.html -O - | grep "[0-9]u[0-9]" | head -n 1 | cut -d '"' -f 20)
- JDK_VERSION=$(wget -q http://www.oracle.com/$JDK_URL -O - | grep "linux-x64.tar.gz" | tail -n 1 | cut -d '"' -f 12 | cut -d '/' -f 7)
- wget -c --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/$JDK_VERSION/jre-${JDK_VERSION/-*/}-linux-x64.tar.gz

script:
- cp -r ../eclipse/* usr/bin/
- mkdir -p usr/lib/jvm/
- tar xf ../jre*.gz -C usr/lib/jvm/
- mkdir -p bin
- ( cd ./bin; ln -sf ../usr/lib/jvm/jre*/bin/java . )
- cp ../../eclipse.png .
- cat > eclipse-committers.desktop <<EOF
- [Desktop Entry]
- Version=1.0
- Type=Application
- Name=Eclipse Committers IDE
- Icon=eclipse
- Exec=eclipse
- Categories=Development;IDE
- Terminal=false
- EOF
Binary file added recipes/meta/eclipse/eclipse-cpp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 9 additions & 4 deletions recipes/meta/eclipse/eclipse-cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,14 @@ app: eclipse-cpp

ingredients:
script:
- VERSION="$(wget -q https://www.eclipse.org/downloads/ -O - | grep "64" | head -n 1 | cut -d '"' -f 4 | cut -d '/' -f 8)"
- echo $VERSION > VERSION
- VERSION="$(wget -q https://www.eclipse.org/downloads/eclipse-packages/ -O - | grep "eclipse-cpp.*gtk.tar.gz" | head -n 1 | cut -d '"' -f 4 | cut -d '/' -f 10 | sed 's/eclipse-cpp-//g' | sed 's/-linux-gtk.tar.gz//g')"
- REV=$(printf $VERSION | cut -d '-' -f 2)
- if [[ -n $REV ]]; then
- URL="http://mirror.internode.on.net/pub/eclipse/technology/epp/downloads/release/${VERSION/-$REV/}/$REV/eclipse-cpp-$VERSION-linux-gtk-x86_64.tar.gz"
- else
- URL="http://mirror.internode.on.net/pub/eclipse/technology/epp/downloads/release/$VERSION/R/eclipse-cpp-$VERSION-R-linux-gtk-x86_64.tar.gz"
- fi
- echo $VERSION > VERSION
- wget -c "$URL" --trust-server-names
- tar zxvf eclipse*.gz
- JDK_URL=$(wget -q http://www.oracle.com/technetwork/java/javase/downloads/index.html -O - | grep "[0-9]u[0-9]" | head -n 1 | cut -d '"' -f 20)
Expand All @@ -17,13 +22,13 @@ script:
- tar xf ../jre*.gz -C usr/lib/jvm/
- mkdir -p bin
- ( cd ./bin; ln -sf ../usr/lib/jvm/jre*/bin/java . )
- cp ../../eclipse.png .
- cp ../../eclipse-cpp.png .
- cat > eclipse-cpp.desktop <<EOF
- [Desktop Entry]
- Version=1.0
- Type=Application
- Name=Eclipse C++ IDE
- Icon=eclipse
- Icon=eclipse-cpp
- Exec=eclipse
- Categories=Development;IDE;C;C++
- Terminal=false
Expand Down
Binary file added recipes/meta/eclipse/eclipse-java.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 9 additions & 4 deletions recipes/meta/eclipse/eclipse-java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,14 @@ app: eclipse-java

ingredients:
script:
- VERSION="$(wget -q https://www.eclipse.org/downloads/ -O - | grep "64" | head -n 1 | cut -d '"' -f 4 | cut -d '/' -f 8)"
- echo $VERSION > VERSION
- VERSION="$(wget -q https://www.eclipse.org/downloads/eclipse-packages/ -O - | grep "eclipse-java.*gtk.tar.gz" | head -n 1 | cut -d '"' -f 4 | cut -d '/' -f 10 | sed 's/eclipse-java-//g' | sed 's/-linux-gtk.tar.gz//g')"
- REV=$(printf $VERSION | cut -d '-' -f 2)
- if [[ -n $REV ]]; then
- URL="http://mirror.internode.on.net/pub/eclipse/technology/epp/downloads/release/${VERSION/-$REV/}/$REV/eclipse-java-$VERSION-linux-gtk-x86_64.tar.gz"
- else
- URL="http://mirror.internode.on.net/pub/eclipse/technology/epp/downloads/release/$VERSION/R/eclipse-java-$VERSION-R-linux-gtk-x86_64.tar.gz"
- fi
- echo $VERSION > VERSION
- wget -c "$URL" --trust-server-names
- tar zxvf eclipse*.gz
- JDK_URL=$(wget -q http://www.oracle.com/technetwork/java/javase/downloads/index.html -O - | grep "[0-9]u[0-9]" | head -n 1 | cut -d '"' -f 20)
Expand All @@ -17,13 +22,13 @@ script:
- tar xf ../jre*.gz -C usr/lib/jvm/
- mkdir -p bin
- ( cd ./bin; ln -sf ../usr/lib/jvm/jre*/bin/java . )
- cp ../../eclipse.png .
- cp ../../eclipse-java.png .
- cat > eclipse-java.desktop <<EOF
- [Desktop Entry]
- Version=1.0
- Type=Application
- Name=Eclipse Java IDE
- Icon=eclipse
- Icon=eclipse-java
- Exec=eclipse
- Categories=Development;IDE;Java
- Terminal=false
Expand Down
Binary file added recipes/meta/eclipse/eclipse-javaee.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added recipes/meta/eclipse/eclipse-javascript.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 10 additions & 5 deletions recipes/meta/eclipse/eclipse-javascript.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,14 @@ app: eclipse-javascript

ingredients:
script:
- VERSION="$(wget -q https://www.eclipse.org/downloads/ -O - | grep "64" | head -n 1 | cut -d '"' -f 4 | cut -d '/' -f 8)"
- echo $VERSION > VERSION
- VERSION="$(wget -q https://www.eclipse.org/downloads/eclipse-packages/ -O - | grep "eclipse-javascript.*gtk.tar.gz" | head -n 1 | cut -d '"' -f 4 | cut -d '/' -f 10 | sed 's/eclipse-javascript-//g' | sed 's/-linux-gtk.tar.gz//g')"
- REV=$(printf $VERSION | cut -d '-' -f 2)
- if [[ -n $REV ]]; then
- URL="http://mirror.internode.on.net/pub/eclipse/technology/epp/downloads/release/${VERSION/-$REV/}/$REV/eclipse-javascript-$VERSION-linux-gtk-x86_64.tar.gz"
- else
- URL="http://mirror.internode.on.net/pub/eclipse/technology/epp/downloads/release/$VERSION/R/eclipse-javascript-$VERSION-R-linux-gtk-x86_64.tar.gz"
- fi
- echo $VERSION > VERSION
- wget -c "$URL" --trust-server-names
- tar zxvf eclipse*.gz
- JDK_URL=$(wget -q http://www.oracle.com/technetwork/java/javase/downloads/index.html -O - | grep "[0-9]u[0-9]" | head -n 1 | cut -d '"' -f 20)
Expand All @@ -17,14 +22,14 @@ script:
- tar xf ../jre*.gz -C usr/lib/jvm/
- mkdir -p bin
- ( cd ./bin; ln -sf ../usr/lib/jvm/jre*/bin/java . )
- cp ../../eclipse.png .
- cp ../../eclipse-javascript.png .
- cat > eclipse-javascript.desktop <<EOF
- [Desktop Entry]
- Version=1.0
- Type=Application
- Name=Eclipse JavaScript IDE
- Icon=eclipse
- Icon=eclipse-javascript
- Exec=eclipse
- Categories=Development;IDE;Java
- Categories=Development;IDE;JavaScript
- Terminal=false
- EOF
15 changes: 10 additions & 5 deletions recipes/meta/eclipse/eclipse-jee.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,14 @@ app: eclipse-jee

ingredients:
script:
- VERSION="$(wget -q https://www.eclipse.org/downloads/ -O - | grep "64" | head -n 1 | cut -d '"' -f 4 | cut -d '/' -f 8)"
- echo $VERSION > VERSION
- VERSION="$(wget -q https://www.eclipse.org/downloads/eclipse-packages/ -O - | grep "eclipse-jee.*gtk.tar.gz" | head -n 1 | cut -d '"' -f 4 | cut -d '/' -f 10 | sed 's/eclipse-jee-//g' | sed 's/-linux-gtk.tar.gz//g')"
- REV=$(printf $VERSION | cut -d '-' -f 2)
- if [[ -n $REV ]]; then
- URL="http://mirror.internode.on.net/pub/eclipse/technology/epp/downloads/release/${VERSION/-$REV/}/$REV/eclipse-jee-$VERSION-linux-gtk-x86_64.tar.gz"
- else
- URL="http://mirror.internode.on.net/pub/eclipse/technology/epp/downloads/release/$VERSION/R/eclipse-jee-$VERSION-R-linux-gtk-x86_64.tar.gz"
- fi
- echo $VERSION > VERSION
- wget -c "$URL" --trust-server-names
- tar zxvf eclipse*.gz
- JDK_URL=$(wget -q http://www.oracle.com/technetwork/java/javase/downloads/index.html -O - | grep "[0-9]u[0-9]" | head -n 1 | cut -d '"' -f 20)
Expand All @@ -17,14 +22,14 @@ script:
- tar xf ../jre*.gz -C usr/lib/jvm/
- mkdir -p bin
- ( cd ./bin; ln -sf ../usr/lib/jvm/jre*/bin/java . )
- cp ../../eclipse.png .
- cp ../../eclipse-javaee.png .
- cat > eclipse-jee.desktop <<EOF
- [Desktop Entry]
- Version=1.0
- Type=Application
- Name=Eclipse Java EE IDE
- Icon=eclipse
- Icon=eclipse-javaee
- Exec=eclipse
- Categories=Development;IDE;Java
- Categories=Development;IDE;JavaEE
- Terminal=false
- EOF
Binary file added recipes/meta/eclipse/eclipse-php.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 10 additions & 5 deletions recipes/meta/eclipse/eclipse-php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,14 @@ app: eclipse-php

ingredients:
script:
- VERSION="$(wget -q https://www.eclipse.org/downloads/ -O - | grep "64" | head -n 1 | cut -d '"' -f 4 | cut -d '/' -f 8)"
- echo $VERSION > VERSION
- VERSION="$(wget -q https://www.eclipse.org/downloads/eclipse-packages/ -O - | grep "eclipse-php.*gtk.tar.gz" | head -n 1 | cut -d '"' -f 4 | cut -d '/' -f 10 | sed 's/eclipse-php-//g' | sed 's/-linux-gtk.tar.gz//g')"
- REV=$(printf $VERSION | cut -d '-' -f 2)
- if [[ -n $REV ]]; then
- URL="http://mirror.internode.on.net/pub/eclipse/technology/epp/downloads/release/${VERSION/-$REV/}/$REV/eclipse-php-$VERSION-linux-gtk-x86_64.tar.gz"
- else
- URL="http://mirror.internode.on.net/pub/eclipse/technology/epp/downloads/release/$VERSION/R/eclipse-php-$VERSION-R-linux-gtk-x86_64.tar.gz"
- fi
- echo $VERSION > VERSION
- wget -c "$URL" --trust-server-names
- tar zxvf eclipse*.gz
- JDK_URL=$(wget -q http://www.oracle.com/technetwork/java/javase/downloads/index.html -O - | grep "[0-9]u[0-9]" | head -n 1 | cut -d '"' -f 20)
Expand All @@ -17,14 +22,14 @@ script:
- tar xf ../jre*.gz -C usr/lib/jvm/
- mkdir -p bin
- ( cd ./bin; ln -sf ../usr/lib/jvm/jre*/bin/java . )
- cp ../../eclipse.png .
- cp ../../eclipse-php.png .
- cat > eclipse-php.desktop <<EOF
- [Desktop Entry]
- Version=1.0
- Type=Application
- Name=Eclipse PHP IDE
- Icon=eclipse
- Icon=eclipse-php
- Exec=eclipse
- Categories=Development;IDE;Java
- Categories=Development;IDE;PHP
- Terminal=false
- EOF
11 changes: 8 additions & 3 deletions recipes/meta/eclipse/eclipse-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,14 @@ app: eclipse-testing

ingredients:
script:
- VERSION="$(wget -q https://www.eclipse.org/downloads/ -O - | grep "64" | head -n 1 | cut -d '"' -f 4 | cut -d '/' -f 8)"
- echo $VERSION > VERSION
- VERSION="$(wget -q https://www.eclipse.org/downloads/eclipse-packages/ -O - | grep "eclipse-testing.*gtk.tar.gz" | head -n 1 | cut -d '"' -f 4 | cut -d '/' -f 10 | sed 's/eclipse-testing-//g' | sed 's/-linux-gtk.tar.gz//g')"
- REV=$(printf $VERSION | cut -d '-' -f 2)
- if [[ -n $REV ]]; then
- URL="http://mirror.internode.on.net/pub/eclipse/technology/epp/downloads/release/${VERSION/-$REV/}/$REV/eclipse-testing-$VERSION-linux-gtk-x86_64.tar.gz"
- else
- URL="http://mirror.internode.on.net/pub/eclipse/technology/epp/downloads/release/$VERSION/R/eclipse-testing-$VERSION-R-linux-gtk-x86_64.tar.gz"
- fi
- echo $VERSION > VERSION
- wget -c "$URL" --trust-server-names
- tar zxvf eclipse*.gz
- JDK_URL=$(wget -q http://www.oracle.com/technetwork/java/javase/downloads/index.html -O - | grep "[0-9]u[0-9]" | head -n 1 | cut -d '"' -f 20)
Expand All @@ -25,6 +30,6 @@ script:
- Name=Eclipse Testing IDE
- Icon=eclipse
- Exec=eclipse
- Categories=Development;IDE;Java
- Categories=Development;IDE
- Terminal=false
- EOF

0 comments on commit 40113c9

Please sign in to comment.