From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Hashe Subject: [PATCH 2/2] gnu: Add gedit. Date: Sat, 7 Nov 2015 23:18:37 -0600 Message-ID: <1446959917-25693-2-git-send-email-david.hashe@dhashe.com> References: <1446959917-25693-1-git-send-email-david.hashe@dhashe.com> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35818) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZvINx-0002YH-QN for guix-devel@gnu.org; Sun, 08 Nov 2015 00:19:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZvINu-0003xO-LA for guix-devel@gnu.org; Sun, 08 Nov 2015 00:19:25 -0500 Received: from mail-io0-x22a.google.com ([2607:f8b0:4001:c06::22a]:35695) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZvINu-0003xI-Gf for guix-devel@gnu.org; Sun, 08 Nov 2015 00:19:22 -0500 Received: by ioc74 with SMTP id 74so92771601ioc.2 for ; Sat, 07 Nov 2015 21:19:22 -0800 (PST) Received: from localhost ([76.78.130.15]) by smtp.gmail.com with ESMTPSA id r71sm3354163ioi.41.2015.11.07.21.19.21 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sat, 07 Nov 2015 21:19:21 -0800 (PST) In-Reply-To: <1446959917-25693-1-git-send-email-david.hashe@dhashe.com> 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/gnome.scm (gedit): New variable. --- gnu/packages/gnome.scm | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm index 9bd1c31..b6ca7c7 100644 --- a/gnu/packages/gnome.scm +++ b/gnu/packages/gnome.scm @@ -3693,3 +3693,59 @@ such as gzip tarballs.") GTK+ text widget GtkTextView. It improves GtkTextView by implementing syntax highlighting and other features typical of a source code editor.") (license license:lgpl2.1+))) + +(define-public gedit + (package + (name "gedit") + (version "3.16.4") + (source (origin + (method url-fetch) + (uri (string-append "mirror://gnome/sources/" name "/" + (version-major+minor version) "/" + name "-" version ".tar.xz")) + (sha256 + (base32 + "1h2czf2v0krqr3kar4fm2vspim30rwdb2yhab34sdn23j7m3f291")))) + (build-system glib-or-gtk-build-system) + (arguments + `(#:configure-flags '("--disable-spell") ; requires enchant + #:phases + (modify-phases %standard-phases + (add-after + 'install 'wrap-eog + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out")) + (gi-typelib-path (getenv "GI_TYPELIB_PATH"))) + (wrap-program (string-append out "/bin/gedit") + `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path)))) + #t))))) + (propagated-inputs + `(("dconf" ,dconf))) + (native-inputs + `(("intltool" ,intltool) + ("itstool", itstool) + ("gobject-introspection" ,gobject-introspection) + ("pkg-config" ,pkg-config))) + (inputs + `(("glib" ,glib) + ("gtk+" ,gtk+) + ("gtksourceview" ,gtksourceview) + ("libpeas" ,libpeas) + ("libxml2" ,libxml2) + ;; TODO: enchant needed for spell plugin + ;;("enchant" ,enchant) + ("iso-codes" ,iso-codes) + ("python-pygobject" ,python-pygobject) + ("python" ,python) + ("gvfs" ,gvfs) + ("gsettings-desktop-schemas" ,gsettings-desktop-schemas) + ("libx11" ,libx11) + ("vala" ,vala) + ("adwaita-icon-theme" ,adwaita-icon-theme) + ("libsoup" ,libsoup) + ("gnome-desktop" ,gnome-desktop))) + (home-page "https://wiki.gnome.org/Apps/Gedit") + (synopsis "GNOME text editor") + (description "While aiming at simplicity and ease of use, gedit is a +powerful general purpose text editor. ") + (license license:gpl2+))) -- 1.9.1