guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Add Synfig Studio.


From: Ludovic Courtès
Subject: Re: [PATCH] Add Synfig Studio.
Date: Thu, 19 Nov 2015 17:33:45 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

Ricardo Wurmus <address@hidden> skribis:

> From 14040badd5312c8e093604bd3c8ddc6287ba82b1 Mon Sep 17 00:00:00 2001
> From: Ricardo Wurmus <address@hidden>
> 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
> address@hidden")

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 <address@hidden>
> 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 <address@hidden>
> 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 <address@hidden>
> 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 <address@hidden>
> 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’.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]