From b5d74fd192853560e82a5d3044f7b13524ed386c Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 19 Mar 2009 01:59:30 +0100 Subject: [PATCH] libXt: converted to subpkgs, new deps style. --HG-- extra : convert_revision : c6b9cec812b7fb0c0d78ea63594ac45314f15333 --- templates/libXt-devel | 1 + templates/libXt/depends | 2 ++ templates/libXt/devel.template | 21 +++++++++++++++++++++ templates/libXt/template | 15 ++++++++++++--- 4 files changed, 36 insertions(+), 3 deletions(-) create mode 120000 templates/libXt-devel create mode 100644 templates/libXt/depends create mode 100644 templates/libXt/devel.template diff --git a/templates/libXt-devel b/templates/libXt-devel new file mode 120000 index 0000000000..ed8d351b4c --- /dev/null +++ b/templates/libXt-devel @@ -0,0 +1 @@ +libXt \ No newline at end of file diff --git a/templates/libXt/depends b/templates/libXt/depends new file mode 100644 index 0000000000..f847cf4927 --- /dev/null +++ b/templates/libXt/depends @@ -0,0 +1,2 @@ +abi_depends=1.0.5 +api_depends=${abi_depends} diff --git a/templates/libXt/devel.template b/templates/libXt/devel.template new file mode 100644 index 0000000000..2816360c6c --- /dev/null +++ b/templates/libXt/devel.template @@ -0,0 +1,21 @@ +# Template file for 'libXt-devel'. +# +short_desc="${short_desc} (development files)" +long_desc="${long_desc} + + This package contains files for development, headers, static libs, etc." + +Add_dependency run libXt + +do_install() +{ + mkdir -p ${DESTDIR}/usr/lib + mkdir -p ${DESTDIR}/usr/share/man + mv ${SRCPKGDESTDIR}/usr/bin ${DESTDIR}/usr + mv ${SRCPKGDESTDIR}/usr/include ${DESTDIR}/usr + mv ${SRCPKGDESTDIR}/usr/lib/lib*.*a ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/lib/lib*.so ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/lib/pkgconfig ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/share/man ${DESTDIR}/usr/share + rm -rf ${SRCPKGDESTDIR}/usr/share +} diff --git a/templates/libXt/template b/templates/libXt/template index 4769cf1afd..b4c9da54ba 100644 --- a/templates/libXt/template +++ b/templates/libXt/template @@ -1,4 +1,6 @@ +# Template build file for 'libXt'. pkgname=libXt +sourcepkg=$pkgname version=1.0.5 distfiles="${XORG_SITE}/lib/$pkgname-$version.tar.bz2" build_style=gnu_configure @@ -13,6 +15,13 @@ long_desc=" This is from the modular X.org project." -shared_deps="libSM-1.0 libICE-1.0 libX11-1.1 e2fsprogs-1.41" -build_depends="pkg-config-0.23 xproto-7.0 kbproto-1.0 ${shared_deps}" -run_depends="glibc-2.8 ${shared_deps}" +subpackages="devel" +Add_dependency build pkg-config +Add_dependency build xproto +Add_dependency build kbproto +Add_dependency build e2fsprogs +Add_dependency full glibc +Add_dependency full libSM +Add_dependency full libICE +Add_dependency full libX11 +Add_dependency run e2fsprogs-libs