* 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

12
ChangeLog Normal file
View File

@ -0,0 +1,12 @@
2003-08-18 Eelco Visser <visser@cs.uu.nl>
* 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.

View File

@ -0,0 +1,3 @@
#! /bin/sh
set -e
$pkgbuild --with-aterm=$aterm --with-sdf=$sdf2 --with-srts=$srts --with-xtc=$xtc

View File

@ -0,0 +1,19 @@
Function(["rev"],
Package(
[ ("name", "asfix-tools")
, ("build", Relative("asfix-tools/asfix-tools-build.sh"))
, ("pkgbuild", Relative("strategoxt/pkg-build.sh"))
, ("src", App(IncludeFix("strategoxt/fetchsvn.fix"),
[ ("name", "asfix-tools"), ("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"))]))
, ("srts", App(IncludeFix("srts/srts.fix"),[("rev",Var("rev"))]))
, ("xtc", App(IncludeFix("xtc/xtc.fix"),[("rev",Var("rev"))]))
]
)
)

View File

@ -1,18 +1,3 @@
#! /bin/sh
. $stdenv/setup || exit 1
echo "out: $out"
echo "pwd: `pwd`"
echo "src: $src"
ls $src
cp -r $src autoxt
ls
cd autoxt || exit 1
./bootstrap || exit 1
./configure --prefix=$out || exit 1
make || exit 1
make install || exit 1
set -e
$pkgbuild

View File

@ -2,13 +2,10 @@ Function(["rev"],
Package(
[ ("name", "autoxt")
, ("build", Relative("autoxt/autoxt-build.sh"))
, ("build", Relative("strategoxt/pkg-build.sh"))
, ("src", App(IncludeFix("fetchsvn/fetchsvn.fix"),
[ ("url", "http://losser.st-lab.cs.uu.nl:12080/repos/StrategoXT/trunk/StrategoXT/autoxt")
, ("name", "autoxt")
, ("rev", Var("rev"))
]))
, ("src", App(IncludeFix("strategoxt/fetchsvn.fix"),
[ ("name", "autoxt"), ("rev", Var("rev"))]))
, ("stdenv", IncludeFix("stdenv/stdenv.fix"))
]

4
pkgs/gpp/gpp-build.sh Executable file
View File

@ -0,0 +1,4 @@
#! /bin/sh
set -e
$pkgbuild --with-aterm=$aterm --with-sdf=$sdf2 --with-srts=$srts --with-xtc=$xtc \
--with-stratego-front=$stratego_front

21
pkgs/gpp/gpp.fix Normal file
View File

@ -0,0 +1,21 @@
Function(["rev"],
Package(
[ ("name", "gpp")
, ("build", Relative("gpp/gpp-build.sh"))
, ("pkgbuild", Relative("strategoxt/pkg-build.sh"))
, ("src", App(IncludeFix("strategoxt/fetchsvn.fix"),
[ ("name", "gpp"), ("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"))]))
, ("srts", App(IncludeFix("srts/srts.fix"),[("rev",Var("rev"))]))
, ("xtc", App(IncludeFix("xtc/xtc.fix"),[("rev",Var("rev"))]))
, ("stratego_front",
App(IncludeFix("stratego-front/stratego-front.fix"),[("rev",Var("rev"))]))
]
)
)

3
pkgs/sc/sc-build.sh Executable file
View File

@ -0,0 +1,3 @@
#! /bin/sh
set -e
$pkgbuild --with-aterm=$aterm --with-sdf=$sdf2 --with-srts=$srts --with-xtc=$xtc

19
pkgs/sc/sc.fix Normal file
View File

@ -0,0 +1,19 @@
Function(["rev"],
Package(
[ ("name", "sc")
, ("build", Relative("sc/sc-build.sh"))
, ("pkgbuild", Relative("strategoxt/pkg-build.sh"))
, ("src", App(IncludeFix("strategoxt/fetchsvn.fix"),
[ ("name", "sc"), ("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"))]))
, ("srts", App(IncludeFix("srts/srts.fix"),[("rev",Var("rev"))]))
, ("xtc", App(IncludeFix("xtc/xtc.fix"),[("rev",Var("rev"))]))
]
)
)

View File

@ -1,22 +1,3 @@
#! /bin/sh
set -e
. $stdenv/setup
export PATH=$autoxt/bin:$PATH
echo "out: $out"
echo "pwd: `pwd`"
echo "src: $src"
ls $src
cp -r $src srts
ls
cd srts
./bootstrap
./configure --prefix=$out --with-aterm=$aterm
make
make install
$pkgbuild --with-aterm=$aterm

View File

@ -3,13 +3,10 @@ Function(["rev"],
[ ("name", "srts")
, ("build", Relative("srts/srts-build.sh"))
, ("pkgbuild", Relative("strategoxt/pkg-build.sh"))
, ("src", App(IncludeFix("fetchsvn/fetchsvn.fix"),
[ ("url", "http://losser.st-lab.cs.uu.nl:12080/repos/StrategoXT/trunk/StrategoXT/srts")
, ("name", "srts")
, ("rev", Var("rev"))
])
)
, ("src", App(IncludeFix("strategoxt/fetchsvn.fix"),
[ ("name", "srts"), ("rev", Var("rev"))]))
, ("stdenv", IncludeFix("stdenv/stdenv.fix"))
, ("aterm", IncludeFix("aterm/aterm.fix"))

View File

@ -0,0 +1,5 @@
#! /bin/sh
set -e
$pkgbuild --with-aterm=$aterm --with-sdf=$sdf2 --with-srts=$srts --with-xtc=$xtc
$xtc/bin/xtc -r $(REPOSITORY) import

View File

@ -0,0 +1,19 @@
Function(["rev"],
Package(
[ ("name", "stratego-front")
, ("build", Relative("stratego-front/stratego-front-build.sh"))
, ("pkgbuild", Relative("strategoxt/pkg-build.sh"))
, ("src", App(IncludeFix("strategoxt/fetchsvn.fix"),
[ ("name", "stratego-front"), ("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"))]))
, ("srts", App(IncludeFix("srts/srts.fix"),[("rev",Var("rev"))]))
, ("xtc", App(IncludeFix("xtc/xtc.fix"),[("rev",Var("rev"))]))
]
)
)

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
pkgs/strategoxt/pkg-build.sh Executable file
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
pkgs/strategoxt/pkg.fix Normal file
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"))]))
]
)
)

View File

@ -0,0 +1,3 @@
#! /bin/sh -v
set -e
$pkgbuild --with-aterm=$aterm --with-xtc=$xtc --with-sdf=$sdf2

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"))]))
]
)
)

View File

@ -1,4 +1,4 @@
App(
IncludeFix("strategoxt/strategoxt.fix")
, [("rev", "3385")]
, [("rev", "3395")]
)

View File

@ -4,13 +4,33 @@ Function(["rev"],
, ("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"))]))
]
)
)

View File

@ -1,14 +1,3 @@
#! /bin/sh
set -e
. $stdenv/setup
export PATH=$autoxt/bin:$PATH
cp -r $src $name
cd $name
./bootstrap
./configure --prefix=$out --with-aterm=$aterm --with-srts=$srts
make
make install
$pkgbuild --with-aterm=$aterm --with-srts=$srts

View File

@ -3,13 +3,10 @@ Function(["rev"],
[ ("name", "xtc")
, ("build", Relative("xtc/xtc-build.sh"))
, ("pkgbuild", Relative("strategoxt/pkg-build.sh"))
, ("src", App(IncludeFix("fetchsvn/fetchsvn.fix"),
[ ("url", "http://losser.st-lab.cs.uu.nl:12080/repos/StrategoXT/trunk/StrategoXT/xtc")
, ("name", "xtc")
, ("rev", Var("rev"))
])
)
, ("src", App(IncludeFix("strategoxt/fetchsvn.fix"),
[ ("name", "xtc"), ("rev", Var("rev"))]))
, ("stdenv", IncludeFix("stdenv/stdenv.fix"))
, ("aterm", IncludeFix("aterm/aterm.fix"))