update mango

This commit is contained in:
千住柱間 2025-09-23 00:17:46 -04:00
commit 19d6a54d58
Signed by: hashirama
GPG key ID: 53E62470A86BC185

View file

@ -7,6 +7,7 @@
#:use-module (gnu packages glib)
#:use-module (gnu packages gnome)
#:use-module (gnu packages gtk)
#:use-module (gnu packages compression)
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages python)
#:use-module (gnu packages webkit)
@ -26,96 +27,98 @@
(version* (git-version "3.2.1" revision commit))
(foliate-js
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/johnfactotum/foliate-js")
(commit "cc2882ff396d27ca4133af2e8f2978f19c21846e")))
(file-name
(git-file-name "foliate-js" version*))
(sha256
(base32
"0zhsk7h249dq3rcacchhk0jshksx7da26b909lnxwkk554243mjl")))))
(method git-fetch)
(uri (git-reference
(url "https://github.com/johnfactotum/foliate-js")
(commit "cc2882ff396d27ca4133af2e8f2978f19c21846e")))
(file-name
(git-file-name "foliate-js" version*))
(sha256
(base32
"0zhsk7h249dq3rcacchhk0jshksx7da26b909lnxwkk554243mjl")))))
(package
(name "foliate")
(version version*)
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/johnfactotum/foliate.git")
(commit commit)))
(file-name (git-file-name name version))
(sha256
(base32
"1g2jxa3jm0mfj4jx45gw5vq5rimdsyjym3lgw2dvhns7nb42ik8j"))))
(build-system meson-build-system)
(arguments
(list #:glib-or-gtk? #t
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'copy-foliate-js
(lambda _
(copy-recursively #$foliate-js "src/foliate-js")))
(add-after 'unpack 'skip-gtk-update-icon-cache
(lambda _
(substitute* "meson.build"
(("gtk_update_icon_cache: true")
"gtk_update_icon_cache: false"))))
(add-after 'glib-or-gtk-wrap 'wrap-program
(lambda* (#:key outputs #:allow-other-keys)
(let ((prog (string-append (assoc-ref outputs "out")
"/bin/foliate")))
;; Put existing typelibs before sushi's deps, so as to
;; correctly infer gdk-pixbuf.
(wrap-program prog
`("GI_TYPELIB_PATH" suffix
(,(getenv "GI_TYPELIB_PATH")))
;; for icon.
`("GDK_PIXBUF_MODULE_FILE" =
(,(getenv "GDK_PIXBUF_MODULE_FILE"))))))))))
(name "foliate")
(version version*)
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/johnfactotum/foliate.git")
(commit commit)))
(file-name (git-file-name name version))
(sha256
(base32
"1g2jxa3jm0mfj4jx45gw5vq5rimdsyjym3lgw2dvhns7nb42ik8j"))))
(build-system meson-build-system)
(arguments
(list #:glib-or-gtk? #t
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'copy-foliate-js
(lambda _
(copy-recursively #$foliate-js "src/foliate-js")))
(add-after 'unpack 'skip-gtk-update-icon-cache
(lambda _
(substitute* "meson.build"
(("gtk_update_icon_cache: true")
"gtk_update_icon_cache: false"))))
(add-after 'glib-or-gtk-wrap 'wrap-program
(lambda* (#:key outputs #:allow-other-keys)
(let ((prog (string-append (assoc-ref outputs "out")
"/bin/foliate")))
;; Put existing typelibs before sushi's deps, so as to
;; correctly infer gdk-pixbuf.
(wrap-program prog
`("GI_TYPELIB_PATH" suffix
(,(getenv "GI_TYPELIB_PATH")))
;; for icon.
`("GDK_PIXBUF_MODULE_FILE" =
(,(getenv "GDK_PIXBUF_MODULE_FILE"))))))))))
(native-inputs
(list pkg-config
`(,glib "bin")
gettext-minimal
gobject-introspection
desktop-file-utils
foliate-js))
(inputs
(list libadwaita
glib
glib-networking
webkitgtk
gtk
gjs))
(home-page "https://johnfactotum.github.io/foliate/")
(synopsis "Read books in style")
(description "A simple and modern GTK e-book reader")
;; foliate foliate-js
(license (list license:gpl3 license:expat)))))
(native-inputs
(list pkg-config
`(,glib "bin")
gettext-minimal
gobject-introspection
desktop-file-utils
foliate-js))
(inputs
(list libadwaita
glib
glib-networking
webkitgtk
gtk
gjs))
(home-page "https://johnfactotum.github.io/foliate/")
(synopsis "Read books in style")
(description "A simple and modern GTK e-book reader")
;; foliate foliate-js
(license (list license:gpl3 license:expat)))))
(define-public mango
(package
(name "mango")
(version "0.27.0")
(version "0.30.7")
(source (origin
(method url-fetch)
(uri (string-append "https://github.com/getmango/Mango/releases/download/v"
version "/mango"))
(sha256 (base32 "0xfk246ci76vb1n1kf7b35iiiz0x58sci7qqg3ixpyvvja8hvag2"))))
(uri (string-append "https://github.com/vrsandeep/Mango/releases/download/v"
version "/mango.zip"))
(sha256 (base32 "022br7c74sh8a7k171qd2a3vzxhai1ih1f7j5h01p06zhdz7ia5j"))))
(build-system copy-build-system)
(native-inputs
(list unzip))
(supported-systems '("x86_64-linux"))
(arguments
`(#:install-plan '(("mango" "bin/"))
#:phases
(modify-phases %standard-phases
(add-after 'install 'set-executable-permissions
(lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
(bin (string-append out "/bin/mango")))
(unless (file-exists? bin)
(error "Mango binary missing in build output"))
(chmod bin #o755))))))) ; Changed to chmod with octal permissions
(add-after 'install 'set-executable-permissions
(lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
(bin (string-append out "/bin/mango")))
(unless (file-exists? bin)
(error "Mango binary missing in build output"))
(chmod bin #o755))))))) ; Changed to chmod with octal permissions
(home-page "https://github.com/getmango/Mango")
(synopsis "Self-hosted manga server with web reader and metadata management")
(description
@ -128,4 +131,4 @@
(license license:expat)))
foliate
mango