From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: HiPhish Newsgroups: gmane.lisp.guile.user Subject: Re: Make a library installable? Date: Tue, 14 May 2019 00:22:49 +0200 Message-ID: <3481293.477KK3UXbR@aleksandar-ixtreme-m5740> References: <6372591.9J7NaK4W3v@aleksandar-ixtreme-m5740> <8da6c39894d7ba12c32d2bfad28d64ea@hyper.dev> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="105520"; mail-complaints-to="usenet@blaine.gmane.org" Cc: guile-user@gnu.org To: amirouche@hyper.dev Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue May 14 06:43:04 2019 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hQPHM-000RKW-1o for guile-user@m.gmane.org; Tue, 14 May 2019 06:43:04 +0200 Original-Received: from localhost ([127.0.0.1]:39052 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hQPHK-0004ug-Pq for guile-user@m.gmane.org; Tue, 14 May 2019 00:43:02 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:34729) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hQPGz-0004uP-3t for guile-user@gnu.org; Tue, 14 May 2019 00:42:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hQJLT-0003A8-Ob for guile-user@gnu.org; Mon, 13 May 2019 18:27:42 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]:58414) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hQJLS-0002xW-NI for guile-user@gnu.org; Mon, 13 May 2019 18:22:55 -0400 Original-Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 0EEB516005E for ; Tue, 14 May 2019 00:22:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1557786171; bh=boX2x7/LS0SiOrQo9SoEDXZbxwuPbTBvXndfzkypYXo=; h=From:To:Cc:Subject:Date:From; b=iUDvrB+YIClReVb75aq5A5At7rUYP0MTQdWTuCdFK+/OfKR6XJMM18lfHdNzwrr+b BP0IELKklq/FPFkCepRhopYTEhQ+DLJcA8zVYXWUvbBXCdnnl/oaDtKwQnD6zrNVFF Gr6Hmji3r2OFpTlX/busZfS9d7UxjApqrbjFCno74tb7faXwHPoJ18RiRp2qg7/O3h yk2vkvaK1d2eHtKI7ea7deN7kMTV1VTRYNQgjjLxWMcgw1xsAAqUXJDlphcd7CceZc sSv02tj+3+xHpdXQGvgBQ2l1tWJY28j70l/3Aai7Zm5y2DrkTt21K48FH6LRxPv37B ll9Q3PIWKtLyQ== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 452wLL1Nxvz6tm7; Tue, 14 May 2019 00:22:49 +0200 (CEST) In-Reply-To: <8da6c39894d7ba12c32d2bfad28d64ea@hyper.dev> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 185.67.36.65 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.org gmane.lisp.guile.user:15473 Archived-At: Oh cool, I did not know about guile-build-system, that one must be new? I am not seeing anything about it also compiling and installing Info documentation though. On Monday, 13 May 2019 00:23:31 CEST you wrote: > On 2019-05-12 16:50, HiPhish wrote: > > Hello Schemers, > > > > A while ago I presented my MessagePack implementation for Guile[1] here > > and I > > want to make it available to users. > > > > Guile has no dedicated package manager, > > I use guile as my package manager, It is easy enough to install. > And Since I keep GUIX environment variable in a dedicated file > it doesn't interfere with the host environment. Basically, I have > no problem with guix. > > > so it's either manual or Guix, and I would like to support both. What > > it the best way of doing it? > > Yeah manual is good enough. Also, guix has guile-build-system > that doesn't require autotools. > > Here is the package definition for a small single file project > that required to dynamicly load a shared library: > > (define-public guile-termbox > (package > (name "guile-termbox") > (version "0.1.1") > (home-page "https://git.sr.ht/~amz3/guile-termbox") > (source (origin > (method git-fetch) > (uri (git-reference > (url home-page) > (commit > "8d43b12799bc1967b12cf0e86b4c323c1e251cb4"))) > (sha256 > (base32 > "1wc2246gg0dg5g7f7djrl0jy7dvzkjhw0idmijwvnd9r1dgksacq")) > (file-name (string-append name "-" version "-checkout")))) > (build-system guile-build-system) > (arguments > '(#:phases (modify-phases %standard-phases > (add-before 'build 'patch > (lambda* (#:key inputs #:allow-other-keys) > (let* ((libtermbox (assoc-ref inputs "termbox"))) > (substitute* "termbox.scm" > (("@LIBTERMBOX@") > (format #f "~a/lib/libtermbox.so" libtermbox))) > #t)))))) > (inputs > `(("guile" ,guile-2.2) > ("termbox" ,termbox-truecolor))) > (propagated-inputs > `(("guile-bytestructures" ,guile-bytestructures))) > (synopsis "GNU Guile bindings for termbox") > (description "GNU Guile bindings for termbox") > (license license:lgpl3+))) > > https://git.sr.ht/~amz3/guix-amz3-channel/tree/master/amz3/termbox.scm#L40 > > Hope This Helps, > > > Amirouche ~ amz3