| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 18 | |
| 19 |
|
| 20 | (define-module (gnu packages poedit)
|
| 21 | #:use-module ((guix licenses) #:prefix license:)
|
| 22 | #:use-module (gnu packages)
|
| 23 | #:use-module (guix packages)
|
| 24 | #:use-module (guix gexp)
|
| 25 | #:use-module (guix git-download)
|
| 26 | #:use-module (guix utils)
|
| 27 | #:use-module (guix build-system gnu)
|
| 28 | #:use-module (gnu packages autotools)
|
| 29 | #:use-module (gnu packages bash)
|
| 30 | #:use-module (gnu packages boost)
|
| 31 | #:use-module (gnu packages cpp)
|
| 32 | #:use-module (gnu packages enchant)
|
| 33 | #:use-module (gnu packages gettext)
|
| 34 | #:use-module (gnu packages gtk)
|
| 35 | #:use-module (gnu packages icu4c)
|
| 36 | #:use-module (gnu packages pkg-config)
|
| 37 | #:use-module (gnu packages python)
|
| 38 | #:use-module (gnu packages rdf)
|
| 39 | #:use-module (gnu packages wxwidgets)
|
| 40 | #:use-module (gnu packages xml))
|
| 41 |
|
| 42 | (define-public poedit
|
| 43 | (package
|
| 44 | (name "poedit")
|
| 45 | (version "3.5.2")
|
| 46 | (source
|
| 47 | (origin
|
| 48 | (method git-fetch)
|
| 49 | (uri (git-reference
|
| 50 | (url "https://github.com/vslavik/poedit")
|
| 51 | (commit (string-append "v" version "-oss"))))
|
| 52 | (file-name (git-file-name name version))
|
| 53 | (sha256
|
| 54 | (base32 "119hhhjikzdvawldav99zzxnx7rj2ri5crq8smb2lprab8fx70hm"))
|
| 55 | (modules '((guix build utils)))
|
| 56 | (snippet #~(delete-file-recursively "deps"))))
|
| 57 | (build-system gnu-build-system)
|
| 58 | (arguments
|
| 59 | (list
|
| 60 | #:configure-flags
|
| 61 | #~(list (string-append "--with-boost-libdir="
|
| 62 | #$(this-package-input "boost") "/lib"))
|
| 63 | #:phases
|
| 64 | #~(modify-phases %standard-phases
|
| 65 | (add-after 'install 'wrap-executable
|
| 66 | (lambda* (#:key inputs #:allow-other-keys)
|
| 67 | (wrap-program (string-append #$output "/bin/poedit")
|
| 68 | `("PATH" prefix
|
| 69 | ,(list
|
| 70 | (dirname (search-input-file inputs "bin/gettext"))))))))))
|
| 71 |
|
| 72 | (native-inputs (list autoconf automake pkg-config))
|
| 73 | (inputs (list bash-minimal
|
| 74 | boost-1.83
|
| 75 | enchant
|
| 76 | gettext-minimal
|
| 77 | gtk+
|
| 78 | gtkspell3
|
| 79 | icu4c
|
| 80 | lucene++
|
| 81 | nlohmann-json
|
| 82 | python-minimal
|
| 83 | pugixml
|
| 84 | wxwidgets))
|
| 85 | (home-page "https://poedit.net/")
|
| 86 | (synopsis "Gettext catalog editing tool")
|
| 87 | (description
|
| 88 | "Poedit is a GUI frontend to the GNU gettext utilities and a catalog
|
| 89 | editor/source code parser. It helps with translating applications into other
|
| 90 | languages.")
|
| 91 | (license license:expat)))
|