unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Marius Bakke <mbakke@fastmail.com>
To: "Jovany Leandro G.C" <bit4bit@riseup.net>, 36744-done@debbugs.gnu.org
Subject: bug#36744: [PATCH 1/1] gnu: Add cutter.
Date: Thu, 08 Aug 2019 20:24:32 +0200	[thread overview]
Message-ID: <878ss3ikgv.fsf@devup.no> (raw)
In-Reply-To: <20190720113022.12919-1-bit4bit@riseup.net>

[-- Attachment #1: Type: text/plain, Size: 2353 bytes --]

"Jovany Leandro G.C" <bit4bit@riseup.net> writes:

> * gnu/packages/engineering.scm (cutter): New variable.

[...]

> +(define-public cutter
> +  (package
> +    (name "cutter")
> +    (version "1.8.3")
> +    (source
> +     (origin
> +       (method url-fetch)
> +       (uri  (string-append
> +              "https://github.com/radareorg/cutter/archive/v"
> +              version ".tar.gz"))
> +       (file-name (string-append name "-" version ".tar.gz"))
> +       (sha256
> +        (base32
> +         "1nhzwqavb156bqxk723i6an6iaagm3hs7642ijbma4hgl32lw0bi"))))

I changed this to use a git checkout, because the auto-generated GitHub
tarballs may change hash in the future.

> +    (build-system gnu-build-system)
> +    (arguments
> +     `(#:phases
> +       (modify-phases %standard-phases
> +         (replace 'configure
> +           (lambda* (#:key inputs outputs #:allow-other-keys)
> +             (let ((out (assoc-ref outputs "out"))
> +                   (radare2 (assoc-ref inputs "radare2")))
> +               ;; fix pkg-config detection ./src/lib_radare2.pri:PREFIX=/usr/lib
> +               ;; override `qmake PREFIX=`
> +               (substitute* "./src/lib_radare2.pri"
> +                 (("PREFIX") "R2PREFIX")
> +                 (("R2PREFIX=/usr") (string-append "R2PREFIX=" radare2)))
> +               (invoke "qmake"
> +                       (string-append "PREFIX=" out)
> +                       "./src/Cutter.pro")))))))
> +    (native-inputs
> +     `(("pkg-config" ,pkg-config)))
> +    (inputs
> +     `(("qtbase" ,qtbase)
> +       ("qtsvg" ,qtsvg)
> +       ("openssl" ,openssl)
> +       ("radare2" ,radare2)))
> +    (home-page "https://github.com/radareorg/cutter")
> +    (synopsis "Free and open-source GUI for radare2 reverse engineering framework")
> +    (description "Cutter is a free and open-source GUI for radare2 reverse
> +engineering framework.  Its goal is making an advanced, customizable and
> +FOSS reverse-engineering platform while keeping the user experience at mind.
> +Cutter is created by reverse engineers for reverse engineers.")

I removed mentions of "free" and "open source", because everything in
Guix is free software.

> +    (license license:gpl3+)))

I also added the CC-BY-SA 3.0 license used by the icon set.

Pushed in 5cded306f92a8641259909ee986e583168b85b17, thanks!

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

      reply	other threads:[~2019-08-08 18:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-20 11:30 [bug#36744] [PATCH 1/1] gnu: Add cutter Jovany Leandro G.C
2019-08-08 18:24 ` Marius Bakke [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=878ss3ikgv.fsf@devup.no \
    --to=mbakke@fastmail.com \
    --cc=36744-done@debbugs.gnu.org \
    --cc=bit4bit@riseup.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 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).