unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#40640] [PATCH] gnu: Add gtkd.
@ 2020-04-15 10:50 guy fleury iteriteka
  2020-04-15 13:30 ` bug#40640: " Danny Milosavljevic
  0 siblings, 1 reply; 2+ messages in thread
From: guy fleury iteriteka @ 2020-04-15 10:50 UTC (permalink / raw)
  To: 40640

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=y, Size: 3127 bytes --]

* 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@gmail.com>
 ;;; Copyright © 2017 Ricardo Wurmus <rekado@elephly.net>
 ;;; Copyright © 2017, 2019 Tobias Geerinckx-Rice <me@tobias.gr>
+;;; Copyright © 2020 Guy Fleury Iteriteka <gfleury@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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#40640: [PATCH] gnu: Add gtkd.
  2020-04-15 10:50 [bug#40640] [PATCH] gnu: Add gtkd guy fleury iteriteka
@ 2020-04-15 13:30 ` Danny Milosavljevic
  0 siblings, 0 replies; 2+ messages in thread
From: Danny Milosavljevic @ 2020-04-15 13:30 UTC (permalink / raw)
  To: guy fleury iteriteka; +Cc: 40640-done

[-- Attachment #1: Type: text/plain, Size: 131 bytes --]

Hi,

thanks!

Pushed your patch with some simplifications to guix master as commit
141262f266ab702c856f634889d4130ae661e79f.

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-04-15 13:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-15 10:50 [bug#40640] [PATCH] gnu: Add gtkd guy fleury iteriteka
2020-04-15 13:30 ` bug#40640: " Danny Milosavljevic

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).