summaryrefslogtreecommitdiff
path: root/community/gdc/PKGBUILD
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2014-03-04 03:52:56 +0000
committerNicolás Reynolds <fauno@endefensadelsl.org>2014-03-04 03:52:56 +0000
commita78b434ff9cfdfb3d175c900ff622a561b84123f (patch)
tree7fe0aa5526dbda20077464989bf0b2cffc05efd3 /community/gdc/PKGBUILD
parentf0127fa225ad83116fabd5f7d9df4c92cd23f6f1 (diff)
Tue Mar 4 03:48:46 UTC 2014
Diffstat (limited to 'community/gdc/PKGBUILD')
-rw-r--r--community/gdc/PKGBUILD41
1 files changed, 25 insertions, 16 deletions
diff --git a/community/gdc/PKGBUILD b/community/gdc/PKGBUILD
index 01aeea0fe..7c7c5977c 100644
--- a/community/gdc/PKGBUILD
+++ b/community/gdc/PKGBUILD
@@ -5,19 +5,25 @@
pkgname=('gdc' 'libgphobos-devel')
pkgver=4.8.2
-pkgrel=5
+pkgrel=7
arch=('i686' 'x86_64')
url="https://github.com/D-Programming-GDC/GDC"
license=('GPL')
makedepends=('binutils>=2.23' 'git' 'gcc' 'make' 'perl' 'cloog' 'automake')
options=('!emptydirs' '!buildflags')
_snapshot=4.8-20130725
-source=(ftp://gcc.gnu.org/pub/gcc/snapshots/${_snapshot}/gcc-${_snapshot}.tar.bz2
- gdc::git://github.com/D-Programming-GDC/GDC.git#branch=gdc-4.8
- folders.diff)
-sha256sums=('e4e2202b15f8ba323f88c65de0e4190b0630a4b2e70b0653526b31e946877ead'
- 'SKIP'
- '82f1ba0825164a74660bd5008d8f3acae1bacc3271c86475efc1601fe0da73c4')
+source=(
+ "ftp://gcc.gnu.org/pub/gcc/snapshots/${_snapshot}/gcc-${_snapshot}.tar.bz2"
+ "gdc::git://github.com/D-Programming-GDC/GDC.git#branch=gdc-4.8"
+ "git+https://github.com/D-Programming-GDC/GDMD.git"
+ "folders.diff"
+)
+sha256sums=(
+ 'e4e2202b15f8ba323f88c65de0e4190b0630a4b2e70b0653526b31e946877ead'
+ 'SKIP'
+ 'SKIP'
+ '82f1ba0825164a74660bd5008d8f3acae1bacc3271c86475efc1601fe0da73c4'
+)
groups=('dlang' 'dlang-gdc')
conflicts=('gdc1-bin' 'gdc1-hg' 'gdc-git')
@@ -54,28 +60,32 @@ build()
--enable-shared --enable-threads=posix \
--with-system-zlib --enable-__cxa_atexit \
--disable-libunwind-exceptions --enable-clocale=gnu \
- --disable-libstdcxx-pch \
+ --disable-libstdcxx-pch --disable-libssp \
--enable-gnu-unique-object --enable-linker-build-id \
--enable-cloog-backend=isl --disable-cloog-version-check \
- --enable-lto --enable-gold --enable-ld=default \
- --enable-plugin --with-plugin-ld=ld.gold \
- --with-linker-hash-style=gnu --disable-install-libiberty \
- --disable-multilib --disable-libssp --disable-werror \
+ --enable-lto --enable-gold --enable-plugin --enable-ld=default \
+ --enable-install-libiberty --with-plugin-ld=ld.gold \
+ --with-linker-hash-style=gnu \
+ --disable-multilib --disable-werror \
--disable-nls --disable-bootstrap \
- --disable-libgomp --disable-libmudflap --disable-libquadmath
+ --disable-libgomp --disable-libmudflap --disable-libquadmath \
+ --enable-checking=release
make
}
package_gdc()
{
- depends=('gcc' 'binutils')
- optdepends=('libgphobos-devel: D standard library, GDC version')
+ depends=('gcc' 'perl' 'binutils' 'libgphobos-devel')
provides=("d-compiler")
pkgdesc="Compiler for D programming language which uses gcc backend (2.064.2 frontend version)"
install -D -m755 $srcdir/gcc-build/gcc/gdc $pkgdir/usr/bin/gdc
install -D -m755 $srcdir/gcc-build/gcc/cc1d $pkgdir/usr/lib/gcc/$CHOST/$pkgver/cc1d
+
+ # tools
+ install -D -m755 $srcdir/GDMD/dmd-script $pkgdir/usr/bin/gdmd
+ install -D -m644 $srcdir/GDMD/dmd-script.1 $pkgdir/usr/share/man/man1/gdmd.1
}
package_libgphobos-devel()
@@ -83,7 +93,6 @@ package_libgphobos-devel()
pkgdesc="Standard library for D programming language, GDC port"
provides=("d-runtime" "d-stdlib")
options=("staticlibs")
- depends=('gdc')
# druntime
install -D $srcdir/gdc/libphobos/libdruntime/object.di $pkgdir/usr/include/dlang/gdc/object.di