libgudev: split from udev, to avoid a cyclic dependency.

This commit is contained in:
Juan RP 2011-06-28 16:55:47 +02:00
parent f88f259913
commit f634277131
8 changed files with 72 additions and 50 deletions

View file

@ -1 +0,0 @@
udev

View file

@ -1 +1 @@
udev
libgudev

1
srcpkgs/libgudev/depends Symbolic link
View file

@ -0,0 +1 @@
../udev/depends

View file

@ -0,0 +1,20 @@
# Template file for 'libgudev-devel'.
#
short_desc="${short_desc} - development glib bindings"
long_desc="${long_desc}
This package contains the libgudev development files (static libs, headers,
etc), a library to interact with udev through the GLib bindings."
replaces="udev-glib-devel>=0"
Add_dependency run libudev-devel
Add_dependency run glib-devel
Add_dependency run libgudev
do_install()
{
mkdir -p ${DESTDIR}/usr/lib
mv ${SRCPKGDESTDIR}/usr/include ${DESTDIR}/usr
mv ${SRCPKGDESTDIR}/usr/share ${DESTDIR}/usr
mv ${SRCPKGDESTDIR}/usr/lib/pkgconfig ${DESTDIR}/usr/lib
}

49
srcpkgs/libgudev/template Normal file
View file

@ -0,0 +1,49 @@
# Template file for 'libgudev'
. ${XBPS_SRCPKGDIR}/udev/template
unset revision run_depends openrc_services conf_files subpackages
unset keep_empty_dirs post_install
pkgname=libgudev
wrksrc="udev-${version}"
build_style=custom-install
short_desc="/dev/ and hotplug management daemon (glib bindings)"
long_desc="
udev is a daemon which dynamically creates and removes device nodes from
/dev/, handles hotplug events and loads drivers at boot time.
This package contains libgudev, a library to interact with udev through
the GLib bindings."
subpackages="libgudev-devel"
Add_dependency run glibc
Add_dependency run libudev
Add_dependency run glib
Add_dependency build gobject-introspection
do_build()
{
./configure ${configure_args} --enable-introspection
make ${makejobs}
}
do_install()
{
make DESTDIR=${DESTDIR} install
mkdir -p ${wrksrc}/tmp/lib ${wrksrc}/tmp/usr/lib/pkgconfig \
${wrksrc}/tmp/usr/share/gtk-doc/html ${wrksrc}/tmp/usr/include
mv ${DESTDIR}/lib/libgudev* ${wrksrc}/tmp/lib
mv ${DESTDIR}/usr/lib/libgudev* ${wrksrc}/tmp/usr/lib
mv ${DESTDIR}/usr/lib/girepository* ${wrksrc}/tmp/usr/lib
mv ${DESTDIR}/usr/include/gudev* ${wrksrc}/tmp/usr/include
mv ${DESTDIR}/usr/lib/pkgconfig/gudev* \
${wrksrc}/tmp/usr/lib/pkgconfig
mv ${DESTDIR}/usr/share/gtk-doc/html/gudev \
${wrksrc}/tmp/usr/share/gtk-doc/html
mv ${DESTDIR}/usr/share/gir* ${wrksrc}/tmp/usr/share
rm -rf ${DESTDIR}/*
mv ${wrksrc}/tmp/* ${DESTDIR}
}

View file

@ -1,24 +0,0 @@
# Template file for 'udev-glib-devel'.
#
short_desc="${short_desc} - development glib bindings"
long_desc="${long_desc}
This package contains the libgudev development files (static libs, headers,
etc), a library to interact with udev through the GLib bindings."
replaces="udev-glib-devel>=0"
Add_dependency run libudev-devel
Add_dependency run glib-devel
Add_dependency run libgudev
do_install()
{
mkdir -p ${DESTDIR}/usr/lib ${DESTDIR}/usr/share/gtk-doc/html \
${DESTDIR}/usr/lib/pkgconfig
mv ${SRCPKGDESTDIR}/usr/include/gudev* ${DESTDIR}/usr/include
mv ${SRCPKGDESTDIR}/usr/share/gtk-doc/html/gudev \
${DESTDIR}/usr/share/gtk-doc/html
mv ${SRCPKGDESTDIR}/usr/lib/pkgconfig/gudev* \
${DESTDIR}/usr/lib/pkgconfig
mv ${SRCPKGDESTDIR}/usr/share/gir-1.0 ${DESTDIR}/usr/share
}

View file

@ -1,22 +0,0 @@
# Template file for 'udev-glib'.
#
short_desc="${short_desc} (glib bindings)"
long_desc="${long_desc}
This package contains libgudev, a library to interact with udev through
the GLib bindings."
revision=1
replaces="udev-glib>=0"
Add_dependency run glibc
Add_dependency run glib
Add_dependency run libudev
do_install()
{
mkdir -p ${DESTDIR}/lib ${DESTDIR}/usr/lib
mv ${SRCPKGDESTDIR}/lib/libgudev* ${DESTDIR}/lib
mv ${SRCPKGDESTDIR}/usr/lib/libgudev* ${DESTDIR}/usr/lib
mv ${SRCPKGDESTDIR}/usr/lib/girepository* ${DESTDIR}/usr/lib
}

View file

@ -5,7 +5,7 @@ revision=2
distfiles="${KERNEL_SITE}/utils/kernel/hotplug/udev-${version}.tar.bz2"
build_style=gnu_configure
configure_args="--sbindir=/sbin --without-selinux --libexecdir=/lib/udev
--with-rootlibdir=/lib --enable-introspection --enable-edd --enable-floppy
--with-rootlibdir=/lib --disable-introspection --enable-edd --enable-floppy
--enable-action_modeswitch --with-systemdsystemunitdir=/lib/systemd/system"
short_desc="/dev/ and hotplug management daemon"
maintainer="Juan RP <xtraeme@gmail.com>"
@ -36,7 +36,6 @@ Add_dependency build glib-devel
Add_dependency build acl-devel
Add_dependency build glib-devel
Add_dependency build libusb-compat-devel
Add_dependency build gobject-introspection
post_install()
{