[arch-commits] Commit in dtools/repos/community-x86_64 (4 files)

Dan Printzell wild at archlinux.org
Tue Oct 10 15:29:05 UTC 2017


    Date: Tuesday, October 10, 2017 @ 15:29:05
  Author: wild
Revision: 262301

archrelease: copy trunk to community-x86_64

Added:
  dtools/repos/community-x86_64/PKGBUILD
    (from rev 262300, dtools/trunk/PKGBUILD)
  dtools/repos/community-x86_64/autodetect.diff
    (from rev 262300, dtools/trunk/autodetect.diff)
Deleted:
  dtools/repos/community-x86_64/PKGBUILD
  dtools/repos/community-x86_64/autodetect.diff

-----------------+
 PKGBUILD        |   94 +++++++++++++++++++++++++++---------------------------
 autodetect.diff |   94 +++++++++++++++++++++++++++---------------------------
 2 files changed, 94 insertions(+), 94 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2017-10-10 15:28:56 UTC (rev 262300)
+++ PKGBUILD	2017-10-10 15:29:05 UTC (rev 262301)
@@ -1,47 +0,0 @@
-# $Id$
-# Maintainer: Dan Printzell <arch at vild.io>
-# Contributor: Mihails Strasunse <public at dicebot.lv>
-
-pkgname='dtools'
-pkgver=2.076.0
-pkgrel=1
-pkgdesc="Ancilliary tools for the D programming language"
-license=('custom')
-groups=('dlang')
-arch=('x86_64')
-url="http://www.dlang.org"
-makedepends=('dmd' 'libphobos')
-depends=('curl')
-source=(${pkgname}-${pkgver}.tar.gz::https://github.com/dlang/tools/archive/v${pkgver}.tar.gz
-		"http://www.boost.org/LICENSE_1_0.txt"
-		"autodetect.diff")
-sha512sums=('fdb30aebda47405b4931d9e9021a30acf35270e7ec9cf8ae07b3672f029d00ce67e60d62721a90c2053065f50cf6fbb75df9ec2bd46c3b84417eae8499f42d95'
-            'd6078467835dba8932314c1c1e945569a64b065474d7aced27c9a7acc391d52e9f234138ed9f1aa9cd576f25f12f557e0b733c14891d42c16ecdc4a7bd4d60b8'
-            '3bce3c66cf24837fcb9bf244f2b07ed6116d8d67a75b2319010cf93956e93b43262b7d9613359503e6b0352b82684be8baeeb7b1f50e77accda334ce470bf5e3')
-
-build() {
-    DMD=dmd
-    cd tools-${pkgver}
-
-    # rdmd is used to build others
-    $DMD -od. -ofdtools-rdmd rdmd.d
-
-    for tool in DustMite/dustmite ddemangle catdoc detab tolf dget; do
-        ./dtools-rdmd --compiler=$DMD --build-only -od. -ofdtools-`basename $tool` $tool.d
-    done
-}
-
-package() {
-    cd tools-${pkgver}
-
-    mkdir -p $pkgdir/usr/bin
-    for tool in rdmd ddemangle catdoc detab tolf dget dustmite; do
-        install -m755 -t $pkgdir/usr/bin $pkgname-$tool
-    done
-
-    cd $pkgdir
-    ln -s dtools-rdmd usr/bin/rdmd
-    ln -s dtools-dustmite usr/bin/dustmite
-
-    install -Dm644 $srcdir/LICENSE_1_0.txt usr/share/licenses/$pkgname/LICENSE
-}

Copied: dtools/repos/community-x86_64/PKGBUILD (from rev 262300, dtools/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2017-10-10 15:29:05 UTC (rev 262301)
@@ -0,0 +1,47 @@
+# $Id$
+# Maintainer: Dan Printzell <arch at vild.io>
+# Contributor: Mihails Strasunse <public at dicebot.lv>
+
+pkgname='dtools'
+pkgver=2.076.1
+pkgrel=1
+pkgdesc="Ancilliary tools for the D programming language"
+license=('Boost')
+groups=('dlang')
+arch=('x86_64')
+url="http://www.dlang.org"
+makedepends=('dmd' 'libphobos')
+depends=('curl')
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/dlang/tools/archive/v${pkgver}.tar.gz
+		"http://www.boost.org/LICENSE_1_0.txt"
+		"autodetect.diff")
+sha512sums=('0ceb2a518be1490b463060cb443690f69464c1faaae0bee174e4e52ca4e8fb56931796a565a0cd48167795bbb5c4507e4289e8af77d7e5b4648cdc18316a7547'
+            'd6078467835dba8932314c1c1e945569a64b065474d7aced27c9a7acc391d52e9f234138ed9f1aa9cd576f25f12f557e0b733c14891d42c16ecdc4a7bd4d60b8'
+            '3bce3c66cf24837fcb9bf244f2b07ed6116d8d67a75b2319010cf93956e93b43262b7d9613359503e6b0352b82684be8baeeb7b1f50e77accda334ce470bf5e3')
+
+build() {
+    DMD=dmd
+    cd tools-${pkgver}
+
+    # rdmd is used to build others
+    $DMD -od. -ofdtools-rdmd rdmd.d
+
+    for tool in DustMite/dustmite ddemangle catdoc detab tolf dget; do
+        ./dtools-rdmd --compiler=$DMD --build-only -od. -ofdtools-`basename $tool` $tool.d
+    done
+}
+
+package() {
+    cd tools-${pkgver}
+
+    mkdir -p $pkgdir/usr/bin
+    for tool in rdmd ddemangle catdoc detab tolf dget dustmite; do
+        install -m755 -t $pkgdir/usr/bin $pkgname-$tool
+    done
+
+    cd $pkgdir
+    ln -s dtools-rdmd usr/bin/rdmd
+    ln -s dtools-dustmite usr/bin/dustmite
+
+    install -Dm644 $srcdir/LICENSE_1_0.txt usr/share/licenses/$pkgname/LICENSE
+}

Deleted: autodetect.diff
===================================================================
--- autodetect.diff	2017-10-10 15:28:56 UTC (rev 262300)
+++ autodetect.diff	2017-10-10 15:29:05 UTC (rev 262301)
@@ -1,47 +0,0 @@
-diff --git a/rdmd.d b/rdmd.d
-index bd82637..390d533 100644
---- a/rdmd.d
-+++ b/rdmd.d
-@@ -52,7 +52,32 @@ else version (LDC)
- else
-     static assert(false, "Unknown compiler");
- 
--private string compiler = defaultCompiler;
-+private string compiler;
-+
-+void chooseCompiler(ref string compiler)
-+{
-+    import std.stdio;
-+
-+    // if compiler is set explicitly, don't interefer
-+    // otherwise find one that exists in PATH
-+    if (!compiler.length)
-+    {
-+        import std.process : executeShell;
-+        auto compilers = [ defaultCompiler, "dmd", "ldmd2", "gdmd2", "ldmd", "gdmd" ];
-+
-+        foreach (candidate; compilers)
-+        {
-+            // dirty hack, no-arg dmd invocation will return 1
-+            if (executeShell(candidate ~ "| grep Usage").status == 0)
-+            {
-+                compiler = candidate;
-+                return;
-+            }
-+        }
-+
-+        throw new Exception("Couldn't find any D compiler");
-+    }
-+}
- 
- version(unittest) {} else
- int main(string[] args)
-@@ -153,6 +178,8 @@ int main(string[] args)
-     if (bailout) return 0;
-     if (dryRun) chatty = true; // dry-run implies chatty
- 
-+    chooseCompiler(compiler);
-+
-     /* Only -of is supported because Make is very susceptible to file names, and
-      * it doesn't do a good job resolving them. One option would be to use
-      * std.path.buildNormalizedPath(), but some corner cases will break, so it

Copied: dtools/repos/community-x86_64/autodetect.diff (from rev 262300, dtools/trunk/autodetect.diff)
===================================================================
--- autodetect.diff	                        (rev 0)
+++ autodetect.diff	2017-10-10 15:29:05 UTC (rev 262301)
@@ -0,0 +1,47 @@
+diff --git a/rdmd.d b/rdmd.d
+index bd82637..390d533 100644
+--- a/rdmd.d
++++ b/rdmd.d
+@@ -52,7 +52,32 @@ else version (LDC)
+ else
+     static assert(false, "Unknown compiler");
+ 
+-private string compiler = defaultCompiler;
++private string compiler;
++
++void chooseCompiler(ref string compiler)
++{
++    import std.stdio;
++
++    // if compiler is set explicitly, don't interefer
++    // otherwise find one that exists in PATH
++    if (!compiler.length)
++    {
++        import std.process : executeShell;
++        auto compilers = [ defaultCompiler, "dmd", "ldmd2", "gdmd2", "ldmd", "gdmd" ];
++
++        foreach (candidate; compilers)
++        {
++            // dirty hack, no-arg dmd invocation will return 1
++            if (executeShell(candidate ~ "| grep Usage").status == 0)
++            {
++                compiler = candidate;
++                return;
++            }
++        }
++
++        throw new Exception("Couldn't find any D compiler");
++    }
++}
+ 
+ version(unittest) {} else
+ int main(string[] args)
+@@ -153,6 +178,8 @@ int main(string[] args)
+     if (bailout) return 0;
+     if (dryRun) chatty = true; // dry-run implies chatty
+ 
++    chooseCompiler(compiler);
++
+     /* Only -of is supported because Make is very susceptible to file names, and
+      * it doesn't do a good job resolving them. One option would be to use
+      * std.path.buildNormalizedPath(), but some corner cases will break, so it



More information about the arch-commits mailing list