gnu: owncloud-client: Update to 2.4.1.

* gnu/packages/sync.scm (owncloud-client): Update to 2.4.1.
[phases]: Remove custom 'change-rpath-dirs phase.
[arguments]: Disable building with qtwebkit.
[inputs]: Remove inotify-tools, openssl, qtwebkit.
master
Efraim Flashner 2018-07-03 10:45:53 +03:00
parent 88388766f7
commit e718ce1460
No known key found for this signature in database
GPG Key ID: 41AAE7DCCA3D8351
1 changed files with 10 additions and 26 deletions

View File

@ -1,5 +1,5 @@
;;; GNU Guix --- Functional package management for GNU ;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2015, 2016, 2017 Efraim Flashner <efraim@flashner.co.il> ;;; Copyright © 2015, 2016, 2017, 2018 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2017 Ricardo Wurmus <rekado@elephly.net> ;;; Copyright © 2017 Ricardo Wurmus <rekado@elephly.net>
;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr> ;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr>
;;; Copyright © 2018 Ludovic Courtès <ludo@gnu.org> ;;; Copyright © 2018 Ludovic Courtès <ludo@gnu.org>
@ -45,24 +45,22 @@
(define-public owncloud-client (define-public owncloud-client
(package (package
(name "owncloud-client") (name "owncloud-client")
(version "2.3.4") (version "2.4.1")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (string-append "https://download.owncloud.com/desktop/stable/" (uri (string-append "https://download.owncloud.com/desktop/stable/"
"owncloudclient-" version ".tar.xz")) "owncloudclient-" version ".tar.xz"))
(sha256 (sha256
(base32 "1fpi1mlp2b8sx2993b4mava5c6qw794dmlayih430299z1l9wh49")) (base32 "08xayz0alvypwa1bjmw1rmh4m3sclld4yq7kcbf264983icawqj4"))
(patches (search-patches "owncloud-disable-updatecheck.patch")) (patches (search-patches "owncloud-disable-updatecheck.patch"))
(modules '((guix build utils))) (modules '((guix build utils)))
(snippet (snippet
'(begin '(begin
;; only allows bundled libcrashreporter-qt ;; libcrashreporter-qt has its own bundled dependencies
(delete-file-recursively "src/3rdparty/libcrashreporter-qt") (delete-file-recursively "src/3rdparty/libcrashreporter-qt")
;; we already package qtkeychain and sqlite
(delete-file-recursively "src/3rdparty/qtkeychain")
(delete-file-recursively "src/3rdparty/sqlite3") (delete-file-recursively "src/3rdparty/sqlite3")
;; qjson is packaged, qprogessindicator, qlockedfile, qtokenizer and ;; qprogessindicator, qlockedfile, qtokenizer and
;; qtsingleapplication have not yet been packaged, but all are ;; qtsingleapplication have not yet been packaged, but all are
;; explicitly used from the 3rdparty folder during build. ;; explicitly used from the 3rdparty folder during build.
;; We can also remove the macgoodies folder ;; We can also remove the macgoodies folder
@ -72,20 +70,6 @@
(arguments (arguments
`(#:phases `(#:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(add-after 'unpack 'change-rpath-dirs
(lambda _
(substitute* '("src/libsync/CMakeLists.txt"
"csync/src/CMakeLists.txt")
;; We store the libs in out/lib and not /usr/lib/appname, so we
;; need the executable to point to the libraries in /lib and not
;; in /lib/appname.
(("\\/\\$\\{APPLICATION_EXECUTABLE\\}") ""))
(substitute* '("src/cmd/CMakeLists.txt"
"src/crashreporter/CMakeLists.txt"
"src/gui/CMakeLists.txt")
;; This has the same issue as the substitution above.
(("\\/\\$\\{APPLICATION_EXECUTABLE\\}\\\"") "\""))
#t))
(add-after 'unpack 'delete-failing-tests (add-after 'unpack 'delete-failing-tests
;; "Could not create autostart folder" ;; "Could not create autostart folder"
(lambda _ (lambda _
@ -93,18 +77,18 @@
(("owncloud_add_test\\(Utility \"\"\\)" test) (("owncloud_add_test\\(Utility \"\"\\)" test)
(string-append "#" test))) (string-append "#" test)))
#t))) #t)))
#:configure-flags '("-DUNIT_TESTING=ON"))) #:configure-flags '("-DUNIT_TESTING=ON"
;; build without qtwebkit, which causes the
;; package to FTBFS while looking for QWebView.
"-DNO_SHIBBOLETH=1")))
(native-inputs (native-inputs
`(("cmocka" ,cmocka) `(("cmocka" ,cmocka)
("perl" ,perl) ("perl" ,perl)
("pkg-config" ,pkg-config) ("pkg-config" ,pkg-config)
("qtlinguist" ,qttools))) ("qtlinguist" ,qttools)))
(inputs (inputs
`(("inotify-tools" ,inotify-tools) `(("qtbase" ,qtbase)
("openssl" ,openssl)
("qtbase" ,qtbase)
("qtkeychain" ,qtkeychain) ("qtkeychain" ,qtkeychain)
("qtwebkit" ,qtwebkit)
("sqlite" ,sqlite) ("sqlite" ,sqlite)
("zlib" ,zlib))) ("zlib" ,zlib)))
(home-page "https://owncloud.org") (home-page "https://owncloud.org")