all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: joakim@verona.se
To: Ricardo Wurmus <rekado@elephly.net>
Cc: "Andreas Röhler" <andreas.roehler@online.de>, emacs-devel@gnu.org
Subject: Re: an xwidget-emacs rpm
Date: Thu, 07 May 2015 11:09:54 +0200	[thread overview]
Message-ID: <m3a8xg4uu5.fsf@exodia.verona.se> (raw)
In-Reply-To: <87wq0kvoc7.fsf@mango.localdomain> (Ricardo Wurmus's message of "Thu, 07 May 2015 09:28:08 +0200")

Ricardo Wurmus <rekado@elephly.net> writes:

> Andreas Röhler writes:
>
>> being slightly bewildered by the rpm-format. As used to either doing 
>> 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=~/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=gtk3")
>                    ,flags))
>          ((#:phases phases)
>           `(modify-phases ,phases
>              (add-before
>               'configure 'autogen
>               (lambda _ (zero? (system* "bash" "autogen.sh")))))))))))
>

-- 
Joakim Verona



      reply	other threads:[~2015-05-07  9:09 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-06 17:52 an xwidget-emacs rpm joakim
2015-05-07  6:05 ` Andreas Röhler
2015-05-07  6:48   ` joakim
2015-05-07 15:57     ` Steinar Bang
2015-05-07  7:28   ` Ricardo Wurmus
2015-05-07  9:09     ` joakim [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3a8xg4uu5.fsf@exodia.verona.se \
    --to=joakim@verona.se \
    --cc=andreas.roehler@online.de \
    --cc=emacs-devel@gnu.org \
    --cc=rekado@elephly.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.