From: ng0 <ng0@infotropique.org>
To: Efraim Flashner <efraim@flashner.co.il>
Cc: guix-devel@gnu.org
Subject: Re: PATCH in need for discussion: vim-build-system
Date: Sun, 2 Jul 2017 19:19:51 +0000 [thread overview]
Message-ID: <20170702191951.aaueapwc6fzzlhro@abyayala> (raw)
In-Reply-To: <20170702190337.GC2938@macbook42.flashner.co.il>
[-- Attachment #1: Type: text/plain, Size: 5314 bytes --]
Efraim Flashner transcribed 18K bytes:
> On Sun, Jul 02, 2017 at 04:19:26PM +0000, ng0 wrote:
> > The appended two patches fail, for a reason which is not apparent
> > to me (and no reason I could capture).
> >
> > This is mostly based on the font-build-system with some additions,
> > it's more or less the same except for the unpack and install phases.
> > --
> > ng0
> > GnuPG: A88C8ADD129828D7EAC02E52E22F9BBFEE348588
> > GnuPG: https://n0is.noblogs.org/my-keys
> > https://www.infotropique.org https://krosos.org
>
> > From 9490336916ce4517c64875cc470ccadfad4a27ba Mon Sep 17 00:00:00 2001
> > From: ng0 <ng0@infotropique.org>
> > Date: Sun, 2 Jul 2017 16:07:48 +0000
> > Subject: [PATCH 1/2] build-system: Add 'vim-build-system'.
> >
> > * Makefile.am (MODULES): Add 'guix/build-system/vim.scm' and
> > 'guix/build/vim-build-system.scm'.
> > * guix/build-system/vim.scm: New file.
> > * guix/build/vim-build-system.scm: New file.
>
> I couldn't get it to build, but here's the changes I made
>
>
> --
> Efraim Flashner <efraim@flashner.co.il> אפרים פלשנר
> GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351
> Confidentiality cannot be guaranteed on emails sent or received unencrypted
> diff --git a/guix/build-system/vim.scm b/guix/build-system/vim.scm
> index 6c074fd60..adc0a9fdd 100644
> --- a/guix/build-system/vim.scm
> +++ b/guix/build-system/vim.scm
> @@ -35,7 +35,7 @@
> ;; Code:
>
> (define %vim-build-system-modules
> - ;; Build-side moduels imported by default.
> + ;; Build-side modules imported by default.
> `((guix build vim-build-system)
> ,@%gnu-build-system-modules))
>
> diff --git a/guix/build/vim-build-system.scm b/guix/build/vim-build-system.scm
> index 5c55f1256..d97d44cf9 100644
> --- a/guix/build/vim-build-system.scm
> +++ b/guix/build/vim-build-system.scm
> @@ -49,33 +49,37 @@ archive, a directory or a '.vim' file."
> (let* ((out (assoc-ref outputs "out"))
> (source (getcwd))
> (vimfiles (string-append out "/share/vim/vimfiles")))
> - (when (file-exists? "autoload")
> - (copy-recursively "autoload"
> - (string-append vimfiles "/autoload")))
> - (when (file-exists? "afer")
> - (copy-recursively "after"
> - (string-append vimfiles "/after")))
> - (when (file-exists? "doc")
> - (copy-recursively "doc"
> - (string-append vimfiles "/doc")))
> - (when (file-exists? "ftdetect")
> - (copy-recursively "ftdetect"
> - (string-append vimfiles "/ftdetect")))
> - (when (file-exists? "ftplugin")
> - (copy-recursively "ftplugin"
> - (string-append vimfiles "/ftplugin")))
> - (when (file-exists? "indent")
> - (copy-recursively "indent"
> - (string-append vimfiles "/indent")))
> - (when (file-exists? "plugin")
> - (copy-recursively "plugin"
> - (string-append vimfiles "/plugin")))
> - (when (file-exists? "rplugin")
> - (copy-recursively "rplugin"
> - (string-append vimfiles "/rplugin")))
> - (when (file-exists? "syntax")
> - (copy-recursively "syntax"
> - (string-append vimfiles "/syntax")))
> + (lambda (dir)
> + (when (file-exists? dir)
> + (copy-recursively dir (string-append vimfiles "/" dir))))
> + (list "autoload" "after" "doc" "ftdetect" "ftplugin" "indent" "plugin" "rplugin" "syntax")
> + ;(when (file-exists? "autoload")
> + ; (copy-recursively "autoload"
> + ; (string-append vimfiles "/autoload")))
> + ;(when (file-exists? "after")
> + ; (copy-recursively "after"
> + ; (string-append vimfiles "/after")))
> + ;(when (file-exists? "doc")
> + ; (copy-recursively "doc"
> + ; (string-append vimfiles "/doc")))
> + ;(when (file-exists? "ftdetect")
> + ; (copy-recursively "ftdetect"
> + ; (string-append vimfiles "/ftdetect")))
> + ;(when (file-exists? "ftplugin")
> + ; (copy-recursively "ftplugin"
> + ; (string-append vimfiles "/ftplugin")))
> + ;(when (file-exists? "indent")
> + ; (copy-recursively "indent"
> + ; (string-append vimfiles "/indent")))
> + ;(when (file-exists? "plugin")
> + ; (copy-recursively "plugin"
> + ; (string-append vimfiles "/plugin")))
> + ;(when (file-exists? "rplugin")
> + ; (copy-recursively "rplugin"
> + ; (string-append vimfiles "/rplugin")))
> + ;(when (file-exists? "syntax")
> + ; (copy-recursively "syntax"
> + ; (string-append vimfiles "/syntax")))
> #t))
>
> (define %standard-phases
I think I will merge this into my patch, it's much a much
more compact way to express what I wanted.
Ideally we could define an "excludes" list and copy everything
else over to the output, as that's how vim packages work.
--
ng0
GnuPG: A88C8ADD129828D7EAC02E52E22F9BBFEE348588
GnuPG: https://n0is.noblogs.org/my-keys
https://www.infotropique.org https://krosos.org
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2017-07-02 19:20 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-02 16:19 PATCH in need for discussion: vim-build-system ng0
2017-07-02 19:03 ` Efraim Flashner
2017-07-02 19:19 ` ng0 [this message]
2017-07-02 19:44 ` ng0
2017-07-02 19:56 ` ng0
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170702191951.aaueapwc6fzzlhro@abyayala \
--to=ng0@infotropique.org \
--cc=efraim@flashner.co.il \
--cc=guix-devel@gnu.org \
/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 external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.