GNU bug report logs - #40640
[PATCH] gnu: Add gtkd.

Previous Next

Package: guix-patches;

Reported by: guy fleury iteriteka <gfleury <at> disroot.org>

Date: Wed, 15 Apr 2020 11:07:02 UTC

Severity: normal

Tags: patch

Done: Danny Milosavljevic <dannym <at> scratchpost.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 40640 in the body.
You can then email your comments to 40640 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#40640; Package guix-patches. (Wed, 15 Apr 2020 11:07:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to guy fleury iteriteka <gfleury <at> disroot.org>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Wed, 15 Apr 2020 11:07:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: guy fleury iteriteka <gfleury <at> disroot.org>
To: guix-patches <at> gnu.org
Subject: [PATCH] gnu: Add gtkd.
Date: Wed, 15 Apr 2020 12:50:34 +0200
* 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 © 2017 Frederick Muriithi <fredmanglis <at> gmail.com>
 ;;; Copyright © 2017 Ricardo Wurmus <rekado <at> elephly.net>
 ;;; Copyright © 2017, 2019 Tobias Geerinckx-Rice <me <at> tobias.gr>
+;;; Copyright © 2020 Guy Fleury Iteriteka <gfleury <at> disroot.org>
 ;;;
 ;;; 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 simple 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=ldc2")
+       #: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 env
+                 ;;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\\?\\=.*") (string-append "libdir?=" bindir "\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 graphical
+user interfaces which boasts cross platform compatibility and an easy to use
+API.")
+    (license license:lgpl2.1)))
-- 
2.25.1





Reply sent to Danny Milosavljevic <dannym <at> scratchpost.org>:
You have taken responsibility. (Wed, 15 Apr 2020 13:32:02 GMT) Full text and rfc822 format available.

Notification sent to guy fleury iteriteka <gfleury <at> disroot.org>:
bug acknowledged by developer. (Wed, 15 Apr 2020 13:32:02 GMT) Full text and rfc822 format available.

Message #10 received at 40640-done <at> debbugs.gnu.org (full text, mbox):

From: Danny Milosavljevic <dannym <at> scratchpost.org>
To: guy fleury iteriteka <gfleury <at> disroot.org>
Cc: 40640-done <at> debbugs.gnu.org
Subject: Re: [bug#40640] [PATCH] gnu: Add gtkd.
Date: Wed, 15 Apr 2020 15:30:58 +0200
[Message part 1 (text/plain, inline)]
Hi,

thanks!

Pushed your patch with some simplifications to guix master as commit
141262f266ab702c856f634889d4130ae661e79f.
[Message part 2 (application/pgp-signature, inline)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 14 May 2020 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 5 years and 129 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.