aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--development/dmd/README5
-rw-r--r--development/dmd/dmd.SlackBuild90
-rw-r--r--development/dmd/dmd.info10
-rw-r--r--development/dmd/slack-desc19
4 files changed, 124 insertions, 0 deletions
diff --git a/development/dmd/README b/development/dmd/README
new file mode 100644
index 0000000000000..43c5eedc978a6
--- /dev/null
+++ b/development/dmd/README
@@ -0,0 +1,5 @@
+Official reference D compiler.
+
+D is a systems programming language with C-like syntax and static
+typing. It combines efficiency, control and modeling power with
+safety and programmer productivity.
diff --git a/development/dmd/dmd.SlackBuild b/development/dmd/dmd.SlackBuild
new file mode 100644
index 0000000000000..a941ceaa35395
--- /dev/null
+++ b/development/dmd/dmd.SlackBuild
@@ -0,0 +1,90 @@
+#!/bin/sh
+
+# Slackware build script for DMD
+
+# Copyright 2016 Eugene Wissner, Dachau, Germany
+# All rights reserved.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions are met:
+#
+# 1. Redistributions of source code must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY
+# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+# DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
+# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+PRGNAM=dmd
+VERSION=${VERSION:-2.071.2}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i586 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "x86_64" ]; then
+ LIBDIRSUFFIX="64"
+ ARCHSUFFIX="64"
+else
+ LIBDIRSUFFIX=""
+ ARCHSUFFIX="32"
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM${VERSION:0:1}
+tar xvf $CWD/$PRGNAM.$VERSION.linux.tar.xz
+cd $PRGNAM${VERSION:0:1}
+chown -R root:root .
+find -L . \
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+mkdir $PKG/etc
+sed -e "s|%@P%/../../src|/usr/lib${LIBDIRSUFFIX}/d|g" \
+ -e "s|%@P%/../lib32|/usr/lib|" \
+ -e "s|%@P%/../lib64|/usr/lib64|" \
+ linux/bin${ARCHSUFFIX}/dmd.conf > $PKG/etc/dmd.conf
+rm linux/bin${ARCHSUFFIX}/dmd.conf
+
+mkdir -p $PKG/usr/bin
+rm -f linux/bin${ARCHSUFFIX}/README.TXT
+mv linux/bin${ARCHSUFFIX}/* $PKG/usr/bin
+
+mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}/d
+mv linux/lib${ARCHSUFFIX}/libphobos2.* $PKG/usr/lib${LIBDIRSUFFIX}
+mv src/{druntime,phobos} $PKG/usr/lib${LIBDIRSUFFIX}/d
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+mv html/* $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
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/development/dmd/dmd.info b/development/dmd/dmd.info
new file mode 100644
index 0000000000000..9b5db1e6c8546
--- /dev/null
+++ b/development/dmd/dmd.info
@@ -0,0 +1,10 @@
+PRGNAM="dmd"
+VERSION="2.071.2"
+HOMEPAGE="https://dlang.org"
+DOWNLOAD="http://downloads.dlang.org/releases/2016/dmd.2.071.2.linux.tar.xz"
+MD5SUM="86086c7b679c3e49cc472be83c8790b5"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES=""
+MAINTAINER="Eugene Wissner"
+EMAIL="belka@caraus.de"
diff --git a/development/dmd/slack-desc b/development/dmd/slack-desc
new file mode 100644
index 0000000000000..e96dfbca02543
--- /dev/null
+++ b/development/dmd/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------------------------------------------------------|
+dmd: dmd (Digital Mars D Compiler Package)
+dmd:
+dmd: D is a systems programming language with C-like syntax and static
+dmd: typing. It combines efficiency, control and modeling power with
+dmd: safety and programmer productivity.
+dmd:
+dmd: Homepage: https://dlang.org
+dmd:
+dmd:
+dmd:
+dmd: