From patchwork Sun Nov 12 19:20:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: hrn X-Patchwork-Id: 56388 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 0108D27BBE2; Sun, 12 Nov 2023 19:21:46 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 8499227BBE9 for ; Sun, 12 Nov 2023 19:21:40 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r2G1L-0004qI-3m; Sun, 12 Nov 2023 14:21:23 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r2G1J-0004q9-GB for guix-patches@gnu.org; Sun, 12 Nov 2023 14:21:21 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r2G1J-0003MS-7y for guix-patches@gnu.org; Sun, 12 Nov 2023 14:21:21 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r2G1y-00074W-96 for guix-patches@gnu.org; Sun, 12 Nov 2023 14:22:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#67134] [PATCH] gnu: Add camelia-girls Resent-From: Rikard Nordgren Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 12 Nov 2023 19:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 67134 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 67134@debbugs.gnu.org Cc: hrn@posteo.net X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.169981688527125 (code B ref -1); Sun, 12 Nov 2023 19:22:02 +0000 Received: (at submit) by debbugs.gnu.org; 12 Nov 2023 19:21:25 +0000 Received: from localhost ([127.0.0.1]:57032 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r2G1N-00073R-8c for submit@debbugs.gnu.org; Sun, 12 Nov 2023 14:21:25 -0500 Received: from lists.gnu.org ([2001:470:142::17]:42988) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r2G1J-00073C-VS for submit@debbugs.gnu.org; Sun, 12 Nov 2023 14:21:24 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r2G0Z-0004mG-BE for guix-patches@gnu.org; Sun, 12 Nov 2023 14:20:35 -0500 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r2G0W-0003HS-N2 for guix-patches@gnu.org; Sun, 12 Nov 2023 14:20:34 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id EE83E240103 for ; Sun, 12 Nov 2023 20:20:27 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1699816828; bh=ht+G5DKEQGGYsNheClcwGBb0y7ILHygb7YEzGt61YmU=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version: Content-Transfer-Encoding:From; b=hBdsXyGupODodDUp4ryOebKG6VE+sOokC6Pf+E9SX0dCn2LFz+Eg6mEYwFeq6ALgz BI+A38SDuWLEY1Gr7ID5sBBX0K3RYVXRGa4xTcqMf1Qs5aHyInuMKxEXBqFKOpJAzF tQnlalVe8fg4JF0ilFHCycd778wdjGz+PJnAiayq5cui5KbqaIbrDdlGRv2PMoLxlA apFR1oDDQ9H2tdbQxHmuDGALMYJSI8rE+s0BmDVwIgl6P5IXJSBkKIASBKBcVFfchg DES4sWoknCEI+LO+gYeUbNDYXeS5xMR4UCiaDtQBghrRNLzsdkpxDwYB6b2hYzfoIN EeFn7wxCRo9Jg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4ST2T72KrQz9rxG; Sun, 12 Nov 2023 20:20:27 +0100 (CET) From: Rikard Nordgren Date: Sun, 12 Nov 2023 19:20:16 +0000 Message-Id: MIME-Version: 1.0 Received-SPF: pass client-ip=185.67.36.66; envelope-from=hrn@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -53 X-Spam_score: -5.4 X-Spam_bar: ----- X-Spam_report: (-5.4 / 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_MED=-2.3, RCVD_IN_MSPIKE_H5=-1, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/games.scm (camlia-girls): New variable. Change-Id: I6bf6f85cd4578b7ce4ec6ebdd7a8c342fa5dbd4c --- gnu/packages/games.scm | 86 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 86 insertions(+) base-commit: c9361460dece1dbc3d2645ad3e5c79e85a2bf183 diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index 8313c02754..4e396f3ba1 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -231,6 +231,7 @@ (define-module (gnu packages games) #:use-module (guix build-system perl) #:use-module (guix build-system python) #:use-module (guix build-system qt) + #:use-module (guix build-system renpy) #:use-module (guix build-system scons) #:use-module (guix build-system trivial) #:use-module ((srfi srfi-1) #:hide (zip)) @@ -999,6 +1000,91 @@ (define-public bzflag ;; The game is dual-licensed. (license (list license:lgpl2.1 license:mpl2.0)))) +(define-public camelia-girls + (package + (name "camelia-girls") + (version "0.561") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://codeberg.org/rikardn/cameliagirls.git") + (commit "1285aa1261f57545d81cc0194432bd6fe6f7fe44"))) + (sha256 + (base32 "1yq9gx2zh71c99w1pfvkv5isgm4pd3hjlixcn5vhk1l1f9f7mfc7")) + (file-name (git-file-name name version)) + (snippet '(begin + ;; Remove bundled dependencies. + (delete-file "game/fonts/DejaVuSansMono-Bold.ttf") + (delete-file "game/fonts/DejaVuSerif-BoldItalic.ttf"))))) + (build-system renpy-build-system) + (arguments + `(#:phases (modify-phases %standard-phases + (add-after 'install 'unbundle-fonts + (lambda* (#:key inputs outputs #:allow-other-keys) + (let* ((font-name-bold "DejaVuSansMono-Bold.ttf") + (font-name-bi "DejaVuSerif-BoldItalic.ttf") + (font-path-bold (string-append (assoc-ref inputs + "font-dejavu") + "/share/fonts/truetype/" + font-name-bold)) + (font-path-bi (string-append (assoc-ref inputs + "font-dejavu") + "/share/fonts/truetype/" + font-name-bi)) + (target-bold (string-append (assoc-ref outputs + "out") + "/share/renpy/fonts/" + font-name-bold)) + (target-bi (string-append (assoc-ref outputs + "out") + "/share/renpy/fonts/" + font-name-bi))) + (symlink font-path-bold target-bold) + (symlink font-path-bi target-bi)))) + + (add-after 'install-desktop-file 'install-desktop-icon + (lambda* (#:key inputs outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (game-name "CameliaGirls") + (desktop-path (string-append out + "/share/applications/" game-name + ".desktop")) + (icon-dir (string-append out + "/share/icons/hicolor/128x128/apps")) + (orig-icon-name "icon-high.png") + (new-icon-name (string-append game-name + "-icon.png")) + (orig-icon-path (string-append icon-dir "/" + orig-icon-name)) + (new-icon-path (string-append icon-dir "/" + new-icon-name))) + (let ((output-port (open-file desktop-path "a"))) + (display (string-append "Icon=" game-name "-icon") + output-port) + (newline output-port) + (close output-port)) + (substitute* desktop-path + (("^Name=") + (string-append "Name=" game-name))) + (mkdir-p icon-dir) + (install-file orig-icon-name icon-dir) + (rename-file orig-icon-path new-icon-path))))))) + + (inputs (list font-dejavu)) + (home-page "https://codeberg.org/rikardn/cameliagirls") + (synopsis + "Slice-of-life visual novel featuring the student body of Camelia Academy") + (description + "CameliaGirls: @@CameliaGirls or Cewek Cewek Camelia is a visual novel +that follows the life of a transfer student as she begins her new life at the +all-girl Camelia Academy. The game is highly dialog-driven, but also +incorporates visual gags, reminiscent of the Anime style that inspires it. +The script and interface is translated to English, Indonesian, Spanish, +German and French. The game consists of two acts and the story is +unfinished.") + (license license:cc-by-sa3.0))) + (define-public cataclysm-dda (package (name "cataclysm-dda")