From 7c84ea2bcdf67e7f614ad1ca560de3a13e9aab63 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 9 Dec 2009 09:52:52 +0100 Subject: [PATCH] Added tcl-8.5.8 build template. --HG-- extra : convert_revision : a4edaac9f3b71e3b5c977fdcb2ae0dcee7a03a06 --- srcpkgs/tcl-devel | 1 + srcpkgs/tcl/depends | 2 ++ srcpkgs/tcl/tcl-devel.template | 19 +++++++++++++++++++ srcpkgs/tcl/template | 28 ++++++++++++++++++++++++++++ 4 files changed, 50 insertions(+) create mode 120000 srcpkgs/tcl-devel create mode 100644 srcpkgs/tcl/depends create mode 100644 srcpkgs/tcl/tcl-devel.template create mode 100644 srcpkgs/tcl/template diff --git a/srcpkgs/tcl-devel b/srcpkgs/tcl-devel new file mode 120000 index 0000000000..7c456a8945 --- /dev/null +++ b/srcpkgs/tcl-devel @@ -0,0 +1 @@ +tcl \ No newline at end of file diff --git a/srcpkgs/tcl/depends b/srcpkgs/tcl/depends new file mode 100644 index 0000000000..55b9457dc9 --- /dev/null +++ b/srcpkgs/tcl/depends @@ -0,0 +1,2 @@ +abi_depends=">=8.5.8" +api_depends="${abi_depends}" diff --git a/srcpkgs/tcl/tcl-devel.template b/srcpkgs/tcl/tcl-devel.template new file mode 100644 index 0000000000..a888ee484d --- /dev/null +++ b/srcpkgs/tcl/tcl-devel.template @@ -0,0 +1,19 @@ +# Template file for 'tcl-devel'. +# +short_desc="TCL development files" +long_desc="${long_desc} + + This package contains files for development, headers, static libs, etc." + +Add_dependency run glibc-devel +Add_dependency run tcl + +do_install() +{ + mkdir -p ${DESTDIR}/usr/lib ${DESTDIR}/usr/share/man/man3 + mv ${SRCPKGDESTDIR}/usr/lib/*.a ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}//usr/lib/tclConfig.sh ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/include ${DESTDIR}/usr + mv ${SRCPKGDESTDIR}/usr/share/man/mann/* ${DESTDIR}/usr/share/man/man3 + mv ${SRCPKGDESTDIR}/usr/share/man/man3/* ${DESTDIR}/usr/share/man/man3 +} diff --git a/srcpkgs/tcl/template b/srcpkgs/tcl/template new file mode 100644 index 0000000000..25f1b1b7e6 --- /dev/null +++ b/srcpkgs/tcl/template @@ -0,0 +1,28 @@ +# Template file for 'tcl' +pkgname=tcl +version=8.5.8 +wrksrc="tcl${version}" +distfiles="${SOURCEFORGE_SITE}/$pkgname/${pkgname}${version}-src.tar.gz" +build_style=gnu_configure +configure_script="./unix/configure" +configure_args="--enable-threads" +make_install_target="INSTALL_ROOT=$XBPS_DESTDIR/$pkgname-$version + install install-private-headers" +short_desc="The TCL scripting language" +maintainer="Juan RP " +checksum=6b090c1024038d0381e1ccfbd6d5c0f0e6ef205269ceb9d28bd7bd7ac5bbf4a7 +long_desc=" + This package contains Tcl, John Osterhout's Tool Command Language, an + exceedingly simple language great for general scripting and for + embedding in other programs." + +subpackages="$pkgname-devel" +Add_dependency run glibc + +post_install() +{ + install -d ${DESTDIR}/usr/share/man/man1 + mv ${DESTDIR}/usr/share/man/mann/tclsh.n \ + ${DESTDIR}/usr/share/man/man1/tclsh.1 + cd ${DESTDIR}/usr/bin && ln -sf tclsh8.5 tclsh +}