gettext.scm
| 1 | ;;; GNU Guix --- Functional package management for GNU |
| 2 | ;;; Copyright © 2017 Julien Lepiller <julien@lepiller.eu> |
| 3 | ;;; |
| 4 | ;;; This file is part of GNU Guix. |
| 5 | ;;; |
| 6 | ;;; GNU Guix is free software; you can redistribute it and/or modify it |
| 7 | ;;; under the terms of the GNU General Public License as published by |
| 8 | ;;; the Free Software Foundation; either version 3 of the License, or (at |
| 9 | ;;; your option) any later version. |
| 10 | ;;; |
| 11 | ;;; GNU Guix is distributed in the hope that it will be useful, but |
| 12 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | ;;; GNU General Public License for more details. |
| 15 | ;;; |
| 16 | ;;; You should have received a copy of the GNU General Public License |
| 17 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. |
| 18 | |
| 19 | (define-module (more packages gettext) |
| 20 | #:use-module ((guix licenses) #:prefix license:) |
| 21 | #:use-module (gnu packages) |
| 22 | #:use-module (guix packages) |
| 23 | #:use-module (guix download) |
| 24 | #:use-module (guix git-download) |
| 25 | #:use-module (guix utils) |
| 26 | #:use-module (guix build-system gnu) |
| 27 | #:use-module (more packages rdf) |
| 28 | #:use-module (gnu packages boost) |
| 29 | #:use-module (gnu packages enchant) |
| 30 | #:use-module (gnu packages gtk) |
| 31 | #:use-module (gnu packages icu4c) |
| 32 | #:use-module (gnu packages pkg-config) |
| 33 | #:use-module (gnu packages wxwidgets)) |
| 34 | |
| 35 | (define-public poedit |
| 36 | (package |
| 37 | (name "poedit") |
| 38 | (version "2.0.6") |
| 39 | (source (origin |
| 40 | (method url-fetch) |
| 41 | (uri (string-append "https://github.com/vslavik/poedit/releases/" |
| 42 | "download/v" version "-oss/poedit-" version |
| 43 | ".tar.gz")) |
| 44 | (sha256 |
| 45 | (base32 |
| 46 | "1g5ii5wnffjh1xc24c93875r1qqzd024bqizmq400i35dppgxsd9")))) |
| 47 | (build-system gnu-build-system) |
| 48 | (arguments |
| 49 | `(#:configure-flags |
| 50 | (list (string-append "--with-boost-libdir=" (assoc-ref %build-inputs "boost") "/lib")))) |
| 51 | (native-inputs |
| 52 | `(("pkg-config" ,pkg-config))) |
| 53 | (inputs |
| 54 | `(("boost" ,boost) |
| 55 | ("enchant" ,enchant) |
| 56 | ("gtk+" ,gtk+) |
| 57 | ("gtkspell3" ,gtkspell3) |
| 58 | ("icu4c" ,icu4c) |
| 59 | ("lucene++" ,lucene++) |
| 60 | ("wxwidgets" ,wxwidgets))) |
| 61 | (home-page "https://poedit.net/") |
| 62 | (synopsis "Gettext catalog editing tool") |
| 63 | (description |
| 64 | "Poedit is a GUI frontend to the GNU gettext utilities and a catalog |
| 65 | editor/source code parser. It helps with translating applications into |
| 66 | other languages.") |
| 67 | (license license:expat))) |
| 68 |