From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20=C4=8Cech?= Subject: [PATCH] gnu: sdcv: Add new variable. Date: Mon, 16 Mar 2015 10:18:53 +0100 Message-ID: <1426497533-7895-1-git-send-email-sleep_walker@gnu.org> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56758) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXRAx-00045n-UR for guix-devel@gnu.org; Mon, 16 Mar 2015 05:19:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YXRAt-0005DT-LY for guix-devel@gnu.org; Mon, 16 Mar 2015 05:19:07 -0400 List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org * gnu/packages/dictionaries.scm (sdcv): New variable. --- gnu/packages/dictionaries.scm | 47 ++++++++++++++++++++++++++++++++++++++----- 1 file changed, 42 insertions(+), 5 deletions(-) diff --git a/gnu/packages/dictionaries.scm b/gnu/packages/dictionaries.scm index 345d0a2..b18e02a 100644 --- a/gnu/packages/dictionaries.scm +++ b/gnu/packages/dictionaries.scm @@ -17,14 +17,18 @@ ;;; along with GNU Guix. If not, see . (define-module (gnu packages dictionaries) - #:use-module (guix licenses) + #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) #:use-module (guix download) #:use-module (guix build-system trivial) + #:use-module (guix build-system cmake) #:use-module (gnu packages base) - #:use-module (gnu packages texinfo) - #:use-module ((gnu packages compression) - #:select (gzip))) + #:use-module (gnu packages compression) + #:use-module (gnu packages gettext) + #:use-module (gnu packages glib) + #:use-module (gnu packages pkg-config) + #:use-module (gnu packages readline) + #:use-module (gnu packages texinfo)) (define-public vera (package @@ -75,4 +79,37 @@ (description "V.E.R.A. (Virtual Entity of Relevant Acronyms) is a list of computing acronyms distributed as an info document.") - (license fdl1.3+))) + (license license:fdl1.3+))) + +(define-public sdcv + (package + (name "sdcv") + (version "0.5.0-beta4") + (source + (origin + (method url-fetch) + (uri (string-append "mirror://sourceforge/project/sdcv/sdcv/sdcv-" + version "-Source.tar.bz2")) + (sha256 + (base32 "1b9v91al2c1499q6yx6q8jggid0714444mfj6myqgz3nvqjyrrqr")))) + (build-system cmake-build-system) + (native-inputs + `(("pkg-config" ,pkg-config))) + (inputs + `(("glib" ,glib) + ("gettext" ,gnu-gettext) + ("readline" ,readline) + ("zlib" ,zlib))) + (arguments + `(#:tests? #f ; no tests implemented + #:phases + ;; this is known workaround for missing lang files + (alist-cons-after 'build 'build-lang + (lambda _ (zero? (system* "make" "lang"))) + %standard-phases))) + (home-page "http://sdcv.sourceforge.net/") + (synopsis "Command line variant of StarDict") + (description + "Sdcv is command line dictionary utility, which supports StarDict dictinary +format.") + (license license:gpl2+))) -- 2.2.1