community/dgc to 4.8.2-7

This commit is contained in:
Kevin Mihelich 2014-03-03 02:02:35 +00:00
parent 0a4494ff81
commit 0eb2860cb2

View file

@ -9,19 +9,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')
@ -63,28 +69,33 @@ 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 $CONFIGFLAG
--disable-libgomp --disable-libmudflap --disable-libquadmath \
--enable-checking=release $CONFIGFLAG
make
}
package_gdc()
{
depends=('gcc' 'binutils')
depends=('gcc' 'perl' 'binutils' 'libgphobos-devel')
optdepends=('libgphobos-devel: D standard library, GDC version')
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()
@ -92,7 +103,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