From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Milosavljevic Subject: [PATCH] gnu: dub: Patch pkg-config name. Date: Tue, 31 Jan 2017 17:00:17 +0100 Message-ID: <20170131160017.7991-1-dannym@scratchpost.org> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40602) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cYarK-00061u-DT for guix-devel@gnu.org; Tue, 31 Jan 2017 11:00:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cYarF-00047X-DQ for guix-devel@gnu.org; Tue, 31 Jan 2017 11:00:42 -0500 Received: from dd1012.kasserver.com ([85.13.128.8]:55052) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cYarF-000470-64 for guix-devel@gnu.org; Tue, 31 Jan 2017 11:00:37 -0500 List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org * gnu/packages/ldc.scm (dub)[arguments]: Add 'patch-paths' phase. --- gnu/packages/ldc.scm | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/gnu/packages/ldc.scm b/gnu/packages/ldc.scm index 4b10ac25e..e131c473d 100644 --- a/gnu/packages/ldc.scm +++ b/gnu/packages/ldc.scm @@ -32,6 +32,7 @@ #:use-module (gnu packages gdb) #:use-module (gnu packages libedit) #:use-module (gnu packages llvm) + #:use-module (gnu packages pkg-config) #:use-module (gnu packages python) #:use-module (gnu packages textutils) #:use-module (gnu packages zip)) @@ -293,6 +294,12 @@ latest DMD frontend and uses LLVM as backend.") `(#:tests? #f ; it would have tested itself by installing some packages (vibe etc) #:phases (modify-phases %standard-phases + (add-after 'unpack 'patch-paths + (lambda* (#:key inputs outputs #:allow-other-keys) + (substitute* "source/dub/compilers/utils.d" + ; TODO patch source/dub/platform.d compiler executable name ?? + (("enum pkgconfig_bin = \"pkg-config\";") (string-append "enum pkgconfig_bin = \"" (assoc-ref inputs "pkg-config") "/bin/pkg-config\";"))) + #t)) (delete 'configure) (replace 'build (lambda _ @@ -305,7 +312,8 @@ latest DMD frontend and uses LLVM as backend.") (install-file "bin/dub" outbin) #t)))))) (inputs - `(("curl" ,curl))) + `(("curl" ,curl) + ("pkg-config" ,pkg-config))) (native-inputs `(("ldc" ,ldc))) (home-page "https://code.dlang.org/getting_started")