From: ludo@gnu.org (Ludovic Courtès)
To: Ricardo Wurmus <rekado@elephly.net>
Cc: "guix-devel@gnu.org" <guix-devel@gnu.org>
Subject: Re: [PATCH] Add Synfig Studio.
Date: Thu, 19 Nov 2015 17:33:45 +0100 [thread overview]
Message-ID: <87y4du7xue.fsf@gnu.org> (raw)
In-Reply-To: <87io51omxh.fsf@elephly.net> (Ricardo Wurmus's message of "Mon, 16 Nov 2015 18:48:26 +0100")
Ricardo Wurmus <rekado@elephly.net> skribis:
> From 14040badd5312c8e093604bd3c8ddc6287ba82b1 Mon Sep 17 00:00:00 2001
> From: Ricardo Wurmus <rekado@elephly.net>
> Date: Mon, 16 Nov 2015 18:28:22 +0100
> Subject: [PATCH 1/5] gnu: Add libxml++.
>
> * gnu/packages/gnome.scm (libxml++): New variable.
[...]
> + (synopsis "C++ wrapper for XML parser library @code{libxml2}")
> + (description
> + "This package provides a C++ wrapper for the XML parser library
> +@code{libxml2}.")
I’d remove the @code here because that’s really the project’s name, and
because Texinfo markup is not supported in synopses (yet?). :-)
Otherwise LGTM.
> From f0322d71271403d047f7d275277bf1b6e34603cd Mon Sep 17 00:00:00 2001
> From: Ricardo Wurmus <rekado@elephly.net>
> Date: Mon, 16 Nov 2015 18:28:59 +0100
> Subject: [PATCH 2/5] gnu: Add MLT.
>
> * gnu/packages/video.scm (mlt): New variable.
OK.
> From 1e783fab150edebc15f47f55019785398d469113 Mon Sep 17 00:00:00 2001
> From: Ricardo Wurmus <rekado@elephly.net>
> Date: Mon, 16 Nov 2015 18:32:38 +0100
> Subject: [PATCH 3/5] gnu: Add ETL.
>
> * gnu/packages/animation.scm: New file.
> * gnu-system.am (GNU_SYSTEM_MODULES): Add it.
[...]
> + (description
> + "ETL is a multi-platform class and template library designed to add new
s/multi-platform//g
Otherwise OK.
> From 44da7f71a5420260a82499bca355a784f7306236 Mon Sep 17 00:00:00 2001
> From: Ricardo Wurmus <rekado@elephly.net>
> Date: Mon, 16 Nov 2015 18:34:30 +0100
> Subject: [PATCH 4/5] gnu: Add Synfig.
>
> * gnu/packages/animation.scm (synfig): New variable.
> * gnu/packages/patches/synfig-build-fix.patch: New file.
> * gnu-system.am (dist_patch_DATA): Add it.
[...]
> +++ b/gnu/packages/patches/synfig-build-fix.patch
> @@ -0,0 +1,59 @@
> +Taken from here:
> +https://projects.archlinux.org/svntogit/community.git/plain/trunk/build-fix.patch?h=packages/synfig
Maybe just add “Allow Synfig to build in C++11 mode.” (?)
Otherwise LGTM.
> From 2a89ed3fa602b66f30feec8b70ffcb52183d7f39 Mon Sep 17 00:00:00 2001
> From: Ricardo Wurmus <rekado@elephly.net>
> Date: Mon, 16 Nov 2015 18:36:40 +0100
> Subject: [PATCH 5/5] gnu: Add Synfig Studio.
>
> * gnu/packages/animation.scm (synfigstudio): New variable.
[...]
> + (add-after 'unpack 'adapt-to-libxml++-changes
> + (lambda _
> + (substitute* "src/synfigapp/pluginmanager.cpp"
> + (("xmlpp::Node\\* n =") "const xmlpp::Node* n =")
> + (("xmlpp::Node::NodeList") "xmlpp::Node::const_NodeList"))
> + #t))
> + (add-after 'unpack 'adapt-to-libsigc++-changes
> + (lambda _
> + ;; Some files are ISO-8859-1 encoded.
> + (with-fluids ((%default-port-encoding #f))
> + (substitute* (find-files "src/" "\\.(cpp|h)$")
> + (("#include <sigc\\+\\+/retype\\.h>")
> + "#include <sigc++/adaptors/retype.h>")
> + (("#include <sigc\\+\\+/hide\\.h>")
> + "#include <sigc++/adaptors/hide.h>")
> + (("#include <sigc\\+\\+/object\\.h>")
> + "#include <sigc++/trackable.h>")))
Maybe these should go to a ‘snippet’ since we’re really changing the
source here. WDYT?
> + (add-before 'configure 'set-flags
> + (lambda _
> + ;; Compile with C++11, required by libsigc++.
> + (setenv "CXXFLAGS" "-D__STDC_CONSTANT_MACROS -std=gnu++11")
Am I right that this cannot go in #:configure-flags because of
whitespaces? Otherwise that would be the preferred way, because the
effect of the environment variable could be broader.
Otherwise LGTM, thanks!
Ludo’.
next prev parent reply other threads:[~2015-11-19 16:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-16 17:48 [PATCH] Add Synfig Studio Ricardo Wurmus
2015-11-19 16:33 ` Ludovic Courtès [this message]
2015-11-20 19:26 ` Ricardo Wurmus
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=87y4du7xue.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=guix-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/guix.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.