[arch-commits] Commit in ldc/repos (3 files)

2020-10-12 Thread Evangelos Foutras via arch-commits
Date: Monday, October 12, 2020 @ 17:11:06
  Author: foutrelis
Revision: 723685

archrelease: copy trunk to community-staging-x86_64

Added:
  ldc/repos/community-staging-x86_64/
  ldc/repos/community-staging-x86_64/PKGBUILD
(from rev 723684, ldc/trunk/PKGBUILD)
  ldc/repos/community-staging-x86_64/fix-llvm_prefetch-for-LLVM-10.patch
(from rev 723684, ldc/trunk/fix-llvm_prefetch-for-LLVM-10.patch)

-+
 PKGBUILD|  108 ++
 fix-llvm_prefetch-for-LLVM-10.patch |   55 +
 2 files changed, 163 insertions(+)

Copied: ldc/repos/community-staging-x86_64/PKGBUILD (from rev 723684, 
ldc/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2020-10-12 17:11:06 UTC (rev 723685)
@@ -0,0 +1,108 @@
+# Maintainer: Dan Printzell 
+# Contributor: Mihails Strasuns 
+# Contributor: Sven-Hendrik Haase 
+
+pkgname=('ldc' 'liblphobos')
+groups=('dlang' 'dlang-ldc')
+pkgver=1.23.0
+_pkgcommit=a83dc56ad5a6ba87023756c05b54b5824053da96
+_dversion=2.093.1
+_clangversion=10.0.1 # related to where ldc2 looks for compiler-rt sanitizers
+epoch=2
+pkgrel=2
+pkgdesc="A D Compiler based on the LLVM Compiler Infrastructure including D 
runtime and libphobos2"
+arch=('x86_64')
+url="https://github.com/ldc-developers/ldc;
+license=('BSD')
+makedepends=('git' 'cmake' 'llvm10' 'ldc')
+
+source=(
+"git+https://github.com/ldc-developers/ldc#commit=$_pkgcommit;
+"ldc-druntime::git+https://github.com/ldc-developers/druntime.git;
+"ldc-phobos::git+https://github.com/ldc-developers/phobos.git;
+"ldc-testsuite::git+https://github.com/ldc-developers/dmd-testsuite.git;
+)
+
+sha256sums=('SKIP'
+'SKIP'
+'SKIP'
+'SKIP')
+
+prepare() {
+cd "$srcdir/ldc"
+
+git submodule init
+git config submodule.druntime.url "$srcdir/ldc-druntime"
+git config submodule.phobos.url "$srcdir/ldc-phobos"
+git config submodule.tests/d2/dmd-testsuite.url "$srcdir/ldc-testsuite"
+git submodule update
+
+# Set version used for path construction in getFullClangCompilerRTLibPath()
+sed -i "s/ldc::llvm_version_base/\"$_clangversion\"/" driver/linker-gcc.cpp
+}
+
+build() {
+cd "$srcdir/ldc"
+
+mkdir -p build && cd build
+
+cmake \
+-DCMAKE_INSTALL_PREFIX=/usr \
+-DCMAKE_BUILD_TYPE=Release \
+-DCMAKE_SKIP_RPATH=ON \
+-DINCLUDE_INSTALL_DIR=/usr/include/dlang/ldc \
+-DBUILD_SHARED_LIBS=BOTH \
+-DBUILD_LTO_LIBS=ON \
+-DLDC_WITH_LLD=OFF \
+-DD_COMPILER_FLAGS="-link-defaultlib-shared=false -linker=gold -flto=full" 
\
+-DADDITIONAL_DEFAULT_LDC_SWITCHES="\"-link-defaultlib-shared\"" \
+..
+make
+}
+
+check() {
+cd "$srcdir/ldc/build"
+make all-test-runners
+}
+
+package_ldc() {
+depends=('liblphobos' 'llvm10-libs' 'gcc' 'compiler-rt')
+backup=('etc/ldc2.conf')
+provides=("d-compiler=$_dversion")
+
+cd "$srcdir/ldc/build"
+make install DESTDIR="$pkgdir"
+
+# move bash-completion
+mkdir -p "$pkgdir/usr/share/bash-completion/completions/"
+mv "$pkgdir/etc/bash_completion.d/ldc2" 
"$pkgdir/usr/share/bash-completion/completions/"
+rm -rf "$pkgdir/etc/bash_completion.d"
+
+# remove liblphobos files
+rm -rf "$pkgdir/usr/include"
+rm -rf "$pkgdir/usr/lib"
+
+# symlinks
+ln -s /usr/share/bash-completion/completions/ldc2 
"$pkgdir/usr/share/bash-completion/completions/ldc"
+ln -s /usr/bin/ldc2 "$pkgdir/usr/bin/ldc"
+ln -s /usr/bin/ldmd2 "$pkgdir/usr/bin/ldmd"
+
+# licenses
+install -D -m644 "$srcdir/ldc/LICENSE" 
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+package_liblphobos() {
+provides=('d-runtime' 'd-stdlib')
+depends=('curl')
+options=('staticlibs')
+
+cd "$srcdir/ldc/build"
+make install DESTDIR="$pkgdir"
+
+# remove ldc files
+rm -rf "$pkgdir/usr/bin/"
+rm -rf "$pkgdir/etc/"
+
+# licenses
+install -D -m644 "$srcdir/ldc/LICENSE" 
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}

Copied: ldc/repos/community-staging-x86_64/fix-llvm_prefetch-for-LLVM-10.patch 
(from rev 723684, ldc/trunk/fix-llvm_prefetch-for-LLVM-10.patch)
===
--- community-staging-x86_64/fix-llvm_prefetch-for-LLVM-10.patch
(rev 0)
+++ community-staging-x86_64/fix-llvm_prefetch-for-LLVM-10.patch
2020-10-12 17:11:06 UTC (rev 723685)
@@ -0,0 +1,55 @@
+diff --git a/src/core/simd.d b/src/core/simd.d
+index c27dc4c1..7641c8a9 100644
+--- a/src/core/simd.d
 b/src/core/simd.d
+@@ -84,6 +84,20 @@ version (LDC)
+ enum dataCache = 1;
+ llvm_prefetch(address, writeFetch, locality, dataCache);
+ }
++
++unittest
++{
++float[4] data = [ 0.5, 1, 1.5, 2 ];
++auto ptr = [0];

[arch-commits] Commit in ldc/repos (3 files)

2020-07-22 Thread Evangelos Foutras via arch-commits
Date: Wednesday, July 22, 2020 @ 21:38:01
  Author: foutrelis
Revision: 664944

archrelease: copy trunk to community-staging-x86_64

Added:
  ldc/repos/community-staging-x86_64/
  ldc/repos/community-staging-x86_64/PKGBUILD
(from rev 664943, ldc/trunk/PKGBUILD)
  ldc/repos/community-staging-x86_64/fix-llvm_prefetch-for-LLVM-10.patch
(from rev 664943, ldc/trunk/fix-llvm_prefetch-for-LLVM-10.patch)

-+
 PKGBUILD|  108 ++
 fix-llvm_prefetch-for-LLVM-10.patch |   55 +
 2 files changed, 163 insertions(+)

Copied: ldc/repos/community-staging-x86_64/PKGBUILD (from rev 664943, 
ldc/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2020-07-22 21:38:01 UTC (rev 664944)
@@ -0,0 +1,108 @@
+# Maintainer: Dan Printzell 
+# Contributor: Mihails Strasuns 
+# Contributor: Sven-Hendrik Haase 
+
+pkgname=('ldc' 'liblphobos')
+groups=('dlang' 'dlang-ldc')
+pkgver=1.22.0
+_pkgcommit=74893d99477f00235b51ee72374660f9c178a939
+_dversion=2.092.1
+_clangversion=10.0.1 # related to where ldc2 looks for compiler-rt sanitizers
+epoch=2
+pkgrel=2
+pkgdesc="A D Compiler based on the LLVM Compiler Infrastructure including D 
runtime and libphobos2"
+arch=('x86_64')
+url="https://github.com/ldc-developers/ldc;
+license=('BSD')
+makedepends=('git' 'cmake' 'llvm' 'ldc')
+
+source=(
+"git+https://github.com/ldc-developers/ldc#commit=$_pkgcommit;
+"ldc-druntime::git+https://github.com/ldc-developers/druntime.git;
+"ldc-phobos::git+https://github.com/ldc-developers/phobos.git;
+"ldc-testsuite::git+https://github.com/ldc-developers/dmd-testsuite.git;
+)
+
+sha256sums=('SKIP'
+'SKIP'
+'SKIP'
+'SKIP')
+
+prepare() {
+cd "$srcdir/ldc"
+
+git submodule init
+git config submodule.druntime.url "$srcdir/ldc-druntime"
+git config submodule.phobos.url "$srcdir/ldc-phobos"
+git config submodule.tests/d2/dmd-testsuite.url "$srcdir/ldc-testsuite"
+git submodule update
+
+# Set version used for path construction in getFullClangCompilerRTLibPath()
+sed -i "s/ldc::llvm_version_base/\"$_clangversion\"/" driver/linker-gcc.cpp
+}
+
+build() {
+cd "$srcdir/ldc"
+
+mkdir -p build && cd build
+
+cmake \
+-DCMAKE_INSTALL_PREFIX=/usr \
+-DCMAKE_BUILD_TYPE=Release \
+-DCMAKE_SKIP_RPATH=ON \
+-DINCLUDE_INSTALL_DIR=/usr/include/dlang/ldc \
+-DBUILD_SHARED_LIBS=BOTH \
+-DBUILD_LTO_LIBS=ON \
+-DLDC_WITH_LLD=OFF \
+-DD_COMPILER_FLAGS="-link-defaultlib-shared=false -linker=gold -flto=full" 
\
+-DADDITIONAL_DEFAULT_LDC_SWITCHES="\"-link-defaultlib-shared\"" \
+..
+make
+}
+
+check() {
+cd "$srcdir/ldc/build"
+make all-test-runners
+}
+
+package_ldc() {
+depends=('liblphobos' 'llvm-libs' 'gcc' 'compiler-rt')
+backup=('etc/ldc2.conf')
+provides=("d-compiler=$_dversion")
+
+cd "$srcdir/ldc/build"
+make install DESTDIR="$pkgdir"
+
+# move bash-completion
+mkdir -p "$pkgdir/usr/share/bash-completion/completions/"
+mv "$pkgdir/etc/bash_completion.d/ldc2" 
"$pkgdir/usr/share/bash-completion/completions/"
+rm -rf "$pkgdir/etc/bash_completion.d"
+
+# remove liblphobos files
+rm -rf "$pkgdir/usr/include"
+rm -rf "$pkgdir/usr/lib"
+
+# symlinks
+ln -s /usr/share/bash-completion/completions/ldc2 
"$pkgdir/usr/share/bash-completion/completions/ldc"
+ln -s /usr/bin/ldc2 "$pkgdir/usr/bin/ldc"
+ln -s /usr/bin/ldmd2 "$pkgdir/usr/bin/ldmd"
+
+# licenses
+install -D -m644 "$srcdir/ldc/LICENSE" 
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+package_liblphobos() {
+provides=('d-runtime' 'd-stdlib')
+depends=('curl')
+options=('staticlibs')
+
+cd "$srcdir/ldc/build"
+make install DESTDIR="$pkgdir"
+
+# remove ldc files
+rm -rf "$pkgdir/usr/bin/"
+rm -rf "$pkgdir/etc/"
+
+# licenses
+install -D -m644 "$srcdir/ldc/LICENSE" 
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}

Copied: ldc/repos/community-staging-x86_64/fix-llvm_prefetch-for-LLVM-10.patch 
(from rev 664943, ldc/trunk/fix-llvm_prefetch-for-LLVM-10.patch)
===
--- community-staging-x86_64/fix-llvm_prefetch-for-LLVM-10.patch
(rev 0)
+++ community-staging-x86_64/fix-llvm_prefetch-for-LLVM-10.patch
2020-07-22 21:38:01 UTC (rev 664944)
@@ -0,0 +1,55 @@
+diff --git a/src/core/simd.d b/src/core/simd.d
+index c27dc4c1..7641c8a9 100644
+--- a/src/core/simd.d
 b/src/core/simd.d
+@@ -84,6 +84,20 @@ version (LDC)
+ enum dataCache = 1;
+ llvm_prefetch(address, writeFetch, locality, dataCache);
+ }
++
++unittest
++{
++float[4] data = [ 0.5, 1, 1.5, 2 ];
++auto ptr = [0];
++
++ 

[arch-commits] Commit in ldc/repos (3 files)

2019-03-28 Thread Evangelos Foutras via arch-commits
Date: Thursday, March 28, 2019 @ 10:44:44
  Author: foutrelis
Revision: 445249

archrelease: copy trunk to community-staging-x86_64

Added:
  ldc/repos/community-staging-x86_64/
  ldc/repos/community-staging-x86_64/PKGBUILD
(from rev 445248, ldc/trunk/PKGBUILD)
  ldc/repos/community-staging-x86_64/ldc2.conf
(from rev 445248, ldc/trunk/ldc2.conf)

---+
 PKGBUILD  |  112 
 ldc2.conf |   19 ++
 2 files changed, 131 insertions(+)

Copied: ldc/repos/community-staging-x86_64/PKGBUILD (from rev 445248, 
ldc/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2019-03-28 10:44:44 UTC (rev 445249)
@@ -0,0 +1,112 @@
+# Maintainer:
+# Contributor: Mihails Strasuns 
+# Contributor: Sven-Hendrik Haase 
+
+pkgname=('ldc' 'liblphobos')
+groups=('dlang' 'dlang-ldc')
+pkgver=1.14.0
+_pkgcommit=e319c790f574d630ab0b930b980cfc1120ebe1d8
+_dversion=2.084.1
+_clangversion=8.0.0 # related to where ldc2 looks for compiler-rt sanitizers
+epoch=2
+pkgrel=2
+pkgdesc="A D Compiler based on the LLVM Compiler Infrastructure including D 
runtime and libphobos2"
+arch=('x86_64')
+url="https://github.com/ldc-developers/ldc;
+license=('BSD')
+makedepends=('git' 'cmake' 'llvm7' 'ldc')
+
+source=(
+"git+https://github.com/ldc-developers/ldc#commit=$_pkgcommit;
+"git+https://github.com/ldc-developers/druntime.git;
+"git+https://github.com/ldc-developers/phobos.git;
+"git+https://github.com/ldc-developers/dmd-testsuite.git;
+"ldc2.conf"
+)
+
+sha256sums=('SKIP'
+'SKIP'
+'SKIP'
+'SKIP'
+'55ba34319db861a761797ac0075b0b1f5f4d37a243075aedb628aeedc77cc9d6')
+
+prepare() {
+cd "$srcdir/ldc"
+
+git submodule init
+git config submodule.druntime.url "$srcdir/druntime"
+git config submodule.phobos.url "$srcdir/phobos"
+git config submodule.tests/d2/dmd-testsuite.url "$srcdir/dmd-testsuite"
+git submodule update
+
+# Set version used for path construction in getFullClangCompilerRTLibPath()
+sed -i "s/ldc::llvm_version_base/\"$_clangversion\"/" driver/linker-gcc.cpp
+}
+
+build() {
+cd "$srcdir/ldc"
+
+mkdir -p build && cd build
+
+cmake \
+-DCMAKE_INSTALL_PREFIX=/usr \
+-DCMAKE_BUILD_TYPE=Release \
+-DCMAKE_SKIP_RPATH=ON \
+-DINCLUDE_INSTALL_DIR=/usr/include/dlang/ldc \
+-DBUILD_SHARED_LIBS=BOTH \
+-DBUILD_LTO_LIBS=ON \
+-DLDC_WITH_LLD=OFF \
+-DD_COMPILER_FLAGS="-link-defaultlib-shared=false -linker=gold -flto=full" 
\
+..
+make
+}
+
+check() {
+cd "$srcdir/ldc/build"
+make all-test-runners
+}
+
+package_ldc() {
+depends=('liblphobos' 'llvm7-libs' 'gcc' 'compiler-rt')
+backup=('etc/ldc2.conf')
+provides=("d-compiler=$_dversion")
+
+cd "$srcdir/ldc/build"
+make install DESTDIR="$pkgdir"
+
+# move bash-completion
+mkdir -p "$pkgdir/usr/share/bash-completion/completions/"
+mv "$pkgdir/etc/bash_completion.d/ldc2" 
"$pkgdir/usr/share/bash-completion/completions/"
+rm -rf "$pkgdir/etc/bash_completion.d"
+
+# remove liblphobos files
+rm -rf "$pkgdir/usr/include"
+rm -rf "$pkgdir/usr/lib"
+
+# symlinks
+ln -s /usr/share/bash-completion/completions/ldc2 
"$pkgdir/usr/share/bash-completion/completions/ldc"
+ln -s /usr/bin/ldc2 "$pkgdir/usr/bin/ldc"
+ln -s /usr/bin/ldmd2 "$pkgdir/usr/bin/ldmd"
+
+# licenses
+install -D -m644 "$srcdir/ldc/LICENSE" 
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+
+# default configuration files
+install -D -m644 "$srcdir/ldc2.conf" "$pkgdir/etc/ldc2.conf"
+}
+
+package_liblphobos() {
+provides=('d-runtime' 'd-stdlib')
+depends=('curl')
+options=('staticlibs')
+
+cd "$srcdir/ldc/build"
+make install DESTDIR="$pkgdir"
+
+# remove ldc files
+rm -rf "$pkgdir/usr/bin/"
+rm -rf "$pkgdir/etc/"
+
+# licenses
+install -D -m644 "$srcdir/ldc/LICENSE" 
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}

Copied: ldc/repos/community-staging-x86_64/ldc2.conf (from rev 445248, 
ldc/trunk/ldc2.conf)
===
--- community-staging-x86_64/ldc2.conf  (rev 0)
+++ community-staging-x86_64/ldc2.conf  2019-03-28 10:44:44 UTC (rev 445249)
@@ -0,0 +1,19 @@
+// See comments in driver/config.d in ldc source tree for grammar description 
of
+// this config file.
+
+// The default group is required
+default:
+{
+// default switches injected before all explicit command-line switches
+switches = [
+"-I/usr/include/dlang/ldc/ldc",
+"-I/usr/include/dlang/ldc",
+"-L--no-warn-search-mismatch",
+"-defaultlib=phobos2-ldc,druntime-ldc",
+"-link-defaultlib-shared"
+];
+// default switches appended after all explicit command-line switches

[arch-commits] Commit in ldc/repos (3 files)

2018-09-29 Thread Evangelos Foutras via arch-commits
Date: Saturday, September 29, 2018 @ 10:39:44
  Author: foutrelis
Revision: 387709

archrelease: copy trunk to community-staging-x86_64

Added:
  ldc/repos/community-staging-x86_64/
  ldc/repos/community-staging-x86_64/PKGBUILD
(from rev 387708, ldc/trunk/PKGBUILD)
  ldc/repos/community-staging-x86_64/ldc2.conf
(from rev 387708, ldc/trunk/ldc2.conf)

---+
 PKGBUILD  |  112 
 ldc2.conf |   19 ++
 2 files changed, 131 insertions(+)

Copied: ldc/repos/community-staging-x86_64/PKGBUILD (from rev 387708, 
ldc/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-09-29 10:39:44 UTC (rev 387709)
@@ -0,0 +1,112 @@
+# Maintainer:
+# Contributor: Mihails Strasuns 
+# Contributor: Sven-Hendrik Haase 
+
+pkgname=('ldc' 'liblphobos')
+groups=('dlang' 'dlang-ldc')
+pkgver=1.11.0
+_pkgcommit=9bd4fb2df54a8d143d70329b5b923bf226dd1897
+_dversion=2.081.2
+_clangversion=7.0.0 # related to where ldc2 looks for compiler-rt sanitizers
+epoch=2
+pkgrel=3
+pkgdesc="A D Compiler based on the LLVM Compiler Infrastructure including D 
runtime and libphobos2"
+arch=('x86_64')
+url="https://github.com/ldc-developers/ldc;
+license=('BSD')
+makedepends=('git' 'cmake' 'llvm6' 'ldc')
+
+source=(
+"git+https://github.com/ldc-developers/ldc#commit=$_pkgcommit;
+"git+https://github.com/ldc-developers/druntime.git;
+"git+https://github.com/ldc-developers/phobos.git;
+"git+https://github.com/ldc-developers/dmd-testsuite.git;
+"ldc2.conf"
+)
+
+sha256sums=('SKIP'
+'SKIP'
+'SKIP'
+'SKIP'
+'55ba34319db861a761797ac0075b0b1f5f4d37a243075aedb628aeedc77cc9d6')
+
+prepare() {
+cd "$srcdir/ldc"
+
+git submodule init
+git config submodule.druntime.url "$srcdir/druntime"
+git config submodule.phobos.url "$srcdir/phobos"
+git config submodule.tests/d2/dmd-testsuite.url "$srcdir/dmd-testsuite"
+git submodule update
+
+# Set version used for path construction in getFullClangCompilerRTLibPath()
+sed -i "s/ldc::llvm_version_base/\"$_clangversion\"/" driver/linker-gcc.cpp
+}
+
+build() {
+cd "$srcdir/ldc"
+
+mkdir -p build && cd build
+
+cmake \
+-DCMAKE_INSTALL_PREFIX=/usr \
+-DCMAKE_BUILD_TYPE=Release \
+-DCMAKE_SKIP_RPATH=ON \
+-DINCLUDE_INSTALL_DIR=/usr/include/dlang/ldc \
+-DBUILD_SHARED_LIBS=BOTH \
+-DBUILD_LTO_LIBS=ON \
+-DLDC_WITH_LLD=OFF \
+-DD_COMPILER_FLAGS="-link-defaultlib-shared=false -linker=gold -flto=full" 
\
+..
+make
+}
+
+check() {
+cd "$srcdir/ldc/build"
+make all-test-runners
+}
+
+package_ldc() {
+depends=('liblphobos' 'llvm6-libs' 'gcc' 'compiler-rt')
+backup=('etc/ldc2.conf')
+provides=("d-compiler=$_dversion")
+
+cd "$srcdir/ldc/build"
+make install DESTDIR="$pkgdir"
+
+# move bash-completion
+mkdir -p "$pkgdir/usr/share/bash-completion/completions/"
+mv "$pkgdir/etc/bash_completion.d/ldc2" 
"$pkgdir/usr/share/bash-completion/completions/"
+rm -rf "$pkgdir/etc/bash_completion.d"
+
+# remove liblphobos files
+rm -rf "$pkgdir/usr/include"
+rm -rf "$pkgdir/usr/lib"
+
+# symlinks
+ln -s /usr/share/bash-completion/completions/ldc2 
"$pkgdir/usr/share/bash-completion/completions/ldc"
+ln -s /usr/bin/ldc2 "$pkgdir/usr/bin/ldc"
+ln -s /usr/bin/ldmd2 "$pkgdir/usr/bin/ldmd"
+
+# licenses
+install -D -m644 "$srcdir/ldc/LICENSE" 
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+
+# default configuration files
+install -D -m644 "$srcdir/ldc2.conf" "$pkgdir/etc/ldc2.conf"
+}
+
+package_liblphobos() {
+provides=('d-runtime' 'd-stdlib')
+depends=('curl')
+options=('staticlibs')
+
+cd "$srcdir/ldc/build"
+make install DESTDIR="$pkgdir"
+
+# remove ldc files
+rm -rf "$pkgdir/usr/bin/"
+rm -rf "$pkgdir/etc/"
+
+# licenses
+install -D -m644 "$srcdir/ldc/LICENSE" 
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}

Copied: ldc/repos/community-staging-x86_64/ldc2.conf (from rev 387708, 
ldc/trunk/ldc2.conf)
===
--- community-staging-x86_64/ldc2.conf  (rev 0)
+++ community-staging-x86_64/ldc2.conf  2018-09-29 10:39:44 UTC (rev 387709)
@@ -0,0 +1,19 @@
+// See comments in driver/config.d in ldc source tree for grammar description 
of
+// this config file.
+
+// The default group is required
+default:
+{
+// default switches injected before all explicit command-line switches
+switches = [
+"-I/usr/include/dlang/ldc/ldc",
+"-I/usr/include/dlang/ldc",
+"-L--no-warn-search-mismatch",
+"-defaultlib=phobos2-ldc,druntime-ldc",
+"-link-defaultlib-shared"
+];
+// default switches appended after all explicit command-line 

[arch-commits] Commit in ldc/repos (3 files)

2018-09-29 Thread Evangelos Foutras via arch-commits
Date: Saturday, September 29, 2018 @ 10:22:54
  Author: foutrelis
Revision: 387707

archrelease: copy trunk to community-testing-x86_64

Added:
  ldc/repos/community-testing-x86_64/
  ldc/repos/community-testing-x86_64/PKGBUILD
(from rev 387706, ldc/trunk/PKGBUILD)
  ldc/repos/community-testing-x86_64/ldc2.conf
(from rev 387706, ldc/trunk/ldc2.conf)

---+
 PKGBUILD  |  112 
 ldc2.conf |   19 ++
 2 files changed, 131 insertions(+)

Copied: ldc/repos/community-testing-x86_64/PKGBUILD (from rev 387706, 
ldc/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2018-09-29 10:22:54 UTC (rev 387707)
@@ -0,0 +1,112 @@
+# Maintainer:
+# Contributor: Mihails Strasuns 
+# Contributor: Sven-Hendrik Haase 
+
+pkgname=('ldc' 'liblphobos')
+groups=('dlang' 'dlang-ldc')
+pkgver=1.11.0
+_pkgcommit=9bd4fb2df54a8d143d70329b5b923bf226dd1897
+_dversion=2.081.2
+_clangversion=6.0.1
+epoch=2
+pkgrel=2
+pkgdesc="A D Compiler based on the LLVM Compiler Infrastructure including D 
runtime and libphobos2"
+arch=('x86_64')
+url="https://github.com/ldc-developers/ldc;
+license=('BSD')
+makedepends=('git' 'cmake' 'llvm' 'ldc')
+
+source=(
+"git+https://github.com/ldc-developers/ldc#commit=$_pkgcommit;
+"git+https://github.com/ldc-developers/druntime.git;
+"git+https://github.com/ldc-developers/phobos.git;
+"git+https://github.com/ldc-developers/dmd-testsuite.git;
+"ldc2.conf"
+)
+
+sha256sums=('SKIP'
+'SKIP'
+'SKIP'
+'SKIP'
+'55ba34319db861a761797ac0075b0b1f5f4d37a243075aedb628aeedc77cc9d6')
+
+prepare() {
+cd "$srcdir/ldc"
+
+git submodule init
+git config submodule.druntime.url "$srcdir/druntime"
+git config submodule.phobos.url "$srcdir/phobos"
+git config submodule.tests/d2/dmd-testsuite.url "$srcdir/dmd-testsuite"
+git submodule update
+
+# Set version used for path construction in getFullClangCompilerRTLibPath()
+sed -i "s/ldc::llvm_version_base/\"$_clangversion\"/" driver/linker-gcc.cpp
+}
+
+build() {
+cd "$srcdir/ldc"
+
+mkdir -p build && cd build
+
+cmake \
+-DCMAKE_INSTALL_PREFIX=/usr \
+-DCMAKE_BUILD_TYPE=Release \
+-DCMAKE_SKIP_RPATH=ON \
+-DINCLUDE_INSTALL_DIR=/usr/include/dlang/ldc \
+-DBUILD_SHARED_LIBS=BOTH \
+-DBUILD_LTO_LIBS=ON \
+-DLDC_WITH_LLD=OFF \
+-DD_COMPILER_FLAGS="-link-defaultlib-shared=false -linker=gold -flto=full" 
\
+..
+make
+}
+
+check() {
+cd "$srcdir/ldc/build"
+make all-test-runners
+}
+
+package_ldc() {
+depends=('liblphobos' 'llvm-libs' 'gcc' 'compiler-rt')
+backup=('etc/ldc2.conf')
+provides=("d-compiler=$_dversion")
+
+cd "$srcdir/ldc/build"
+make install DESTDIR="$pkgdir"
+
+# move bash-completion
+mkdir -p "$pkgdir/usr/share/bash-completion/completions/"
+mv "$pkgdir/etc/bash_completion.d/ldc2" 
"$pkgdir/usr/share/bash-completion/completions/"
+rm -rf "$pkgdir/etc/bash_completion.d"
+
+# remove liblphobos files
+rm -rf "$pkgdir/usr/include"
+rm -rf "$pkgdir/usr/lib"
+
+# symlinks
+ln -s /usr/share/bash-completion/completions/ldc2 
"$pkgdir/usr/share/bash-completion/completions/ldc"
+ln -s /usr/bin/ldc2 "$pkgdir/usr/bin/ldc"
+ln -s /usr/bin/ldmd2 "$pkgdir/usr/bin/ldmd"
+
+# licenses
+install -D -m644 "$srcdir/ldc/LICENSE" 
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+
+# default configuration files
+install -D -m644 "$srcdir/ldc2.conf" "$pkgdir/etc/ldc2.conf"
+}
+
+package_liblphobos() {
+provides=('d-runtime' 'd-stdlib')
+depends=('curl')
+options=('staticlibs')
+
+cd "$srcdir/ldc/build"
+make install DESTDIR="$pkgdir"
+
+# remove ldc files
+rm -rf "$pkgdir/usr/bin/"
+rm -rf "$pkgdir/etc/"
+
+# licenses
+install -D -m644 "$srcdir/ldc/LICENSE" 
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}

Copied: ldc/repos/community-testing-x86_64/ldc2.conf (from rev 387706, 
ldc/trunk/ldc2.conf)
===
--- community-testing-x86_64/ldc2.conf  (rev 0)
+++ community-testing-x86_64/ldc2.conf  2018-09-29 10:22:54 UTC (rev 387707)
@@ -0,0 +1,19 @@
+// See comments in driver/config.d in ldc source tree for grammar description 
of
+// this config file.
+
+// The default group is required
+default:
+{
+// default switches injected before all explicit command-line switches
+switches = [
+"-I/usr/include/dlang/ldc/ldc",
+"-I/usr/include/dlang/ldc",
+"-L--no-warn-search-mismatch",
+"-defaultlib=phobos2-ldc,druntime-ldc",
+"-link-defaultlib-shared"
+];
+// default switches appended after all explicit command-line switches
+post-switches = [
+"-L-L/usr/lib"
+];

[arch-commits] Commit in ldc/repos (3 files)

2018-03-18 Thread Dan Printzell via arch-commits
Date: Sunday, March 18, 2018 @ 14:29:18
  Author: wild
Revision: 309047

archrelease: copy trunk to community-staging-x86_64

Added:
  ldc/repos/community-staging-x86_64/
  ldc/repos/community-staging-x86_64/PKGBUILD
(from rev 309046, ldc/trunk/PKGBUILD)
  ldc/repos/community-staging-x86_64/ldc2.conf
(from rev 309046, ldc/trunk/ldc2.conf)

---+
 PKGBUILD  |  111 
 ldc2.conf |   19 ++
 2 files changed, 130 insertions(+)

Copied: ldc/repos/community-staging-x86_64/PKGBUILD (from rev 309046, 
ldc/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-03-18 14:29:18 UTC (rev 309047)
@@ -0,0 +1,111 @@
+# $Id$
+# Maintainer:
+# Contributor: Mihails Strasuns 
+# Contributor: Sven-Hendrik Haase 
+
+pkgname=('ldc' 'liblphobos')
+groups=('dlang' 'dlang-ldc')
+pkgver=1.8.0
+_pkgcommit=df860d03c918f6988370d48f89c61c27ebbede74
+_dversion=2.078.3
+_llvmversion=6.0.0
+epoch=1
+pkgrel=2
+pkgdesc="A D Compiler based on the LLVM Compiler Infrastructure including D 
runtime and libphobos2"
+arch=('x86_64')
+url="https://github.com/ldc-developers/ldc;
+license=('BSD')
+makedepends=('git' 'cmake' 'llvm' 'ldc')
+
+source=(
+"git+https://github.com/ldc-developers/ldc#commit=$_pkgcommit;
+"git+https://github.com/ldc-developers/druntime.git;
+"git+https://github.com/ldc-developers/phobos.git;
+"git+https://github.com/ldc-developers/dmd-testsuite.git;
+"ldc2.conf"
+)
+
+sha256sums=('SKIP'
+'SKIP'
+'SKIP'
+'SKIP'
+'55ba34319db861a761797ac0075b0b1f5f4d37a243075aedb628aeedc77cc9d6')
+
+prepare() {
+cd "$srcdir/ldc"
+
+git submodule init
+git config submodule.druntime.url "$srcdir/druntime"
+git config submodule.phobos.url "$srcdir/phobos"
+git config submodule.tests/d2/dmd-testsuite.url "$srcdir/dmd-testsuite"
+git submodule update
+
+# libclang_rt* -> clang/_llvmversion/lib/linux/libclang_rt*
+sed -i "s/libclang_rt/clang\/$_llvmversion\/lib\/linux\/&/g" 
driver/linker-gcc.cpp
+}
+
+build() {
+cd "$srcdir/ldc"
+
+mkdir -p build && cd build
+
+cmake \
+-DCMAKE_INSTALL_PREFIX=/usr \
+-DCMAKE_BUILD_TYPE=Release \
+-DCMAKE_SKIP_RPATH=ON \
+-DINCLUDE_INSTALL_DIR=/usr/include/dlang/ldc \
+-DBUILD_SHARED_LIBS=BOTH \
+-DLDC_WITH_LLD=OFF \
+..
+make
+}
+
+check() {
+cd "$srcdir/ldc/build"
+   make all-test-runners
+}
+
+package_ldc() {
+depends=('liblphobos' 'llvm-libs' 'llvm' 'clang')
+backup=('etc/ldc2.conf')
+provides=("d-compiler=$_dversion")
+
+cd "$srcdir/ldc/build"
+make install DESTDIR="$pkgdir"
+
+# move bash-completion
+mkdir -p "$pkgdir/usr/share/bash-completion/completions/"
+mv "$pkgdir/etc/bash_completion.d/ldc2" 
"$pkgdir/usr/share/bash-completion/completions/"
+rm -rf "$pkgdir/etc/bash_completion.d"
+
+# remove liblphobos files
+rm -rf "$pkgdir/usr/include"
+rm -rf "$pkgdir/usr/lib"
+
+# symlinks
+ln -s /usr/share/bash-completion/completions/ldc2 
"$pkgdir/usr/share/bash-completion/completions/ldc"
+ln -s /usr/bin/ldc2 "$pkgdir/usr/bin/ldc"
+ln -s /usr/bin/ldmd2 "$pkgdir/usr/bin/ldmd"
+
+# licenses
+install -D -m644 "$srcdir/ldc/LICENSE" 
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+
+# default configuration files
+install -D -m644 "$srcdir/ldc2.conf" "$pkgdir/etc/ldc2.conf"
+}
+
+package_liblphobos() {
+provides=('d-runtime' 'd-stdlib')
+depends=('curl')
+options=('staticlibs')
+
+cd "$srcdir/ldc/build"
+make install DESTDIR="$pkgdir"
+
+# remove ldc files
+rm -rf "$pkgdir/usr/bin/"
+rm -rf "$pkgdir/etc/"
+
+# licenses
+install -D -m644 "$srcdir/ldc/LICENSE" 
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}

Copied: ldc/repos/community-staging-x86_64/ldc2.conf (from rev 309046, 
ldc/trunk/ldc2.conf)
===
--- community-staging-x86_64/ldc2.conf  (rev 0)
+++ community-staging-x86_64/ldc2.conf  2018-03-18 14:29:18 UTC (rev 309047)
@@ -0,0 +1,19 @@
+// See comments in driver/config.d in ldc source tree for grammar description 
of
+// this config file.
+
+// The default group is required
+default:
+{
+// default switches injected before all explicit command-line switches
+switches = [
+"-I/usr/include/dlang/ldc/ldc",
+"-I/usr/include/dlang/ldc",
+"-L--no-warn-search-mismatch",
+"-defaultlib=phobos2-ldc,druntime-ldc",
+"-link-defaultlib-shared"
+];
+// default switches appended after all explicit command-line switches
+post-switches = [
+"-L-L/usr/lib"
+];
+};


[arch-commits] Commit in ldc/repos (3 files)

2018-03-18 Thread Dan Printzell via arch-commits
Date: Sunday, March 18, 2018 @ 14:23:17
  Author: wild
Revision: 309046

archrelease: copy trunk to staging-x86_64

Added:
  ldc/repos/staging-x86_64/
  ldc/repos/staging-x86_64/PKGBUILD
(from rev 309045, ldc/trunk/PKGBUILD)
  ldc/repos/staging-x86_64/ldc2.conf
(from rev 309045, ldc/trunk/ldc2.conf)

---+
 PKGBUILD  |  111 
 ldc2.conf |   19 ++
 2 files changed, 130 insertions(+)

Copied: ldc/repos/staging-x86_64/PKGBUILD (from rev 309045, ldc/trunk/PKGBUILD)
===
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2018-03-18 14:23:17 UTC (rev 309046)
@@ -0,0 +1,111 @@
+# $Id$
+# Maintainer:
+# Contributor: Mihails Strasuns 
+# Contributor: Sven-Hendrik Haase 
+
+pkgname=('ldc' 'liblphobos')
+groups=('dlang' 'dlang-ldc')
+pkgver=1.8.0
+_pkgcommit=df860d03c918f6988370d48f89c61c27ebbede74
+_dversion=2.078.3
+_llvmversion=6.0.0
+epoch=1
+pkgrel=2
+pkgdesc="A D Compiler based on the LLVM Compiler Infrastructure including D 
runtime and libphobos2"
+arch=('x86_64')
+url="https://github.com/ldc-developers/ldc;
+license=('BSD')
+makedepends=('git' 'cmake' 'llvm' 'ldc')
+
+source=(
+"git+https://github.com/ldc-developers/ldc#commit=$_pkgcommit;
+"git+https://github.com/ldc-developers/druntime.git;
+"git+https://github.com/ldc-developers/phobos.git;
+"git+https://github.com/ldc-developers/dmd-testsuite.git;
+"ldc2.conf"
+)
+
+sha256sums=('SKIP'
+'SKIP'
+'SKIP'
+'SKIP'
+'55ba34319db861a761797ac0075b0b1f5f4d37a243075aedb628aeedc77cc9d6')
+
+prepare() {
+cd "$srcdir/ldc"
+
+git submodule init
+git config submodule.druntime.url "$srcdir/druntime"
+git config submodule.phobos.url "$srcdir/phobos"
+git config submodule.tests/d2/dmd-testsuite.url "$srcdir/dmd-testsuite"
+git submodule update
+
+# libclang_rt* -> clang/_llvmversion/lib/linux/libclang_rt*
+sed -i "s/libclang_rt/clang\/$_llvmversion\/lib\/linux\/&/g" 
driver/linker-gcc.cpp
+}
+
+build() {
+cd "$srcdir/ldc"
+
+mkdir -p build && cd build
+
+cmake \
+-DCMAKE_INSTALL_PREFIX=/usr \
+-DCMAKE_BUILD_TYPE=Release \
+-DCMAKE_SKIP_RPATH=ON \
+-DINCLUDE_INSTALL_DIR=/usr/include/dlang/ldc \
+-DBUILD_SHARED_LIBS=BOTH \
+-DLDC_WITH_LLD=OFF \
+..
+make
+}
+
+check() {
+cd "$srcdir/ldc/build"
+   make all-test-runners
+}
+
+package_ldc() {
+depends=('liblphobos' 'llvm-libs' 'llvm' 'clang')
+backup=('etc/ldc2.conf')
+provides=("d-compiler=$_dversion")
+
+cd "$srcdir/ldc/build"
+make install DESTDIR="$pkgdir"
+
+# move bash-completion
+mkdir -p "$pkgdir/usr/share/bash-completion/completions/"
+mv "$pkgdir/etc/bash_completion.d/ldc2" 
"$pkgdir/usr/share/bash-completion/completions/"
+rm -rf "$pkgdir/etc/bash_completion.d"
+
+# remove liblphobos files
+rm -rf "$pkgdir/usr/include"
+rm -rf "$pkgdir/usr/lib"
+
+# symlinks
+ln -s /usr/share/bash-completion/completions/ldc2 
"$pkgdir/usr/share/bash-completion/completions/ldc"
+ln -s /usr/bin/ldc2 "$pkgdir/usr/bin/ldc"
+ln -s /usr/bin/ldmd2 "$pkgdir/usr/bin/ldmd"
+
+# licenses
+install -D -m644 "$srcdir/ldc/LICENSE" 
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+
+# default configuration files
+install -D -m644 "$srcdir/ldc2.conf" "$pkgdir/etc/ldc2.conf"
+}
+
+package_liblphobos() {
+provides=('d-runtime' 'd-stdlib')
+depends=('curl')
+options=('staticlibs')
+
+cd "$srcdir/ldc/build"
+make install DESTDIR="$pkgdir"
+
+# remove ldc files
+rm -rf "$pkgdir/usr/bin/"
+rm -rf "$pkgdir/etc/"
+
+# licenses
+install -D -m644 "$srcdir/ldc/LICENSE" 
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}

Copied: ldc/repos/staging-x86_64/ldc2.conf (from rev 309045, 
ldc/trunk/ldc2.conf)
===
--- staging-x86_64/ldc2.conf(rev 0)
+++ staging-x86_64/ldc2.conf2018-03-18 14:23:17 UTC (rev 309046)
@@ -0,0 +1,19 @@
+// See comments in driver/config.d in ldc source tree for grammar description 
of
+// this config file.
+
+// The default group is required
+default:
+{
+// default switches injected before all explicit command-line switches
+switches = [
+"-I/usr/include/dlang/ldc/ldc",
+"-I/usr/include/dlang/ldc",
+"-L--no-warn-search-mismatch",
+"-defaultlib=phobos2-ldc,druntime-ldc",
+"-link-defaultlib-shared"
+];
+// default switches appended after all explicit command-line switches
+post-switches = [
+"-L-L/usr/lib"
+];
+};


[arch-commits] Commit in ldc/repos (3 files)

2017-09-11 Thread Dan Printzell
Date: Monday, September 11, 2017 @ 22:27:56
  Author: wild
Revision: 257065

archrelease: copy trunk to community-staging-x86_64

Added:
  ldc/repos/community-staging-x86_64/
  ldc/repos/community-staging-x86_64/PKGBUILD
(from rev 257064, ldc/trunk/PKGBUILD)
  ldc/repos/community-staging-x86_64/ldc2.conf
(from rev 257064, ldc/trunk/ldc2.conf)

---+
 PKGBUILD  |  104 
 ldc2.conf |   22 
 2 files changed, 126 insertions(+)

Copied: ldc/repos/community-staging-x86_64/PKGBUILD (from rev 257064, 
ldc/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2017-09-11 22:27:56 UTC (rev 257065)
@@ -0,0 +1,104 @@
+# $Id$
+# Maintainer:
+# Contributor: Mihails Strasuns 
+# Contributor: Sven-Hendrik Haase 
+
+pkgname=('ldc' 'liblphobos')
+groups=('dlang' 'dlang-ldc')
+pkgver=1.4.0
+_pkgcommit=5a79ff6abc882dd076d1a862911de288cc4ae3cd
+epoch=1
+pkgrel=1
+pkgdesc="A D Compiler based on the LLVM Compiler Infrastructure including D 
runtime and libphobos2"
+arch=('x86_64')
+url="https://github.com/ldc-developers/ldc;
+license=('BSD')
+makedepends=('git' 'cmake' 'llvm' 'dmd')
+
+source=(
+"git+https://github.com/ldc-developers/ldc#commit=$_pkgcommit;
+   "git+https://github.com/ldc-developers/druntime.git;
+   "git+https://github.com/ldc-developers/phobos.git;
+   "git+https://github.com/ldc-developers/dmd-testsuite.git;
+"ldc2.conf"
+)
+
+sha256sums=('SKIP'
+'SKIP'
+'SKIP'
+'SKIP'
+'266c1888da29715b277c2f56090b2e6dbb7531499f3434fe60938d6ad01705ae')
+
+prepare() {
+   cd "$srcdir/ldc"
+
+   git submodule init
+   git config submodule.druntime.url "$srcdir/druntime"
+   git config submodule.phobos.url "$srcdir/phobos"
+   git config submodule.tests/d2/dmd-testsuite.url "$srcdir/dmd-testsuite"
+   git submodule update
+}
+
+build() {
+mkdir -p "$srcdir/tmp_install_dir"
+cd "$srcdir/ldc"
+
+mkdir -p build && cd build
+
+# workaround for wrong ld flag format generated by cmake:
+export LDFLAGS="-L-O1 -L--sort-common -L--as-needed -L-z -Lrelro"
+
+cmake \
+-DCMAKE_INSTALL_PREFIX=/usr \
+-DCMAKE_BUILD_TYPE=Release \
+-DCMAKE_SKIP_RPATH=ON \
+-DINCLUDE_INSTALL_DIR=/usr/include/dlang/ldc \
+-DBUILD_SHARED_LIBS=ON \
+   -DLDC_WITH_LLD=OFF \
+..
+make
+make install DESTDIR="$srcdir/tmp_install_dir"
+}
+
+package_ldc() {
+depends=('liblphobos' 'llvm-libs')
+backup=('etc/ldc2.conf')
+provides=('d-compiler')
+
+cd "$srcdir/tmp_install_dir"
+
+# binaries
+install -D -m755 ./usr/bin/ldmd2 "$pkgdir/usr/bin/ldmd"
+ln -s /usr/bin/ldmd "$pkgdir/usr/bin/ldmd2"
+install -D -m755 ./usr/bin/ldc2 "$pkgdir/usr/bin/ldc"
+ln -s /usr/bin/ldc "$pkgdir/usr/bin/ldc2"
+
+# supplementaries
+install -D -m644 "$srcdir/ldc/bash_completion.d/ldc2" 
"$pkgdir/usr/share/bash-completion/completions/ldc"
+
+# licenses
+install -D -m644 "$srcdir/ldc/LICENSE" 
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+
+# default configuration files
+install -D -m644 "$srcdir/ldc2.conf" "$pkgdir/etc/ldc2.conf"
+}
+
+package_liblphobos() {
+provides=('d-runtime' 'd-stdlib')
+depends=('curl')
+
+# licenses
+install -D -m644 "$srcdir/ldc/LICENSE" 
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+
+cd "$srcdir/tmp_install_dir"
+
+# libraries
+install -D -m644 ./usr/lib/libphobos2-ldc.so 
"$pkgdir/usr/lib/liblphobos2.so"
+install -D -m644 ./usr/lib/libdruntime-ldc.so 
"$pkgdir/usr/lib/libldruntime.so"
+install -D -m644 ./usr/lib/libphobos2-ldc-debug.so 
"$pkgdir/usr/lib/liblphobos2-debug.so"
+install -D -m644 ./usr/lib/libdruntime-ldc-debug.so 
"$pkgdir/usr/lib/libldruntime-debug.so"
+
+# imports
+mkdir -p "$pkgdir/usr/include/dlang"
+cp -r "./usr/include/dlang/ldc" "$pkgdir/usr/include/dlang/ldc"
+}

Copied: ldc/repos/community-staging-x86_64/ldc2.conf (from rev 257064, 
ldc/trunk/ldc2.conf)
===
--- community-staging-x86_64/ldc2.conf  (rev 0)
+++ community-staging-x86_64/ldc2.conf  2017-09-11 22:27:56 UTC (rev 257065)
@@ -0,0 +1,22 @@
+// See comments in driver/config.d in ldc source tree for grammar description 
of
+// this config file.
+
+// The default group is required
+default:
+{
+// default switches injected before all explicit command-line switches
+switches = [
+"-I/usr/include/dlang/ldc/ldc",
+"-I/usr/include/dlang/ldc",
+"-L-L/usr/lib",
+"-L-L/usr/lib32",
+"-L--no-warn-search-mismatch",
+"-defaultlib=lphobos2,ldruntime",
+"-debuglib=lphobos2-debug,ldruntime-debug"
+  

[arch-commits] Commit in ldc/repos (3 files)

2017-09-11 Thread Dan Printzell
Date: Monday, September 11, 2017 @ 22:23:27
  Author: wild
Revision: 257063

archrelease: copy trunk to staging-x86_64

Added:
  ldc/repos/staging-x86_64/
  ldc/repos/staging-x86_64/PKGBUILD
(from rev 257062, ldc/trunk/PKGBUILD)
  ldc/repos/staging-x86_64/ldc2.conf
(from rev 257062, ldc/trunk/ldc2.conf)

---+
 PKGBUILD  |  104 
 ldc2.conf |   22 
 2 files changed, 126 insertions(+)

Copied: ldc/repos/staging-x86_64/PKGBUILD (from rev 257062, ldc/trunk/PKGBUILD)
===
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2017-09-11 22:23:27 UTC (rev 257063)
@@ -0,0 +1,104 @@
+# $Id$
+# Maintainer:
+# Contributor: Mihails Strasuns 
+# Contributor: Sven-Hendrik Haase 
+
+pkgname=('ldc' 'liblphobos')
+groups=('dlang' 'dlang-ldc')
+pkgver=1.4.0
+_pkgcommit=5a79ff6abc882dd076d1a862911de288cc4ae3cd
+epoch=1
+pkgrel=1
+pkgdesc="A D Compiler based on the LLVM Compiler Infrastructure including D 
runtime and libphobos2"
+arch=('x86_64')
+url="https://github.com/ldc-developers/ldc;
+license=('BSD')
+makedepends=('git' 'cmake' 'llvm' 'dmd')
+
+source=(
+"git+https://github.com/ldc-developers/ldc#commit=$_pkgcommit;
+   "git+https://github.com/ldc-developers/druntime.git;
+   "git+https://github.com/ldc-developers/phobos.git;
+   "git+https://github.com/ldc-developers/dmd-testsuite.git;
+"ldc2.conf"
+)
+
+sha256sums=('SKIP'
+'SKIP'
+'SKIP'
+'SKIP'
+'266c1888da29715b277c2f56090b2e6dbb7531499f3434fe60938d6ad01705ae')
+
+prepare() {
+   cd "$srcdir/ldc"
+
+   git submodule init
+   git config submodule.druntime.url "$srcdir/druntime"
+   git config submodule.phobos.url "$srcdir/phobos"
+   git config submodule.tests/d2/dmd-testsuite.url "$srcdir/dmd-testsuite"
+   git submodule update
+}
+
+build() {
+mkdir -p "$srcdir/tmp_install_dir"
+cd "$srcdir/ldc"
+
+mkdir -p build && cd build
+
+# workaround for wrong ld flag format generated by cmake:
+export LDFLAGS="-L-O1 -L--sort-common -L--as-needed -L-z -Lrelro"
+
+cmake \
+-DCMAKE_INSTALL_PREFIX=/usr \
+-DCMAKE_BUILD_TYPE=Release \
+-DCMAKE_SKIP_RPATH=ON \
+-DINCLUDE_INSTALL_DIR=/usr/include/dlang/ldc \
+-DBUILD_SHARED_LIBS=ON \
+   -DLDC_WITH_LLD=OFF \
+..
+make
+make install DESTDIR="$srcdir/tmp_install_dir"
+}
+
+package_ldc() {
+depends=('liblphobos' 'llvm-libs')
+backup=('etc/ldc2.conf')
+provides=('d-compiler')
+
+cd "$srcdir/tmp_install_dir"
+
+# binaries
+install -D -m755 ./usr/bin/ldmd2 "$pkgdir/usr/bin/ldmd"
+ln -s /usr/bin/ldmd "$pkgdir/usr/bin/ldmd2"
+install -D -m755 ./usr/bin/ldc2 "$pkgdir/usr/bin/ldc"
+ln -s /usr/bin/ldc "$pkgdir/usr/bin/ldc2"
+
+# supplementaries
+install -D -m644 "$srcdir/ldc/bash_completion.d/ldc2" 
"$pkgdir/usr/share/bash-completion/completions/ldc"
+
+# licenses
+install -D -m644 "$srcdir/ldc/LICENSE" 
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+
+# default configuration files
+install -D -m644 "$srcdir/ldc2.conf" "$pkgdir/etc/ldc2.conf"
+}
+
+package_liblphobos() {
+provides=('d-runtime' 'd-stdlib')
+depends=('curl')
+
+# licenses
+install -D -m644 "$srcdir/ldc/LICENSE" 
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+
+cd "$srcdir/tmp_install_dir"
+
+# libraries
+install -D -m644 ./usr/lib/libphobos2-ldc.so 
"$pkgdir/usr/lib/liblphobos2.so"
+install -D -m644 ./usr/lib/libdruntime-ldc.so 
"$pkgdir/usr/lib/libldruntime.so"
+install -D -m644 ./usr/lib/libphobos2-ldc-debug.so 
"$pkgdir/usr/lib/liblphobos2-debug.so"
+install -D -m644 ./usr/lib/libdruntime-ldc-debug.so 
"$pkgdir/usr/lib/libldruntime-debug.so"
+
+# imports
+mkdir -p "$pkgdir/usr/include/dlang"
+cp -r "./usr/include/dlang/ldc" "$pkgdir/usr/include/dlang/ldc"
+}

Copied: ldc/repos/staging-x86_64/ldc2.conf (from rev 257062, 
ldc/trunk/ldc2.conf)
===
--- staging-x86_64/ldc2.conf(rev 0)
+++ staging-x86_64/ldc2.conf2017-09-11 22:23:27 UTC (rev 257063)
@@ -0,0 +1,22 @@
+// See comments in driver/config.d in ldc source tree for grammar description 
of
+// this config file.
+
+// The default group is required
+default:
+{
+// default switches injected before all explicit command-line switches
+switches = [
+"-I/usr/include/dlang/ldc/ldc",
+"-I/usr/include/dlang/ldc",
+"-L-L/usr/lib",
+"-L-L/usr/lib32",
+"-L--no-warn-search-mismatch",
+"-defaultlib=lphobos2,ldruntime",
+"-debuglib=lphobos2-debug,ldruntime-debug"
+];
+// default switches appended after all explicit command-line switches
+