collection.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 collection) |
20 | #:use-module ((guix licenses) #:prefix license:) |
21 | #:use-module (gnu packages) |
22 | #:use-module (guix packages) |
23 | #:use-module (guix download) |
24 | #:use-module (guix git-download) |
25 | #:use-module (guix utils) |
26 | #:use-module (guix build-system gnu) |
27 | #:use-module (gnu packages compression) |
28 | #:use-module (gnu packages gd) |
29 | #:use-module (gnu packages perl) |
30 | #:use-module (gnu packages web) |
31 | #:use-module (gnu packages xml) |
32 | #:use-module (more packages perl)) |
33 | |
34 | (define-public gcstar |
35 | (package |
36 | (name "gcstar") |
37 | (version "1.7.1") |
38 | (source (origin |
39 | (method url-fetch) |
40 | (uri (string-append "http://download.gna.org/gcstar/gcstar-" |
41 | version ".tar.gz")) |
42 | (sha256 |
43 | (base32 |
44 | "0gcz88slgm14rlsw84gpka7hpdmrdvpdvxp9qvs45gv1383r0b6s")))) |
45 | (build-system gnu-build-system) |
46 | (arguments |
47 | `(#:phases |
48 | (modify-phases %standard-phases |
49 | (delete 'configure) |
50 | (delete 'build) |
51 | (delete 'check) |
52 | (replace 'install |
53 | (lambda* (#:key outputs #:allow-other-keys) |
54 | (mkdir-p %output) |
55 | (format #t "calling install script\n") |
56 | (zero? (system* "perl" "install" "--verbose" |
57 | (string-append "--prefix=" (assoc-ref outputs "out"))))))))) |
58 | (native-inputs |
59 | `(("perl" ,perl))) |
60 | (propagated-inputs |
61 | `(("perl-gtk2" ,perl-gtk2) |
62 | ("perl-pango" ,perl-pango) |
63 | ("perl-archive-zip" ,perl-archive-zip) |
64 | ("perl-date-calc" ,perl-date-calc) |
65 | ("perl-datetime-format-strptime" ,perl-datetime-format-strptime) |
66 | ("perl-libwww" ,perl-libwww) |
67 | ("perl-switch" ,perl-switch) |
68 | ("perl-gd" ,perl-gd) |
69 | ("perl-http-cookies" ,perl-http-cookies) |
70 | ("perl-http-date" ,perl-http-date) |
71 | ("perl-http-message" ,perl-http-message) |
72 | ("perl-xml-libxml" ,perl-xml-libxml) |
73 | ("perl-xml-simple" ,perl-xml-simple) |
74 | ("perl-xml-parser" ,perl-xml-parser) |
75 | ("perl-glib" ,perl-glib))) |
76 | (home-page "http://www.gcstar.org") |
77 | (synopsis "Collection management") |
78 | (description |
79 | "GCstar is a free open source application for managing your collections. |
80 | Detailed information on each item can be automatically retrieved from the |
81 | internet and you can store additional data, such as the location or who you've |
82 | lent it to. You may also search and filter your collection by many criteria.") |
83 | (license license:gpl2+))) |
84 |