guix-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] Add Synfig Studio.


From: Ricardo Wurmus
Subject: Re: [PATCH] Add Synfig Studio.
Date: Fri, 20 Nov 2015 20:26:37 +0100
User-agent: mu4e 0.9.13; emacs 24.5.1

Ludovic Courtès <address@hidden> writes:

> 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?).  :-)

Okay.

>> 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

Okay.

>> 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.” (?)

Done.

>> 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?

Yes, a snippet is better here.

>> +         (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.

Oh, this was supposed to go to configure-flags.  I just rebuilt it with
this change and it works.  STDC_CONSTANT_MACROS was not needed after
all.

I pushed the patches with the above changes.  Thanks for taking the time
to review!

~~ Ricardo




reply via email to

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