summaryrefslogtreecommitdiffstats
path: root/development/srcML
diff options
context:
space:
mode:
Diffstat (limited to 'development/srcML')
-rw-r--r--development/srcML/README26
-rw-r--r--development/srcML/srcML.SlackBuild16
-rw-r--r--development/srcML/srcML.info2
3 files changed, 28 insertions, 16 deletions
diff --git a/development/srcML/README b/development/srcML/README
index 367f53dc00..1af78dff3c 100644
--- a/development/srcML/README
+++ b/development/srcML/README
@@ -1,14 +1,16 @@
-The srcML format is a XML representation for source code, where the markup
-tags identify elements of the abstract syntax for the language. The srcml
-program is a command line application for the conversion of source code to
-srcML, an interface for the exploration, analysis, and manipulation of source
-code in this form, and the conversion of srcML back to source code. The
-current parsing technologies support C/C++, C#, and Java.
+The srcML format is a XML representation for source code, where
+the markup tags identify elements of the abstract syntax for
+the language. The srcml program is a command line application
+for the conversion of source code to srcML, an interface for the
+exploration, analysis, and manipulation of source code in this form,
+and the conversion of srcML back to source code. The current parsing
+technologies support C/C++, C#, and Java.
-srcML requires some statically compiled Boost libraries which are not
-available in Slackware's default installation. Thus, the required libraries
-are compiled temporarily according to srcML's documentation but will not be
-installed into your system. Also, srcML's Python binding will not be
-installed.
+srcML requires some statically compiled Boost libraries which are
+not available in Slackware's default installation. Thus, the required
+libraries are compiled temporarily according to srcML's documentation
+but will not be installed into your system. Also, srcML's Python
+binding will not be installed.
-To build this its dependency antlr2 must be built against jdk (or openjdk).
+To build this its dependency antlr2 must be built against jdk (or
+openjdk8, zulu-openjdk8).
diff --git a/development/srcML/srcML.SlackBuild b/development/srcML/srcML.SlackBuild
index 4d8e628a63..71462458db 100644
--- a/development/srcML/srcML.SlackBuild
+++ b/development/srcML/srcML.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for srcML
@@ -22,10 +22,13 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=srcML
VERSION=${VERSION:-0.9.5}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
BOOST=boost_1_59_0
DEPDIR=deps
@@ -37,7 +40,14 @@ if [ -z "$ARCH" ]; then
esac
fi
-CWD=$(pwd)
+# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
+# the name of the created package would be, and then exit. This information
+# could be useful to other scripts.
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -124,4 +134,4 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/development/srcML/srcML.info b/development/srcML/srcML.info
index f40334db79..ec4957d861 100644
--- a/development/srcML/srcML.info
+++ b/development/srcML/srcML.info
@@ -7,6 +7,6 @@ MD5SUM="e5c4223f7556b57984b20d70606f50ab \
6aa9a5c6a4ca1016edd0ed1178e3cb87"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="antlr2"
+REQUIRES="antlr2 zulu-openjdk8"
MAINTAINER="Marcel Steinbeck"
EMAIL="marcel dot steinbeck at googlemail dot com"