guix-more/more/packages/collection.scm

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