From patchwork Sun May 23 17:27:02 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Solene Rapenne X-Patchwork-Id: 29517 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id DF9A027BC81; Sun, 23 May 2021 18:28:08 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 7018527BC78 for ; Sun, 23 May 2021 18:28:08 +0100 (BST) Received: from localhost ([::1]:43672 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lkrtX-00040n-Hi for patchwork@mira.cbaines.net; Sun, 23 May 2021 13:28:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52250) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lkrtS-00040W-FL for guix-patches@gnu.org; Sun, 23 May 2021 13:28:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:58409) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lkrtS-0000kW-8C for guix-patches@gnu.org; Sun, 23 May 2021 13:28:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lkrtS-0006YF-55 for guix-patches@gnu.org; Sun, 23 May 2021 13:28:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#48613] [PATCH] gnu: openttd: update to 1.11.2 Resent-From: Solene Rapenne Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 23 May 2021 17:28:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 48613 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 48613@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.162179084025133 (code B ref -1); Sun, 23 May 2021 17:28:01 +0000 Received: (at submit) by debbugs.gnu.org; 23 May 2021 17:27:20 +0000 Received: from localhost ([127.0.0.1]:41722 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lkrsm-0006XJ-06 for submit@debbugs.gnu.org; Sun, 23 May 2021 13:27:20 -0400 Received: from lists.gnu.org ([209.51.188.17]:59402) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lkrsh-0006X8-7I for submit@debbugs.gnu.org; Sun, 23 May 2021 13:27:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52146) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lkrsg-0003xc-PS for guix-patches@gnu.org; Sun, 23 May 2021 13:27:15 -0400 Received: from perso.pw ([163.172.223.238]:28550) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lkrse-0000TJ-F1 for guix-patches@gnu.org; Sun, 23 May 2021 13:27:14 -0400 Received: from perso.pw (localhost [127.0.0.1]) by perso.pw (OpenSMTPD) with ESMTP id 3ab4e43b for ; Sun, 23 May 2021 19:27:05 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=perso.pw; h=date:from:to :subject:message-id:mime-version:content-type :content-transfer-encoding; s=1337; bh=/7feZrpSXR26LFpiPJ7/Ql5Dh oQ=; b=LnGlEaDq9muWX6+WycQcrhRsXVDdPb+OiJPdvpmiXTYUatADcVxvs/7ok BpmpDcg0yGY0txzaPl6DVxfBQVqqwfo6fSydjbcT8owjce20xv9lx+mxyC7ArEx/ s98sjpTW3KzmSsinf+bvTYPa+wa7eFuh8mDZX/KDs8qjQtOD8U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=perso.pw; h=date:from:to :subject:message-id:mime-version:content-type :content-transfer-encoding; q=dns; s=1337; b=M103qxuOHg3zwUv6D4a CVZ1Sr/QhO3lyq/j1A+U+bZt+cFuIirR+gj8tAnCOkB3HSklYT1Eo/2pVbMCq4s3 WctkQbCqxwo2ozVg2MQ9TBZevsCjQJFwlp3+r25N/T+Z+QHxcNc/lBhijR0zuxW6 sXbxAcvq0gpQaTuo/UEBBZZc= Received: from localhost (176-154-164-34.abo.bbox.fr [176.154.164.34]) by perso.pw (OpenSMTPD) with ESMTPSA id 35e8f109 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO) for ; Sun, 23 May 2021 19:27:03 +0200 (CEST) Date: Sun, 23 May 2021 19:27:02 +0200 Message-ID: <20210523192702.0cfff8f8@perso.pw> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Received-SPF: pass client-ip=163.172.223.238; envelope-from=solene@perso.pw; helo=perso.pw X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" Reply-to: Solene Rapenne X-ACL-Warn: , Solene Rapenne via Guix-patches X-Patchwork-Original-From: Solene Rapenne via Guix-patches via From: Solene Rapenne X-getmail-retrieved-from-mailbox: Patches - the build system switched from GNU configure to cmake - tests enabled by copying the assets files before check step --- gnu/packages/games.scm | 54 +++++++++++++----------------------------- 1 file changed, 17 insertions(+), 37 deletions(-) (inputs `(("allegro" ,allegro) ("fontconfig" ,fontconfig) @@ -4511,20 +4491,20 @@ Transport Tycoon Deluxe.") (inherit openttd-engine) (name "openttd") (arguments - `(#:configure-flags - (list (string-append "--with-midi=" (assoc-ref %build-inputs "timidity++") - "/bin/timidity")) - ,@(substitute-keyword-arguments (package-arguments openttd-engine) - ((#:phases phases) - `(modify-phases ,phases - (add-after 'install 'install-data - (lambda* (#:key inputs outputs #:allow-other-keys) - (for-each - (lambda (input) - (copy-recursively (assoc-ref inputs input) - (assoc-ref outputs "out"))) - (list "opengfx" "openmsx" "opensfx")) - #t))))))) + `( + #:configure-flags + (let* ((out (assoc-ref %outputs "out"))) + (list (string-append "-DCMAKE_INSTALL_BINDIR=" out "/bin"))) + #:phases + (modify-phases %standard-phases + (add-before 'check 'install-data + (lambda* (#:key inputs outputs #:allow-other-keys) + (for-each + (lambda (input) + (copy-recursively (assoc-ref inputs input) + (assoc-ref outputs "out"))) + (list "opengfx" "openmsx" "opensfx")) + #t))))) (inputs `(("timidity++" ,timidity++) ,@(package-inputs openttd-engine))) diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index 24e487a2b8..e83911a2cd 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -4317,35 +4317,15 @@ world}, @uref{http://evolonline.org, Evol Online} and (define openttd-engine (package (name "openttd-engine") - (version "1.10.3") + (version "1.11.2") (source (origin (method url-fetch) (uri (string-append "https://cdn.openttd.org/openttd-releases/" version "/openttd-" version "-source.tar.xz")) (sha256 (base32 - "0fxmfz1mm95a2x0rnzfff9wb8q57w0cvsdd0z7agdcbyakph25n1")))) - (build-system gnu-build-system) - (arguments - `(#:tests? #f ; no "check" target - #:phases - (modify-phases %standard-phases - ;; The build process fails if the configure script is passed the - ;; option "--enable-fast-install". - (replace 'configure - (lambda* (#:key inputs outputs (configure-flags '()) - #:allow-other-keys) - (let ((out (assoc-ref outputs "out")) - (lzo (assoc-ref inputs "lzo"))) - (apply invoke "./configure" - (string-append "--prefix=" out) - ;; Provide the "lzo" path. - (string-append "--with-liblzo2=" - lzo "/lib/liblzo2.a") - ;; Put the binary in 'bin' instead of 'games'. - "--binary-dir=bin" - configure-flags))))))) - (native-inputs `(("pkg-config" ,pkg-config))) + "0v9f93lsdcv3ia28y8iihx9nj9zp6fpf5hkdrpl4ypw159d97fhg")))) + (build-system cmake-build-system)