diff --git a/common/shlibs b/common/shlibs index cb1872bd97..b93bc96478 100644 --- a/common/shlibs +++ b/common/shlibs @@ -981,3 +981,4 @@ libcupsimage.so.2 libcups cups-devel libijs-0.35.so libijs ghostscript-devel libgs.so.9 libgs ghostscript-devel libssh2.so.1 libssh2 libssh2-devel +libvirt-glib-1.0.so.0 libvirt-glib libvirt-glib-devel diff --git a/srcpkgs/libvirt-glib-devel b/srcpkgs/libvirt-glib-devel new file mode 120000 index 0000000000..ecf88a43a5 --- /dev/null +++ b/srcpkgs/libvirt-glib-devel @@ -0,0 +1 @@ +libvirt-glib \ No newline at end of file diff --git a/srcpkgs/libvirt-glib-python b/srcpkgs/libvirt-glib-python new file mode 120000 index 0000000000..ecf88a43a5 --- /dev/null +++ b/srcpkgs/libvirt-glib-python @@ -0,0 +1 @@ +libvirt-glib \ No newline at end of file diff --git a/srcpkgs/libvirt-glib/depends b/srcpkgs/libvirt-glib/depends new file mode 100644 index 0000000000..14a6cf6595 --- /dev/null +++ b/srcpkgs/libvirt-glib/depends @@ -0,0 +1,2 @@ +abi_depends=">=0.0.8" +api_depends="${abi_depends}" diff --git a/srcpkgs/libvirt-glib/libvirt-glib-devel.template b/srcpkgs/libvirt-glib/libvirt-glib-devel.template new file mode 100644 index 0000000000..f3c8ec6b0f --- /dev/null +++ b/srcpkgs/libvirt-glib/libvirt-glib-devel.template @@ -0,0 +1,21 @@ +# Template file for 'libvirt-devel'. +# +short_desc="${short_desc} - development files" +long_desc="${long_desc} + + This package contains files for development, headers, static libs, etc." + +Add_dependency run glib-devel +Add_dependency run libxml2-devel +Add_dependency run libvirt-devel +Add_dependency run libvirt-glib ">=$version" + +noarch=yes + +do_install() { + vmove usr/include usr + vmove usr/lib/pkgconfig usr/lib + vmove usr/share/gtk-doc usr/share + vmove usr/share/gir-1.0 usr/share + vmove usr/share/vala usr/share +} diff --git a/srcpkgs/libvirt-glib/libvirt-glib-python.rshlibs b/srcpkgs/libvirt-glib/libvirt-glib-python.rshlibs new file mode 100644 index 0000000000..02ec611ef1 --- /dev/null +++ b/srcpkgs/libvirt-glib/libvirt-glib-python.rshlibs @@ -0,0 +1,8 @@ +libvirt-glib-1.0.so.0 +libvirt.so.0 +libdl.so.2 +libgthread-2.0.so.0 +librt.so.1 +libglib-2.0.so.0 +libpthread.so.0 +libc.so.6 diff --git a/srcpkgs/libvirt-glib/libvirt-glib-python.template b/srcpkgs/libvirt-glib/libvirt-glib-python.template new file mode 100644 index 0000000000..ac4fd45407 --- /dev/null +++ b/srcpkgs/libvirt-glib/libvirt-glib-python.template @@ -0,0 +1,12 @@ +# Template file for 'libvirt-glib-python'. +# +short_desc="${short_desc} - python bindings" +long_desc="${long_desc} + + This package contains the Python language bindings." + +Add_dependency run python + +do_install() { + vmove "usr/lib/python*" usr/lib +} diff --git a/srcpkgs/libvirt-glib/libvirt-glib.rshlibs b/srcpkgs/libvirt-glib/libvirt-glib.rshlibs new file mode 100644 index 0000000000..1bfbb1dca1 --- /dev/null +++ b/srcpkgs/libvirt-glib/libvirt-glib.rshlibs @@ -0,0 +1,10 @@ +libvirt.so.0 +libdl.so.2 +libgthread-2.0.so.0 +librt.so.1 +libglib-2.0.so.0 +libpthread.so.0 +libc.so.6 +libgobject-2.0.so.0 +libxml2.so.2 +libgio-2.0.so.0 diff --git a/srcpkgs/libvirt-glib/template b/srcpkgs/libvirt-glib/template new file mode 100644 index 0000000000..743d154923 --- /dev/null +++ b/srcpkgs/libvirt-glib/template @@ -0,0 +1,28 @@ +# Template file for 'libvirt-glib' +pkgname=libvirt-glib +version=0.0.8 +distfiles="http://libvirt.org/sources/glib/$pkgname-$version.tar.gz" +build_style=gnu-configure +configure_args="--disable-static" +short_desc="libvirt glib integration" +maintainer="Juan RP " +homepage="http://libvirt.org" +license="LGPL-2.1" +checksum=d9bcf99f395ac78416601002bd1fd9122ae1dec2b5439348c6eac9d5c5fb8096 +long_desc=" + libvirt-glib wraps libvirt to provide a high-level object-oriented API better + suited for glib-based applications, via three libraries: + + - libvirt-glib - GLib main loop integration and misc helper APIs + - libvirt-gconfig - GObjects for manipulating libvirt XML documents + - libvirt-gobject - GObjects for managing libvirt objects" + +subpackages="$pkgname-devel $pkgname-python" + +Add_dependency build pkg-config +Add_dependency build glib-devel +Add_dependency build libvirt-devel +Add_dependency build libxml2-devel +Add_dependency build python-devel +Add_dependency build gobject-introspection +Add_dependency build vala-devel