83 lines
2.2 KiB
Scheme
83 lines
2.2 KiB
Scheme
|
(define-module
|
||
|
(goldendict-ng))
|
||
|
|
||
|
(use-modules
|
||
|
(guix packages)
|
||
|
(guix git-download)
|
||
|
(gnu packages version-control)
|
||
|
(guix download)
|
||
|
(guix build-system gnu)
|
||
|
(gnu packages xiph)
|
||
|
(gnu packages hunspell)
|
||
|
(gnu packages xorg)
|
||
|
(gnu packages cmake)
|
||
|
(guix build-system cmake)
|
||
|
(gnu packages image)
|
||
|
(gnu packages compression)
|
||
|
(gnu packages video)
|
||
|
(gnu packages pkg-config)
|
||
|
(gnu packages qt)
|
||
|
(guix licenses))
|
||
|
|
||
|
(
|
||
|
define-public
|
||
|
goldendict-ng
|
||
|
(package
|
||
|
(name "goldendict-ng")
|
||
|
(version "23.1")
|
||
|
(source
|
||
|
(origin
|
||
|
(method git-fetch)
|
||
|
(uri
|
||
|
(git-reference
|
||
|
(url "https://github.com/xiaoyifang/goldendict-ng.git")
|
||
|
(commit "80eb60a138d569210115db3ddb1b626c8932d27e")))
|
||
|
(sha256
|
||
|
(base32 "1jikpq8l8v0acgnnwnxg4x3w6jhyblmk9qnbamzscclrwq5bybxr"))))
|
||
|
(build-system cmake-build-system)
|
||
|
(arguments
|
||
|
`(#:configure-flags '("-DCMAKE_BUILD_TYPE=Release")
|
||
|
#:phases
|
||
|
(modify-phases %standard-phases
|
||
|
(add-after 'unpack 'patch-some-file
|
||
|
(lambda* (#:key inputs #:allow-other-keys)
|
||
|
(let ((cmake (assoc-ref inputs "cmake")))
|
||
|
(substitute* "CMakeLists.txt"
|
||
|
(("find_package(Threads REQUIRED)")
|
||
|
(string-append "find_package(Threads REQUIRED)\n"
|
||
|
"set(CMAKE_CXX_STANDARD 11)\n"
|
||
|
"set(CMAKE_CXX_STANDARD_REQUIRED ON)\n"
|
||
|
"set(CMAKE_CXX_EXTENSIONS OFF)")))
|
||
|
#t))))))
|
||
|
(native-inputs
|
||
|
(list
|
||
|
cmake pkg-config))
|
||
|
(inputs
|
||
|
(list libvorbis
|
||
|
hunspell
|
||
|
xproto
|
||
|
libtiff
|
||
|
qtbase
|
||
|
qtmultimedia
|
||
|
qtsvg
|
||
|
qttools
|
||
|
qtwebengine
|
||
|
qtwebview
|
||
|
qtx11extras
|
||
|
libxtst
|
||
|
lzo
|
||
|
bzip2
|
||
|
git
|
||
|
ao
|
||
|
ffmpeg))
|
||
|
|
||
|
(synopsis "A feature-rich dictionary lookup program")
|
||
|
(description
|
||
|
"GoldenDict is a feature-rich dictionary lookup program,
|
||
|
supporting multiple dictionary formats (StarDict, Babylon, Lingvo, Dictd, AARD,
|
||
|
MDict, SDict) and online dictionaries, featuring perfect article rendering with
|
||
|
the complete markup, illustrations and other content retained, and allowing you
|
||
|
to type in words without any accents or correct case.")
|
||
|
(home-page "http://goldendict.org/")
|
||
|
(license gpl3+)))
|