[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gnu packaging ideas
From: |
Filip Brcic |
Subject: |
Re: gnu packaging ideas |
Date: |
Fri, 23 Jun 2006 19:32:16 +0200 |
User-agent: |
KMail/1.9.3 |
Дана Friday 23 June 2006 13:20, Alfred M. Szmidt је написао(ла):
> (gnu-package
> (name "foo")
> (version "1.2")
> (description "This is the latest foo package")
> (dependencies ( (>= "bar" "1.2")
> (>= "bla" "0.3")))
> (post-install (system "echo hello world")))
...
> (when (eq arch 'i386)
> (require 'foo))
> (when (< arch 'i686) ; Where i386, i486, i586 are all valid, but
> ; i787 (a fictious CPU) isn't.
> (require 'bar))
Well, this is a nice package recipe. I know that you (AMS) like the
Lisp/guile, but I am not sure that others are familiar with lisp. Therefore,
I would like to suggest some C-like syntax for package recipes. That would
make your recipe look something like:
# C-like syntax (with Python influence)
GNUPackage Foo
{
Name = "foo"
Version = "1.2"
Description = "This is the latest foo package"
Depends = [ "bar >= 1.2", "bla >= 0.3" ]
if Arch = "i386"
Depends += [ "bar2" ]
if Arch < "i686"
Depends += [ "bar3" ]
PostInstall
{
system ("echo hello world")
}
}
or similar. It would probably be smart to follow the syntax of some C-like
language (C, Python, Perl, ...) since parsers are already there.
Cheers
--
Filip Brcic <address@hidden>
WWWeb: http://purl.org/NET/brcha/home/
Jabber: address@hidden
Jabber: address@hidden
Jabber: address@hidden
ICQ# 40994923
Yahoo! brcha
MSN: address@hidden
pgp8K0WIExYdN.pgp
Description: PGP signature