From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pierre Neidhardt Subject: Re: Packaging Jami progress Date: Thu, 07 Nov 2019 20:02:08 +0100 Message-ID: <87a797o6hb.fsf@ambrevar.xyz> References: <20191104214754.793ec2ff@interia.pl> <20191105175001.389c6117@interia.pl> <87pni5qouc.fsf@ambrevar.xyz> <20191106172445.3bdd057d@interia.pl> <87r22lorwh.fsf@ambrevar.xyz> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:41202) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iSn2t-0008J6-LB for guix-devel@gnu.org; Thu, 07 Nov 2019 14:02:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iSn2r-0004JT-Uv for guix-devel@gnu.org; Thu, 07 Nov 2019 14:02:15 -0500 Received: from relay5-d.mail.gandi.net ([217.70.183.197]:58499) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iSn2r-0004HG-O5 for guix-devel@gnu.org; Thu, 07 Nov 2019 14:02:13 -0500 In-Reply-To: <87r22lorwh.fsf@ambrevar.xyz> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Jan Wielkiewicz Cc: Guix-devel --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi Jan, Here is a quick 'n' dirty restinio package: =2D-8<---------------cut here---------------start------------->8--- (define-public restinio (package (name "restinio") (version "0.6.0.1") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/Stiffstream/restinio.git") (commit (string-append "v." version)))) (file-name (git-file-name name version)) (sha256 (base32 "1c25kpx652nng8m1sqf5an2c3c4g3k6zj85mkkaxzk88iwfzq1s8")))) (build-system cmake-build-system) (inputs ; TODO: Need to force-keep referenc= es on some inputs, e.g. boost. `(("zlib" ,zlib) ("catch2" ,catch-framework2) ("openssl" ,openssl) ("fmt" ,fmt) ("boost" ,boost) ;;("asio", asio) ; TODO: Use external asio? Need -DRESTINIO_USE_BOO= ST_ASIO_VALUES=3Dshared. ("pcre" ,pcre) ("pcre2" ,pcre2) ("sobjectizer" ,sobjectizer))) (arguments `(#:configure-flags '("-DRESTINIO_INSTALL=3Don") #:tests? #f ; TODO: The tests are called from the root CMakelist, ne= ed RESTINIO_TEST=3Don. #:phases (modify-phases %standard-phases (add-after 'unpack 'change-directory (lambda _ (chdir "dev/restinio") #t))))) (home-page "https://stiffstream.com/en/products/restinio.html") (synopsis "C++14 library that gives you an embedded HTTP/Websocket serv= er") (description "RESTinio is a header-only C++14 library that gives you an= embedded HTTP/Websocket server. It is based on standalone version of ASIO and targeted primarily for asynchronous processing of HTTP-requests.") (license license:bsd-3))) =2D-8<---------------cut here---------------end--------------->8--- The CMakeLists are a bit convoluted, so I simply skipped the root one and when straight into the restinio subfolder. I'm too lazy to figure out how to run the tests at the moment. Note: the comma "," in Scheme means it "unquotes" the following expression, and thus the space must be put before it, not after. Wrong: ("boost", boost) Correct: ("boost" ,boost) Cheers! =2D-=20 Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAl3EajAACgkQm9z0l6S7 zH8y7Af/dmfzbbfMQmHlM4SZ/e+nOJ+0qO/vHn5/G0QsOh26kOAG3iUiLb3l5f+o g3xcY0MdWELOh7REt6+74q9Oc5n6FIqFvoLTyzwmdFHmU6ydD7REn3IUsR9n1xEt PcwSuGz0JEtsckkTFG9URn+E2AyVTQUnie0CkkXdfigya6+NGmYKc4mfbyXuGX0T LBHT8nxzDBqIZE1Zctm0/Xs2wsZHUADpBCom9iBPPfv1SpZZ9gE8T2IsTWV/Swvr 0SDO71tPez49BipVWJI6/hK6bOSYKWwKmbG3oR3Ym1ltC7syv2F04eM+3MdXjULz 6XXmOajmpqbMYD30VfCe31uQsmlNIA== =y0ZD -----END PGP SIGNATURE----- --=-=-=--