From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 01 03:35:47 2021 Received: (at 46223) by debbugs.gnu.org; 1 Feb 2021 08:35:47 +0000 Received: from localhost ([127.0.0.1]:58677 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6UgS-0008SN-Mx for submit@debbugs.gnu.org; Mon, 01 Feb 2021 03:35:47 -0500 Received: from flashner.co.il ([178.62.234.194]:41350) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6UgP-0008S8-H8 for 46223@debbugs.gnu.org; Mon, 01 Feb 2021 03:35:43 -0500 Received: from localhost (unknown [31.210.181.184]) by flashner.co.il (Postfix) with ESMTPSA id 6047340049; Mon, 1 Feb 2021 08:35:35 +0000 (UTC) Date: Mon, 1 Feb 2021 10:35:02 +0200 From: Efraim Flashner To: Evan Straw Subject: Re: [bug#46223] [PATCH 1/2] gnu: opencolorio: Update to 2.0.0. Message-ID: References: <875z3c49ts.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ibiFWmo+B109Y4xg" Content-Disposition: inline In-Reply-To: <875z3c49ts.fsf@gmail.com> X-PGP-Key-ID: 0x41AAE7DCCA3D8351 X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc X-PGP-Fingerprint: A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 46223 Cc: 46223@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --ibiFWmo+B109Y4xg Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Jan 31, 2021 at 09:48:47PM -0800, Evan Straw wrote: > Hello Guix! >=20 > This is a series of two patches that will update OpenColorIO to v2.0.0, > which was released 3 days ago. The first, in this message, will add a > dependency for OCIO 2.0.0 and the second, which will be sent soon, will > actually update the package. >=20 > Please let me know if I should make any changes. Well, you asked for it :) > Thanks, > -- Evan Straw > From 3f90b2b1c0e2a1f5266522bdee393a91dba902ac Mon Sep 17 00:00:00 2001 > From: Evan Straw > Date: Sun, 31 Jan 2021 17:07:44 -0800 > Subject: [PATCH 1/2] gnu: Add pystring. >=20 > * gnu/packages/cpp.scm (pystring): New variable. > --- > gnu/packages/cpp.scm | 55 ++++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 55 insertions(+) >=20 > diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm > index ae47490755..9c5269d354 100644 > --- a/gnu/packages/cpp.scm > +++ b/gnu/packages/cpp.scm > @@ -16,6 +16,7 @@ > ;;; Copyright =C2=A9 2020 Alexandros Theodotou > ;;; Copyright =C2=A9 2020, 2021 Greg Hogan > ;;; Copyright =C2=A9 2020 Brett Gilio > +;;; Copyright =C2=A9 2021 Evan Straw > ;;; > ;;; This file is part of GNU Guix. > ;;; > @@ -899,3 +900,57 @@ provides a number of utilities to make coding with e= xpected cleaner.") > (description "Magic Enum offers static reflection of enums, with > conversions to and from strings, iteration and related functionality.") > (license license:expat))) > + > +(define-public pystring > + (package > + (name "pystring") > + (version "1.1.3") > + (source (origin > + (method git-fetch) > + (uri (git-reference > + (url "https://github.com/imageworks/pystring") > + (commit (string-append "v" version)))) > + (file-name (git-file-name name version)) > + (sha256 > + (base32 > + "1w31pjiyshqgk6zd6m3ab3xfgb0ribi77r6fwrry2aw8w1adjknf"))= )) > + (build-system gnu-build-system) > + (arguments > + `(#:test-target "test" > + #:phases > + (modify-phases %standard-phases > + ;; pystring does not have a configure script > + (delete 'configure) > + ;; Makefile attempts to install to /usr/lib; change this to the > + ;; proper output path > + (add-before 'install 'fix-install > + (lambda* (#:key outputs #:allow-other-keys) > + (let* ((out (assoc-ref outputs "out")) > + (lib (string-append out "/lib"))) > + (substitute* "Makefile" > + (("LIBDIR =3D /usr/lib") > + (string-append "LIBDIR =3D " lib))) > + (mkdir-p lib) > + #t))) > + ;; Makefile does not install the header files for the library; > + ;; install them to an "include" directory under the proper outp= ut > + ;; path > + (add-after 'install 'install-header > + (lambda* (#:key outputs #:allow-other-keys) > + (let* ((out (assoc-ref outputs "out")) > + (inc (string-append out "/include/pystring"))) > + (mkdir-p inc) > + (copy-file "pystring.h" > + (string-append inc "/pystring.h")) The source file is pystring.h and the target file is pystring.h, so you can use install-file instead of mkdir-p and copy-file (install-file "pystring.h" inc) A couple of other things: if we don't need the static library (libpystring.a) then we can drop the install size by quite a bit by not installing it. For bonus points, if you want, you can replace the calls to g++ with (cxx-for-target) so it will cross-compile correctly. The chances that someone will want to cross compile blender is low though. > + #t)))))) > + (native-inputs `(("libtool" ,libtool))) > + (home-page "https://github.com/imageworks/pystring") > + (synopsis "C++ functions matching the interface and behavior of Pyth= on > +string methods") > + (description "Pystring is a collection of C++ functions which match = the > +interface and behavior of python's string class methods using std::strin= g. @code{std::string} Also Python is a proper noun so it should be capitalized > +Implemented in C++, it does not require or make use of a python interpre= ter. > +It provides convenience and familiarity for common string operations not > +included in the standard C++ library. It's also useful in environments = where > +both C++ and python are used.") > + (license license:bsd-3))) > --=20 > 2.25.1 >=20 --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --ibiFWmo+B109Y4xg Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAmAXvTMACgkQQarn3Mo9 g1GDExAAn57aiSJezPKXDqLhetgBYiiWgkCI6X9shSV6gGx+5aThfLP/pyZev+QO 6eBt7xEJugTsqV8M9zyyJdRsagHTWb4sD2epYce7xVAi2DDG71Yj/AvzmwF20CDM qOtmvb9kz9cBSqAJquNpfRcTqfY+GyYYpGzkIJMkJZFYpEMhXcE9Hr4iOmdOatQM kbKR32FpEnEjiJ1pOfYo8UKLDkKu2INgPXbKZITAAYnZbJLfumBkvxQEtCSArp1R KwKh69WKeyylwpvXms3Uvv3l1XMaS4Ux82NHJu3/s60ybBYV4Jt1zGt9PNHk/r2F HSPo0EtGv8Iatn+N/aMjXZ6Ujrwl6M8RfKifNu67tWoGUSuX/nepzipC+1BShVaZ tj4vmWoAOZeJoO69k8exyoSEHJURQA9lcE5+3hph9TqWoGe5a5QHiXSqvsm6Rfpu dSkjbJsNRL5gXiro2hgLxGOe6wxeXPiqBVXUOUo70nFCegNOFpH9p14pBcFj4CNp ROilbZj6VWUJJ5fwe427qfvRTq80cHAI5vMGReBn+HNVsoIvN14jjWd7uLMHu1sg LuP4McHvlQyjUUVhwWTwIOmgUHadeMoMaIKJa8+2/XY9OJKPlZLcff/oqdrAiQGc YLsJgNi3eJDR5rXXw9ALMJ7oNEX+re3KI0kWMhvHbiM2+f4qPoI= =NTzz -----END PGP SIGNATURE----- --ibiFWmo+B109Y4xg--