Accepting request 340750 from home:marc_schuetz:branches:devel:languages:D

- update to 0.16.0
- based on DMD 2.067.1

OBS-URL: https://build.opensuse.org/request/show/340750
OBS-URL: https://build.opensuse.org/package/show/devel:languages:D/ldc?expand=0&rev=2
This commit is contained in:
Ismail Dönmez 2015-10-24 13:47:13 +00:00 committed by Git OBS Bridge
parent e1e1901251
commit 5259642f4b
5 changed files with 19 additions and 11 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ff7ea55309d678c20524779091617aa1d4bdbaa39e1a650927020fe1627f4b0f
size 4390290

3
ldc-0.16.0-src.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0a697936d7f8fe123a80d63bb76e50958d40d3ca31ccb6d558107ed67b15c74d
size 4760709

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sat Oct 24 11:29:29 UTC 2015 - schuetzm@gmx.net
- update 0.16.0
- based on DMD 2.067.1
-------------------------------------------------------------------
Sun Feb 22 16:15:02 UTC 2015 - schuetzm@gmx.net

View File

@ -16,13 +16,13 @@
#
Name: ldc
Version: 0.15.1
Version: 0.16.0
Release: 0
License: BSD-3-Clause and Artistic-1.0
Summary: The LLVM D Compiler
Url: https://github.com/ldc-developers/ldc
Group: Development/Languages/Other
Source0: ldc-0.15.1-src.tar.gz
Source0: ldc-0.16.0-src.tar.gz
# PATCH-FIX-OPENSUSE workaround-buggy-llvm-config.patch bnc#856691
Patch1: workaround-buggy-llvm-config.patch
BuildRequires: libconfig++-devel
@ -56,7 +56,7 @@ This package contains the Phobos development files necessary for developing
with LDC.
%prep
%setup -q -n ldc-0.15.1-src
%setup -q -n ldc-0.16.0-src
%patch1 -p1
%build
@ -64,6 +64,7 @@ mkdir build
pushd build
cmake -DD_VERSION=2 \
-DSYSCONF_INSTALL_DIR=%{_sysconfdir} \
-DCMAKE_CXX_FLAGS=-std=c++11 \
-DCMAKE_INSTALL_PREFIX=%{_prefix} ..
make %{?_smp_mflags}
popd
@ -76,7 +77,7 @@ popd
%files
%defattr(-,root,root)
%doc LICENSE README.md
%config %{_sysconfdir}/bash_completion.d/ldc
%config %{_sysconfdir}/bash_completion.d/ldc2
%config %{_sysconfdir}/ldc2.conf
%{_bindir}/ldc2
%{_bindir}/ldmd2

View File

@ -1,10 +1,11 @@
--- ldc.orig/cmake/Modules/FindLLVM.cmake 2014-12-15 12:56:11.388035601 +0100
+++ ldc/cmake/Modules/FindLLVM.cmake 2014-12-15 12:56:33.906841195 +0100
@@ -130,6 +130,7 @@
diff -ur ldc-0.16.0-beta2-src.orig/cmake/Modules/FindLLVM.cmake ldc-0.16.0-beta2-src/cmake/Modules/FindLLVM.cmake
--- ldc-0.16.0-beta2-src.orig/cmake/Modules/FindLLVM.cmake 2015-10-10 14:45:09.000000000 +0200
+++ ldc-0.16.0-beta2-src/cmake/Modules/FindLLVM.cmake 2015-10-11 13:58:33.478728289 +0200
@@ -142,6 +142,7 @@
${_quiet_arg}
)
file(TO_CMAKE_PATH "${tmplibs}" tmplibs)
+ string(REGEX REPLACE "\\.a" ".so" tmplibs ${tmplibs})
string(REGEX REPLACE "([$^.[|*+?()]|])" "\\\\\\1" pattern "${prefix}/")
string(REGEX MATCHALL "${pattern}[^ ]+" LLVM_${var} ${tmplibs})
endmacro()