image.scm
| 1 | ;;; GNU Guix --- Functional package management for GNU |
| 2 | ;;; Copyright © 2017 Julien Lepiller <julien@lepiller.eu> |
| 3 | ;;; |
| 4 | ;;; This file is part of GNU Guix. |
| 5 | ;;; |
| 6 | ;;; GNU Guix is free software; you can redistribute it and/or modify it |
| 7 | ;;; under the terms of the GNU General Public License as published by |
| 8 | ;;; the Free Software Foundation; either version 3 of the License, or (at |
| 9 | ;;; your option) any later version. |
| 10 | ;;; |
| 11 | ;;; GNU Guix is distributed in the hope that it will be useful, but |
| 12 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | ;;; GNU General Public License for more details. |
| 15 | ;;; |
| 16 | ;;; You should have received a copy of the GNU General Public License |
| 17 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. |
| 18 | |
| 19 | (define-module (more packages image) |
| 20 | #:use-module (guix packages) |
| 21 | #:use-module (guix download) |
| 22 | #:use-module (guix build-system gnu) |
| 23 | #:use-module (guix build-system python) |
| 24 | #:use-module ((guix licenses) #:prefix license:) |
| 25 | #:use-module (gnu packages) |
| 26 | #:use-module (more packages boost) |
| 27 | #:use-module (gnu packages gettext) |
| 28 | #:use-module (gnu packages gtk) |
| 29 | #:use-module (gnu packages lua) |
| 30 | #:use-module (gnu packages pkg-config) |
| 31 | #:use-module (gnu packages python) |
| 32 | #:use-module (gnu packages xml)) |
| 33 | |
| 34 | (define-public gpick |
| 35 | (package |
| 36 | (name "gpick") |
| 37 | (version "0.2.5") |
| 38 | (source (origin |
| 39 | (method url-fetch) |
| 40 | (uri (string-append "https://github.com/thezbyg/gpick/archive/" |
| 41 | name "-" version ".tar.gz")) |
| 42 | (sha256 |
| 43 | (base32 |
| 44 | "0mxvxk15xhk2i5vfavjhnkk4j3bnii0gpf8di14rlbpq070hd5rs")))) |
| 45 | (build-system gnu-build-system) |
| 46 | (native-inputs |
| 47 | `(("pkg-config" ,pkg-config) |
| 48 | ("scons" ,scons))) |
| 49 | (inputs |
| 50 | `(("gtk2" ,gtk+-2) |
| 51 | ("lua" ,lua-5.2) |
| 52 | ("expat" ,expat) |
| 53 | ("boost" ,boost) |
| 54 | ("gettext" ,gnu-gettext))) |
| 55 | (arguments |
| 56 | `(#:tests? #f |
| 57 | #:phases |
| 58 | (modify-phases %standard-phases |
| 59 | (delete 'configure) |
| 60 | (replace 'build |
| 61 | (lambda _ |
| 62 | (substitute* "SConscript" |
| 63 | (("lua5.2") "lua-5.2")) |
| 64 | (zero? (system* "scons")))) |
| 65 | (replace 'install |
| 66 | (lambda* (#:key outputs #:allow-other-keys) |
| 67 | (setenv "DESTDIR" (assoc-ref outputs "out")) |
| 68 | (zero? (system* "scons" "install" (string-append "DESTDIR=" (assoc-ref outputs "out"))))))))) |
| 69 | (home-page "http://www.gpick.org/") |
| 70 | (synopsis "Color picker") |
| 71 | (description "Gpick is an advanced color picker and palette editing tool.") |
| 72 | (license license:bsd-3))) |
| 73 |