[arch-commits] Commit in ldc/trunk (PKGBUILD ldc2.conf)
Date: Saturday, April 13, 2019 @ 17:00:14 Author: wild Revision: 451437 upgpkg: ldc 2:1.15.0-1 Updated to 1.15.0 Modified: ldc/trunk/PKGBUILD Deleted: ldc/trunk/ldc2.conf ---+ PKGBUILD | 20 ldc2.conf | 19 --- 2 files changed, 8 insertions(+), 31 deletions(-) Modified: PKGBUILD === --- PKGBUILD2019-04-13 16:54:07 UTC (rev 451436) +++ PKGBUILD2019-04-13 17:00:14 UTC (rev 451437) @@ -4,17 +4,17 @@ pkgname=('ldc' 'liblphobos') groups=('dlang' 'dlang-ldc') -pkgver=1.14.0 -_pkgcommit=e319c790f574d630ab0b930b980cfc1120ebe1d8 -_dversion=2.084.1 +pkgver=1.15.0 +_pkgcommit=766add462e980f8bab9934fcbf8659a6595f7944 +_dversion=2.085.1 _clangversion=8.0.0 # related to where ldc2 looks for compiler-rt sanitizers epoch=2 -pkgrel=2 +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' 'llvm7' 'ldc') +makedepends=('git' 'cmake' 'llvm' 'ldc') source=( "git+https://github.com/ldc-developers/ldc#commit=$_pkgcommit; @@ -21,14 +21,12 @@ "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') +'SKIP') prepare() { cd "$srcdir/ldc" @@ -57,6 +55,7 @@ -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 } @@ -67,7 +66,7 @@ } package_ldc() { -depends=('liblphobos' 'llvm7-libs' 'gcc' 'compiler-rt') +depends=('liblphobos' 'llvm-libs' 'gcc' 'compiler-rt') backup=('etc/ldc2.conf') provides=("d-compiler=$_dversion") @@ -90,9 +89,6 @@ # 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() { Deleted: ldc2.conf === --- ldc2.conf 2019-04-13 16:54:07 UTC (rev 451436) +++ ldc2.conf 2019-04-13 17:00:14 UTC (rev 451437) @@ -1,19 +0,0 @@ -// 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/trunk (PKGBUILD ldc2.conf)
Date: Thursday, September 6, 2018 @ 00:17:58 Author: ffy00 Revision: 377195 Remove -L--export-dynamic from ldc2.conf Modified: ldc/trunk/PKGBUILD ldc/trunk/ldc2.conf ---+ PKGBUILD |4 ++-- ldc2.conf |1 - 2 files changed, 2 insertions(+), 3 deletions(-) Modified: PKGBUILD === --- PKGBUILD2018-09-05 23:26:03 UTC (rev 377194) +++ PKGBUILD2018-09-06 00:17:58 UTC (rev 377195) @@ -9,7 +9,7 @@ _pkgcommit=9bd4fb2df54a8d143d70329b5b923bf226dd1897 _dversion=2.081.2 _llvmversion=6.0.1 -epoch=1 +epoch=2 pkgrel=1 pkgdesc="A D Compiler based on the LLVM Compiler Infrastructure including D runtime and libphobos2" arch=('x86_64') @@ -29,7 +29,7 @@ 'SKIP' 'SKIP' 'SKIP' -'5af2d8fd3f1224e4d4d0eda8bf88e9b2423e4860cf21e349f23265731022f5c5') +'55ba34319db861a761797ac0075b0b1f5f4d37a243075aedb628aeedc77cc9d6') prepare() { cd "$srcdir/ldc" Modified: ldc2.conf === --- ldc2.conf 2018-09-05 23:26:03 UTC (rev 377194) +++ ldc2.conf 2018-09-06 00:17:58 UTC (rev 377195) @@ -9,7 +9,6 @@ "-I/usr/include/dlang/ldc/ldc", "-I/usr/include/dlang/ldc", "-L--no-warn-search-mismatch", -"-L--export-dynamic", "-defaultlib=phobos2-ldc,druntime-ldc", "-link-defaultlib-shared" ];
[arch-commits] Commit in ldc/trunk (PKGBUILD ldc2.conf)
Date: Monday, April 16, 2018 @ 20:54:47 Author: wild Revision: 316564 upgpkg: ldc 1:1.8.0-3 Added '-L--export-dynamic' to ldc2.conf to match dmd's config Modified: ldc/trunk/PKGBUILD ldc/trunk/ldc2.conf ---+ PKGBUILD |4 ++-- ldc2.conf |1 + 2 files changed, 3 insertions(+), 2 deletions(-) Modified: PKGBUILD === --- PKGBUILD2018-04-16 20:51:18 UTC (rev 316563) +++ PKGBUILD2018-04-16 20:54:47 UTC (rev 316564) @@ -10,7 +10,7 @@ _dversion=2.078.3 _llvmversion=6.0.0 epoch=1 -pkgrel=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; @@ -29,7 +29,7 @@ 'SKIP' 'SKIP' 'SKIP' -'55ba34319db861a761797ac0075b0b1f5f4d37a243075aedb628aeedc77cc9d6') +'5af2d8fd3f1224e4d4d0eda8bf88e9b2423e4860cf21e349f23265731022f5c5') prepare() { cd "$srcdir/ldc" Modified: ldc2.conf === --- ldc2.conf 2018-04-16 20:51:18 UTC (rev 316563) +++ ldc2.conf 2018-04-16 20:54:47 UTC (rev 316564) @@ -9,6 +9,7 @@ "-I/usr/include/dlang/ldc/ldc", "-I/usr/include/dlang/ldc", "-L--no-warn-search-mismatch", +"-L--export-dynamic", "-defaultlib=phobos2-ldc,druntime-ldc", "-link-defaultlib-shared" ];
[arch-commits] Commit in ldc/trunk (PKGBUILD ldc2.conf)
Date: Sunday, March 18, 2018 @ 14:23:09 Author: wild Revision: 309045 upgpkg: ldc 1:1.8.0-2 Staging release for LLVM 6.0, also added check() Modified: ldc/trunk/PKGBUILD ldc/trunk/ldc2.conf ---+ PKGBUILD | 13 + ldc2.conf |3 +-- 2 files changed, 10 insertions(+), 6 deletions(-) Modified: PKGBUILD === --- PKGBUILD2018-03-18 13:17:15 UTC (rev 309044) +++ PKGBUILD2018-03-18 14:23:09 UTC (rev 309045) @@ -8,9 +8,9 @@ pkgver=1.8.0 _pkgcommit=df860d03c918f6988370d48f89c61c27ebbede74 _dversion=2.078.3 -_llvmversion=5.0.1 +_llvmversion=6.0.0 epoch=1 -pkgrel=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; @@ -29,7 +29,7 @@ 'SKIP' 'SKIP' 'SKIP' -'d4008223bca1071d2b319cd7d337a31008c79602dfefc3bd2e0ab8dc141f3b56') +'55ba34319db861a761797ac0075b0b1f5f4d37a243075aedb628aeedc77cc9d6') prepare() { cd "$srcdir/ldc" @@ -60,8 +60,13 @@ make } +check() { +cd "$srcdir/ldc/build" + make all-test-runners +} + package_ldc() { -depends=('liblphobos' 'llvm-libs' 'llvm') +depends=('liblphobos' 'llvm-libs' 'llvm' 'clang') backup=('etc/ldc2.conf') provides=("d-compiler=$_dversion") Modified: ldc2.conf === --- ldc2.conf 2018-03-18 13:17:15 UTC (rev 309044) +++ ldc2.conf 2018-03-18 14:23:09 UTC (rev 309045) @@ -14,7 +14,6 @@ ]; // default switches appended after all explicit command-line switches post-switches = [ -"-L-L/usr/lib", -"-L-L/usr/lib/clang/5.0.1/lib/linux/" +"-L-L/usr/lib" ]; };
[arch-commits] Commit in ldc/trunk (PKGBUILD ldc2.conf)
Date: Tuesday, March 6, 2018 @ 21:30:59 Author: wild Revision: 303309 upgpkg: ldc 1:1.8.0-1 Updated to 1.8.0 Modified: ldc/trunk/PKGBUILD ldc/trunk/ldc2.conf ---+ PKGBUILD | 13 + ldc2.conf |3 ++- 2 files changed, 7 insertions(+), 9 deletions(-) Modified: PKGBUILD === --- PKGBUILD2018-03-06 21:26:07 UTC (rev 303308) +++ PKGBUILD2018-03-06 21:30:59 UTC (rev 303309) @@ -5,12 +5,12 @@ pkgname=('ldc' 'liblphobos') groups=('dlang' 'dlang-ldc') -pkgver=1.7.0 -_pkgcommit=b0b5bed08bc3e05f41ab31e5c72e56624ee63115 -_dversion=2.077.1 +pkgver=1.8.0 +_pkgcommit=df860d03c918f6988370d48f89c61c27ebbede74 +_dversion=2.078.3 _llvmversion=5.0.1 epoch=1 -pkgrel=2 +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; @@ -29,7 +29,7 @@ 'SKIP' 'SKIP' 'SKIP' -'42e540f15f0d2c561a9c576903e0e84b8cd5274aa9679364b5cf211ddd1b12df') +'d4008223bca1071d2b319cd7d337a31008c79602dfefc3bd2e0ab8dc141f3b56') prepare() { cd "$srcdir/ldc" @@ -49,9 +49,6 @@ 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 \ Modified: ldc2.conf === --- ldc2.conf 2018-03-06 21:26:07 UTC (rev 303308) +++ ldc2.conf 2018-03-06 21:30:59 UTC (rev 303309) @@ -10,10 +10,11 @@ "-I/usr/include/dlang/ldc", "-L--no-warn-search-mismatch", "-defaultlib=phobos2-ldc,druntime-ldc", -"-debuglib=phobos2-ldc-debug,druntime-ldc-debug" +"-link-defaultlib-shared" ]; // default switches appended after all explicit command-line switches post-switches = [ "-L-L/usr/lib", +"-L-L/usr/lib/clang/5.0.1/lib/linux/" ]; };
[arch-commits] Commit in ldc/trunk (PKGBUILD ldc2.conf)
Date: Tuesday, October 31, 2017 @ 00:41:58 Author: wild Revision: 264829 upgpkg: ldc 1:1.5.0-1 Updated to 1.5.0 and made PKGBUILD better (fixes FS#55692) Modified: ldc/trunk/PKGBUILD ldc/trunk/ldc2.conf ---+ PKGBUILD | 74 ++-- ldc2.conf |7 + 2 files changed, 40 insertions(+), 41 deletions(-) Modified: PKGBUILD === --- PKGBUILD2017-10-30 22:31:17 UTC (rev 264828) +++ PKGBUILD2017-10-31 00:41:58 UTC (rev 264829) @@ -5,8 +5,8 @@ pkgname=('ldc' 'liblphobos') groups=('dlang' 'dlang-ldc') -pkgver=1.4.0 -_pkgcommit=5a79ff6abc882dd076d1a862911de288cc4ae3cd +pkgver=1.5.0 +_pkgcommit=8f4027fa0019adcf916d5178dd919d51b3f9121f epoch=1 pkgrel=1 pkgdesc="A D Compiler based on the LLVM Compiler Infrastructure including D runtime and libphobos2" @@ -17,9 +17,9 @@ 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; +"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" ) @@ -27,26 +27,25 @@ 'SKIP' 'SKIP' 'SKIP' -'266c1888da29715b277c2f56090b2e6dbb7531499f3434fe60938d6ad01705ae') +'42e540f15f0d2c561a9c576903e0e84b8cd5274aa9679364b5cf211ddd1b12df') prepare() { - cd "$srcdir/ldc" +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 +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" +# export LDFLAGS="-L-O1 -L--sort-common -L--as-needed -L-z -Lrelro" cmake \ -DCMAKE_INSTALL_PREFIX=/usr \ @@ -54,10 +53,9 @@ -DCMAKE_SKIP_RPATH=ON \ -DINCLUDE_INSTALL_DIR=/usr/include/dlang/ldc \ -DBUILD_SHARED_LIBS=ON \ - -DLDC_WITH_LLD=OFF \ +-DLDC_WITH_LLD=OFF \ .. make -make install DESTDIR="$srcdir/tmp_install_dir" } package_ldc() { @@ -65,17 +63,26 @@ backup=('etc/ldc2.conf') provides=('d-compiler') -cd "$srcdir/tmp_install_dir" +cd "$srcdir/ldc/build" +make install DESTDIR="$pkgdir" -# 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" +# 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" -# supplementaries -install -D -m644 "$srcdir/ldc/bash_completion.d/ldc2" "$pkgdir/usr/share/bash-completion/completions/ldc" +# remove liblphobos files +rm -rf "$pkgdir/usr/include" +rm -rf "$pkgdir/usr/lib" +# remove misc +rm -rf "$pkgdir/usr/bin/ldc-build-runtime" + +# 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" @@ -87,18 +94,13 @@ provides=('d-runtime' 'd-stdlib') depends=('curl') +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" - -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
[arch-commits] Commit in ldc/trunk (PKGBUILD ldc2.conf)
Date: Monday, September 11, 2017 @ 22:23:18 Author: wild Revision: 257062 upgpkg: ldc 1:1.4.0-1 Updated to version 1.4.0, needs llvm 5.0 Modified: ldc/trunk/PKGBUILD ldc/trunk/ldc2.conf ---+ PKGBUILD | 78 ++-- ldc2.conf | 14 ++ 2 files changed, 59 insertions(+), 33 deletions(-) Modified: PKGBUILD === --- PKGBUILD2017-09-11 22:21:37 UTC (rev 257061) +++ PKGBUILD2017-09-11 22:23:18 UTC (rev 257062) @@ -2,25 +2,46 @@ # Maintainer: # Contributor: Mihails Strasuns# Contributor: Sven-Hendrik Haase + pkgname=('ldc' 'liblphobos') groups=('dlang' 'dlang-ldc') -pkgver=1.3.0 +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=('i686' 'x86_64') +arch=('x86_64') url="https://github.com/ldc-developers/ldc; license=('BSD') -makedepends=('cmake' 'llvm' 'dmd') -source=("https://github.com/ldc-developers/ldc/releases/download/v$pkgver/ldc-$pkgver-src.tar.gz; -"ldc2.conf" - ) -sha256sums=('efe31a639bcb44e1f5b752da21713376d9410a01279fecc8aab8572065a3050b' -'2ef3b1090e25187305f18ce6fbbbc45527dcbb33570afbe30e177790813948db') +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 ldc-$pkgver-src +mkdir -p "$srcdir/tmp_install_dir" +cd "$srcdir/ldc" mkdir -p build && cd build @@ -33,9 +54,10 @@ -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 +make +make install DESTDIR="$srcdir/tmp_install_dir" } package_ldc() { @@ -43,22 +65,22 @@ backup=('etc/ldc2.conf') provides=('d-compiler') -cd tmp_install_dir +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 +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-$pkgver-src/bash_completion.d/ldc2 $pkgdir/usr/share/bash-completion/completions/ldc +install -D -m644 "$srcdir/ldc/bash_completion.d/ldc2" "$pkgdir/usr/share/bash-completion/completions/ldc" # licenses -install -D -m644 $srcdir/ldc-$pkgver-src/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE +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 +install -D -m644 "$srcdir/ldc2.conf" "$pkgdir/etc/ldc2.conf" } package_liblphobos() { @@ -66,17 +88,17 @@ depends=('curl') # licenses -install -D -m644 $srcdir/ldc-$pkgver-src/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE +install -D -m644 "$srcdir/ldc/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" -cd tmp_install_dir +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 +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
[arch-commits] Commit in ldc/trunk (PKGBUILD ldc2.conf ldc2.rebuild.conf)
Date: Friday, August 15, 2014 @ 17:37:08 Author: dicebot Revision: 117440 upgpkg: ldc 1:0.14.0-1 LDC 0.14.0 release, with FE 2.065 Modified: ldc/trunk/PKGBUILD ldc/trunk/ldc2.conf ldc/trunk/ldc2.rebuild.conf ---+ PKGBUILD | 18 +++--- ldc2.conf |4 ++-- ldc2.rebuild.conf |2 +- 3 files changed, 14 insertions(+), 10 deletions(-) Modified: PKGBUILD === --- PKGBUILD2014-08-15 15:21:28 UTC (rev 117439) +++ PKGBUILD2014-08-15 15:37:08 UTC (rev 117440) @@ -3,7 +3,7 @@ # Contributor: Sven-Hendrik Haase s...@lutzhaase.com pkgname=('ldc' 'liblphobos-devel') groups=('dlang' 'dlang-ldc') -pkgver=0.13.0 +pkgver=0.14.0 epoch=1 pkgrel=1 pkgdesc=A D Compiler based on the LLVM Compiler Infrastructure including D runtime and libphobos2 @@ -17,10 +17,12 @@ ldc2.rebuild.conf ) sha1sums=('SKIP' - 'e4e2c9656a24a2433cfb00f792abdc247a845b46' + '290689ded66a12a243666d0bac3ffb74180fa490' '0e6e5e072ccc006a200a8fc918cb1ebeb2e12b7b' ) + + build() { cd $srcdir/ldc @@ -60,9 +62,14 @@ provides=(d-runtime d-stdlib) options=(staticlibs) +# licenses +install -D -m644 $srcdir/ldc/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE + # libraries -install -D -m644 $srcdir/ldc/build/lib/libphobos-ldc.a $pkgdir/usr/lib/liblphobos.a -install -D -m644 $srcdir/ldc/build/lib/libphobos-ldc-debug.a $pkgdir/usr/lib/liblphobos-debug.a +install -D -m644 $srcdir/ldc/build/lib/libphobos2-ldc.a $pkgdir/usr/lib/liblphobos2.a +install -D -m644 $srcdir/ldc/build/lib/libdruntime-ldc.a $pkgdir/usr/lib/libldruntime.a +install -D -m644 $srcdir/ldc/build/lib/libphobos2-ldc-debug.a $pkgdir/usr/lib/liblphobos2-debug.a +install -D -m644 $srcdir/ldc/build/lib/libdruntime-ldc-debug.a $pkgdir/usr/lib/libldruntime-debug.a # imports mkdir -p $pkgdir/usr/include/dlang/ldc @@ -69,7 +76,4 @@ cp -r $srcdir/ldc/build/import/* $pkgdir/usr/include/dlang/ldc/ cp -r $srcdir/ldc/runtime/phobos/std $pkgdir/usr/include/dlang/ldc/ cp -r $srcdir/ldc/runtime/phobos/etc $pkgdir/usr/include/dlang/ldc/ - -# licenses -install -D -m644 $srcdir/ldc/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE } Modified: ldc2.conf === --- ldc2.conf 2014-08-15 15:21:28 UTC (rev 117439) +++ ldc2.conf 2014-08-15 15:37:08 UTC (rev 117440) @@ -12,7 +12,7 @@ -L-L/usr/lib, -L-L/usr/lib32, -L--no-warn-search-mismatch, --defaultlib=lphobos, --debuglib=lphobos-debug +-defaultlib=lphobos2,ldruntime, +-debuglib=lphobos2-debug,ldruntime-debug ]; }; Modified: ldc2.rebuild.conf === --- ldc2.rebuild.conf 2014-08-15 15:21:28 UTC (rev 117439) +++ ldc2.rebuild.conf 2014-08-15 15:37:08 UTC (rev 117440) @@ -1,2 +1,2 @@ [Environment] -DFLAGS=-I-I/usr/include/dlang/ldc/ldc -I/usr/include/dlang/ldc -L-L/usr/lib -defaultlib=lphobos -debuglib=lphobos-debug +DFLAGS=-I-I/usr/include/dlang/ldc/ldc -I/usr/include/dlang/ldc -L-L/usr/lib -defaultlib=lphobos2 -debuglib=lphobos2-debug
[arch-commits] Commit in ldc/trunk (PKGBUILD ldc2.conf ldc2.rebuild.conf)
Date: Sunday, August 25, 2013 @ 19:56:29 Author: dicebot Revision: 96329 upgpkg: ldc 1:0.11.0-1 ldc has been split into compiler package and development library package. Naming/paths match dmd style Added: ldc/trunk/ldc2.conf ldc/trunk/ldc2.rebuild.conf Modified: ldc/trunk/PKGBUILD ---+ PKGBUILD | 84 ++-- ldc2.conf | 18 +++ ldc2.rebuild.conf |2 + 3 files changed, 75 insertions(+), 29 deletions(-) Modified: PKGBUILD === --- PKGBUILD2013-08-25 17:44:32 UTC (rev 96328) +++ PKGBUILD2013-08-25 17:56:29 UTC (rev 96329) @@ -1,47 +1,73 @@ # $Id$ -# Maintainer: Sven-Hendrik Haase s...@lutzhaase.com -pkgname=ldc +# Maintainer: Mihails Strasuns pub...@dicebot.lv +# Contributor: Sven-Hendrik Haase s...@lutzhaase.com +pkgname=('ldc' 'liblphobos-devel') +groups=('dlang' 'dlang-ldc') pkgver=0.11.0 epoch=1 pkgrel=1 pkgdesc=A D Compiler based on the LLVM Compiler Infrastructure including D runtime and libphobos2 arch=('i686' 'x86_64') -url=http://www.dsource.org/projects/ldc; +url=https://github.com/ldc-developers/ldc; license=('BSD') -depends=('llvm' 'libconfig') -makedepends=('git' 'cmake') +depends=('libconfig') +makedepends=('git' 'cmake' 'llvm') backup=('etc/ldc2.conf') -source=(git://github.com/ldc-developers/ldc.git#tag=v${pkgver}) -sha1sums=('SKIP') +source=(git://github.com/ldc-developers/ldc.git#tag=v${pkgver} +ldc2.conf +ldc2.rebuild.conf + ) +sha1sums=('SKIP' + 'e4e2c9656a24a2433cfb00f792abdc247a845b46' + '0e6e5e072ccc006a200a8fc918cb1ebeb2e12b7b' + ) -[[ $CARCH == x86_64 ]] _multilib=ON -[[ $CARCH == i686 ]] _multilib=OFF - build() { - cd $srcdir/ldc - git submodule update --init --recursive +cd $srcdir/ldc - mkdir build cd build - cmake \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DINCLUDE_INSTALL_DIR=/usr/include/d/std-ldc \ - -DMULTILIB=$_multilib \ - .. - make +git submodule update --init --recursive + +mkdir build cd build +cmake \ +-DCMAKE_INSTALL_PREFIX=/usr \ +-DINCLUDE_INSTALL_DIR=/usr/include/dlang/ldc \ +.. +make } -package() { - cd $srcdir/ldc +package_ldc() { +optdepends=(liblphobos-devel: stadard library, static one + imports, LDC version) +backup=(etc/ldc2.conf +etc/ldc2.rebuild.conf + ) - cd build - make DESTDIR=$pkgdir install - cd .. +# binaries +install -D -m755 $srcdir/ldc/build/bin/ldmd2 $pkgdir/usr/bin/ldmd2 +install -D -m755 $srcdir/ldc/build/bin/ldc2 $pkgdir/usr/bin/ldc2 - mkdir -p $pkgdir/usr/share/bash-completion/ - mv $pkgdir/etc/bash_completion.d $pkgdir/usr/share/bash-completion/completions +# supplementaries +install -D -m644 $srcdir/ldc/bash_completion.d/ldc $pkgdir/usr/share/bash-completion/completions/ldc - install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE +# licenses +install -D -m644 $srcdir/ldc/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE - # We don't actually want the multilib libs in this package - rm -rf $pkgdir/usr/lib32 +# default configuration files +install -D -m644 $srcdir/ldc2.conf $pkgdir/etc/ldc2.conf +install -D -m644 $srcdir/ldc2.rebuild.conf $pkgdir/etc/ldc2.rebuild.conf } + +package_liblphobos-devel() { +depends=(ldc) + +# libraries +install -D -m644 $srcdir/ldc/build/lib/libphobos-ldc.a $pkgdir/usr/lib/liblphobos.a +install -D -m644 $srcdir/ldc/build/lib/libphobos-ldc-debug.a $pkgdir/usr/lib/liblphobos-debug.a + +# imports +mkdir -p $pkgdir/usr/include/dlang/ldc +cp -r $srcdir/ldc/build/import/* $pkgdir/usr/include/dlang/ldc/ +cp -r $srcdir/ldc/runtime/phobos/std $pkgdir/usr/include/dlang/ldc/ + +# licenses +install -D -m644 $srcdir/ldc/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE +} Added: ldc2.conf === --- ldc2.conf (rev 0) +++ ldc2.conf 2013-08-25 17:56:29 UTC (rev 96329) @@ -0,0 +1,18 @@ +// This configuration file uses libconfig. +// See http://www.hyperrealm.com/libconfig/ for syntax details. + +// The default group is required +default: +{ +// 'switches' holds array of string that are appends to the command line +// arguments before they are parsed. +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=lphobos, +-debuglib=lphobos-debug +]; +}; Added: ldc2.rebuild.conf === --- ldc2.rebuild.conf (rev 0) +++ ldc2.rebuild.conf 2013-08-25 17:56:29 UTC (rev 96329) @@ -0,0 +1,2 @@ +[Environment] +DFLAGS=-I-I/usr/include/dlang/ldc/ldc