From 9c57828b0fa30d4bf7b231dd8fb5705ef05788a3 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 14 Jan 2014 21:20:46 +0100 Subject: [PATCH] New package: eudev-1.3. --- srcpkgs/eudev-libgudev | 1 + srcpkgs/eudev-libgudev-devel | 1 + srcpkgs/eudev-libudev | 1 + srcpkgs/eudev-libudev-devel | 1 + srcpkgs/eudev/template | 90 ++++++++++++++++++++++++++++++++++++ 5 files changed, 94 insertions(+) create mode 120000 srcpkgs/eudev-libgudev create mode 120000 srcpkgs/eudev-libgudev-devel create mode 120000 srcpkgs/eudev-libudev create mode 120000 srcpkgs/eudev-libudev-devel create mode 100644 srcpkgs/eudev/template diff --git a/srcpkgs/eudev-libgudev b/srcpkgs/eudev-libgudev new file mode 120000 index 0000000000..847a5d7862 --- /dev/null +++ b/srcpkgs/eudev-libgudev @@ -0,0 +1 @@ +eudev \ No newline at end of file diff --git a/srcpkgs/eudev-libgudev-devel b/srcpkgs/eudev-libgudev-devel new file mode 120000 index 0000000000..847a5d7862 --- /dev/null +++ b/srcpkgs/eudev-libgudev-devel @@ -0,0 +1 @@ +eudev \ No newline at end of file diff --git a/srcpkgs/eudev-libudev b/srcpkgs/eudev-libudev new file mode 120000 index 0000000000..847a5d7862 --- /dev/null +++ b/srcpkgs/eudev-libudev @@ -0,0 +1 @@ +eudev \ No newline at end of file diff --git a/srcpkgs/eudev-libudev-devel b/srcpkgs/eudev-libudev-devel new file mode 120000 index 0000000000..847a5d7862 --- /dev/null +++ b/srcpkgs/eudev-libudev-devel @@ -0,0 +1 @@ +eudev \ No newline at end of file diff --git a/srcpkgs/eudev/template b/srcpkgs/eudev/template new file mode 100644 index 0000000000..c72cebcaa6 --- /dev/null +++ b/srcpkgs/eudev/template @@ -0,0 +1,90 @@ +# Template file for 'eudev' + +_UDEV_VERSION="207" # compatible udev version provided + +pkgname=eudev +version=1.3 +revision=1 +conf_files="/etc/udev/udev.conf" +conflicts="systemd>=0" +build_style=gnu-configure +configure_args="--enable-libkmod" +hostmakedepends="automake libtool pkg-config gperf glib-devel" +makedepends="libblkid-devel libkmod-devel libglib-devel" +short_desc="systemd's udev fork (enhanced udev)" +maintainer="Juan RP " +license="GPL-2" +homepage="http://www.gentoo.org/proj/en/eudev/" +distfiles="http://dev.gentoo.org/~blueness/eudev/eudev-${version}.tar.gz" +checksum=6f1f0b15971a53c7070a44c902c7c1303f952927aa6370dbdf4d84d8bc09fac2 + +# Package build options +build_options="gir" +desc_option_gir="Enable support for building gobject introspection data" + +# Disable gir for cross builds. +if [ -z "$CROSS_BUILD" ]; then + build_options_default="gir" +fi + +if [ "$build_option_gir" ]; then + configure_args+=" --enable-introspection" + makedepends+=" gobject-introspection" +else + configure_args+=" --disable-introspection" +fi + +pre_configure() { + autoreconf -fi +} + +eudev-libgudev-devel_package() { + provides="libgudev-devel-${_UDEV_VERSION}_${revision}" + conflicts="libgudev-devel>=0" + depends="eudev-libgudev>=${version}_${revision}" + short_desc+=" - gudev development files" + pkg_install() { + vmove usr/include/gudev-1.0 + vmove usr/lib/pkgconfig/gudev-1.0.pc + vmove usr/lib/libgudev-1.0.a + vmove usr/lib/libgudev-1.0.so + if [ "$build_option_gir" ]; then + vmove usr/share/gir-1.0 + fi + } +} + +eudev-libgudev_package() { + provides="libgudev-${_UDEV_VERSION}_${revision}" + conflicts="libgudev>=0" + short_desc+=" - gudev runtime library" + pkg_install() { + vmove "usr/lib/libgudev-1.0.so.*" + if [ "$build_option_gir" ]; then + vmove usr/lib/girepository-1.0 + fi + } +} + +eudev-libudev-devel_package() { + provides="libudev-devel-${_UDEV_VERSION}_${revision}" + conflicts="libudev-devel>=0" + depends="eudev-libudev>=${version}_${revision}" + short_desc+=" - development files" + pkg_install() { + vmove usr/include + vmove usr/lib/pkgconfig + vmove "usr/lib/*.a" + vmove "usr/lib/*.so" + vmove usr/share/pkgconfig + } +} + +eudev-libudev_package() { + provides="libudev-${_UDEV_VERSION}_${revision}" + conflicts="libudev>=0" + short_desc+=" - runtime library" + pkg_install() { + vmove "usr/lib/*.so.*" + } +}