Date: Sunday, August 25, 2013 @ 20:13:12 Author: dicebot Revision: 96330
archrelease: copy trunk to community-i686, community-x86_64 Added: ldc/repos/community-i686/PKGBUILD (from rev 96329, ldc/trunk/PKGBUILD) ldc/repos/community-i686/ldc2.conf (from rev 96329, ldc/trunk/ldc2.conf) ldc/repos/community-i686/ldc2.rebuild.conf (from rev 96329, ldc/trunk/ldc2.rebuild.conf) ldc/repos/community-x86_64/PKGBUILD (from rev 96329, ldc/trunk/PKGBUILD) ldc/repos/community-x86_64/ldc2.conf (from rev 96329, ldc/trunk/ldc2.conf) ldc/repos/community-x86_64/ldc2.rebuild.conf (from rev 96329, ldc/trunk/ldc2.rebuild.conf) Deleted: ldc/repos/community-i686/PKGBUILD ldc/repos/community-x86_64/PKGBUILD ------------------------------------+ /PKGBUILD | 146 +++++++++++++++++++++++++++++++++++ community-i686/PKGBUILD | 47 ----------- community-i686/ldc2.conf | 18 ++++ community-i686/ldc2.rebuild.conf | 2 community-x86_64/PKGBUILD | 47 ----------- community-x86_64/ldc2.conf | 18 ++++ community-x86_64/ldc2.rebuild.conf | 2 7 files changed, 186 insertions(+), 94 deletions(-) Deleted: community-i686/PKGBUILD =================================================================== --- community-i686/PKGBUILD 2013-08-25 17:56:29 UTC (rev 96329) +++ community-i686/PKGBUILD 2013-08-25 18:13:12 UTC (rev 96330) @@ -1,47 +0,0 @@ -# $Id$ -# Maintainer: Sven-Hendrik Haase <s...@lutzhaase.com> -pkgname=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" -license=('BSD') -depends=('llvm' 'libconfig') -makedepends=('git' 'cmake') -backup=('etc/ldc2.conf') -source=("git://github.com/ldc-developers/ldc.git#tag=v${pkgver}") -sha1sums=('SKIP') - -[[ $CARCH == "x86_64" ]] && _multilib="ON" -[[ $CARCH == "i686" ]] && _multilib="OFF" - -build() { - cd "$srcdir"/ldc - git submodule update --init --recursive - - mkdir build && cd build - cmake \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DINCLUDE_INSTALL_DIR=/usr/include/d/std-ldc \ - -DMULTILIB=$_multilib \ - .. - make -} - -package() { - cd "$srcdir"/ldc - - cd build - make DESTDIR=$pkgdir install - cd .. - - mkdir -p $pkgdir/usr/share/bash-completion/ - mv $pkgdir/etc/bash_completion.d $pkgdir/usr/share/bash-completion/completions - - install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE - - # We don't actually want the multilib libs in this package - rm -rf $pkgdir/usr/lib32 -} Copied: ldc/repos/community-i686/PKGBUILD (from rev 96329, ldc/trunk/PKGBUILD) =================================================================== --- community-i686/PKGBUILD (rev 0) +++ community-i686/PKGBUILD 2013-08-25 18:13:12 UTC (rev 96330) @@ -0,0 +1,73 @@ +# $Id$ +# 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="https://github.com/ldc-developers/ldc" +license=('BSD') +depends=('libconfig') +makedepends=('git' 'cmake' 'llvm') +backup=('etc/ldc2.conf') +source=("git://github.com/ldc-developers/ldc.git#tag=v${pkgver}" + "ldc2.conf" + "ldc2.rebuild.conf" + ) +sha1sums=('SKIP' + 'e4e2c9656a24a2433cfb00f792abdc247a845b46' + '0e6e5e072ccc006a200a8fc918cb1ebeb2e12b7b' + ) + +build() { + cd $srcdir/ldc + + git submodule update --init --recursive + + mkdir build && cd build + cmake \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DINCLUDE_INSTALL_DIR=/usr/include/dlang/ldc \ + .. + make +} + +package_ldc() { + optdepends=("liblphobos-devel: stadard library, static one + imports, LDC version") + backup=("etc/ldc2.conf" + "etc/ldc2.rebuild.conf" + ) + + # 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 + + # supplementaries + install -D -m644 $srcdir/ldc/bash_completion.d/ldc $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 + 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 +} Copied: ldc/repos/community-i686/ldc2.conf (from rev 96329, ldc/trunk/ldc2.conf) =================================================================== --- community-i686/ldc2.conf (rev 0) +++ community-i686/ldc2.conf 2013-08-25 18:13:12 UTC (rev 96330) @@ -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" + ]; +}; Copied: ldc/repos/community-i686/ldc2.rebuild.conf (from rev 96329, ldc/trunk/ldc2.rebuild.conf) =================================================================== --- community-i686/ldc2.rebuild.conf (rev 0) +++ community-i686/ldc2.rebuild.conf 2013-08-25 18:13:12 UTC (rev 96330) @@ -0,0 +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 Deleted: community-x86_64/PKGBUILD =================================================================== --- community-x86_64/PKGBUILD 2013-08-25 17:56:29 UTC (rev 96329) +++ community-x86_64/PKGBUILD 2013-08-25 18:13:12 UTC (rev 96330) @@ -1,47 +0,0 @@ -# $Id$ -# Maintainer: Sven-Hendrik Haase <s...@lutzhaase.com> -pkgname=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" -license=('BSD') -depends=('llvm' 'libconfig') -makedepends=('git' 'cmake') -backup=('etc/ldc2.conf') -source=("git://github.com/ldc-developers/ldc.git#tag=v${pkgver}") -sha1sums=('SKIP') - -[[ $CARCH == "x86_64" ]] && _multilib="ON" -[[ $CARCH == "i686" ]] && _multilib="OFF" - -build() { - cd "$srcdir"/ldc - git submodule update --init --recursive - - mkdir build && cd build - cmake \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DINCLUDE_INSTALL_DIR=/usr/include/d/std-ldc \ - -DMULTILIB=$_multilib \ - .. - make -} - -package() { - cd "$srcdir"/ldc - - cd build - make DESTDIR=$pkgdir install - cd .. - - mkdir -p $pkgdir/usr/share/bash-completion/ - mv $pkgdir/etc/bash_completion.d $pkgdir/usr/share/bash-completion/completions - - install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE - - # We don't actually want the multilib libs in this package - rm -rf $pkgdir/usr/lib32 -} Copied: ldc/repos/community-x86_64/PKGBUILD (from rev 96329, ldc/trunk/PKGBUILD) =================================================================== --- community-x86_64/PKGBUILD (rev 0) +++ community-x86_64/PKGBUILD 2013-08-25 18:13:12 UTC (rev 96330) @@ -0,0 +1,73 @@ +# $Id$ +# 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="https://github.com/ldc-developers/ldc" +license=('BSD') +depends=('libconfig') +makedepends=('git' 'cmake' 'llvm') +backup=('etc/ldc2.conf') +source=("git://github.com/ldc-developers/ldc.git#tag=v${pkgver}" + "ldc2.conf" + "ldc2.rebuild.conf" + ) +sha1sums=('SKIP' + 'e4e2c9656a24a2433cfb00f792abdc247a845b46' + '0e6e5e072ccc006a200a8fc918cb1ebeb2e12b7b' + ) + +build() { + cd $srcdir/ldc + + git submodule update --init --recursive + + mkdir build && cd build + cmake \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DINCLUDE_INSTALL_DIR=/usr/include/dlang/ldc \ + .. + make +} + +package_ldc() { + optdepends=("liblphobos-devel: stadard library, static one + imports, LDC version") + backup=("etc/ldc2.conf" + "etc/ldc2.rebuild.conf" + ) + + # 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 + + # supplementaries + install -D -m644 $srcdir/ldc/bash_completion.d/ldc $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 + 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 +} Copied: ldc/repos/community-x86_64/ldc2.conf (from rev 96329, ldc/trunk/ldc2.conf) =================================================================== --- community-x86_64/ldc2.conf (rev 0) +++ community-x86_64/ldc2.conf 2013-08-25 18:13:12 UTC (rev 96330) @@ -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" + ]; +}; Copied: ldc/repos/community-x86_64/ldc2.rebuild.conf (from rev 96329, ldc/trunk/ldc2.rebuild.conf) =================================================================== --- community-x86_64/ldc2.rebuild.conf (rev 0) +++ community-x86_64/ldc2.rebuild.conf 2013-08-25 18:13:12 UTC (rev 96330) @@ -0,0 +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