From: Jesse Gibbons <jgibbons2357@gmail.com>
To: "Pierre Neidhardt" <mail@ambrevar.xyz>, "Ludovic Courtès" <ludo@gnu.org>
Cc: guix-devel@gnu.org
Subject: Re: New build system: copy-build-system
Date: Sun, 16 Feb 2020 20:46:29 -0700 [thread overview]
Message-ID: <d92013db220fd8e6fcac36b5acce0bf746d47f1c.camel@gmail.com> (raw)
In-Reply-To: <87zhdlfhwn.fsf@ambrevar.xyz>
[-- Attachment #1: Type: text/plain, Size: 1277 bytes --]
Hi Pierre,
On Fri, 2020-02-14 at 13:54 +0100, Pierre Neidhardt wrote:
> Error verifying signature: Failed to execute gpg.
> I've just sent a patch: 39599@debbugs.gnu.org.
>
> Ideally, it would need a bit more testing with a package that has
> subdirectories.
> Any good suggestion?
>
Thank you for making this amazing time-saver!
Attached is an early version of a good candidate. It's a wrapper script
for clojure taken from from clojure's brew installer.
src/main/resources/clojure should be moved to bin/
src/main/resources/cl
j should be moved to bin/
doc/clojure.1 should be moved to share/man/
And unless there's a sufficient reason not to,
epl.html could be moved to share/doc/clojure-1.10.1/
Everything else could probably be ignored.
Since I'm patching one of the scripts to play better with guix, the
source will become a tarball. I would rather not worry about extracting
everything, moving some things, and deleting what is not used.
If your patches are pushed before you get this, I will make the package
myself. But it's a complex yet useful example of a package that would
be simpler with the copy-build-system, so you can check how easy it is
to change from trivial-build-system and test how well copy-build-system
works with subdirectories.
-Jesse
[-- Attachment #2: Type: text/plain, Size: 2908 bytes --]
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2018 Alex Vong <alexvong1995@gmail.com>
;;; Copyright © 2018 Pierre Neidhardt <mail@ambrevar.xyz>
;;; Copyright © 2019 Tobias Geerinckx-Rice <me@tobias.gr>
;;; Copyright © 2020 Ludovic Courtès <ludo@gnu.org>
;;;
;;; This file is part of GNU Guix.
;;;
;;; GNU Guix is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;;
;;; GNU Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
(define-module (clojure)
#:use-module (gnu packages)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix packages)
#:use-module (guix download)
#:use-module (guix git-download)
#:use-module (guix build-system ant)
#:use-module (guix build-system clojure)
#:use-module (guix build-system trivial)
#:use-module (ice-9 match))
(define-public clojure-wrapper
(package
(name "clojure-wrapper")
(version "1.10.1.507")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/clojure/brew-install.git")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32 "1zipz22pszv4vls4qhxkia8gm86s1wkahr0jdbqhc46mpd8n54fz"))))
(build-system trivial-build-system)
(arguments
`(#:modules ((guix build utils))
#:builder (begin
(use-modules (guix build utils))
(let* ((out (assoc-ref %outputs "out"))
(bin-dir (string-append out "/bin/"))
(source (assoc-ref %build-inputs "source"))
(script-dir
(string-append source "/src/main/resources/"))
(scripts '("clojure" "clj")))
(mkdir out)
(mkdir bin-dir)
(map (lambda (script)
(copy-file (string-append script-dir script)
(string-append bin-dir script)))
scripts)))))
(synopsis "Clojure launch scripts")
(description "Scripts to launch clojure from the command line.
Without these scripts a user would need to run jar with the clojure jar's
location. Who would want to do that?")
(home-page "https://clojure.org/")
(license license:epl1.0)))
next prev parent reply other threads:[~2020-02-17 3:46 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-26 20:27 New build system: copy-build-system Pierre Neidhardt
2020-01-27 0:45 ` Jesse Gibbons
2020-01-27 4:14 ` Jack Hill
2020-01-27 14:27 ` zimoun
2020-01-27 14:44 ` Pierre Neidhardt
2020-01-27 15:03 ` zimoun
2020-01-27 15:18 ` Pierre Neidhardt
2020-01-27 15:36 ` zimoun
2020-01-27 15:51 ` Pierre Neidhardt
2020-01-27 16:17 ` zimoun
2020-01-27 18:18 ` Julien Lepiller
2020-01-27 16:45 ` How to deal with very large sources Ricardo Wurmus
2020-01-27 19:03 ` New build system: copy-build-system Ricardo Wurmus
2020-01-28 10:32 ` Ludovic Courtès
2020-01-28 13:39 ` Pierre Neidhardt
2020-01-28 23:04 ` Ludovic Courtès
2020-02-14 12:54 ` Pierre Neidhardt
2020-02-14 13:22 ` Julien Lepiller
2020-02-17 3:46 ` Jesse Gibbons [this message]
2020-02-17 7:56 ` Pierre Neidhardt
2020-02-17 16:52 ` Jesse Gibbons
2020-02-17 17:10 ` Pierre Neidhardt
2020-02-19 1:33 ` Alex Griffin
2020-02-19 14:01 ` Pierre Neidhardt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d92013db220fd8e6fcac36b5acce0bf746d47f1c.camel@gmail.com \
--to=jgibbons2357@gmail.com \
--cc=guix-devel@gnu.org \
--cc=ludo@gnu.org \
--cc=mail@ambrevar.xyz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).