unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Vincent Legoll <vincent.legoll@gmail.com>
To: 45744@debbugs.gnu.org
Subject: [bug#45744] [PATCH] gnu: Add libx86emu.
Date: Mon, 11 Jan 2021 18:58:41 +0100	[thread overview]
Message-ID: <CAEwRq=ow8+EPj2Mjrm6mDDR5tPbyxE5VyWTDfksd24UF499dDw@mail.gmail.com> (raw)
In-Reply-To: <20210109144256.2209-1-vincent.legoll@gmail.com>

Hello,

Please disregard this patch, I'll followup with an updated (better) one

On Sat, Jan 9, 2021 at 3:43 PM Vincent Legoll <vincent.legoll@gmail.com> wrote:
>
> * gnu/packages/emulators.scm (libx86emu): New variable.
> ---
>  gnu/packages/emulators.scm | 48 ++++++++++++++++++++++++++++++++++++++
>  1 file changed, 48 insertions(+)
>
> diff --git a/gnu/packages/emulators.scm b/gnu/packages/emulators.scm
> index 1d94090f48..4b76dcef79 100644
> --- a/gnu/packages/emulators.scm
> +++ b/gnu/packages/emulators.scm
> @@ -72,6 +72,7 @@
>    #:use-module (gnu packages music)
>    #:use-module (gnu packages ncurses)
>    #:use-module (gnu packages networking)
> +  #:use-module (gnu packages perl)
>    #:use-module (gnu packages pkg-config)
>    #:use-module (gnu packages pulseaudio)
>    #:use-module (gnu packages python)
> @@ -591,6 +592,53 @@ and Game Boy Color games.")
>      ;; BSD-3, and "discord-rpc" is Expat.
>      (license (list license:mpl2.0 license:lgpl2.1+ license:bsd-3 license:expat))))
>
> +(define-public libx86emu
> +  (package
> +    (name "libx86emu")
> +    (version "3.1")
> +    (source
> +     (origin
> +       (method git-fetch)
> +       (uri (git-reference
> +             (url "https://github.com/wfeldt/libx86emu")
> +             (commit version)))
> +       (file-name (git-file-name name version))
> +       (sha256
> +        (base32 "104xqc6nj9rpi7knl3dfqvasf087hlz2n5yndb1iycw35a6j509b"))))
> +    (build-system gnu-build-system)
> +    (native-inputs
> +     `(("nasm" ,nasm)
> +       ("perl" ,perl)))   ; for the `./test/prepare_test' script
> +    (arguments
> +     `(#:phases
> +       (modify-phases %standard-phases
> +         (add-after 'unpack 'version-file
> +           (lambda _
> +             (invoke "chmod" "-x" "./git2log")    ; we are not in a full git repository
> +             (with-output-to-file "./VERSION"     ; emulate what git2log would have done
> +               (lambda _
> +                 (display ,version)))
> +             #t))
> +         (replace 'check
> +           (lambda _
> +             (invoke "make" "test")))
> +         (replace 'install
> +           (lambda* (#:key outputs #:allow-other-keys)
> +             (invoke "make" "install"
> +                     (string-append "DESTDIR=" (assoc-ref outputs "out"))
> +                     (string-append "LIBDIR=" (assoc-ref outputs "out") "/usr/lib")) ; avoid using `ldd /bin/sh' to choose between 32 and 64 bits libdir
> +             #t))
> +         (delete 'configure))))
> +    (home-page "https://github.com/wfeldt/libx86emu")
> +    (synopsis "x86 emulation library")
> +    (description "libx86emu is a small library to emulate x86 instructions.  The
> +focus here is not a complete emulation (use qemu for this) but to cover enough
> +for typical firmware blobs.  At the moment 'regular' 32-bit instructions are
> +covered together with basic protected mode support.  Not done are fpu, mmx, or
> +any of the other instruction set extensions.")
> +    (license (license:non-copyleft
> +              "https://github.com/wfeldt/libx86emu/blob/master/LICENSE"))))
> +
>  (define-public sameboy
>    (package
>      (name "sameboy")
> --
> 2.30.0
>


-- 
Vincent Legoll




      reply	other threads:[~2021-01-11 17:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-09 14:42 [bug#45744] [PATCH] gnu: Add libx86emu Vincent Legoll
2021-01-11 17:58 ` Vincent Legoll [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

  List information: https://guix.gnu.org/

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

  git send-email \
    --in-reply-to='CAEwRq=ow8+EPj2Mjrm6mDDR5tPbyxE5VyWTDfksd24UF499dDw@mail.gmail.com' \
    --to=vincent.legoll@gmail.com \
    --cc=45744@debbugs.gnu.org \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).