aboutsummaryrefslogtreecommitdiff
path: root/development/d-tools/d-tools.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'development/d-tools/d-tools.SlackBuild')
-rw-r--r--development/d-tools/d-tools.SlackBuild27
1 files changed, 21 insertions, 6 deletions
diff --git a/development/d-tools/d-tools.SlackBuild b/development/d-tools/d-tools.SlackBuild
index 2e35b0aa8004..4b8dc4938103 100644
--- a/development/d-tools/d-tools.SlackBuild
+++ b/development/d-tools/d-tools.SlackBuild
@@ -23,11 +23,12 @@
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=d-tools
-VERSION=${VERSION:-2.077.0}
+VERSION=${VERSION:-2.077.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
DUB_VERSION=${DUB_VERSION:-1.6.0}
+DSCANNER_VERSION=${DSCANNER_VERSION:-0.4.1}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -70,11 +71,7 @@ rm -rf dub-$DUB_VERSION
tar xvf $CWD/dub-$DUB_VERSION.tar.gz
cd dub-$DUB_VERSION
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 {} \;
+chmod -R u+w,go-w,a+rX-st .
case "$DC" in
*gdc) sh build-gdc.sh
@@ -90,6 +87,8 @@ cd $TMP
rm -rf tools-$VERSION
tar xvf $CWD/tools-$VERSION.tar.gz
cd tools-$VERSION
+chown -R root:root .
+chmod -R u+w,go-w,a+rX-st .
for binary in rdmd ddemangle; do
echo "Build $binary..."
@@ -109,6 +108,22 @@ case "$DC" in
;;
esac
+# Build D-Scanner.
+cd $TMP
+rm -rf D-Scanner-$DSCANNER_VERSION
+tar xvf $CWD/D-Scanner-$DSCANNER_VERSION.tar.xz
+cd D-Scanner-$DSCANNER_VERSION
+chown -R root:root .
+chmod -R u+w,go-w,a+rX-st .
+
+case "$DC" in
+ *gdc) make gdcbuild
+ ;;
+ *) make dmdbuild
+ ;;
+esac
+mv bin/dscanner $PKG/usr/bin
+
# Copy documentation.
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild