From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 0OjzL4K9F2CjWwAA0tVLHw (envelope-from ) for ; Mon, 01 Feb 2021 08:36:18 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id aECfK4K9F2CudAAAbx9fmQ (envelope-from ) for ; Mon, 01 Feb 2021 08:36:18 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 822D2940274 for ; Mon, 1 Feb 2021 08:36:17 +0000 (UTC) Received: from localhost ([::1]:53760 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l6Ugx-0004pC-LK for larch@yhetil.org; Mon, 01 Feb 2021 03:36:15 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:40298) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l6Ugk-0004mu-0k for guix-patches@gnu.org; Mon, 01 Feb 2021 03:36:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:47131) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l6Ugj-0005sa-Po for guix-patches@gnu.org; Mon, 01 Feb 2021 03:36:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l6Ugj-0008Sq-MK for guix-patches@gnu.org; Mon, 01 Feb 2021 03:36:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#46223] [PATCH 1/2] gnu: opencolorio: Update to 2.0.0. Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 01 Feb 2021 08:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46223 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Evan Straw Received: via spool by 46223-submit@debbugs.gnu.org id=B46223.161216854732517 (code B ref 46223); Mon, 01 Feb 2021 08:36:01 +0000 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 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 46223@debbugs.gnu.org Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -3.96 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 822D2940274 X-Spam-Score: -3.96 X-Migadu-Scanner: scn1.migadu.com X-TUID: QYtk39S/+CK3 --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--