[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#30159] [PATCH] gnu: Add libtorrent-rasterbar-c++11.
From: |
Nam Nguyen |
Subject: |
[bug#30159] [PATCH] gnu: Add libtorrent-rasterbar-c++11. |
Date: |
Thu, 22 Nov 2018 01:49:06 -0800 |
* gnu/packages/bittorrent.scm (libtorrent-rasterbar-c++11): New variable.
---
gnu/packages/bittorrent.scm | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/gnu/packages/bittorrent.scm b/gnu/packages/bittorrent.scm
index f73488ff1..406176692 100644
--- a/gnu/packages/bittorrent.scm
+++ b/gnu/packages/bittorrent.scm
@@ -406,6 +406,21 @@ focusing on efficiency and scalability. It runs on
embedded devices as well as
desktops.")
(license l:bsd-2)))
+(define-public libtorrent-rasterbar-c++11
+ (package
+ (inherit libtorrent-rasterbar)
+ (name "libtorrent-rasterbar-c++11")
+ (arguments
+ (substitute-keyword-arguments (package-arguments libtorrent-rasterbar)
+ ((#:phases phases '%standard-phases)
+ `(modify-phases ,phases
+ (add-after 'unpack 'compile-args-c++11
+ ;;
https://github.com/qbittorrent/qBittorrent/issues/6383#issuecomment-281535787
+ (lambda _
+ (substitute* "bindings/python/setup.py"
+ (("\\+ target_specific\\(\\)\\,")
+ "+ target_specific() + ['-std=c++11'],"))))))))))
+
(define-public qbittorrent
(package
(name "qbittorrent")
--
2.19.1