summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--development/idea/README11
-rw-r--r--development/idea/doinst.sh13
-rw-r--r--development/idea/idea.SlackBuild56
-rw-r--r--development/idea/idea.desktop9
-rw-r--r--development/idea/idea.info10
-rw-r--r--development/idea/slack-desc19
6 files changed, 118 insertions, 0 deletions
diff --git a/development/idea/README b/development/idea/README
new file mode 100644
index 0000000000..23196b3771
--- /dev/null
+++ b/development/idea/README
@@ -0,0 +1,11 @@
+IntelliJ IDEA Community Edition is the open source version of IntelliJ IDEA,
+a premier IDE (Integrated Development Environment) for Java, Groovy and
+other programming languages such as Scala or Clojure.
+
+JetBrains leverages the open source effort on JetBrains.org to build
+commercial products such as IntelliJ IDEA Ultimate, which includes many
+Java EE, Web development and deployment-related features that are not
+available in IntelliJ IDEA Community Edition. JetBrains also builds different
+specific products such as RubyMine, WebStorm, PhpStorm, PyCharm, AppCode and
+MPS, which serve the needs of different developer communities. These
+products are also built on top of the open source IntelliJ Platform.
diff --git a/development/idea/doinst.sh b/development/idea/doinst.sh
new file mode 100644
index 0000000000..066a16fb14
--- /dev/null
+++ b/development/idea/doinst.sh
@@ -0,0 +1,13 @@
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
+fi
+
+if [ -x /usr/bin/update-mime-database ]; then
+ /usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1
+fi
+
+if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
+ if [ -x /usr/bin/gtk-update-icon-cache ]; then
+ /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1
+ fi
+fi
diff --git a/development/idea/idea.SlackBuild b/development/idea/idea.SlackBuild
new file mode 100644
index 0000000000..79fa534fdf
--- /dev/null
+++ b/development/idea/idea.SlackBuild
@@ -0,0 +1,56 @@
+#!/bin/bash
+#
+# Slackware build script for IntelliJIDEA
+# Written by Mario Antunes (mariolpantunes@gmail.com)
+# This script is just a binary repackaging.
+
+PRGNAM=idea
+ARCNAM=ideaIC
+VERSION=${VERSION:-13.1.3}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+ARCH=noarch
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG/opt/ $OUTPUT
+cd $PKG/opt/
+tar xvf $CWD/$ARCNAM-$VERSION.tar.gz
+mv * $PRGNAM
+
+mkdir -p $PKG/etc/profile.d
+cat << EOF > $PKG/etc/profile.d/$PRGNAM.sh
+#!/bin/sh
+export IDEA_HOME=/opt/idea
+export PATH=\$PATH:\$IDEA_HOME/bin
+EOF
+cat << EOF > $PKG/etc/profile.d/$PRGNAM.csh
+#!/bin/csh
+setenv IDEA_HOME /opt/idea
+setenv PATH \$PATH:\$IDEA_HOME/bin
+EOF
+chmod 755 $PKG/etc/profile.d/*
+
+install -D -m 0644 $CWD/$PRGNAM.desktop $PKG/usr/share/applications/$PRGNAM.desktop
+install -D -m 0644 $PKG/opt/$PRGNAM/bin/$PRGNAM.png $PKG/usr/share/pixmaps/$PRGNAM.png
+
+find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
+ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cd $PKG/opt/$PRGNAM
+mv *.txt license $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/development/idea/idea.desktop b/development/idea/idea.desktop
new file mode 100644
index 0000000000..37b07d5bd7
--- /dev/null
+++ b/development/idea/idea.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Type=Application
+Exec=idea.sh
+Name=IntelliJ IDEA
+GenericName=IntelliJ IDEA
+Comment=IntelliJ IDEA
+Icon=idea
+StartupNotify=true
+Categories=Development;
diff --git a/development/idea/idea.info b/development/idea/idea.info
new file mode 100644
index 0000000000..d4071b925c
--- /dev/null
+++ b/development/idea/idea.info
@@ -0,0 +1,10 @@
+PRGNAM="idea"
+VERSION="13.1.3"
+HOMEPAGE="http://www.jetbrains.com/idea/"
+DOWNLOAD="http://download.jetbrains.com/idea/ideaIC-13.1.3.tar.gz"
+MD5SUM="f71c624bf4e98269d883e8ea8dd48145"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES="jdk"
+MAINTAINER="Mario Antunes"
+EMAIL="mariolpantunes@gmail.com"
diff --git a/development/idea/slack-desc b/development/idea/slack-desc
new file mode 100644
index 0000000000..3bed03a753
--- /dev/null
+++ b/development/idea/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.
+# Line up the first '|' above the ':' following the base package name, and
+# the '|' on the right side marks the last column you can put a character in.
+# You must make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+idea: idea (Development IDE)
+idea:
+idea: Out of the box, IntelliJ IDEA provides a comprehensive feature set
+idea: including tools and integrations with the most important modern
+idea: technologies and frameworks for enterprise and web development with
+idea: Java, Scala, Groovy and other languages.
+idea:
+idea:
+idea:
+idea:
+idea: