summaryrefslogtreecommitdiffstats
path: root/development/d-tools
diff options
context:
space:
mode:
Diffstat (limited to 'development/d-tools')
-rw-r--r--development/d-tools/README9
-rw-r--r--development/d-tools/d-tools.SlackBuild32
-rw-r--r--development/d-tools/d-tools.info18
3 files changed, 35 insertions, 24 deletions
diff --git a/development/d-tools/README b/development/d-tools/README
index 79c8ee33c1..7d717f9900 100644
--- a/development/d-tools/README
+++ b/development/d-tools/README
@@ -1,4 +1,5 @@
-This package provides ancillary tools for the D programming language compiler.
+This package provides ancillary tools for the D programming language
+compiler.
The following tools are included:
@@ -9,6 +10,6 @@ The following tools are included:
* D-Scanner - Swiss-army knife for D source code.
* DCD - Auto-complete program.
-By default DMD is used to build all tools but you can build them with GDC as
-well. DMD is not required in this case. Specify $DC variable for that:
-DC=gdc ./d-tools.SlackBuild
+By default DMD is used to build all tools but you can build them with
+GDC as well. DMD is not required in this case. Specify $DC variable
+for that: DC=gdc ./d-tools.SlackBuild
diff --git a/development/d-tools/d-tools.SlackBuild b/development/d-tools/d-tools.SlackBuild
index 3e7012b683..0b3ddacf87 100644
--- a/development/d-tools/d-tools.SlackBuild
+++ b/development/d-tools/d-tools.SlackBuild
@@ -1,8 +1,8 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for D tools
-# Copyright 2017-2019 Eugene Wissner, Dachau, Germany
+# Copyright 2017-2024 Eugene Wissner, Mannheim, Germany
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
@@ -22,14 +22,17 @@
# (INCLUDING NEGLIGENCE OR 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=d-tools
-VERSION=${VERSION:-2.090.0}
+VERSION=${VERSION:-2.107.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
-DUB_VERSION=${DUB_VERSION:-1.19.0}
-DSCANNER_VERSION=${DSCANNER_VERSION:-0.8.0}
-DCD_VERSION=${DCD_VERSION:-0.12.0}
+DUB_VERSION=${DUB_VERSION:-1.36.0}
+DSCANNER_VERSION=${DSCANNER_VERSION:-0.15.2}
+DCD_VERSION=${DCD_VERSION:-0.15.2}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -39,7 +42,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}
@@ -77,7 +87,7 @@ chmod -R u+w,go-w,a+rX-st .
case "$DC" in
*gdc) sh build-gdc.sh
;;
- *) sh build.sh
+ *) dmd -run build.d
;;
esac
@@ -118,9 +128,9 @@ chown -R root:root .
chmod -R u+w,go-w,a+rX-st .
case "$DC" in
- *gdc) make gdcbuild
+ *gdc) make gdc
;;
- *) make dmdbuild
+ *) make all
;;
esac
mv bin/dscanner $PKG/usr/bin
@@ -149,4 +159,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/d-tools/d-tools.info b/development/d-tools/d-tools.info
index 0b4d012dda..c2daa8efff 100644
--- a/development/d-tools/d-tools.info
+++ b/development/d-tools/d-tools.info
@@ -1,14 +1,14 @@
PRGNAM="d-tools"
-VERSION="2.090.0"
+VERSION="2.107.1"
HOMEPAGE="https://dlang.org"
-DOWNLOAD="https://download.dlackware.com/hosted-sources/d-tools/dub-1.19.0.tar.gz \
- https://download.dlackware.com/hosted-sources/d-tools/tools-2.090.0.tar.gz \
- https://download.dlackware.com/hosted-sources/d-tools/D-Scanner-0.8.0.tar.xz \
- https://download.dlackware.com/hosted-sources/d-tools/DCD-0.12.0.tar.xz"
-MD5SUM="46e464754a742f49e9ee04a746745426 \
- 376bb069343432080a46cea8e62fc22f \
- fe2353c753abe28e2845ebfe2aaea155 \
- 6cc83a7c73c0d827bf4b43cbd1fc89c0"
+DOWNLOAD="https://download.dlackware.com/hosted-sources/d-tools/dub-1.36.0.tar.gz \
+ https://download.dlackware.com/hosted-sources/d-tools/tools-2.107.1.tar.gz \
+ https://download.dlackware.com/hosted-sources/d-tools/D-Scanner-0.15.2.tar.xz \
+ https://download.dlackware.com/hosted-sources/d-tools/DCD-0.15.2.tar.xz"
+MD5SUM="9bff7e4bd3a36bfa94ac4c379ddb6d97 \
+ 64e3046784001583154f38ce856dfdf8 \
+ 2b805ef7e3c2d0951d0c27cb479be67a \
+ fe7c2b6664c34f45db40373a3cf3374a"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="dmd"