[arch-commits] Commit in gdc/repos (8 files)
Evangelos Foutras
foutrelis at archlinux.org
Mon Apr 17 15:29:50 UTC 2017
Date: Monday, April 17, 2017 @ 15:29:49
Author: foutrelis
Revision: 223493
archrelease: copy trunk to community-i686, community-x86_64
Added:
gdc/repos/community-i686/PKGBUILD
(from rev 223492, gdc/trunk/PKGBUILD)
gdc/repos/community-i686/paths.diff
(from rev 223492, gdc/trunk/paths.diff)
gdc/repos/community-x86_64/PKGBUILD
(from rev 223492, gdc/trunk/PKGBUILD)
gdc/repos/community-x86_64/paths.diff
(from rev 223492, gdc/trunk/paths.diff)
Deleted:
gdc/repos/community-i686/PKGBUILD
gdc/repos/community-i686/paths.diff
gdc/repos/community-x86_64/PKGBUILD
gdc/repos/community-x86_64/paths.diff
-----------------------------+
/PKGBUILD | 272 ++++++++++++++++++++++++++++++++++++++++++
/paths.diff | 78 ++++++++++++
community-i686/PKGBUILD | 136 ---------------------
community-i686/paths.diff | 39 ------
community-x86_64/PKGBUILD | 136 ---------------------
community-x86_64/paths.diff | 39 ------
6 files changed, 350 insertions(+), 350 deletions(-)
Deleted: community-i686/PKGBUILD
===================================================================
--- community-i686/PKGBUILD 2017-04-17 15:29:29 UTC (rev 223492)
+++ community-i686/PKGBUILD 2017-04-17 15:29:49 UTC (rev 223493)
@@ -1,136 +0,0 @@
-# $Id$
-# 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>
-# Contributor: Allan McRae <allan at archlinux.org>
-
-pkgname=('gdc' 'libgphobos-devel' 'libgphobos')
-pkgver=6.2.1
-pkgrel=1
-_islver=0.16.1
-_gcc_commit=c2103c1
-arch=('i686' 'x86_64')
-license=('GPL')
-url="https://github.com/D-Programming-GDC/GDC"
-makedepends=('binutils>=2.26' 'git')
-
-source=(
- git://gcc.gnu.org/git/gcc.git#commit=$_gcc_commit
- http://isl.gforge.inria.fr/isl-$_islver.tar.bz2
- gdc::git://github.com/D-Programming-GDC/GDC.git#tag=v2.068.2_gcc6
- git+https://github.com/D-Programming-GDC/GDMD.git
- paths.diff
-)
-sha256sums=(
- 'SKIP'
- '412538bb65c799ac98e17e8cfcdacbb257a57362acfaaff254b0fcae970126d2'
- 'SKIP'
- 'SKIP'
- 'e04cea391007ebab5d9b0ff33179c1fded0afcf43059b811290472ea52222361'
-)
-
-_libdir="usr/lib/gcc/$CHOST/$pkgver"
-
-prepare() {
- cd $srcdir/gcc
-
- # link isl for in-tree build
- ln -s ../isl-$_islver isl
-
- # Do not run fixincludes
- sed -i 's@\./fixinc\.sh at -c true@' gcc/Makefile.in
-
- # Arch Linux installs x86_64 libraries /lib
- [[ $CARCH == "x86_64" ]] && sed -i '/m64=/s/lib64/lib/' gcc/config/i386/t-linux64
-
- # hack! - some configure tests for header files using "$CPP $CPPFLAGS"
- sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" {libiberty,gcc}/configure
-
- # GDC setup
- cd $srcdir/gdc
- git apply $srcdir/paths.diff
- ./setup-gcc.sh ../gcc
-
- mkdir $srcdir/gcc-build
-}
-
-build() {
- cd $srcdir/gcc-build
-
- # using -pipe causes spurious test-suite failures
- # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48565
- CFLAGS=${CFLAGS/-pipe/}
- CXXFLAGS=${CXXFLAGS/-pipe/}
-
- $srcdir/gcc/configure --prefix=/usr \
- --libdir=/usr/lib \
- --libexecdir=/usr/lib \
- --mandir=/usr/share/man \
- --infodir=/usr/share/info \
- --with-bugurl=https://bugs.archlinux.org/ \
- --enable-shared \
- --enable-static \
- --enable-threads=posix \
- --enable-libmpx \
- --with-system-zlib \
- --with-isl \
- --enable-__cxa_atexit \
- --disable-libunwind-exceptions \
- --enable-clocale=gnu \
- --disable-libstdcxx-pch \
- --disable-libssp \
- --enable-gnu-unique-object \
- --enable-linker-build-id \
- --enable-lto \
- --enable-plugin \
- --enable-install-libiberty \
- --with-linker-hash-style=gnu \
- --enable-gnu-indirect-function \
- --enable-default-pie \
- --disable-multilib \
- --disable-werror \
- --enable-languages=d \
- gdc_include_dir=/usr/include/dlang/gdc
-
- make -j 8
-}
-
-package_gdc()
-{
- depends=('gcc' 'perl' 'binutils' 'libgphobos-devel')
- provides=("d-compiler")
- pkgdesc="Compiler for D programming language which uses gcc backend"
-
- # compiler
- 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")
-
- cd $srcdir/gcc-build
- make -C $CHOST/libphobos DESTDIR=$pkgdir install
-
- # remove shared library bits, they go into own package
- rm $pkgdir/usr/lib/lib*so*
-}
-
-package_libgphobos()
-{
- pkgdesc="Shared standard library for D programming language, GDC port"
- provides=("d-runtime" "d-stdlib")
-
- cd $srcdir/gcc-build
- install -D -m644 $CHOST/libphobos/src/.libs/libgphobos.so $pkgdir/usr/lib/libgphobos.so
- install -D -m644 $CHOST/libphobos/libdruntime/.libs/libgdruntime.so $pkgdir/usr/lib/libgdruntime.so
-}
Copied: gdc/repos/community-i686/PKGBUILD (from rev 223492, gdc/trunk/PKGBUILD)
===================================================================
--- community-i686/PKGBUILD (rev 0)
+++ community-i686/PKGBUILD 2017-04-17 15:29:49 UTC (rev 223493)
@@ -0,0 +1,136 @@
+# $Id$
+# 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>
+# Contributor: Allan McRae <allan at archlinux.org>
+
+pkgname=('gdc' 'libgphobos-devel' 'libgphobos')
+pkgver=6.2.1
+pkgrel=2
+_islver=0.16.1
+_gcc_commit=c2103c1
+arch=('i686' 'x86_64')
+license=('GPL')
+url="https://github.com/D-Programming-GDC/GDC"
+makedepends=('binutils>=2.26' 'git')
+
+source=(
+ git+https://gcc.gnu.org/git/gcc.git#commit=$_gcc_commit
+ http://isl.gforge.inria.fr/isl-$_islver.tar.bz2
+ gdc::git+https://github.com/D-Programming-GDC/GDC.git#tag=v2.068.2_gcc6
+ git+https://github.com/D-Programming-GDC/GDMD.git
+ paths.diff
+)
+sha256sums=(
+ 'SKIP'
+ '412538bb65c799ac98e17e8cfcdacbb257a57362acfaaff254b0fcae970126d2'
+ 'SKIP'
+ 'SKIP'
+ 'e04cea391007ebab5d9b0ff33179c1fded0afcf43059b811290472ea52222361'
+)
+
+_libdir="usr/lib/gcc/$CHOST/$pkgver"
+
+prepare() {
+ cd $srcdir/gcc
+
+ # link isl for in-tree build
+ ln -s ../isl-$_islver isl
+
+ # Do not run fixincludes
+ sed -i 's@\./fixinc\.sh at -c true@' gcc/Makefile.in
+
+ # Arch Linux installs x86_64 libraries /lib
+ [[ $CARCH == "x86_64" ]] && sed -i '/m64=/s/lib64/lib/' gcc/config/i386/t-linux64
+
+ # hack! - some configure tests for header files using "$CPP $CPPFLAGS"
+ sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" {libiberty,gcc}/configure
+
+ # GDC setup
+ cd $srcdir/gdc
+ git apply $srcdir/paths.diff
+ ./setup-gcc.sh ../gcc
+
+ mkdir $srcdir/gcc-build
+}
+
+build() {
+ cd $srcdir/gcc-build
+
+ # using -pipe causes spurious test-suite failures
+ # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48565
+ CFLAGS=${CFLAGS/-pipe/}
+ CXXFLAGS=${CXXFLAGS/-pipe/}
+
+ $srcdir/gcc/configure --prefix=/usr \
+ --libdir=/usr/lib \
+ --libexecdir=/usr/lib \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --with-bugurl=https://bugs.archlinux.org/ \
+ --enable-shared \
+ --enable-static \
+ --enable-threads=posix \
+ --enable-libmpx \
+ --with-system-zlib \
+ --with-isl \
+ --enable-__cxa_atexit \
+ --disable-libunwind-exceptions \
+ --enable-clocale=gnu \
+ --disable-libstdcxx-pch \
+ --disable-libssp \
+ --enable-gnu-unique-object \
+ --enable-linker-build-id \
+ --enable-lto \
+ --enable-plugin \
+ --enable-install-libiberty \
+ --with-linker-hash-style=gnu \
+ --enable-gnu-indirect-function \
+ --enable-default-pie \
+ --disable-multilib \
+ --disable-werror \
+ --enable-languages=d \
+ gdc_include_dir=/usr/include/dlang/gdc
+
+ make -j 8
+}
+
+package_gdc()
+{
+ depends=('gcc' 'perl' 'binutils' 'libgphobos-devel')
+ provides=("d-compiler")
+ pkgdesc="Compiler for D programming language which uses gcc backend"
+
+ # compiler
+ 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")
+
+ cd $srcdir/gcc-build
+ make -C $CHOST/libphobos DESTDIR=$pkgdir install
+
+ # remove shared library bits, they go into own package
+ rm $pkgdir/usr/lib/lib*so*
+}
+
+package_libgphobos()
+{
+ pkgdesc="Shared standard library for D programming language, GDC port"
+ provides=("d-runtime" "d-stdlib")
+
+ cd $srcdir/gcc-build
+ install -D -m644 $CHOST/libphobos/src/.libs/libgphobos.so $pkgdir/usr/lib/libgphobos.so
+ install -D -m644 $CHOST/libphobos/libdruntime/.libs/libgdruntime.so $pkgdir/usr/lib/libgdruntime.so
+}
Deleted: community-i686/paths.diff
===================================================================
--- community-i686/paths.diff 2017-04-17 15:29:29 UTC (rev 223492)
+++ community-i686/paths.diff 2017-04-17 15:29:49 UTC (rev 223493)
@@ -1,39 +0,0 @@
-diff --git a/gcc/d/d-incpath.cc b/gcc/d/d-incpath.cc
-index 995ff792..3e06bc0a 100644
---- a/gcc/d/d-incpath.cc
-+++ b/gcc/d/d-incpath.cc
-@@ -206,7 +206,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 7325fcbf..a75286c8 100755
---- a/libphobos/configure
-+++ b/libphobos/configure
-@@ -14658,7 +14658,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='/usr/include/dlang/gdc/'
-
-
-
-diff --git a/libphobos/m4/druntime.m4 b/libphobos/m4/druntime.m4
-index fac44aac..6ff6b2c7 100644
---- a/libphobos/m4/druntime.m4
-+++ b/libphobos/m4/druntime.m4
-@@ -78,7 +78,7 @@ AC_DEFUN([DRUNTIME_INSTALL_DIRECTORIES],
- AC_SUBST(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='/usr/include/dlang/gdc/'
- AC_SUBST(gdc_include_dir)
- ])
-
Copied: gdc/repos/community-i686/paths.diff (from rev 223492, gdc/trunk/paths.diff)
===================================================================
--- community-i686/paths.diff (rev 0)
+++ community-i686/paths.diff 2017-04-17 15:29:49 UTC (rev 223493)
@@ -0,0 +1,39 @@
+diff --git a/gcc/d/d-incpath.cc b/gcc/d/d-incpath.cc
+index 995ff792..3e06bc0a 100644
+--- a/gcc/d/d-incpath.cc
++++ b/gcc/d/d-incpath.cc
+@@ -206,7 +206,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 7325fcbf..a75286c8 100755
+--- a/libphobos/configure
++++ b/libphobos/configure
+@@ -14658,7 +14658,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='/usr/include/dlang/gdc/'
+
+
+
+diff --git a/libphobos/m4/druntime.m4 b/libphobos/m4/druntime.m4
+index fac44aac..6ff6b2c7 100644
+--- a/libphobos/m4/druntime.m4
++++ b/libphobos/m4/druntime.m4
+@@ -78,7 +78,7 @@ AC_DEFUN([DRUNTIME_INSTALL_DIRECTORIES],
+ AC_SUBST(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='/usr/include/dlang/gdc/'
+ AC_SUBST(gdc_include_dir)
+ ])
+
Deleted: community-x86_64/PKGBUILD
===================================================================
--- community-x86_64/PKGBUILD 2017-04-17 15:29:29 UTC (rev 223492)
+++ community-x86_64/PKGBUILD 2017-04-17 15:29:49 UTC (rev 223493)
@@ -1,136 +0,0 @@
-# $Id$
-# 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>
-# Contributor: Allan McRae <allan at archlinux.org>
-
-pkgname=('gdc' 'libgphobos-devel' 'libgphobos')
-pkgver=6.2.1
-pkgrel=1
-_islver=0.16.1
-_gcc_commit=c2103c1
-arch=('i686' 'x86_64')
-license=('GPL')
-url="https://github.com/D-Programming-GDC/GDC"
-makedepends=('binutils>=2.26' 'git')
-
-source=(
- git://gcc.gnu.org/git/gcc.git#commit=$_gcc_commit
- http://isl.gforge.inria.fr/isl-$_islver.tar.bz2
- gdc::git://github.com/D-Programming-GDC/GDC.git#tag=v2.068.2_gcc6
- git+https://github.com/D-Programming-GDC/GDMD.git
- paths.diff
-)
-sha256sums=(
- 'SKIP'
- '412538bb65c799ac98e17e8cfcdacbb257a57362acfaaff254b0fcae970126d2'
- 'SKIP'
- 'SKIP'
- 'e04cea391007ebab5d9b0ff33179c1fded0afcf43059b811290472ea52222361'
-)
-
-_libdir="usr/lib/gcc/$CHOST/$pkgver"
-
-prepare() {
- cd $srcdir/gcc
-
- # link isl for in-tree build
- ln -s ../isl-$_islver isl
-
- # Do not run fixincludes
- sed -i 's@\./fixinc\.sh at -c true@' gcc/Makefile.in
-
- # Arch Linux installs x86_64 libraries /lib
- [[ $CARCH == "x86_64" ]] && sed -i '/m64=/s/lib64/lib/' gcc/config/i386/t-linux64
-
- # hack! - some configure tests for header files using "$CPP $CPPFLAGS"
- sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" {libiberty,gcc}/configure
-
- # GDC setup
- cd $srcdir/gdc
- git apply $srcdir/paths.diff
- ./setup-gcc.sh ../gcc
-
- mkdir $srcdir/gcc-build
-}
-
-build() {
- cd $srcdir/gcc-build
-
- # using -pipe causes spurious test-suite failures
- # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48565
- CFLAGS=${CFLAGS/-pipe/}
- CXXFLAGS=${CXXFLAGS/-pipe/}
-
- $srcdir/gcc/configure --prefix=/usr \
- --libdir=/usr/lib \
- --libexecdir=/usr/lib \
- --mandir=/usr/share/man \
- --infodir=/usr/share/info \
- --with-bugurl=https://bugs.archlinux.org/ \
- --enable-shared \
- --enable-static \
- --enable-threads=posix \
- --enable-libmpx \
- --with-system-zlib \
- --with-isl \
- --enable-__cxa_atexit \
- --disable-libunwind-exceptions \
- --enable-clocale=gnu \
- --disable-libstdcxx-pch \
- --disable-libssp \
- --enable-gnu-unique-object \
- --enable-linker-build-id \
- --enable-lto \
- --enable-plugin \
- --enable-install-libiberty \
- --with-linker-hash-style=gnu \
- --enable-gnu-indirect-function \
- --enable-default-pie \
- --disable-multilib \
- --disable-werror \
- --enable-languages=d \
- gdc_include_dir=/usr/include/dlang/gdc
-
- make -j 8
-}
-
-package_gdc()
-{
- depends=('gcc' 'perl' 'binutils' 'libgphobos-devel')
- provides=("d-compiler")
- pkgdesc="Compiler for D programming language which uses gcc backend"
-
- # compiler
- 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")
-
- cd $srcdir/gcc-build
- make -C $CHOST/libphobos DESTDIR=$pkgdir install
-
- # remove shared library bits, they go into own package
- rm $pkgdir/usr/lib/lib*so*
-}
-
-package_libgphobos()
-{
- pkgdesc="Shared standard library for D programming language, GDC port"
- provides=("d-runtime" "d-stdlib")
-
- cd $srcdir/gcc-build
- install -D -m644 $CHOST/libphobos/src/.libs/libgphobos.so $pkgdir/usr/lib/libgphobos.so
- install -D -m644 $CHOST/libphobos/libdruntime/.libs/libgdruntime.so $pkgdir/usr/lib/libgdruntime.so
-}
Copied: gdc/repos/community-x86_64/PKGBUILD (from rev 223492, gdc/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2017-04-17 15:29:49 UTC (rev 223493)
@@ -0,0 +1,136 @@
+# $Id$
+# 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>
+# Contributor: Allan McRae <allan at archlinux.org>
+
+pkgname=('gdc' 'libgphobos-devel' 'libgphobos')
+pkgver=6.2.1
+pkgrel=2
+_islver=0.16.1
+_gcc_commit=c2103c1
+arch=('i686' 'x86_64')
+license=('GPL')
+url="https://github.com/D-Programming-GDC/GDC"
+makedepends=('binutils>=2.26' 'git')
+
+source=(
+ git+https://gcc.gnu.org/git/gcc.git#commit=$_gcc_commit
+ http://isl.gforge.inria.fr/isl-$_islver.tar.bz2
+ gdc::git+https://github.com/D-Programming-GDC/GDC.git#tag=v2.068.2_gcc6
+ git+https://github.com/D-Programming-GDC/GDMD.git
+ paths.diff
+)
+sha256sums=(
+ 'SKIP'
+ '412538bb65c799ac98e17e8cfcdacbb257a57362acfaaff254b0fcae970126d2'
+ 'SKIP'
+ 'SKIP'
+ 'e04cea391007ebab5d9b0ff33179c1fded0afcf43059b811290472ea52222361'
+)
+
+_libdir="usr/lib/gcc/$CHOST/$pkgver"
+
+prepare() {
+ cd $srcdir/gcc
+
+ # link isl for in-tree build
+ ln -s ../isl-$_islver isl
+
+ # Do not run fixincludes
+ sed -i 's@\./fixinc\.sh at -c true@' gcc/Makefile.in
+
+ # Arch Linux installs x86_64 libraries /lib
+ [[ $CARCH == "x86_64" ]] && sed -i '/m64=/s/lib64/lib/' gcc/config/i386/t-linux64
+
+ # hack! - some configure tests for header files using "$CPP $CPPFLAGS"
+ sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" {libiberty,gcc}/configure
+
+ # GDC setup
+ cd $srcdir/gdc
+ git apply $srcdir/paths.diff
+ ./setup-gcc.sh ../gcc
+
+ mkdir $srcdir/gcc-build
+}
+
+build() {
+ cd $srcdir/gcc-build
+
+ # using -pipe causes spurious test-suite failures
+ # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48565
+ CFLAGS=${CFLAGS/-pipe/}
+ CXXFLAGS=${CXXFLAGS/-pipe/}
+
+ $srcdir/gcc/configure --prefix=/usr \
+ --libdir=/usr/lib \
+ --libexecdir=/usr/lib \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --with-bugurl=https://bugs.archlinux.org/ \
+ --enable-shared \
+ --enable-static \
+ --enable-threads=posix \
+ --enable-libmpx \
+ --with-system-zlib \
+ --with-isl \
+ --enable-__cxa_atexit \
+ --disable-libunwind-exceptions \
+ --enable-clocale=gnu \
+ --disable-libstdcxx-pch \
+ --disable-libssp \
+ --enable-gnu-unique-object \
+ --enable-linker-build-id \
+ --enable-lto \
+ --enable-plugin \
+ --enable-install-libiberty \
+ --with-linker-hash-style=gnu \
+ --enable-gnu-indirect-function \
+ --enable-default-pie \
+ --disable-multilib \
+ --disable-werror \
+ --enable-languages=d \
+ gdc_include_dir=/usr/include/dlang/gdc
+
+ make -j 8
+}
+
+package_gdc()
+{
+ depends=('gcc' 'perl' 'binutils' 'libgphobos-devel')
+ provides=("d-compiler")
+ pkgdesc="Compiler for D programming language which uses gcc backend"
+
+ # compiler
+ 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")
+
+ cd $srcdir/gcc-build
+ make -C $CHOST/libphobos DESTDIR=$pkgdir install
+
+ # remove shared library bits, they go into own package
+ rm $pkgdir/usr/lib/lib*so*
+}
+
+package_libgphobos()
+{
+ pkgdesc="Shared standard library for D programming language, GDC port"
+ provides=("d-runtime" "d-stdlib")
+
+ cd $srcdir/gcc-build
+ install -D -m644 $CHOST/libphobos/src/.libs/libgphobos.so $pkgdir/usr/lib/libgphobos.so
+ install -D -m644 $CHOST/libphobos/libdruntime/.libs/libgdruntime.so $pkgdir/usr/lib/libgdruntime.so
+}
Deleted: community-x86_64/paths.diff
===================================================================
--- community-x86_64/paths.diff 2017-04-17 15:29:29 UTC (rev 223492)
+++ community-x86_64/paths.diff 2017-04-17 15:29:49 UTC (rev 223493)
@@ -1,39 +0,0 @@
-diff --git a/gcc/d/d-incpath.cc b/gcc/d/d-incpath.cc
-index 995ff792..3e06bc0a 100644
---- a/gcc/d/d-incpath.cc
-+++ b/gcc/d/d-incpath.cc
-@@ -206,7 +206,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 7325fcbf..a75286c8 100755
---- a/libphobos/configure
-+++ b/libphobos/configure
-@@ -14658,7 +14658,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='/usr/include/dlang/gdc/'
-
-
-
-diff --git a/libphobos/m4/druntime.m4 b/libphobos/m4/druntime.m4
-index fac44aac..6ff6b2c7 100644
---- a/libphobos/m4/druntime.m4
-+++ b/libphobos/m4/druntime.m4
-@@ -78,7 +78,7 @@ AC_DEFUN([DRUNTIME_INSTALL_DIRECTORIES],
- AC_SUBST(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='/usr/include/dlang/gdc/'
- AC_SUBST(gdc_include_dir)
- ])
-
Copied: gdc/repos/community-x86_64/paths.diff (from rev 223492, gdc/trunk/paths.diff)
===================================================================
--- community-x86_64/paths.diff (rev 0)
+++ community-x86_64/paths.diff 2017-04-17 15:29:49 UTC (rev 223493)
@@ -0,0 +1,39 @@
+diff --git a/gcc/d/d-incpath.cc b/gcc/d/d-incpath.cc
+index 995ff792..3e06bc0a 100644
+--- a/gcc/d/d-incpath.cc
++++ b/gcc/d/d-incpath.cc
+@@ -206,7 +206,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 7325fcbf..a75286c8 100755
+--- a/libphobos/configure
++++ b/libphobos/configure
+@@ -14658,7 +14658,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='/usr/include/dlang/gdc/'
+
+
+
+diff --git a/libphobos/m4/druntime.m4 b/libphobos/m4/druntime.m4
+index fac44aac..6ff6b2c7 100644
+--- a/libphobos/m4/druntime.m4
++++ b/libphobos/m4/druntime.m4
+@@ -78,7 +78,7 @@ AC_DEFUN([DRUNTIME_INSTALL_DIRECTORIES],
+ AC_SUBST(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='/usr/include/dlang/gdc/'
+ AC_SUBST(gdc_include_dir)
+ ])
+
More information about the arch-commits
mailing list