* pkgs/strategoxt/pkg-build.sh: generic build script for packages

with the standard untar; bootstrap; configure; make; make install
interface.  The script is parameterized with arguments for
configure. That is, all arguments are passed verbatim to
configure.

* asfix-tools, gpp, sc, srts, stratego-front, xtc: Fix expressions
and (trivial) build script for basic strategoxt packages. All
packages are abstracted on subversion revision.

svn path=/nixpkgs/trunk/; revision=319
This commit is contained in:
Eelco Visser
2003-08-18 20:56:59 +00:00
parent 397901e36f
commit 5c09abea7d
22 changed files with 210 additions and 73 deletions
+8
View File
@@ -0,0 +1,8 @@
Function(["name", "rev"],
App(IncludeFix("fetchsvn/fetchsvn.fix"),
[ ("name", Var("name"))
, ("url", "http://losser.labs.cs.uu.nl:12080/repos/StrategoXT/trunk/StrategoXT")
, ("dir", Var("name"))
, ("rev", Var("rev"))
])
)
+21
View File
@@ -0,0 +1,21 @@
#! /bin/sh
set -e
export NIX_LDFLAGS=-Wl,-s
. $stdenv/setup
export PATH=$autoxt/bin:$PATH
ls -l
pwd
gtar zxf $src/$name.tar.gz
cd $name
./bootstrap
./configure --prefix=$out $*
make
make install
+16
View File
@@ -0,0 +1,16 @@
Function(["name","rev"],
Package(
[ ("name", Var("name"))
, ("build", Relative("pkg/pkg-build.sh"))
, ("src", App(IncludeFix("strategoxt/fetchsvn.fix"),
[ ("name", Var("name")), ("rev", Var("rev"))]))
, ("stdenv", IncludeFix("stdenv/stdenv.fix"))
, ("aterm", IncludeFix("aterm/aterm.fix"))
, ("autoxt", App(IncludeFix("autoxt/autoxt.fix"),[("rev",Var("rev"))]))
, ("srts", App(IncludeFix("srts/srts.fix"),[("rev",Var("rev"))]))
]
)
)
+3
View File
@@ -0,0 +1,3 @@
#! /bin/sh -v
set -e
$pkgbuild --with-aterm=$aterm --with-xtc=$xtc --with-sdf=$sdf2
+18
View File
@@ -0,0 +1,18 @@
Function(["rev"],
Package(
[ ("name", "sdf-import")
, ("build", Relative("strategoxt/sdf-import-build.sh"))
, ("pkgbuild", Relative("strategoxt/pkg-build.sh"))
, ("src", App(IncludeFix("strategoxt/fetchsvn.fix"),
[ ("name", "sdf-import"), ("rev", Var("rev"))]))
, ("stdenv", IncludeFix("stdenv/stdenv.fix"))
, ("aterm", IncludeFix("aterm/aterm.fix"))
, ("sdf2", IncludeFix("sdf2/sdf2.fix"))
, ("autoxt", App(IncludeFix("autoxt/autoxt.fix"),[("rev",Var("rev"))]))
, ("xtc", App(IncludeFix("xtc/xtc.fix"),[("rev",Var("rev"))]))
]
)
)
+1 -1
View File
@@ -1,4 +1,4 @@
App(
IncludeFix("strategoxt/strategoxt.fix")
, [("rev", "3385")]
, [("rev", "3395")]
)
+25 -5
View File
@@ -2,15 +2,35 @@ Function(["rev"],
Package(
[ ("name", "strategoxt")
, ("build", Relative("system/populate-linkdirs.pl"))
, ("build", Relative("system/populate-linkdirs.pl"))
, ("actAterm", IncludeFix("aterm/aterm.fix"))
, ("act-sdf2",
IncludeFix("sdf2/sdf2.fix"))
, ("actAutoxt", App(IncludeFix("autoxt/autoxt.fix"), [("rev",Var("rev"))]))
, ("act-autoxt",
App(IncludeFix("autoxt/autoxt.fix"), [("rev",Var("rev"))]))
, ("actSrts", App(IncludeFix("srts/srts.fix"), [("rev", Var("rev"))]))
, ("act-srts",
App(IncludeFix("srts/srts.fix"), [("rev", Var("rev"))]))
, ("act-xtc",
App(IncludeFix("xtc/xtc.fix"),[("rev", Var("rev"))]))
, ("act-sdf-import",
App(IncludeFix("strategoxt/sdf-import.fix"),[("rev", Var("rev"))]))
, ("act-stratego-front",
App(IncludeFix("stratego-front/stratego-front.fix"),[("rev", Var("rev"))]))
, ("act-asfix-tools",
App(IncludeFix("asfix-tools/asfix-tools.fix"),[("rev", Var("rev"))]))
, ("act-sc",
App(IncludeFix("sc/sc.fix"),[("rev", Var("rev"))]))
, ("act-gpp",
App(IncludeFix("gpp/gpp.fix"),[("rev", Var("rev"))]))
, ("actXtc", App(IncludeFix("xtc/xtc.fix"),[("rev", Var("rev"))]))
]
)
)