diff --git a/app-emulation/libvirt_glib/libvirt_glib-4.0.0.recipe b/app-emulation/libvirt_glib/libvirt_glib-4.0.0.recipe new file mode 100644 index 000000000..1e4ceed4c --- /dev/null +++ b/app-emulation/libvirt_glib/libvirt_glib-4.0.0.recipe @@ -0,0 +1,93 @@ +SUMMARY="GObject binding for libvirt native C API and XML schemas" +DESCRIPTION="libvirt is a C toolkit to interact with the virtualization \ +capabilities of recent versions of Linux (and other OSes). It is free software \ +available under the GNU Lesser General Public License. Virtualization on \ +the Linux Operating System means the ability to run multiple instances of \ +Operating Systems concurrently on a single hardware system where the basic \ +resources are driven by a Linux instance. The library aim at providing \ +long term stable C API initially for the Xen paravirtualization but \ +should be able to integrate other virtualization mechanisms if needed. + +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 & misc helper APIs + - libvirt-gconfig - GObjects for manipulating libvirt XML documents + - libvirt-gobject - GObjects for managing libvirt objects" +HOMEPAGE="https://libvirt.org/" +COPYRIGHT="2005-2022 Daniel Veillard" +LICENSE="GNU GPL v2" +REVISION="1" +SOURCE_URI="https://github.com/libvirt/libvirt-glib/archive/refs/tags/v$portVersion.tar.gz" +SOURCE_DIR="libvirt-glib-$portVersion" +CHECKSUM_SHA256="e2785c2f2dd566581c03f34b32d4e98d7f3b83b28ee567ba2789b8aa3d737c12" + +ARCHITECTURES="all" +SECONDARY_ARCHITECTURES="x86_gcc2 x86" + +PROVIDES=" + libvirt_glib$secondaryArchSuffix = $portVersion + lib:libvirt_glib$secondaryArchSuffix = $portVersion + lib:libvirt_gconfig_1.0$secondaryArchSuffix = $portVersion + lib:libvirt_glib_1.0$secondaryArchSuffix = $portVersion + lib:libvirt_gobject_1.0$secondaryArchSuffix = $portVersion + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libgirepository_1.0$secondaryArchSuffix + lib:libglib_2.0$secondaryArchSuffix + lib:libintl$secondaryArchSuffix + lib:libvirt$secondaryArchSuffix + lib:libxml2$secondaryArchSuffix + " + +PROVIDES_devel=" + libvirt_glib${secondaryArchSuffix}_devel = $portVersion + devel:libvirt_glib$secondaryArchSuffix = $portVersion + " +REQUIRES_devel=" + libvirt_glib$secondaryArchSuffix == $portVersion base + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + devel:libgirepository_1.0$secondaryArchSuffix + devel:libglib_2.0$secondaryArchSuffix + devel:libvirt$secondaryArchSuffix + devel:libxml2$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:gcc$secondaryArchSuffix + cmd:cmake + cmd:make + cmd:meson + cmd:ninja + cmd:pkg_config$secondaryArchSuffix + " + +BUILD() +{ + meson build --buildtype=release \ + --prefix=$prefix --libdir=$libDir --datadir=$dataDir --bindir=$binDir\ + --includedir=$includeDir --sysconfdir=$settingsDir --sbindir=$binDir \ + --libexecdir=$libDir --localedir=$dataDir/locale \ + -Dwerror=false -Dgit_werror=disabled -Ddocs=disabled -Dtests=disabled \ + -Dintrospection=enabled +} + +INSTALL() +{ + ninja -C build install + +# prepareInstalledDevelLibs libvirt_glib + fixPkgconfig + + packageEntries devel \ + $developDir +} + +TEST() +{ + cd build + meson test +}