summaryrefslogtreecommitdiff
path: root/source/d
diff options
context:
space:
mode:
authorPatrick J Volkerding <volkerdi@slackware.com>2019-05-04 18:44:36 +0000
committerEric Hameleers <alien@slackware.com>2019-05-05 08:59:47 +0200
commitd23d57452f0df78f7600abd83fcdfcd826a63dca (patch)
treeebfcddc7a4be5597fe803e992919a98e28140353 /source/d
parent125048ad7d212c1f226b709697505b0ee6a079e4 (diff)
downloadcurrent-d23d57452f0df78f7600abd83fcdfcd826a63dca.tar.gz
Sat May 4 18:44:36 UTC 201920190504184436
a/kernel-generic-4.19.39-x86_64-1.txz: Upgraded. a/kernel-huge-4.19.39-x86_64-1.txz: Upgraded. a/kernel-modules-4.19.39-x86_64-1.txz: Upgraded. d/gcc-9.1.0-x86_64-2.txz: Rebuilt. d/gcc-brig-9.1.0-x86_64-2.txz: Rebuilt. d/gcc-g++-9.1.0-x86_64-2.txz: Rebuilt. d/gcc-gdc-9.1.0-x86_64-2.txz: Added. This package contains the newly added D language support. The other GCC packages were rebuilt without any functional changes. d/gcc-gfortran-9.1.0-x86_64-2.txz: Rebuilt. d/gcc-gnat-9.1.0-x86_64-2.txz: Rebuilt. d/gcc-go-9.1.0-x86_64-2.txz: Rebuilt. d/gcc-objc-9.1.0-x86_64-2.txz: Rebuilt. d/kernel-headers-4.19.39-x86-1.txz: Upgraded. k/kernel-source-4.19.39-noarch-1.txz: Upgraded. l/imagemagick-6.9.10_44-x86_64-1.txz: Upgraded. l/v4l-utils-1.16.6-x86_64-1.txz: Upgraded. n/dhcpcd-7.2.2-x86_64-1.txz: Upgraded. x/vulkan-sdk-1.1.106.0-x86_64-1.txz: Upgraded. isolinux/initrd.img: Rebuilt. kernels/*: Upgraded. usb-and-pxe-installers/usbboot.img: Rebuilt.
Diffstat (limited to 'source/d')
-rwxr-xr-xsource/d/gcc/gcc.SlackBuild44
-rw-r--r--source/d/gcc/slack-desc.gcc-gdc19
2 files changed, 56 insertions, 7 deletions
diff --git a/source/d/gcc/gcc.SlackBuild b/source/d/gcc/gcc.SlackBuild
index 6f93f767..6c2cdfc7 100755
--- a/source/d/gcc/gcc.SlackBuild
+++ b/source/d/gcc/gcc.SlackBuild
@@ -2,7 +2,7 @@
# GCC package build script (written by volkerdi@slackware.com)
#
# Copyright 2003, 2004 Slackware Linux, Inc., Concord, California, USA
-# Copyright 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018 Patrick J. Volkerding, Sebeka, MN, USA
+# Copyright 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019 Patrick J. Volkerding, Sebeka, MN, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -57,7 +57,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=gcc
SRCVER=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
VERSION=$(echo $SRCVER | cut -f 1 -d _)
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
# How many jobs to run in parallel:
NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "}
@@ -84,6 +84,7 @@ if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "gcc-objc-$VERSION-$ARCH-$BUILD.txz"
echo "gcc-go-$VERSION-$ARCH-$BUILD.txz"
echo "gcc-brig-$VERSION-$ARCH-$BUILD.txz"
+ echo "gcc-gdc-$VERSION-$ARCH-$BUILD.txz"
exit 0
fi
@@ -144,14 +145,15 @@ PKG6=$TMP/package-gcc-objc
#PKG7=$TMP/package-gcc-g++-gch
PKG8=$TMP/package-gcc-go
PKG9=$TMP/package-gcc-brig
+PKG10=$TMP/package-gcc-gdc
# Clear the build locations:
rm -rf $TMP/gcc.build.lnx
-rm -rf $PKG{1,2,3,4,6,8,9}
-mkdir -p $PKG{1,2,3,4,6,8,9}/usr/doc/gcc-$VERSION
+rm -rf $PKG{1,2,3,4,6,8,9,10}
+mkdir -p $PKG{1,2,3,4,6,8,9,10}/usr/doc/gcc-$VERSION
# Insert package descriptions:
-mkdir -p $PKG{1,2,3,4,6,8,9}/install
+mkdir -p $PKG{1,2,3,4,6,8,9,10}/install
cat $CWD/slack-desc.gcc > $PKG1/install/slack-desc
cat $CWD/slack-desc.gcc-g++ > $PKG2/install/slack-desc
cat $CWD/slack-desc.gcc-gfortran > $PKG3/install/slack-desc
@@ -160,6 +162,7 @@ cat $CWD/slack-desc.gcc-objc > $PKG6/install/slack-desc
#cat $CWD/slack-desc.gcc-g++-gch > $PKG7/install/slack-desc
cat $CWD/slack-desc.gcc-go > $PKG8/install/slack-desc
cat $CWD/slack-desc.gcc-brig > $PKG9/install/slack-desc
+cat $CWD/slack-desc.gcc-gdc > $PKG10/install/slack-desc
( cd gcc-$SRCVER || exit 1
@@ -249,6 +252,14 @@ cat $CWD/slack-desc.gcc-brig > $PKG9/install/slack-desc
fi
)
+ mkdir -p $PKG10/usr/doc/gcc-${VERSION}/gcc/d
+ ( cd d || exit 0
+ if [ -r ChangeLog ]; then
+ cat ChangeLog | head -n 1000 > $PKG10/usr/doc/gcc-${VERSION}/gcc/d/ChangeLog
+ touch -r ChangeLog $PKG10/usr/doc/gcc-${VERSION}/gcc/d/ChangeLog
+ fi
+ )
+
) || exit 1
mkdir -p $PKG3/usr/doc/gcc-${VERSION}/libgfortran
@@ -325,7 +336,7 @@ cat $CWD/slack-desc.gcc-brig > $PKG9/install/slack-desc
--infodir=/usr/info \
--enable-shared \
--enable-bootstrap \
- --enable-languages=ada,brig,c,c++,fortran,go,lto,objc \
+ --enable-languages=ada,brig,c,c++,d,fortran,go,lto,objc \
--enable-threads=posix \
--enable-checking=release \
--enable-objc-gc \
@@ -578,7 +589,24 @@ rm -f $PKG1/{,usr/}lib${LIBDIRSUFFIX}/*.la
mv $PKG1/usr/libexec/gcc/$TARGET/$VERSION/brig1 usr/libexec/gcc/$TARGET/$VERSION
mkdir -p usr/man/man1
mv $PKG1/usr/man/man1/gccbrig.1.gz usr/man/man1
-)
+) || exit 1
+
+# gcc-gdc:
+( cd $PKG10
+ mkdir -p usr/bin
+ mv $PKG1/usr/bin/gdc $PKG1/usr/bin/*-gdc usr/bin
+ mkdir -p usr/lib${LIBDIRSUFFIX}
+ mv $PKG1/usr/lib${LIBDIRSUFFIX}/libgdruntime* usr/lib${LIBDIRSUFFIX}
+ mv $PKG1/usr/lib${LIBDIRSUFFIX}/libgphobos* usr/lib${LIBDIRSUFFIX}
+ mkdir -p usr/libexec/gcc/$TARGET/$VERSION
+ mv $PKG1/usr/libexec/gcc/$TARGET/$VERSION/d21 usr/libexec/gcc/$TARGET/$VERSION
+ mkdir -p usr/lib${LIBDIRSUFFIX}/gcc/$TARGET/$VERSION/include
+ mv $PKG1/usr/lib${LIBDIRSUFFIX}/gcc/$TARGET/$VERSION/include/d usr/lib${LIBDIRSUFFIX}/gcc/$TARGET/$VERSION/include
+ mkdir -p usr/info
+ mv $PKG1/usr/info/gdc.info.gz usr/info
+ mkdir -p usr/man/man1
+ mv $PKG1/usr/man/man1/gdc.1.gz usr/man/man1
+) || exit 1
# Generate packages:
( cd $PKG1
@@ -595,6 +623,8 @@ rm -f $PKG1/{,usr/}lib${LIBDIRSUFFIX}/*.la
makepkg -l y -c n $TMP/gcc-go-$VERSION-$ARCH-$BUILD.txz )
( cd $PKG9
makepkg -l y -c n $TMP/gcc-brig-$VERSION-$ARCH-$BUILD.txz )
+( cd $PKG10
+ makepkg -l y -c n $TMP/gcc-gdc-$VERSION-$ARCH-$BUILD.txz )
echo
echo "Slackware GCC package build complete!"
diff --git a/source/d/gcc/slack-desc.gcc-gdc b/source/d/gcc/slack-desc.gcc-gdc
new file mode 100644
index 00000000..4e54ea88
--- /dev/null
+++ b/source/d/gcc/slack-desc.gcc-gdc
@@ -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 ':'.
+
+ |-----handy-ruler------------------------------------------------------|
+gcc-gdc: gcc-gdc (D support for GCC)
+gcc-gdc:
+gcc-gdc: D support for the GNU Compiler Collection.
+gcc-gdc:
+gcc-gdc: D is a general-purpose programming language with static typing,
+gcc-gdc: systems-level access, and C-like syntax.
+gcc-gdc:
+gcc-gdc:
+gcc-gdc:
+gcc-gdc:
+gcc-gdc: