From 59c2be9eb25375af237f7e77955f85c7ada49e14 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 13 May 2009 15:52:45 +0200 Subject: [PATCH] libart: new deps style, subpkgs. --HG-- extra : convert_revision : 5e09e5a44071a6b47c69c489d1e8c2c307edf9e2 --- templates/libart-devel | 1 + templates/libart/depends | 2 ++ templates/libart/devel.template | 19 +++++++++++++++++++ templates/libart/template | 12 +++++++----- 4 files changed, 29 insertions(+), 5 deletions(-) create mode 120000 templates/libart-devel create mode 100644 templates/libart/depends create mode 100644 templates/libart/devel.template diff --git a/templates/libart-devel b/templates/libart-devel new file mode 120000 index 00000000000..94ea8f12f59 --- /dev/null +++ b/templates/libart-devel @@ -0,0 +1 @@ +libart \ No newline at end of file diff --git a/templates/libart/depends b/templates/libart/depends new file mode 100644 index 00000000000..fa0775226bf --- /dev/null +++ b/templates/libart/depends @@ -0,0 +1,2 @@ +abi_depends=2.3.20 +api_depends=${abi_depends} diff --git a/templates/libart/devel.template b/templates/libart/devel.template new file mode 100644 index 00000000000..3a453d8399f --- /dev/null +++ b/templates/libart/devel.template @@ -0,0 +1,19 @@ +# Template file for 'libart-devel'. +# +short_desc="${short_desc} (development files)" +long_desc="${long_desc} + + This package contains files for development, headers, static libs, etc." + +Add_dependency run libart + +do_install() +{ + mkdir -p ${DESTDIR}/usr/lib + + mv ${SRCPKGDESTDIR}/usr/include ${DESTDIR}/usr + mv ${SRCPKGDESTDIR}/usr/lib/pkgconfig ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/lib/*.*a ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/lib/*.so ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/bin ${DESTDIR}/usr +} diff --git a/templates/libart/template b/templates/libart/template index 2669b25d507..5c082ba45ed 100644 --- a/templates/libart/template +++ b/templates/libart/template @@ -1,15 +1,13 @@ # Template build file for 'libart'. pkgname=libart +sourcepkg=$pkgname version=2.3.20 wrksrc="libart_lgpl-$version" -distfiles=" -http://ftp.gnome.org/pub/GNOME/sources/libart_lgpl/2.3/libart_lgpl-$version.tar.bz2" +distfiles="${GNOME_SITE}/libart_lgpl/2.3/libart_lgpl-$version.tar.bz2" build_style=gnu_configure -make_cmd="$XBPS_MASTERDIR/bin/gmake" -pkgconfig_override="libart-2.0.pc" short_desc="High-performance 2D graphics library" maintainer="Juan RP " -checksum=184cd3dd96e9cfadcba327644bc8c9dd32da26fa +checksum=d5531ae3a206a9b5cc74e9a20d89d61b2ba3ba03d342d6a2ed48d2130ad3d847 long_desc=" Libart is a library for high-performance 2D graphics. It is currently being used as the antialiased rendering engine for the Gnome Canvas. @@ -23,3 +21,7 @@ long_desc=" data structures and algorithms suited to rapid, precise computation of Region of Interest, as well as a two-phase rendering pipeline optimized for interactive display." + +subpackages="devel" +Add_dependency build pkg-config +Add_dependency run glibc