You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

83 lines
3.5 KiB

;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2019 Li-cheng (Andy) Tai <>
;;; This file is part of GNU Guix.
;;; GNU Guix is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;; GNU Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; GNU General Public License for more details.
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix. If not, see <>.
(define-module (gnu packages squirrel)
#:use-module (gnu packages)
#:use-module (gnu packages cmake)
#:use-module (gnu packages sphinx)
#:use-module (guix build-system cmake)
#:use-module (guix download)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix build utils)
#:use-module (guix packages)
#:use-module (guix utils))
(define-public squirrel
(name "squirrel")
(version "3.1")
(source (origin
(method url-fetch)
(uri (string-append "mirror://sourceforge/squirrel/squirrel3/"
"squirrel " version " stable/squirrel_"
(string-join (string-split version #\.) "_")
(file-name (string-append name "-" version ".tar.gz"))
(build-system cmake-build-system)
'(#:configure-flags '("-DDISABLE_STATIC=ON")
#:tests? #f ; no tests
(modify-phases %standard-phases
(add-after 'install 'install-documentation
(lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
(doc-dir (string-append out "/share/doc/squirrel")))
(lambda (file)
(install-file (string-append "../squirrel3/" file) doc-dir))
"doc/sqstdlib3.pdf" "doc/squirrel3.pdf")))
(add-after 'install 'install-headers
(lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
(include-dir (string-append out "/include/squirrel")))
(mkdir-p include-dir)
(lambda (header-file)
(copy-recursively header-file
(string-append include-dir
(basename header-file))))
(find-files "../squirrel3/include")))
`(("cmake" ,cmake-minimal)
("python-sphinx" ,python-sphinx)))
(home-page "")
(synopsis "High level imperative, object-oriented programming language")
"Squirrel is a high level imperative, object-oriented programming
language, designed to be a light-weight scripting language that fits in the
size, memory bandwidth, and real-time requirements of applications like video
(license license:expat)))