guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#75009] [PATCH v2] gnu: Add tellico.


From: Noé Lopez
Subject: [bug#75009] [PATCH v2] gnu: Add tellico.
Date: Sun, 22 Dec 2024 23:37:11 +0100

From: Sughosha <sughosha@disroot.org>

* gnu/packages/kde-office.scm (tellico): New variable.

Change-Id: Id694c2d58fa1da9c3b098fe92926cdf280044fa6
---
 gnu/packages/kde-office.scm | 104 +++++++++++++++++++++++++++++++++++-
 1 file changed, 103 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/kde-office.scm b/gnu/packages/kde-office.scm
index 96c8318225..2ea592601f 100644
--- a/gnu/packages/kde-office.scm
+++ b/gnu/packages/kde-office.scm
@@ -19,22 +19,27 @@
 (define-module (gnu packages kde-office)
   #:use-module (guix packages)
   #:use-module (guix download)
+  #:use-module (guix git-download)
   #:use-module (guix build-system qt)
   #:use-module (guix gexp)
   #:use-module (guix utils)
   #:use-module ((guix licenses) #:prefix license:)
   #:use-module (gnu packages algebra)
   #:use-module (gnu packages boost)
+  #:use-module (gnu packages cdrom)
   #:use-module (gnu packages compression)
   #:use-module (gnu packages fontutils)
   #:use-module (gnu packages freedesktop)
+  #:use-module (gnu packages glib)
   #:use-module (gnu packages ghostscript)
   #:use-module (gnu packages graphics)
   #:use-module (gnu packages hunspell)
   #:use-module (gnu packages kde)
   #:use-module (gnu packages kde-frameworks)
+  #:use-module (gnu packages kde-multimedia)
   #:use-module (gnu packages libreoffice)
   #:use-module (gnu packages maths)
+  #:use-module (gnu packages mp3)
   #:use-module (gnu packages pdf)
   #:use-module (gnu packages perl)
   #:use-module (gnu packages pkg-config)
@@ -42,7 +47,8 @@ (define-module (gnu packages kde-office)
   #:use-module (gnu packages tls)
   #:use-module (gnu packages version-control)
   #:use-module (gnu packages wm)
-  #:use-module (gnu packages xdisorg))
+  #:use-module (gnu packages xdisorg)
+  #:use-module (gnu packages xml))
 
 (define-public calligra
   (package
@@ -182,3 +188,99 @@ (define-public ghostwriter
 processor built in, and can integrate with Pandoc, MultiMarkdown, Discount, and
 cmark processors if they are installed.")
     (license license:gpl3+)))
+
+
+(define-public tellico
+  (package
+    (name "tellico")
+    (version "4.0.1")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://invent.kde.org/office/tellico";)
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32 "05crffizpq31d2a3dy0l01vmigvjx1rz753kmqkqdmihcnwgz0z6"))
+              (modules '((guix build utils)))
+              (snippet
+               ;; Fix including QtPrintSupport.
+               '(substitute* (find-files "src" "\\.(h|cpp)$")
+                  (("#include <QPrint") "#include <QtPrintSupport/QPrint")))))
+    (build-system qt-build-system)
+    (arguments
+     (list #:qtbase qtbase
+           #:phases
+           #~(modify-phases %standard-phases
+               (replace 'check
+                 (lambda* (#:key tests? #:allow-other-keys)
+                   (when tests?
+                     (setenv "HOME" (getcwd))
+                     (setenv "XDG_RUNTIME_DIR" (getcwd))
+                     ;; In FileListingTest::testCpp() function,
+                     ;; QVERIFY(!entry->field("icon").isEmpty()) returns FALSE.
+                     (invoke "dbus-launch" "ctest" "-E"
+                             "filelistingtest")))))))
+    (native-inputs
+     (list dbus extra-cmake-modules kdoctools))
+    (inputs
+     ;; TODO: Package libcsv, libksane and yaz.
+     (list exempi
+           karchive
+           kcodecs
+           kcompletion
+           kconfig
+           kconfigwidgets
+           kcoreaddons
+           kcrash
+           kfilemetadata
+           kguiaddons
+           ki18n
+           kiconthemes
+           kio
+           kitemmodels
+           kjobwidgets
+           knewstuff
+           ktextwidgets
+           kwidgetsaddons
+           kxmlgui
+           libcdio
+           libkcddb
+           libxml2
+           libxslt
+           qtcharts
+           qtwebengine
+           solid
+           sonnet
+           taglib))
+    (home-page "https://tellico-project.org/";)
+    (synopsis "Collection manager")
+    (description "Tellico is an application for organizing your collections.  
It
+provides default templates for books, bibliographies, videos, music, video
+games, coins, stamps, trading cards, comic books, and wines.  It allows you to
+enter your collection in a catalogue database, saving many different properties
+like title, author, etc.
+
+Features:
+
+@itemize
+@item Supports default collections of books, bibliographic entries, videos,
+ music, video games, comic books, coins, stamps, trading cards, wines, board
+ games, and file catalogs.
+@item Supports user-defined custom collections.
+@item Supports any number of user-defined fields, of several different types:
+ text, paragraph, list, checkbox, number, URL, date, images, and combinations.
+@item Handles entries with multiple authors, genres, keywords, etc.
+#item Automatically formats titles and names.
+@item Supports collection searching and view filtering.
+@item Sorts and groups collection by various properties.
+@item Allows customizable entry templates through XSLT.
+@item Imports MODS, Bibtex, RIS, CSV, PDF metadata, and many other formats.
+@item Exports to Bibtex, ONIX, CSV, HTML, and other formats.
+@item Imports information directly from Amazon.com, IMDb, z39.50 servers,
+ PubMed, SRU servers, CrossRef.org, various other websites, and from external
+ scripts.
+@item Imports CDDB data for cataloging audio CDs.
+@item Scans and imports audio file collections, such as mp3 or ogg.
+@end itemize")
+    (license license:gpl2+)))

base-commit: f63c81d8af46ee7738ddb9678ef4db7a6b6e3287
-- 
2.46.0






reply via email to

[Prev in Thread] Current Thread [Next in Thread]