guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: gnu: Add lazarus.


From: guix-commits
Subject: branch master updated: gnu: Add lazarus.
Date: Mon, 01 May 2023 11:19:55 -0400

This is an automated email from the git hooks/post-receive script.

dannym pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new df504d84ca gnu: Add lazarus.
df504d84ca is described below

commit df504d84ca1881854f09f11ae7e72a02adad9b69
Author: Danny Milosavljevic <dannym@scratchpost.org>
AuthorDate: Sun Mar 19 22:12:37 2023 +0100

    gnu: Add lazarus.
    
    * gnu/packages/pascal.scm (lazarus): Add variable.
---
 gnu/packages/pascal.scm | 76 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 76 insertions(+)

diff --git a/gnu/packages/pascal.scm b/gnu/packages/pascal.scm
index f563f077dc..49583c220d 100644
--- a/gnu/packages/pascal.scm
+++ b/gnu/packages/pascal.scm
@@ -24,6 +24,7 @@
   #:use-module ((guix licenses) #:prefix license:)
   #:use-module (guix packages)
   #:use-module (guix download)
+  #:use-module (guix git-download)
   #:use-module (guix gexp)
   #:use-module (guix utils)
   #:use-module (guix build-system gnu)
@@ -32,9 +33,13 @@
   #:use-module (gnu packages bootstrap)
   #:use-module (gnu packages compression)
   #:use-module (gnu packages gcc)
+  #:use-module (gnu packages glib)
+  #:use-module (gnu packages gtk)
   #:use-module (gnu packages ncurses)
   #:use-module (gnu packages perl)
+  #:use-module (gnu packages pkg-config)
   #:use-module (gnu packages xml)
+  #:use-module (gnu packages xorg)
   #:use-module (ice-9 match))
 
 (define %fpc-version "3.2.2")
@@ -270,3 +275,74 @@ Pascal source code to C source code, and @command{p2cc}, a 
compiler for
 Pascal programs.")
     (home-page "http://users.fred.net/tds/lab/p2c/";)
     (license license:gpl2+)))
+
+(define-public lazarus
+  (package
+    (name "lazarus")
+    (version "2.2.6")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url
+                     "https://gitlab.com/freepascal.org/lazarus/lazarus.git";)
+                    (commit (string-append "lazarus_"
+                                           (string-join (string-split version
+                                                                      #\.)
+                                                        "_")))))
+              (file-name (string-append name "-" version "-checkout"))
+              (sha256
+               (base32
+                "0hpk6fxmy1h1q0df41jg1vnp8g8vynrg5v5ad43lv229nizfs3wj"))))
+    (build-system gnu-build-system)
+    (arguments
+     (list #:tests? #f ;No tests exist
+           #:make-flags #~(list (string-append "INSTALL_PREFIX="
+                                               #$output))
+           #:phases #~(modify-phases %standard-phases
+                        (delete 'configure)
+                        (replace 'build
+                          (lambda* (#:key inputs outputs #:allow-other-keys)
+                            (let* ((libdirs (map (lambda (x)
+                                                   (assoc-ref inputs x))
+                                                 '("glib" "gdk-pixbuf"
+                                                   "gtk+"
+                                                   "libx11"
+                                                   "libx11"
+                                                   "pango"
+                                                   "cairo"
+                                                   "atk")))
+                                   (libs (append (map (lambda (name)
+                                                        (string-append "-Fl"
+                                                                       name
+                                                                       "/lib"))
+                                                      libdirs)
+                                                 (map (lambda (name)
+                                                        (string-append
+                                                         "-k-rpath=" name
+                                                         "/lib")) libdirs))))
+                              (setenv "LAZARUS_LIBPATHS"
+                                      (string-join libs " "))
+                              (setenv "MAKEFLAGS"
+                                      (string-append "LHELP_OPT="
+                                                     (string-join libs "\\ 
"))))
+                            (invoke "make" "bigide"))))))
+    (native-inputs (list fpc pkg-config))
+    (inputs (list glib
+                  gdk-pixbuf
+                  gtk+-2
+                  libx11
+                  pango
+                  cairo
+                  atk))
+    (synopsis "Integrated development environment for Pascal")
+    (description "This package provides an integrated development environment
+for Pascal.")
+    (home-page "https://www.lazarus-ide.org/";)
+    ;; Some Android stuff is under asl2.0. Some artwork is under CC-BY-SA-3
+    ;; or CC-BY-SA-4.
+    ;; Some components are under MIT expat.
+    ;; The Freetype components are under Freetype license.
+    ;; A lot of components are under LGPL-2+.
+    ;; synedit and turbopower_ipro are under MPL-1.1
+    ;; PascalScript is under a zlib-like license.
+    (license (list license:gpl2+ license:lgpl2.0+))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]