From: Ricardo Wurmus <rekado@elephly.net>
To: David Hashe <david.hashe@dhashe.com>
Cc: guix-devel@gnu.org
Subject: Re: [PATCH] gnu: Add exempi and eog.
Date: Wed, 15 Jul 2015 08:46:46 +0200 [thread overview]
Message-ID: <878uahhq95.fsf@elephly.net> (raw)
In-Reply-To: <CAAn-YqF2nfMt_AFP0AgPwZ=e7mM0e8U+kdWnEHjzYQAHD9YVsw@mail.gmail.com>
Hi David,
> +(define-public eog
> + (package
> + (name "eog")
> + (version "3.16.2")
> + (source (origin
> + (method url-fetch)
> + (uri (string-append "mirror://gnome/sources/" name "/"
> + (version-major+minor version) "/"
> + name "-" version ".tar.xz"))
> + (sha256
> + (base32
> + "0frw1b5jix9pffznav5s7ajjx91a8rv5lf4sjvjv3fw65mbnhbw0"))))
> + (build-system glib-or-gtk-build-system)
> + (arguments
> + `(#:phases
> + (modify-phases %standard-phases
> + (add-after
> + 'install 'wrap-eog
> + (lambda* (#:key inputs outputs #:allow-other-keys)
You don’t seem to be using ‘inputs’ anywhere, so you might as well leave
it away.
> + (let ((out (assoc-ref outputs "out"))
> + (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
> + (wrap-program (string-append out "/bin/eog")
> + `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
> + #t)))))
The many spaces after "GI_TYPELIB_PATH" look odd. Other than that I
don’t see any problems with this patch. The patch for ‘exempi’,
however, has many indentation problems.
> +(define-public exempi
> + (package
> + (name "exempi")
> + (version (string-append "2.2.2"))
Why ‘string-append’?
> + (source (origin
> + (method git-fetch)
> + (uri (git-reference
> + (url "http://anongit.freedesktop.org/git/exempi.git")
> + (commit version)))
> + (sha256
> + (base32
> + "1z25wij89fn86bm38d9ahhzfq8a2sgxaphdc4lrpyq87dgb766q9"))
> + (file-name (string-append name "-" version))))
> + (build-system gnu-build-system)
> + (arguments
> + ;; FIXME: tests depend on boost, but unable to find headers when
> + ;; used as an input
The comment is not properly aligned. About finding boost, is there a
way to specify the location with a variable?
> + `(#:configure-flags '("--disable-unittest")
> + #:phases (alist-cons-after
> + 'unpack 'fix-autogen
> + (lambda _
The indentation of the previous two lines is wrong.
Have you considered using the ‘modify-phases’ syntax instead?
> + (substitute* "autogen.sh"
> + ;; autogen.sh tries to run configure before we
> + ;; are able to patch it
> + (("^.*topsrcdir/configure.*$") "")))
> + (alist-cons-before
> + 'configure 'autogen
> + (lambda _
> + (zero? (system* "./autogen.sh")))
> + %standard-phases))))
> + (native-inputs
> + `(("autoconf" ,(autoconf-wrapper))
I’ve never seen this before. Is it required to use ‘(autoconf-wrapper)’
here?
> + ("automake" ,automake)
> + ("libtool" ,libtool)))
> + (inputs
> + `(("expat" ,expat)
> + ("zlib" ,zlib)))
The indentation here is wrong.
> + (home-page "https://wiki.freedesktop.org/libopenraw/Exempi")
> + (synopsis "XMP metadata handling")
> + (description "Exempi is an implementation of the Extensible Metadata
> +Platform (XMP), which enables embedding metadata in PDF and image formats.")
> + (license license:bsd-3)))
~~ Ricardo
next prev parent reply other threads:[~2015-07-15 6:47 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-15 6:36 [PATCH] gnu: Add exempi and eog David Hashe
2015-07-15 6:46 ` Ricardo Wurmus [this message]
2015-07-15 13:01 ` 宋文武
2015-07-15 16:15 ` Mark H Weaver
2015-07-16 4:28 ` David Hashe
2015-07-16 13:25 ` David Hashe
2015-07-17 12:49 ` 宋文武
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=878uahhq95.fsf@elephly.net \
--to=rekado@elephly.net \
--cc=david.hashe@dhashe.com \
--cc=guix-devel@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).