From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maxim Cournoyer Subject: (Failed) attempt at packaging CGoban Date: Thu, 20 Jun 2019 16:42:24 +0900 Message-ID: <874l4ksnxb.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:51292) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hdrqD-0002NR-EX for guix-devel@gnu.org; Thu, 20 Jun 2019 03:50:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hdriN-0002RL-1J for guix-devel@gnu.org; Thu, 20 Jun 2019 03:42:36 -0400 Received: from mail-pf1-x42d.google.com ([2607:f8b0:4864:20::42d]:42270) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hdriL-0002LX-J4 for guix-devel@gnu.org; Thu, 20 Jun 2019 03:42:34 -0400 Received: by mail-pf1-x42d.google.com with SMTP id q10so1167098pff.9 for ; Thu, 20 Jun 2019 00:42:30 -0700 (PDT) Received: from kwak ([240f:c7:38e9:1:766b:a43b:9222:c603]) by smtp.gmail.com with ESMTPSA id a22sm25286597pfn.173.2019.06.20.00.42.26 for (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 20 Jun 2019 00:42:27 -0700 (PDT) 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: guix-devel Hello, I started trying to package CGoban, but it proved more complicated than I'd like. I'm not sure it is worth inclusion in Guix given that it is unmaintained software, but if anyone would like to have a look at it in, here was my attempt: --8<---------------cut here---------------start------------->8--- (define-public cgoban (package (name "cgoban") (version "1.9.12") (source (origin (method url-fetch) (uri (string-append "http://www.igoweb.org/~wms/comp/" name "/" name "-" version ".tar.gz")) (sha256 (base32 "1q90zasgh8vmkgaad1njz65cikfq27g77mh3d31cpzlkyz9b1s5r")))) (build-system gnu-build-system) (arguments `(#:phases (modify-phases %standard-phases (add-after 'unpack 'delete-configure (lambda _ (delete-file "configure") #t)) (add-after 'delete-configure 'fix-configure.in (lambda _ ;; Work around an issue in Guix/Guile: Throw to key ;; `decoding-error' with args `("peek-char" "input ;; decoding error" 84 #)'. (invoke "iconv" "-f" "ISO-8859-1" "-t" "UTF-8" "configure.in" "-o" "configure.in") ;; Add template descriptions, required by autoheader. (substitute* "configure.in" (("DATE,\\$DATE" all) (string-append all ", [The date]")) (("DATE_FRENCH,\\$DATE_FRENCH" all) (string-append all ", [The date, in French]")) (("AC_DEFINE\\(HAVE_H_ERRNO" all) (string-append all ", [], [Error numbers header file]")) (("AC_DEFINE\\(HAVE_SOCKETS" all) (string-append all ", [], [Sockets header file]")) (("AC_DEFINE\\(LINUX_SOUND" all) (string-append all ", [], [Linux sound header file]")) (("AC_DEFINE\\(SUN_SOUND" all) (string-append all ", [], [Sun sound header file]")) (("VERSION,\\$VERSION" all) (string-append all ", [The version]")) (("AC_DEFINE\\(X11_DISP" all) (string-append all ", [], [X11 display header file]")) ;; XXX: The SYSTEM_TYPE shell variable used in the ;; configure script doesn't work and gets replaced by ;; "" in various places. It still works, if the ;; configure.h file is placed directly under the ;; "obj-" subdirectory. ;; Using shell variables in AC_CONFIG_HEADER seems to ;; break "autoheader"; use a fixed location instead. (("AC_CONFIG_HEADER.*") "AC_CONFIG_HEADERS([obj-/configure.h:configure.h.in])\n")) #t))))) (native-inputs `(("autoconf" ,autoconf) ("automake" ,automake))) (inputs `(("libx11" ,libx11) ("libxpm" ,libxpm))) (home-page "http://www.igoweb.org/~wms/comp/cgoban/index.html") (synopsis "Go board game") (description "CGoban (Complete Goban) is a computerized board on which you can play the game of Go against another player, view and edit smart-go files, and connect to Go servers on the internet. It can also interface with computer Go programs such as GNU Go that speak the Go modem protocol.") (license license:gpl2+))) --8<---------------cut here---------------end--------------->8---