summaryrefslogtreecommitdiff
path: root/px/packages/dav.scm
blob: 333e22704bd7c06a5ddedaef9a5646f7f46fb2ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
(define-module (px packages dav)
  #:use-module ((guix licenses)
                #:select (gpl3))
  #:use-module ((guix licenses)
                #:prefix license:)
  #:use-module (guix packages)
  #:use-module (guix download)
  #:use-module (guix git-download)
  #:use-module (guix build-system cmake)
  #:use-module (gnu packages autotools)
  #:use-module (gnu packages base)
  #:use-module (gnu packages file)
  #:use-module (gnu packages pkg-config)
  #:use-module (gnu packages qt)
  #:use-module (gnu packages file))

(define-public px-cal-card-dav-lib
  (package
    (name "px-cal-card-dav-lib")
    (version "0.0.5")
    (source
     (origin
       (method url-fetch)
       (uri (string-append "https://source.pantherx.org/" name "_v" version
                           ".tgz"))
       (sha256
        (base32 "1273cy1yxx9i4723s88xrq1vf9448dk42i52rfc6245hnb83lcv2"))))
    (build-system cmake-build-system)
    (arguments
     `(#:tests? #f))
    (native-inputs `(("pkg-config" ,pkg-config)
                     ("qtbase" ,qtbase-5)))
    (home-page "https://www.pantherx.org/")
    (synopsis
     "C++ CardDAV/CalDAV Client library")
    (description
     "C++ CardDAV/CalDAV Client library built with QT to connect to CardDAV/CalDAV Servers")
    (license license:expat)))

(define-public libccdav
  (package
    (name "libccdav")
    (version "0.0.3")
    (source
     (origin
       (method git-fetch)
       (uri (git-reference
             (url "https://github.com/FSajadi/libccdav")
             (commit "6ab7e1479b7b6696ca6be6491b527f41e799c0bc")))
       (file-name (git-file-name name version))
       (sha256
        (base32 "01s3rfmafvwadlqv6qx0dzlax0vga3g8w6wxkcasyxjdc1qygcx5"))))
    (build-system cmake-build-system)
    (arguments
     `(#:tests? #f
       #:phases (modify-phases %standard-phases
                  (add-after 'unpack 'update-installation-path
                    (lambda* (#:key outputs #:allow-other-keys)
                      (let ((out (assoc-ref outputs "out")))
                        (substitute* "CMakeLists.txt"
                          (("/usr")
                           out)) #t))))))
    (native-inputs `(("pkg-config" ,pkg-config)
                     ("qtbase" ,qtbase-5)))
    (inputs `(("qtbase" ,qtbase-5)))
    (home-page "https://github.com/FSajadi/libccdav")
    (synopsis
     "C++ CardDAV/CalDAV Client library")
    (description
     "C++ CardDAV/CalDAV Client library built with QT to connect to CardDAV/CalDAV Servers")
    (license gpl3)))