From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id R11VIYhQ7l5gKgAA0tVLHw (envelope-from ) for ; Sat, 20 Jun 2020 18:08:08 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id QNsDHYhQ7l6pCwAAB5/wlQ (envelope-from ) for ; Sat, 20 Jun 2020 18:08:08 +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 E8BEB940220 for ; Sat, 20 Jun 2020 18:08:07 +0000 (UTC) Received: from localhost ([::1]:57878 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jmhuQ-0000q7-Rd for larch@yhetil.org; Sat, 20 Jun 2020 14:08:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57854) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jmhuN-0000py-3j for guix-patches@gnu.org; Sat, 20 Jun 2020 14:08:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:47165) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jmhuM-000217-Qg for guix-patches@gnu.org; Sat, 20 Jun 2020 14:08:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jmhuM-0008U1-KW for guix-patches@gnu.org; Sat, 20 Jun 2020 14:08:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#41967] [PATCH] gnu: Add tesseract. Resent-From: Pierre Neidhardt Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 20 Jun 2020 18:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 41967 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 41967@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.159267644032558 (code B ref -1); Sat, 20 Jun 2020 18:08:02 +0000 Received: (at submit) by debbugs.gnu.org; 20 Jun 2020 18:07:20 +0000 Received: from localhost ([127.0.0.1]:58711 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jmhtf-0008T4-SY for submit@debbugs.gnu.org; Sat, 20 Jun 2020 14:07:20 -0400 Received: from lists.gnu.org ([209.51.188.17]:56570) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jmhtc-0008St-J3 for submit@debbugs.gnu.org; Sat, 20 Jun 2020 14:07:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57792) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jmhtc-0000nx-EZ for guix-patches@gnu.org; Sat, 20 Jun 2020 14:07:16 -0400 Received: from relay11.mail.gandi.net ([217.70.178.231]:37289) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jmhtZ-0001yD-Lw for guix-patches@gnu.org; Sat, 20 Jun 2020 14:07:16 -0400 Received: from bababa (lfbn-idf2-1-1315-147.w92-169.abo.wanadoo.fr [92.169.129.147]) (Authenticated sender: mail@ambrevar.xyz) by relay11.mail.gandi.net (Postfix) with ESMTPSA id 19588100004 for ; Sat, 20 Jun 2020 18:07:09 +0000 (UTC) From: Pierre Neidhardt Date: Sat, 20 Jun 2020 20:07:08 +0200 Message-ID: <87r1u9392r.fsf@ambrevar.xyz> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=217.70.178.231; envelope-from=mail@ambrevar.xyz; helo=relay11.mail.gandi.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/20 14:07:10 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Spam_score_int: 4 X-Spam_score: 0.4 X-Spam_bar: / X-Spam_report: (0.4 / 5.0 requ) BAYES_00=-1.9, FROM_SUSPICIOUS_NTLD=1, FROM_SUSPICIOUS_NTLD_FP=1, PDS_OTHER_BAD_TLD=1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Spam-Score: 2.9 (++) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -0.1 (/) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Scanner: scn0 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-Spam-Score: -3.11 X-TUID: 2TJpVg/CJ7Av --=-=-= Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" --==-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable The code is free software (zlib) for sure. I'm not sure about the media files license. =2D-=20 Pierre Neidhardt https://ambrevar.xyz/ --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAl7uUEwACgkQm9z0l6S7 zH/Whgf/bK+SDF+bRixYgYhZX7wbvKAMSou96OgrKSCM1Sdr/mkKyI2zTvPnFa0m tcNevf5ZvRftMKpcEZnENtJVlwbnnktFPKflZqcDUnm5ufXRBjQ5ePtCn4wTjT6/ Rgv4//tO25kXdO1DK3ljxwrC2BhRf5stnRDh62he/6bOGj98wGQnQgBhSvAOe1Uq +VbXqLp+sUdyRPnmVoLW81qQGRMRWYJvHz9TR4a7+cTjSxKRNBdYffoJPdkDU4B/ bTYMNIoE6SehbBdHBInnAx7LTiGTmS0kjLIpU2U3u7GVamqfOBZ9ibULhgz1i8M5 +rBaWlHuMOrHiUP6bkVL+ddPN8mIcQ== =SwTD -----END PGP SIGNATURE----- --==-=-=-- --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-gnu-Add-tesseract.patch >From e88230cc776517b9ab84fe159d96799041fd8107 Mon Sep 17 00:00:00 2001 From: Pierre Neidhardt Date: Sat, 20 Jun 2020 19:26:48 +0200 Subject: [PATCH] gnu: Add tesseract. * gnu/packages/games.scm (tesseract): New variable. --- gnu/packages/games.scm | 99 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 99 insertions(+) diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index 39669ba1c9..7633e209c1 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -10817,3 +10817,102 @@ and shovers to get to the goal. Race against the clock to collect coins to earn extra balls. Also included is Neverputt, which is a 3D miniature golf game.") ;thanks to Debian for description (license license:gpl2+)))) + +(define-public tesseract + (let ((svn-revision 2411)) + (package + (name "tesseract") + (version (number->string svn-revision)) + (source + (origin + (method svn-fetch) + (uri (svn-reference + (url "svn://svn.tuxfamily.org/svnroot/tesseract/main") + (revision svn-revision))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1av9jhl2ivbl7wfszyhyna84llvh1z2d8khkmadm8d105addj10q")) + (modules '((guix build utils))) + (snippet + '(begin + (for-each delete-file-recursively + '("bin" "bin64" + "server.bat" + "tesseract.bat" + "src/lib" + "src/lib64")) + #t)))) + (build-system gnu-build-system) + (arguments + `(#:make-flags (list "CC=gcc") + #:tests? #f ; No tests. + #:phases + (modify-phases %standard-phases + (delete 'configure) + (add-after 'unpack 'cd-src + (lambda _ (chdir "src") #t)) + (add-before 'build 'fix-env + (lambda* (#:key inputs #:allow-other-keys) + (setenv "CPATH" + (string-append (assoc-ref inputs "sdl2-union") + "/include/SDL2:" + (or (getenv "CPATH") ""))) + #t)) + (add-after 'install 'really-install + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (share (string-append out "/share/tesseract")) + (bin (string-append out "/bin/tesseract")) + (client (string-append out "/bin/tesseract-client"))) + (chdir "..") ; Back to root. + (for-each + (lambda (dir) + (mkdir-p (string-append share "/" dir)) + (copy-recursively dir (string-append share "/" dir))) + '("config" "media")) + (mkdir-p (string-append out "/bin/")) + (copy-file "bin_unix/native_client" client) + (copy-file "bin_unix/native_server" + (string-append out "/bin/tesseract-server")) + (call-with-output-file bin + (lambda (p) + (format p "#!~a +TESS_DATA=~a +TESS_BIN=~a +TESS_OPTIONS=\"-u$HOME/.tesseract\" +cd \"$TESS_DATA\" +exec \"$TESS_BIN\" \"$TESS_OPTIONS\" \"$@\"" + (which "bash") + share + client))) + (chmod bin #o755) + (install-file "src/readme_tesseract.txt" + (string-append out "/share/licenses/tesseract/LICENSE")) + (let ((icon (string-append out "/share/pixmaps/tesseract.png"))) + (mkdir-p (dirname icon)) + (copy-file "media/interface/cube.png" icon) + (make-desktop-entry-file + (string-append out "/share/applications/tesseract.desktop") + #:name "Tesseract" + #:comment "First-person shooter with map editing" + #:exec "tesseract" + #:icon icon + #:categories '("Game")))) + #t))))) + (inputs + `(("sdl2-union" ,(sdl-union (list sdl2 sdl2-mixer sdl2-image))) + ("zlib" ,zlib) + ("libpng" ,libpng) + ("libgl" ,mesa))) + (home-page "http://tesseract.gg/") + (synopsis "First-person shooter with map editing, instagib, DM and CTF") + (description "Tesseract is a first-person shooter game focused on +instagib deathmatch and capture-the-flag gameplay as well as cooperative +in-game map editing. + +Tesseract provides a free software engine derived from @emph{Cube 2: +Sauerbraten} technology but with upgraded modern rendering techniques. The +new rendering features include fully dynamic omnidirectional shadows, global +illumination, HDR lighting, deferred shading, morphological / temporal / +multisample anti-aliasing, and much more.") + (license license:zlib)))) -- 2.26.2 --=-=-=--