From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: joakim@verona.se Newsgroups: gmane.emacs.devel Subject: Re: an xwidget-emacs rpm Date: Thu, 07 May 2015 11:09:54 +0200 Message-ID: References: <554B00A4.6080300@online.de> <87wq0kvoc7.fsf@mango.localdomain> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1430989849 7151 80.91.229.3 (7 May 2015 09:10:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 7 May 2015 09:10:49 +0000 (UTC) Cc: Andreas =?iso-8859-1?Q?R=F6hler?= , emacs-devel@gnu.org To: Ricardo Wurmus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu May 07 11:10:38 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YqHpF-0005RB-QF for ged-emacs-devel@m.gmane.org; Thu, 07 May 2015 11:10:37 +0200 Original-Received: from localhost ([::1]:49602 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YqHpE-0003Cf-Qv for ged-emacs-devel@m.gmane.org; Thu, 07 May 2015 05:10:36 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48380) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YqHp6-0003Ca-DD for emacs-devel@gnu.org; Thu, 07 May 2015 05:10:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YqHp1-0005eo-9w for emacs-devel@gnu.org; Thu, 07 May 2015 05:10:28 -0400 Original-Received: from mx1.bahnhof.se ([213.80.101.11]:51391) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YqHp0-0005dt-SN for emacs-devel@gnu.org; Thu, 07 May 2015 05:10:23 -0400 Original-Received: from localhost (mf.bahnhof.se [213.80.101.20]) by mx1-reinject (Postfix) with ESMTP id 6032444D52; Thu, 7 May 2015 11:10:21 +0200 (CEST) X-Virus-Scanned: by amavisd-new using ClamAV at bahnhof.se (MF2) Original-Received: from mf2.bahnhof.se ([127.0.0.1]) by localhost (mf2.bahnhof.se [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9bADAw2cr+6m; Thu, 7 May 2015 11:10:11 +0200 (CEST) Original-Received: from mta.verona.se (h-235-62.a149.priv.bahnhof.se [85.24.235.62]) by mf2.bahnhof.se (Postfix) with ESMTP id 15E5D94010E; Thu, 7 May 2015 11:10:10 +0200 (CEST) Original-Received: from localhost (unknown [127.0.0.1]) by mta.verona.se (Postfix) with ESMTP id B3DD353281E; Thu, 7 May 2015 09:10:10 +0000 (UTC) X-Virus-Scanned: amavisd-new at verona.se Original-Received: from mta.verona.se ([127.0.0.1]) by localhost (exodia.verona.se [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GPz0fb9EMSLi; Thu, 7 May 2015 11:09:54 +0200 (CEST) Original-Received: from exodia.verona.se (www.verona.se [192.168.200.15]) by mta.verona.se (Postfix) with ESMTP id CCA9B532814; Thu, 7 May 2015 11:09:54 +0200 (CEST) In-Reply-To: <87wq0kvoc7.fsf@mango.localdomain> (Ricardo Wurmus's message of "Thu, 07 May 2015 09:28:08 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 213.80.101.11 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:186313 Archived-At: Ricardo Wurmus writes: > Andreas R=F6hler writes: > >> being slightly bewildered by the rpm-format. As used to either doing=20 >> make or rmp... >> BTW is there a way to compile it from source? > > Attached is a recipe for GNU Guix to compile Emacs from source. (It > inherits from the Emacs package definition in Guix.) You can just drop > this file somewhere (for example in ~/my-packages) and then run > > GUIX_PACKAGE_PATH=3D~/my-packages/ guix build emacs-xwidget > > It will fetch commit 0cfb6600a837f67997aef027f0183aca9df05df9 from the > git repository on savannah, run autogen.sh and build Emacs with the > xwidget feature. This seems very cool! I'm not familiar at all with Guix though. Seems like a good opportunity to learn it! > > ~~ Ricardo > > (define-module (emacs-xwidget) > #:use-module ((guix licenses) #:prefix license:) > #:use-module (guix packages) > #:use-module (guix download) > #:use-module (guix git-download) > #:use-module (guix build-system gnu) > #:use-module (gnu packages) > #:use-module (gnu packages emacs) > #:use-module (gnu packages autotools) > #:use-module (guix utils) > #:use-module (srfi srfi-1)) > > (define-public emacs-xwidget > (let ((commit "0cfb6600a837f67997aef027f0183aca9df05df9")) > (package (inherit emacs) > (name "emacs-xwidget") > (source (origin > (method git-fetch) > (uri (git-reference > (url "http://git.savannah.gnu.org/r/emacs.git") > (commit commit))) > (sha256 > (base32 > "1b6gacwg16836g3hy5mqlpg1fxx8idvss0xhlwvskj6rf0lxyqji")) > (file-name (string-append name "-checkout-" commit)) > (patches (list (search-patch "emacs-exec-path.patch"))))) > (synopsis "The extensible, customizable, self-documenting text > editor (with xwidget support)" ) > (native-inputs > `(("autoconf" ,autoconf) > ("automake" ,automake) > ,@(package-native-inputs emacs))) > (arguments > (substitute-keyword-arguments (package-arguments emacs) > ((#:configure-flags flags) > `(append '("--with-xwidgets" > "--with-x-toolkit=3Dgtk3") > ,flags)) > ((#:phases phases) > `(modify-phases ,phases > (add-before > 'configure 'autogen > (lambda _ (zero? (system* "bash" "autogen.sh"))))))))))) > --=20 Joakim Verona