Дана 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 <[EMAIL PROTECTED]>
WWWeb: http://purl.org/NET/brcha/home/
Jabber: [EMAIL PROTECTED]
Jabber: [EMAIL PROTECTED]
Jabber: [EMAIL PROTECTED]
ICQ# 40994923
Yahoo! brcha
MSN: [EMAIL PROTECTED]
pgpDIVMfwr0bZ.pgp
Description: PGP signature
_______________________________________________ gnu-system-discuss mailing list [email protected] http://lists.gnu.org/mailman/listinfo/gnu-system-discuss
