From 7c894157745a2dc650e0de60b3cd384e7737b7a3 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 20 Mar 2003 22:25:01 +0000 Subject: [PATCH] * Descriptor templates for the Pan newsreader and all its dependencies. svn path=/nix/trunk/test/; revision=9 --- dist/aterm-build.sh | 10 ++++++++++ dist/atk-build.sh | 12 ++++++++++++ dist/glib-build.sh | 10 ++++++++++ dist/gnet-build.sh | 12 ++++++++++++ dist/gtk+-build.sh | 12 ++++++++++++ dist/pan-build.sh | 12 ++++++++++++ dist/pango-build.sh | 12 ++++++++++++ dist/pkgconfig-build.sh | 10 ++++++++++ register | 18 ++++++++++++++++++ tmpl/aterm-2.0.nix | 5 +++++ tmpl/atk-1.2.0.nix | 6 ++++++ tmpl/glib-2.2.1.nix | 5 +++++ tmpl/gnet-1.1.8.nix | 6 ++++++ tmpl/gtk+-2.2.1.nix | 8 ++++++++ tmpl/pan-0.13.4.nix | 10 ++++++++++ tmpl/pango-1.2.1.nix | 6 ++++++ tmpl/pkgconfig-0.15.0.nix | 3 +++ 17 files changed, 157 insertions(+) create mode 100755 dist/aterm-build.sh create mode 100755 dist/atk-build.sh create mode 100755 dist/glib-build.sh create mode 100755 dist/gnet-build.sh create mode 100755 dist/gtk+-build.sh create mode 100755 dist/pan-build.sh create mode 100755 dist/pango-build.sh create mode 100755 dist/pkgconfig-build.sh create mode 100755 register create mode 100644 tmpl/aterm-2.0.nix create mode 100644 tmpl/atk-1.2.0.nix create mode 100644 tmpl/glib-2.2.1.nix create mode 100644 tmpl/gnet-1.1.8.nix create mode 100644 tmpl/gtk+-2.2.1.nix create mode 100644 tmpl/pan-0.13.4.nix create mode 100644 tmpl/pango-1.2.1.nix create mode 100644 tmpl/pkgconfig-0.15.0.nix diff --git a/dist/aterm-build.sh b/dist/aterm-build.sh new file mode 100755 index 000000000000..cfc83806b35b --- /dev/null +++ b/dist/aterm-build.sh @@ -0,0 +1,10 @@ +#! /bin/sh + +export PATH=/bin:/usr/bin + +top=`pwd` +tar xvfz $src +cd aterm-* +./configure --prefix=$top +make +make install diff --git a/dist/atk-build.sh b/dist/atk-build.sh new file mode 100755 index 000000000000..df881cbef733 --- /dev/null +++ b/dist/atk-build.sh @@ -0,0 +1,12 @@ +#! /bin/sh + +export PATH=$pkgconfig/bin:/bin:/usr/bin +export PKG_CONFIG_PATH=$glib/lib/pkgconfig +export LD_LIBRARY_PATH=$glib/lib + +top=`pwd` +tar xvfj $src +cd atk-* +./configure --prefix=$top +make +make install diff --git a/dist/glib-build.sh b/dist/glib-build.sh new file mode 100755 index 000000000000..2100052bede4 --- /dev/null +++ b/dist/glib-build.sh @@ -0,0 +1,10 @@ +#! /bin/sh + +export PATH=$pkgconfig/bin:/bin:/usr/bin + +top=`pwd` +tar xvfj $src +cd glib-* +./configure --prefix=$top +make +make install diff --git a/dist/gnet-build.sh b/dist/gnet-build.sh new file mode 100755 index 000000000000..ec614b4bfa1c --- /dev/null +++ b/dist/gnet-build.sh @@ -0,0 +1,12 @@ +#! /bin/sh + +export PATH=$pkgconfig/bin:/bin:/usr/bin +export PKG_CONFIG_PATH=$glib/lib/pkgconfig +export LD_LIBRARY_PATH=$glib/lib + +top=`pwd` +tar xvfz $src +cd gnet-* +./configure --prefix=$top +make +make install diff --git a/dist/gtk+-build.sh b/dist/gtk+-build.sh new file mode 100755 index 000000000000..8c887fec4f02 --- /dev/null +++ b/dist/gtk+-build.sh @@ -0,0 +1,12 @@ +#! /bin/sh + +export PATH=$pkgconfig/bin:/bin:/usr/bin +export PKG_CONFIG_PATH=$glib/lib/pkgconfig:$atk/lib/pkgconfig:$pango/lib/pkgconfig +export LD_LIBRARY_PATH=$glib/lib + +top=`pwd` +tar xvfj $src +cd gtk+-* +./configure --prefix=$top +make +make install diff --git a/dist/pan-build.sh b/dist/pan-build.sh new file mode 100755 index 000000000000..468814ff6686 --- /dev/null +++ b/dist/pan-build.sh @@ -0,0 +1,12 @@ +#! /bin/sh + +export PATH=$pkgconfig/bin:$gnet/bin:/bin:/usr/bin +export PKG_CONFIG_PATH=$glib/lib/pkgconfig:$atk/lib/pkgconfig:$pango/lib/pkgconfig:$gtk/lib/pkgconfig +export LD_LIBRARY_PATH=$gnet/lib + +top=`pwd` +tar xvfj $src +cd pan-* +./configure --prefix=$top +make +make install diff --git a/dist/pango-build.sh b/dist/pango-build.sh new file mode 100755 index 000000000000..fd43c274b51d --- /dev/null +++ b/dist/pango-build.sh @@ -0,0 +1,12 @@ +#! /bin/sh + +export PATH=$pkgconfig/bin:/bin:/usr/bin +export PKG_CONFIG_PATH=$glib/lib/pkgconfig +export LD_LIBRARY_PATH=$glib/lib + +top=`pwd` +tar xvfj $src +cd pango-* +./configure --prefix=$top +make +make install diff --git a/dist/pkgconfig-build.sh b/dist/pkgconfig-build.sh new file mode 100755 index 000000000000..522a05716b5c --- /dev/null +++ b/dist/pkgconfig-build.sh @@ -0,0 +1,10 @@ +#! /bin/sh + +export PATH=/bin:/usr/bin + +top=`pwd` +tar xvfz $src +cd pkgconfig-* +./configure --prefix=$top +make +make install diff --git a/register b/register new file mode 100755 index 000000000000..a50dd051a83f --- /dev/null +++ b/register @@ -0,0 +1,18 @@ +#! /bin/sh + +nix init + +root=/home/eelco/Dev/nix/test + +cd $root/tmpl + +if ! nix-instantiate $root/descr $root/tmpl/*.nix; then + exit 1; +fi + +for i in $root/dist/*; do nix regfile $i; done +for i in $root/descr/*; do + md5sum $i + nix regfile $i +done + diff --git a/tmpl/aterm-2.0.nix b/tmpl/aterm-2.0.nix new file mode 100644 index 000000000000..084f2751004e --- /dev/null +++ b/tmpl/aterm-2.0.nix @@ -0,0 +1,5 @@ +# Original sources. +src = ../dist/aterm-2.0.tar.gz + +# Build script. +build = ../dist/aterm-build.sh diff --git a/tmpl/atk-1.2.0.nix b/tmpl/atk-1.2.0.nix new file mode 100644 index 000000000000..bbe63670cb8a --- /dev/null +++ b/tmpl/atk-1.2.0.nix @@ -0,0 +1,6 @@ +pkgconfig <- ./pkgconfig-0.15.0.nix +glib <- ./glib-2.2.1.nix + +src = ../dist/atk-1.2.0.tar.bz2 + +build = ../dist/atk-build.sh diff --git a/tmpl/glib-2.2.1.nix b/tmpl/glib-2.2.1.nix new file mode 100644 index 000000000000..f1d0d08479c8 --- /dev/null +++ b/tmpl/glib-2.2.1.nix @@ -0,0 +1,5 @@ +pkgconfig <- ./pkgconfig-0.15.0.nix + +src = ../dist/glib-2.2.1.tar.bz2 + +build = ../dist/glib-build.sh diff --git a/tmpl/gnet-1.1.8.nix b/tmpl/gnet-1.1.8.nix new file mode 100644 index 000000000000..4d6ba1f5161b --- /dev/null +++ b/tmpl/gnet-1.1.8.nix @@ -0,0 +1,6 @@ +pkgconfig <- ./pkgconfig-0.15.0.nix +glib <- ./glib-2.2.1.nix + +src = ../dist/gnet-1.1.8.tar.gz + +build = ../dist/gnet-build.sh diff --git a/tmpl/gtk+-2.2.1.nix b/tmpl/gtk+-2.2.1.nix new file mode 100644 index 000000000000..83c2835dfeee --- /dev/null +++ b/tmpl/gtk+-2.2.1.nix @@ -0,0 +1,8 @@ +pkgconfig <- ./pkgconfig-0.15.0.nix +glib <- ./glib-2.2.1.nix +atk <- ./atk-1.2.0.nix +pango <- ./pango-1.2.1.nix + +src = ../dist/gtk+-2.2.1.tar.bz2 + +build = ../dist/gtk+-build.sh diff --git a/tmpl/pan-0.13.4.nix b/tmpl/pan-0.13.4.nix new file mode 100644 index 000000000000..574fb6f4079c --- /dev/null +++ b/tmpl/pan-0.13.4.nix @@ -0,0 +1,10 @@ +pkgconfig <- ./pkgconfig-0.15.0.nix +glib <- ./glib-2.2.1.nix +atk <- ./atk-1.2.0.nix +pango <- ./pango-1.2.1.nix +gtk <- ./gtk+-2.2.1.nix +gnet <- ./gnet-1.1.8.nix + +src = ../dist/pan-0.13.4.tar.bz2 + +build = ../dist/pan-build.sh diff --git a/tmpl/pango-1.2.1.nix b/tmpl/pango-1.2.1.nix new file mode 100644 index 000000000000..4c7e1afe7165 --- /dev/null +++ b/tmpl/pango-1.2.1.nix @@ -0,0 +1,6 @@ +pkgconfig <- ./pkgconfig-0.15.0.nix +glib <- ./glib-2.2.1.nix + +src = ../dist/pango-1.2.1.tar.bz2 + +build = ../dist/pango-build.sh diff --git a/tmpl/pkgconfig-0.15.0.nix b/tmpl/pkgconfig-0.15.0.nix new file mode 100644 index 000000000000..f93d40e3d09d --- /dev/null +++ b/tmpl/pkgconfig-0.15.0.nix @@ -0,0 +1,3 @@ +src = ../dist/pkgconfig-0.15.0.tar.gz + +build = ../dist/pkgconfig-build.sh