From 234128a8485f1cc70d8d2cf63ef0530a6e50f2e2 Mon Sep 17 00:00:00 2001 From: Brett Koonce Date: Tue, 5 Nov 2013 08:38:01 -0600 Subject: dub v0.9.19 Closes #23997. Signed-off-by: Mike McQuaid --- Library/Formula/dub.rb | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) (limited to 'Library') diff --git a/Library/Formula/dub.rb b/Library/Formula/dub.rb index ec5c8ba6c..89146dd30 100644 --- a/Library/Formula/dub.rb +++ b/Library/Formula/dub.rb @@ -2,14 +2,16 @@ require 'formula' class Dub < Formula homepage 'http://registry.vibed.org/' - url 'https://github.com/rejectedsoftware/dub/archive/v0.9.18.tar.gz' - sha1 'a848d5b461eb95acc604d82de154922d3892888b' + url 'https://github.com/rejectedsoftware/dub/archive/v0.9.19.tar.gz' + sha1 'dcf880029190180a1a4a4753237c0eb164941c98' head 'https://github.com/rejectedsoftware/dub.git' depends_on 'pkg-config' => :build depends_on 'dmd' => :build + def patches; DATA; end + def install system "./build.sh" bin.install 'bin/dub' @@ -19,3 +21,26 @@ class Dub < Formula system "#{bin}/dub; true" end end + +__END__ +diff --git a/build.sh b/build.sh +index dce1766..eacc765 100755 +--- a/build.sh ++++ b/build.sh +@@ -16,11 +16,11 @@ fi + LIBS=`pkg-config --libs libcurl 2>/dev/null || echo "-lcurl"` + + # fix for modern GCC versions with --as-needed by default +-if [ "$DC" = "dmd" ]; then +- LIBS="-l:libphobos2.a $LIBS" +-elif [ "$DC" = "ldmd2" ]; then +- LIBS="-lphobos-ldc $LIBS" +-fi ++# if [ "$DC" = "dmd" ]; then ++# LIBS="-l:libphobos2.a $LIBS" ++# elif [ "$DC" = "ldmd2" ]; then ++# LIBS="-lphobos-ldc $LIBS" ++# fi + + # adjust linker flags for dmd command line + LIBS=`echo "$LIBS" | sed 's/^-L/-L-L/; s/ -L/ -L-L/g; s/^-l/-L-l/; s/ -l/ -L-l/g'` -- cgit v1.2.3