From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:48931) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jOfsm-0002R3-B4 for guix-patches@gnu.org; Wed, 15 Apr 2020 07:07:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jOfsl-0006pc-4e for guix-patches@gnu.org; Wed, 15 Apr 2020 07:07:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:52011) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jOfsk-0006pD-M2 for guix-patches@gnu.org; Wed, 15 Apr 2020 07:07:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jOfsk-0007Is-HR for guix-patches@gnu.org; Wed, 15 Apr 2020 07:07:02 -0400 Subject: [bug#40640] [PATCH] gnu: Add gtkd. Resent-Message-ID: Received: from eggs.gnu.org ([2001:470:142:3::10]:46921) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jOfdJ-0007GQ-Ap for guix-patches@gnu.org; Wed, 15 Apr 2020 06:51:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jOfdH-0003BL-Vy for guix-patches@gnu.org; Wed, 15 Apr 2020 06:51:05 -0400 Received: from knopi.disroot.org ([178.21.23.139]:40680) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jOfdH-00038G-Cs for guix-patches@gnu.org; Wed, 15 Apr 2020 06:51:03 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id B687820B58 for ; Wed, 15 Apr 2020 12:51:00 +0200 (CEST) Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tvXVbMLHDbxm for ; Wed, 15 Apr 2020 12:50:59 +0200 (CEST) From: guy fleury iteriteka Date: Wed, 15 Apr 2020 12:50:34 +0200 Message-Id: <20200415105034.8862-1-gfleury@disroot.org> Mime-Version: 1.0 Content-Type: text/plain; charset=y Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 40640@debbugs.gnu.org * gnu/packages/dlang.scm(gtkd): New variable. --- gnu/packages/dlang.scm | 51 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/gnu/packages/dlang.scm b/gnu/packages/dlang.scm index 3b0c799..c098b81 100644 --- a/gnu/packages/dlang.scm +++ b/gnu/packages/dlang.scm @@ -4,6 +4,7 @@ ;;; Copyright =C2=A9 2017 Frederick Muriithi ;;; Copyright =C2=A9 2017 Ricardo Wurmus ;;; Copyright =C2=A9 2017, 2019 Tobias Geerinckx-Rice +;;; Copyright =C2=A9 2020 Guy Fleury Iteriteka ;;; ;;; This file is part of GNU Guix. ;;; @@ -35,6 +36,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 python-xyz) #:use-module (gnu packages textutils)) @@ -348,3 +350,52 @@ The design emphasis is on maximum simplicity for sim= ple projects, while providing the opportunity to customize things when needed.") (license license:expat))) + +(define-public gtkd + (package + (name "gtkd") + (version "3.9.0") + (source + (origin + (method url-fetch) + (uri (string-append "https://gtkd.org/Downloads/sources/GtkD-" + version ".zip")) + (sha256 + (base32 "0qv8qlpwwb1d078pnrf0a59vpbkziyf53cf9p6m8ms542wbcxllp")))= ) + (build-system gnu-build-system) + (native-inputs + `(("unzip" ,unzip) + ("ldc" ,ldc) + ("pkg-config" ,pkg-config))) + (arguments + `(#:make-flags '("DC=3Dldc2") + #:tests? #f + #:phases + (modify-phases %standard-phases + (delete 'configure) + (replace 'unpack + (lambda* (#:key source #:allow-other-keys) + (let ((dir (string-append ,name "-" ,version))) + (invoke "unzip" "-d" dir source) + (chdir dir) + #t))) + (add-before 'build 'patch-makefile + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (bindir (string-append out "/lib"))) + (substitute* "GNUmakefile" + ;;remove test target due to path resolution in build en= v + ;;when compile tests and test can't succed gui launch + (("default-goal: libs test") "default-goal: libs") + (("all: libs shared-libs test") "all: libs shared-libs"= ) + (("/usr/local") out) + (("libdir\\?\\=3D.*") (string-append "libdir?=3D" bindi= r "\n")) + (("\\$\\(prefix\\)\\/\\$\\(libdir\\)") "$(libdir)"))) + #t))))) + (home-page "https://gtkd.org/") + (synopsis "D binding and OO wrapper of GTK+") + (description + "GTK+ is a highly usable, feature rich toolkit for creating graphic= al +user interfaces which boasts cross platform compatibility and an easy to= use +API.") + (license license:lgpl2.1))) --=20 2.25.1