[arch-commits] Commit in gdc/repos (8 files)

Михаил Страшун dicebot at archlinux.org
Fri Apr 24 17:23:30 UTC 2015


    Date: Friday, April 24, 2015 @ 19:23:30
  Author: dicebot
Revision: 132128

archrelease: copy trunk to community-i686, community-x86_64

Added:
  gdc/repos/community-i686/PKGBUILD
    (from rev 132127, gdc/trunk/PKGBUILD)
  gdc/repos/community-i686/folders.diff
    (from rev 132127, gdc/trunk/folders.diff)
  gdc/repos/community-x86_64/PKGBUILD
    (from rev 132127, gdc/trunk/PKGBUILD)
  gdc/repos/community-x86_64/folders.diff
    (from rev 132127, gdc/trunk/folders.diff)
Deleted:
  gdc/repos/community-i686/PKGBUILD
  gdc/repos/community-i686/folders.diff
  gdc/repos/community-x86_64/PKGBUILD
  gdc/repos/community-x86_64/folders.diff

-------------------------------+
 /PKGBUILD                     |  228 ++++++++++++++++++++++++++++++++++++++++
 /folders.diff                 |   78 +++++++++++++
 community-i686/PKGBUILD       |  114 --------------------
 community-i686/folders.diff   |   34 -----
 community-x86_64/PKGBUILD     |  114 --------------------
 community-x86_64/folders.diff |   34 -----
 6 files changed, 306 insertions(+), 296 deletions(-)

Deleted: community-i686/PKGBUILD
===================================================================
--- community-i686/PKGBUILD	2015-04-24 17:22:12 UTC (rev 132127)
+++ community-i686/PKGBUILD	2015-04-24 17:23:30 UTC (rev 132128)
@@ -1,114 +0,0 @@
-# Maintainer: Mihails Strasuns <public at dicebot.lv>
-# Contributor: Moritz Maxeiner <moritz at ucworks.org>
-# Contributor: Jerome Berger <jeberger at free.fr>
-# Contributor: Jesus Alvarez <jeezusjr at gmail.com>
-
-pkgname=('gdc' 'libgphobos-devel')
-pkgver=4.9.2
-pkgrel=1
-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')
-source=(
-    "ftp://gcc.gnu.org/pub/gcc/releases/gcc-${pkgver}/gcc-${pkgver}.tar.bz2"
-    "gdc::git://github.com/D-Programming-GDC/GDC.git#branch=gdc-4.9"
-    "git+https://github.com/D-Programming-GDC/GDMD.git"
-    "folders.diff"
-)
-sha256sums=(
-    '2020c98295856aa13fda0f2f3a4794490757fc24bcca918d52cc8b4917b972dd'
-    'SKIP'
-    'SKIP'
-    '82f1ba0825164a74660bd5008d8f3acae1bacc3271c86475efc1601fe0da73c4'
-)
-
-groups=('dlang' 'dlang-gdc')
-conflicts=('gdc1-bin' 'gdc1-hg' 'gdc-git')
-
-prepare()
-{
-    cd $srcdir/gcc-$pkgver
-
-    # Arch Linux installs x86_64 libraries /lib
-    [[ $CARCH == "x86_64" ]] && sed -i '/m64=/s/lib64/lib/' gcc/config/i386/t-linux64
-
-    echo ${pkgver} > gcc/BASE-VER
-
-    # hack! - some configure tests for header files using "$CPP $CPPFLAGS"
-    sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" {libiberty,gcc}/configure
-
-    cd $srcdir/gdc
-    git apply $srcdir/folders.diff # fix gdc_include_path
-    ./setup-gcc.sh ../gcc-$pkgver
-
-    mkdir $srcdir/gcc-build
-}
-
-
-build()
-{
-    cd ${srcdir}/gcc-build
-
-    ${srcdir}/gcc-$pkgver/configure --prefix=/usr \
-        --libdir=/usr/lib --libexecdir=/usr/lib \
-        --mandir=/usr/share/man --infodir=/usr/share/info \
-        --with-bugurl=https://bugs.archlinux.org/ \
-        --enable-languages=d \
-        --enable-shared --enable-threads=posix \
-        --with-system-zlib --enable-__cxa_atexit \
-        --disable-libunwind-exceptions --enable-clocale=gnu \
-        --disable-libstdcxx-pch --disable-libssp \
-        --enable-gnu-unique-object --enable-linker-build-id \
-        --enable-cloog-backend=isl --disable-cloog-version-check \
-        --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 \
-        --enable-checking=release
-
-    make 
-}
-
-package_gdc()
-{
-    depends=('gcc' 'perl' 'binutils' 'libgphobos-devel')
-    provides=("d-compiler")
-    pkgdesc="Compiler for D programming language which uses gcc backend (2.065 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()
-{
-    pkgdesc="Standard library for D programming language, GDC port"
-    provides=("d-runtime" "d-stdlib")
-    options=("staticlibs")
-
-    # druntime
-    install -D $srcdir/gdc/libphobos/libdruntime/object.di $pkgdir/usr/include/dlang/gdc/object.di
-    install -D $srcdir/gdc/libphobos/libdruntime/__entrypoint.di ${pkgdir}/usr/include/dlang/gdc/__entrypoint.di
-    cp -r $srcdir/gdc/libphobos/libdruntime/core $pkgdir/usr/include/dlang/gdc/core
-    cp -r $srcdir/gdc/libphobos/libdruntime/gcc $pkgdir/usr/include/dlang/gdc/gcc
-
-    # workaround for auto-generated libbacktrace issue
-	# script needs to be re-written to first call normal gcc instalaltion targets to
-	# avoid such problems in future
-	cp $srcdir/gcc-build/$CHOST/libphobos/libdruntime/gcc/libbacktrace.d $pkgdir/usr/include/dlang/gdc/gcc/
-	rm $pkgdir/usr/include/dlang/gdc/gcc/libbacktrace.d.in
-
-    # phobos
-    # cp $srcdir/gdc/libphobos/src/crc32.d ${pkgdir}/usr/include/dlang/gdc/
-    cp -r $srcdir/gdc/libphobos/src/std ${pkgdir}/usr/include/dlang/gdc/std
-    cp -r $srcdir/gdc/libphobos/src/etc ${pkgdir}/usr/include/dlang/gdc/etc
-
-    install -D -m644 $srcdir/gcc-build/$CHOST/libphobos/src/libgphobos2.a $pkgdir/usr/lib/libgphobos2.a
-}

Copied: gdc/repos/community-i686/PKGBUILD (from rev 132127, gdc/trunk/PKGBUILD)
===================================================================
--- community-i686/PKGBUILD	                        (rev 0)
+++ community-i686/PKGBUILD	2015-04-24 17:23:30 UTC (rev 132128)
@@ -0,0 +1,114 @@
+# Maintainer: Mihails Strasuns <public at dicebot.lv>
+# Contributor: Moritz Maxeiner <moritz at ucworks.org>
+# Contributor: Jerome Berger <jeberger at free.fr>
+# Contributor: Jesus Alvarez <jeezusjr at gmail.com>
+
+pkgname=('gdc' 'libgphobos-devel')
+pkgver=4.9.2
+pkgrel=2
+arch=('i686' 'x86_64')
+url="https://github.com/D-Programming-GDC/GDC"
+license=('GPL')
+makedepends=('binutils>=2.23' 'git' 'gcc' 'make' 'perl' 'automake')
+options=('!emptydirs' '!buildflags')
+source=(
+    "ftp://gcc.gnu.org/pub/gcc/releases/gcc-${pkgver}/gcc-${pkgver}.tar.bz2"
+    "gdc::git://github.com/D-Programming-GDC/GDC.git#tag=v2.066.1_gcc4.9"
+    "git+https://github.com/D-Programming-GDC/GDMD.git"
+    "folders.diff"
+)
+sha256sums=(
+    '2020c98295856aa13fda0f2f3a4794490757fc24bcca918d52cc8b4917b972dd'
+    'SKIP'
+    'SKIP'
+    'ea5c80a28026393bd4627485602660a4a01d9fbc65299e95e768013e197bad20'
+)
+
+groups=('dlang' 'dlang-gdc')
+conflicts=('gdc1-bin' 'gdc1-hg' 'gdc-git')
+
+prepare()
+{
+    cd $srcdir/gcc-$pkgver
+
+    # Arch Linux installs x86_64 libraries /lib
+    [[ $CARCH == "x86_64" ]] && sed -i '/m64=/s/lib64/lib/' gcc/config/i386/t-linux64
+
+    echo ${pkgver} > gcc/BASE-VER
+
+    # hack! - some configure tests for header files using "$CPP $CPPFLAGS"
+    sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" {libiberty,gcc}/configure
+
+    cd $srcdir/gdc
+    git apply $srcdir/folders.diff # fix gdc_include_path
+    ./setup-gcc.sh ../gcc-$pkgver
+
+    mkdir $srcdir/gcc-build
+}
+
+
+build()
+{
+    cd ${srcdir}/gcc-build
+
+    ${srcdir}/gcc-$pkgver/configure --prefix=/usr \
+        --libdir=/usr/lib --libexecdir=/usr/lib \
+        --mandir=/usr/share/man --infodir=/usr/share/info \
+        --with-bugurl=https://bugs.archlinux.org/ \
+        --enable-languages=d \
+        --enable-shared --enable-threads=posix \
+        --with-system-zlib --enable-__cxa_atexit \
+        --disable-libunwind-exceptions --enable-clocale=gnu \
+        --disable-libstdcxx-pch --disable-libssp \
+        --enable-gnu-unique-object --enable-linker-build-id \
+        --enable-cloog-backend=isl --disable-cloog-version-check \
+        --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 \
+        --enable-checking=release
+
+    make 
+}
+
+package_gdc()
+{
+    depends=('gcc' 'perl' 'binutils' 'libgphobos-devel')
+    provides=("d-compiler")
+    pkgdesc="Compiler for D programming language which uses gcc backend (2.065 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()
+{
+    pkgdesc="Standard library for D programming language, GDC port"
+    provides=("d-runtime" "d-stdlib")
+    options=("staticlibs")
+
+    # druntime
+    install -D $srcdir/gdc/libphobos/libdruntime/object.di $pkgdir/usr/include/dlang/gdc/object.di
+    install -D $srcdir/gdc/libphobos/libdruntime/__entrypoint.di ${pkgdir}/usr/include/dlang/gdc/__entrypoint.di
+    cp -r $srcdir/gdc/libphobos/libdruntime/core $pkgdir/usr/include/dlang/gdc/core
+    cp -r $srcdir/gdc/libphobos/libdruntime/gcc $pkgdir/usr/include/dlang/gdc/gcc
+
+    # workaround for auto-generated libbacktrace issue
+	# script needs to be re-written to first call normal gcc instalaltion targets to
+	# avoid such problems in future
+	cp $srcdir/gcc-build/$CHOST/libphobos/libdruntime/gcc/libbacktrace.d $pkgdir/usr/include/dlang/gdc/gcc/
+	rm $pkgdir/usr/include/dlang/gdc/gcc/libbacktrace.d.in
+
+    # phobos
+    # cp $srcdir/gdc/libphobos/src/crc32.d ${pkgdir}/usr/include/dlang/gdc/
+    cp -r $srcdir/gdc/libphobos/src/std ${pkgdir}/usr/include/dlang/gdc/std
+    cp -r $srcdir/gdc/libphobos/src/etc ${pkgdir}/usr/include/dlang/gdc/etc
+
+    install -D -m644 $srcdir/gcc-build/$CHOST/libphobos/src/libgphobos2.a $pkgdir/usr/lib/libgphobos2.a
+}

Deleted: community-i686/folders.diff
===================================================================
--- community-i686/folders.diff	2015-04-24 17:22:12 UTC (rev 132127)
+++ community-i686/folders.diff	2015-04-24 17:23:30 UTC (rev 132128)
@@ -1,34 +0,0 @@
-diff --git a/libphobos/configure.ac b/libphobos/configure.ac
-index 51d9b86..6ff04f1 100644
---- a/libphobos/configure.ac
-+++ b/libphobos/configure.ac
-@@ -239,9 +239,9 @@ else
- fi
- 
- if test "${gdc_host}" != "${gdc_target}"; then
--    gdc_include_dir='${libdir}/gcc/${host_alias}'/${d_gcc_ver}/include/d
-+    gdc_include_dir='${libdir}/gcc/${host_alias}'/${d_gcc_ver}/include/dlang
- else
--    gdc_include_dir='${prefix}'/include/d/${d_gcc_ver}
-+    gdc_include_dir='${prefix}'/include/dlang/gdc
- fi
- AC_SUBST(gdc_include_dir)
- AC_ARG_WITH([cross-host],
-
-diff --git a/gcc/d/Make-lang.in b/gcc/d/Make-lang.in
-index 17e5c45..8a656b1 100644
---- a/gcc/d/Make-lang.in
-+++ b/gcc/d/Make-lang.in
-@@ -25,10 +25,10 @@ D_TARGET_INSTALL_NAME = $(target_alias)-$(shell echo gdc|sed '$(program_transfor
- 
- # This should be configured
- ifeq ($(host), $(target))
--  D_include_dir = `echo $(exec_prefix) | sed -e 's|^$(prefix)||' -e 's|/[^/]*|/..|g'`/include/d/$(version)
-+  D_include_dir = `echo $(exec_prefix) | sed -e 's|^$(prefix)||' -e 's|/[^/]*|/..|g'`/include/dlang/gdc
-   gcc_d_include_dir = $(libsubdir)/$(unlibsubdir)/..$(D_include_dir)
- else
--  gcc_d_include_dir = $(libsubdir)/include/d
-+  gcc_d_include_dir = $(libsubdir)/include/dlang/gdc
- endif
-
-

Copied: gdc/repos/community-i686/folders.diff (from rev 132127, gdc/trunk/folders.diff)
===================================================================
--- community-i686/folders.diff	                        (rev 0)
+++ community-i686/folders.diff	2015-04-24 17:23:30 UTC (rev 132128)
@@ -0,0 +1,39 @@
+diff --git a/gcc/d/d-incpath.cc b/gcc/d/d-incpath.cc
+index e04ddc6..168a033 100644
+--- a/gcc/d/d-incpath.cc
++++ b/gcc/d/d-incpath.cc
+@@ -202,7 +202,7 @@ add_import_paths(const char *iprefix, const char *imultilib, bool stdinc)
+ 	    import_path = xstrdup(p->fname);
+ 
+ 	  // Add D-specific suffix.
+-	  import_path = concat(import_path, "/d", NULL);
++	  import_path = concat(import_path, "/dlang/gdc", NULL);
+ 
+ 	  // Ignore duplicate entries.
+ 	  bool found = false;
+diff --git a/libphobos/configure b/libphobos/configure
+index 2ff7114..f7f0660 100755
+--- a/libphobos/configure
++++ b/libphobos/configure
+@@ -3883,7 +3883,7 @@ fi
+ 
+ 
+ # Default case for install directory for D sources files.
+-gdc_include_dir='${libdir}/gcc/${target_alias}'/${d_gcc_ver}/include/d
++gdc_include_dir=${prefix}/include/dlang/gdc
+ 
+ 
+ # Sanity check for the cross-compilation case:
+diff --git a/libphobos/configure.ac b/libphobos/configure.ac
+index 84492dd..947f6a8 100644
+--- a/libphobos/configure.ac
++++ b/libphobos/configure.ac
+@@ -167,7 +167,7 @@ AC_SUBST(phobos_toolexecdir)
+ AC_SUBST(phobos_toolexeclibdir)
+ 
+ # Default case for install directory for D sources files.
+-gdc_include_dir='${libdir}/gcc/${target_alias}'/${d_gcc_ver}/include/d
++gdc_include_dir=${prefix}/include/dlang/gdc
+ AC_SUBST(gdc_include_dir)
+ 
+ dnl Checks for header files.

Deleted: community-x86_64/PKGBUILD
===================================================================
--- community-x86_64/PKGBUILD	2015-04-24 17:22:12 UTC (rev 132127)
+++ community-x86_64/PKGBUILD	2015-04-24 17:23:30 UTC (rev 132128)
@@ -1,114 +0,0 @@
-# Maintainer: Mihails Strasuns <public at dicebot.lv>
-# Contributor: Moritz Maxeiner <moritz at ucworks.org>
-# Contributor: Jerome Berger <jeberger at free.fr>
-# Contributor: Jesus Alvarez <jeezusjr at gmail.com>
-
-pkgname=('gdc' 'libgphobos-devel')
-pkgver=4.9.2
-pkgrel=1
-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')
-source=(
-    "ftp://gcc.gnu.org/pub/gcc/releases/gcc-${pkgver}/gcc-${pkgver}.tar.bz2"
-    "gdc::git://github.com/D-Programming-GDC/GDC.git#branch=gdc-4.9"
-    "git+https://github.com/D-Programming-GDC/GDMD.git"
-    "folders.diff"
-)
-sha256sums=(
-    '2020c98295856aa13fda0f2f3a4794490757fc24bcca918d52cc8b4917b972dd'
-    'SKIP'
-    'SKIP'
-    '82f1ba0825164a74660bd5008d8f3acae1bacc3271c86475efc1601fe0da73c4'
-)
-
-groups=('dlang' 'dlang-gdc')
-conflicts=('gdc1-bin' 'gdc1-hg' 'gdc-git')
-
-prepare()
-{
-    cd $srcdir/gcc-$pkgver
-
-    # Arch Linux installs x86_64 libraries /lib
-    [[ $CARCH == "x86_64" ]] && sed -i '/m64=/s/lib64/lib/' gcc/config/i386/t-linux64
-
-    echo ${pkgver} > gcc/BASE-VER
-
-    # hack! - some configure tests for header files using "$CPP $CPPFLAGS"
-    sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" {libiberty,gcc}/configure
-
-    cd $srcdir/gdc
-    git apply $srcdir/folders.diff # fix gdc_include_path
-    ./setup-gcc.sh ../gcc-$pkgver
-
-    mkdir $srcdir/gcc-build
-}
-
-
-build()
-{
-    cd ${srcdir}/gcc-build
-
-    ${srcdir}/gcc-$pkgver/configure --prefix=/usr \
-        --libdir=/usr/lib --libexecdir=/usr/lib \
-        --mandir=/usr/share/man --infodir=/usr/share/info \
-        --with-bugurl=https://bugs.archlinux.org/ \
-        --enable-languages=d \
-        --enable-shared --enable-threads=posix \
-        --with-system-zlib --enable-__cxa_atexit \
-        --disable-libunwind-exceptions --enable-clocale=gnu \
-        --disable-libstdcxx-pch --disable-libssp \
-        --enable-gnu-unique-object --enable-linker-build-id \
-        --enable-cloog-backend=isl --disable-cloog-version-check \
-        --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 \
-        --enable-checking=release
-
-    make 
-}
-
-package_gdc()
-{
-    depends=('gcc' 'perl' 'binutils' 'libgphobos-devel')
-    provides=("d-compiler")
-    pkgdesc="Compiler for D programming language which uses gcc backend (2.065 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()
-{
-    pkgdesc="Standard library for D programming language, GDC port"
-    provides=("d-runtime" "d-stdlib")
-    options=("staticlibs")
-
-    # druntime
-    install -D $srcdir/gdc/libphobos/libdruntime/object.di $pkgdir/usr/include/dlang/gdc/object.di
-    install -D $srcdir/gdc/libphobos/libdruntime/__entrypoint.di ${pkgdir}/usr/include/dlang/gdc/__entrypoint.di
-    cp -r $srcdir/gdc/libphobos/libdruntime/core $pkgdir/usr/include/dlang/gdc/core
-    cp -r $srcdir/gdc/libphobos/libdruntime/gcc $pkgdir/usr/include/dlang/gdc/gcc
-
-    # workaround for auto-generated libbacktrace issue
-	# script needs to be re-written to first call normal gcc instalaltion targets to
-	# avoid such problems in future
-	cp $srcdir/gcc-build/$CHOST/libphobos/libdruntime/gcc/libbacktrace.d $pkgdir/usr/include/dlang/gdc/gcc/
-	rm $pkgdir/usr/include/dlang/gdc/gcc/libbacktrace.d.in
-
-    # phobos
-    # cp $srcdir/gdc/libphobos/src/crc32.d ${pkgdir}/usr/include/dlang/gdc/
-    cp -r $srcdir/gdc/libphobos/src/std ${pkgdir}/usr/include/dlang/gdc/std
-    cp -r $srcdir/gdc/libphobos/src/etc ${pkgdir}/usr/include/dlang/gdc/etc
-
-    install -D -m644 $srcdir/gcc-build/$CHOST/libphobos/src/libgphobos2.a $pkgdir/usr/lib/libgphobos2.a
-}

Copied: gdc/repos/community-x86_64/PKGBUILD (from rev 132127, gdc/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2015-04-24 17:23:30 UTC (rev 132128)
@@ -0,0 +1,114 @@
+# Maintainer: Mihails Strasuns <public at dicebot.lv>
+# Contributor: Moritz Maxeiner <moritz at ucworks.org>
+# Contributor: Jerome Berger <jeberger at free.fr>
+# Contributor: Jesus Alvarez <jeezusjr at gmail.com>
+
+pkgname=('gdc' 'libgphobos-devel')
+pkgver=4.9.2
+pkgrel=2
+arch=('i686' 'x86_64')
+url="https://github.com/D-Programming-GDC/GDC"
+license=('GPL')
+makedepends=('binutils>=2.23' 'git' 'gcc' 'make' 'perl' 'automake')
+options=('!emptydirs' '!buildflags')
+source=(
+    "ftp://gcc.gnu.org/pub/gcc/releases/gcc-${pkgver}/gcc-${pkgver}.tar.bz2"
+    "gdc::git://github.com/D-Programming-GDC/GDC.git#tag=v2.066.1_gcc4.9"
+    "git+https://github.com/D-Programming-GDC/GDMD.git"
+    "folders.diff"
+)
+sha256sums=(
+    '2020c98295856aa13fda0f2f3a4794490757fc24bcca918d52cc8b4917b972dd'
+    'SKIP'
+    'SKIP'
+    'ea5c80a28026393bd4627485602660a4a01d9fbc65299e95e768013e197bad20'
+)
+
+groups=('dlang' 'dlang-gdc')
+conflicts=('gdc1-bin' 'gdc1-hg' 'gdc-git')
+
+prepare()
+{
+    cd $srcdir/gcc-$pkgver
+
+    # Arch Linux installs x86_64 libraries /lib
+    [[ $CARCH == "x86_64" ]] && sed -i '/m64=/s/lib64/lib/' gcc/config/i386/t-linux64
+
+    echo ${pkgver} > gcc/BASE-VER
+
+    # hack! - some configure tests for header files using "$CPP $CPPFLAGS"
+    sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" {libiberty,gcc}/configure
+
+    cd $srcdir/gdc
+    git apply $srcdir/folders.diff # fix gdc_include_path
+    ./setup-gcc.sh ../gcc-$pkgver
+
+    mkdir $srcdir/gcc-build
+}
+
+
+build()
+{
+    cd ${srcdir}/gcc-build
+
+    ${srcdir}/gcc-$pkgver/configure --prefix=/usr \
+        --libdir=/usr/lib --libexecdir=/usr/lib \
+        --mandir=/usr/share/man --infodir=/usr/share/info \
+        --with-bugurl=https://bugs.archlinux.org/ \
+        --enable-languages=d \
+        --enable-shared --enable-threads=posix \
+        --with-system-zlib --enable-__cxa_atexit \
+        --disable-libunwind-exceptions --enable-clocale=gnu \
+        --disable-libstdcxx-pch --disable-libssp \
+        --enable-gnu-unique-object --enable-linker-build-id \
+        --enable-cloog-backend=isl --disable-cloog-version-check \
+        --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 \
+        --enable-checking=release
+
+    make 
+}
+
+package_gdc()
+{
+    depends=('gcc' 'perl' 'binutils' 'libgphobos-devel')
+    provides=("d-compiler")
+    pkgdesc="Compiler for D programming language which uses gcc backend (2.065 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()
+{
+    pkgdesc="Standard library for D programming language, GDC port"
+    provides=("d-runtime" "d-stdlib")
+    options=("staticlibs")
+
+    # druntime
+    install -D $srcdir/gdc/libphobos/libdruntime/object.di $pkgdir/usr/include/dlang/gdc/object.di
+    install -D $srcdir/gdc/libphobos/libdruntime/__entrypoint.di ${pkgdir}/usr/include/dlang/gdc/__entrypoint.di
+    cp -r $srcdir/gdc/libphobos/libdruntime/core $pkgdir/usr/include/dlang/gdc/core
+    cp -r $srcdir/gdc/libphobos/libdruntime/gcc $pkgdir/usr/include/dlang/gdc/gcc
+
+    # workaround for auto-generated libbacktrace issue
+	# script needs to be re-written to first call normal gcc instalaltion targets to
+	# avoid such problems in future
+	cp $srcdir/gcc-build/$CHOST/libphobos/libdruntime/gcc/libbacktrace.d $pkgdir/usr/include/dlang/gdc/gcc/
+	rm $pkgdir/usr/include/dlang/gdc/gcc/libbacktrace.d.in
+
+    # phobos
+    # cp $srcdir/gdc/libphobos/src/crc32.d ${pkgdir}/usr/include/dlang/gdc/
+    cp -r $srcdir/gdc/libphobos/src/std ${pkgdir}/usr/include/dlang/gdc/std
+    cp -r $srcdir/gdc/libphobos/src/etc ${pkgdir}/usr/include/dlang/gdc/etc
+
+    install -D -m644 $srcdir/gcc-build/$CHOST/libphobos/src/libgphobos2.a $pkgdir/usr/lib/libgphobos2.a
+}

Deleted: community-x86_64/folders.diff
===================================================================
--- community-x86_64/folders.diff	2015-04-24 17:22:12 UTC (rev 132127)
+++ community-x86_64/folders.diff	2015-04-24 17:23:30 UTC (rev 132128)
@@ -1,34 +0,0 @@
-diff --git a/libphobos/configure.ac b/libphobos/configure.ac
-index 51d9b86..6ff04f1 100644
---- a/libphobos/configure.ac
-+++ b/libphobos/configure.ac
-@@ -239,9 +239,9 @@ else
- fi
- 
- if test "${gdc_host}" != "${gdc_target}"; then
--    gdc_include_dir='${libdir}/gcc/${host_alias}'/${d_gcc_ver}/include/d
-+    gdc_include_dir='${libdir}/gcc/${host_alias}'/${d_gcc_ver}/include/dlang
- else
--    gdc_include_dir='${prefix}'/include/d/${d_gcc_ver}
-+    gdc_include_dir='${prefix}'/include/dlang/gdc
- fi
- AC_SUBST(gdc_include_dir)
- AC_ARG_WITH([cross-host],
-
-diff --git a/gcc/d/Make-lang.in b/gcc/d/Make-lang.in
-index 17e5c45..8a656b1 100644
---- a/gcc/d/Make-lang.in
-+++ b/gcc/d/Make-lang.in
-@@ -25,10 +25,10 @@ D_TARGET_INSTALL_NAME = $(target_alias)-$(shell echo gdc|sed '$(program_transfor
- 
- # This should be configured
- ifeq ($(host), $(target))
--  D_include_dir = `echo $(exec_prefix) | sed -e 's|^$(prefix)||' -e 's|/[^/]*|/..|g'`/include/d/$(version)
-+  D_include_dir = `echo $(exec_prefix) | sed -e 's|^$(prefix)||' -e 's|/[^/]*|/..|g'`/include/dlang/gdc
-   gcc_d_include_dir = $(libsubdir)/$(unlibsubdir)/..$(D_include_dir)
- else
--  gcc_d_include_dir = $(libsubdir)/include/d
-+  gcc_d_include_dir = $(libsubdir)/include/dlang/gdc
- endif
-
-

Copied: gdc/repos/community-x86_64/folders.diff (from rev 132127, gdc/trunk/folders.diff)
===================================================================
--- community-x86_64/folders.diff	                        (rev 0)
+++ community-x86_64/folders.diff	2015-04-24 17:23:30 UTC (rev 132128)
@@ -0,0 +1,39 @@
+diff --git a/gcc/d/d-incpath.cc b/gcc/d/d-incpath.cc
+index e04ddc6..168a033 100644
+--- a/gcc/d/d-incpath.cc
++++ b/gcc/d/d-incpath.cc
+@@ -202,7 +202,7 @@ add_import_paths(const char *iprefix, const char *imultilib, bool stdinc)
+ 	    import_path = xstrdup(p->fname);
+ 
+ 	  // Add D-specific suffix.
+-	  import_path = concat(import_path, "/d", NULL);
++	  import_path = concat(import_path, "/dlang/gdc", NULL);
+ 
+ 	  // Ignore duplicate entries.
+ 	  bool found = false;
+diff --git a/libphobos/configure b/libphobos/configure
+index 2ff7114..f7f0660 100755
+--- a/libphobos/configure
++++ b/libphobos/configure
+@@ -3883,7 +3883,7 @@ fi
+ 
+ 
+ # Default case for install directory for D sources files.
+-gdc_include_dir='${libdir}/gcc/${target_alias}'/${d_gcc_ver}/include/d
++gdc_include_dir=${prefix}/include/dlang/gdc
+ 
+ 
+ # Sanity check for the cross-compilation case:
+diff --git a/libphobos/configure.ac b/libphobos/configure.ac
+index 84492dd..947f6a8 100644
+--- a/libphobos/configure.ac
++++ b/libphobos/configure.ac
+@@ -167,7 +167,7 @@ AC_SUBST(phobos_toolexecdir)
+ AC_SUBST(phobos_toolexeclibdir)
+ 
+ # Default case for install directory for D sources files.
+-gdc_include_dir='${libdir}/gcc/${target_alias}'/${d_gcc_ver}/include/d
++gdc_include_dir=${prefix}/include/dlang/gdc
+ AC_SUBST(gdc_include_dir)
+ 
+ dnl Checks for header files.



More information about the arch-commits mailing list