projects/guix·blob python-team · refs

91 lines · 3.3 KiB

1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2019 Julien Lepiller <[email protected]>
3;;; Copyright © 2019 Tobias Geerinckx-Rice <[email protected]>
4;;;
5;;; This file is part of GNU Guix.
6;;;
7;;; GNU Guix is free software; you can redistribute it and/or modify it
8;;; under the terms of the GNU General Public License as published by
9;;; the Free Software Foundation; either version 3 of the License, or (at
10;;; your option) any later version.
11;;;
12;;; GNU Guix is distributed in the hope that it will be useful, but
13;;; WITHOUT ANY WARRANTY; without even the implied warranty of
14;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15;;; GNU General Public License for more details.
16;;;
17;;; You should have received a copy of the GNU General Public License
18;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
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
89editor/source code parser. It helps with translating applications into other
90languages.")
91 (license license:expat)))