diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /app-emulation/libguestfs |
reinit the tree, so we can have metadata
Diffstat (limited to 'app-emulation/libguestfs')
12 files changed, 536 insertions, 0 deletions
diff --git a/app-emulation/libguestfs/Manifest b/app-emulation/libguestfs/Manifest new file mode 100644 index 000000000000..d119a80aae6a --- /dev/null +++ b/app-emulation/libguestfs/Manifest @@ -0,0 +1,15 @@ +AUX 1.28/0000_bug_499150.patch 406 SHA256 3811f091d4189327719aca7ffab726452a995b5b9ab287f54153aa9b5750fd44 SHA512 a131e49f9e9d3cf6080e0f3ad27805572a1e05a01f348a1ffad62b75d24cb72526bf68035b9a600fb1ae3864e813768a971c6b7d6f31f4a8467b4a6839ebb568 WHIRLPOOL da21e3d2aae5dc3339b50788de4e92756bce9411d4bb56344d503376d5ead4a7f4981ff5c67520811fd33914f5726d322ff6141c52c048c88bb1d1fbdb7ad058 +AUX 1.28/0001_add_gentoo_names_to_configure.patch 262 SHA256 0d18682bc8666cb3e6aab79731925acfae5a636b8ad6bb75b3dc4d63fae27dec SHA512 9e6ef0c0475c5b180bc0ca7ded197901e25383e0359c429514e9c0217b7059d5f900a19d30d7d864a386279be0fd45bd9d41c56062b48c11dff31a8f92c5b789 WHIRLPOOL dcc96a8e752653ca9aaa5676266ffe20b69bf168bb955428807f0134cbfc2dd379e5250919da0e9a48dfbd84d62ceb98c1acc0025e794aa5ecfaec02945e9783 +AUX 1.28/0002_add_gentooway_to_remove_la_files.patch 555 SHA256 fc65ce8df2f910c1ac1c4466c8f529fc442b136914b9f50ce1b910834349ca59 SHA512 5dd8f7a8eeed6e2e4e842cd9fb5fde5104ab47bfddcbe218107e181c3891350eb425648667c4d70becb437bbf52506035b20778ea3a7954f020e4a2be76f959b WHIRLPOOL e776522e5a2e14c3dea2f35ac3de1f36763ec6eaa2c29e2d32a062c4df2946268d54bd6be5216caf861979dc442ac9b0c2ce8a6b765a09f53ea56258cb0b6ef2 +AUX 1.28/0005_enable_gtk_docs_in_broken_autotools-utils-eclass.patch 508 SHA256 10d75b8c50995ac7ec07f7f7d98c41f4871dcb7094873398c8d71dff3cf8a7d9 SHA512 9801326dfd2fd39202f8bd0765b954c3947e829d9568bda9a50c14388b9e7d6855c2fd38976fe98cd1183163d220b3795ec1105becb49a9de34459bb2ea74112 WHIRLPOOL 595699b9084be65847de0bd5969d0f50392cd53d830dad30eca0a9a9c8f336e680c068db59864d9efa67f91e00268ef91ba6b843f192056eb09c291b113be05b +AUX 1.28/0103_disable_php_bindings_makefile.patch 231 SHA256 f5b73f353746d7f945c8948e6b7bb2d192dd653a92124aefe578b49960179d1a SHA512 b359cd29ab9cb6edec5a4cab1d84b022ae6ff42c3adae75051ab0d8c87dda39fff17e02ada3a863177e3dd979dffd4958cbc3c71cdca89196c74f1ebd14a8da3 WHIRLPOOL 0e95d9b60744f4dae6c7599d899d57cbb9a8f656b3cbb5dc19667f679c472d749808932c8ec7826da26d3599f2d9f22b99410a2399048376e01ed9dde7284d5d +AUX 1.36/0001-Update-libtool-initialization.patch 984 SHA256 37541554f999938b089a732bc0b877748dd11abc72e4a5b9cd5e39e2aedde8dd SHA512 c1d72b214d2ae5d1ecebc9333e1926d475d84c992af22379d3eb94f1ce5dbd0444b4f24d757de038d0b941d3f720d13e53837b0655019cb82c136622bca7496c WHIRLPOOL ab4eab1074b81d96c6e70f173526b6e59f2755ed3a33eb06bfa71101c2faa9059812f0fb298f019dda78089e9636e2122d8493bcb2038edf509bfce5d04b1406 +AUX 1.36/0002-Add-support-for-Gentoo-in-distribution-detection.patch 725 SHA256 14f65aacc0c5a46391c57a6cd67b389aeb9e44a6afb63f8bc4a299f8ba30500d SHA512 89f4375aef8f025b4cc1271f92d33a58927a13d05167c14c02fa48849bbe7283af684ea0e63632c7f7b8b04c9be463d29c07e65ca52b606283c1e0270c4db167 WHIRLPOOL 8ef3b5e5e0cfe6625c1a3de11b5bcf445a3aea4f6417b88b413c82c0f005fb24ecf7f5679effc7aaedff7a1ac5dd441b271b56d997d66b44a7eaba965b2c7674 +AUX 1.36/0003-Workaround-autotools-utils-detection-of-gtk-doc.patch 1168 SHA256 5cd4028d943c607b440308f1cbff9dddabc988ae3f984ce655491a45d10c06f8 SHA512 8c45fb951ceecfc67bcbb426a1bd37bfd31981bde2b8235c1508ccf4eb3a1a44627beffc824a3cff333a40a425da17ef77962b5ea9c1a875acb6adf0d47e8931 WHIRLPOOL 353115465ecef08a357e43958deb5edd21e32f9c1d86099b0eed2977783dc11d1bb0ce71ee610a4520279887e26f39e27ffe1a63e2d965e34058aae1aecd2eff +DIST libguestfs-1.28.5.tar.gz 12747537 SHA256 e9f38c6ad15cefe18b096a86334a60fc7df6367358f2641d8c5c5f3122ad9d91 SHA512 5ab25498fa9141950c1077cc52bae05a2781fa86a983b5fa49fbd4a4bca70710db3d4f7b9f45fb6f8b4ee8e3d77ffde7c4c0d9e9e526443e2a8251a62306ebb6 WHIRLPOOL cbbac5cce87dd41ad05b13732d0f5a3442c980152d8864522f5df47ffed7a260a131c819ceb40edd07cd74454fc9f4c0c7eb41fe734509a4e123d28bc58d813f +DIST libguestfs-1.36.5.tar.gz 23012703 SHA256 c2f7c10c42de04567a9b5cfd8345a995fb951ded9a7fbe72fae061d66dfe8f98 SHA512 01f10ab902386130f0565f53d0c361b903d6790b572e5562a2180e896952ead2e7661795bd976a7e2442887ea17014a6767db8b6e575de634f32de82ca4124c6 WHIRLPOOL aec77d2f3070722d6f39b172054ae1f526f731757a7d539ad1b7dc93c328259560172c91b77ca182526b73f1cbebfd037dea441a7c386f8398a0628145580502 +EBUILD libguestfs-1.28.5-r3.ebuild 3754 SHA256 6430ce6e59b839b3c58742d271667c4efb21e8ce596bbb28258be9d49f3463e1 SHA512 098c67112a8ff3c648351c060837154cb4ccb666ddb056a6e54ee4901e3d7e9b78e20bd73cef7fcd6895a248522242456bd721ab9123faf4e09dc3c6cd6631bd WHIRLPOOL 4d672a6a80cc4750abc897ec64eab8e123d3c4d8395f0ea5ec638437f46ee9a2cd868f4a4ba2e53d919d4e4cda29e6e20382353bac08e0af1dcb31ce05a91e8d +EBUILD libguestfs-1.36.5.ebuild 3990 SHA256 8d31e6088ecb291e6a0ab29cff5dfe1ed7390eec0df623a6ddea02e44d3fb06d SHA512 b1e795faff2afca73cfc52df8d707df3955549e1a9830143a5d8a68cc126d1ba02bc634217ac511f4c0365e351f1c383fce0e3b319d7829f439012d666a2a73e WHIRLPOOL 72cb59ebb74e89daecac49ab77cebbdbe626dbe9cfebd6d1dfdbe603c3f63bbec88e936d0ff9d19b31232801de00adab8a2c0daf5483c37dc154ebd2f73db077 +MISC ChangeLog 4771 SHA256 5690e969ce72aed21e43741e340ffcf703e5744cec4e4987932ac6f9153cbc27 SHA512 22e7e1a815a05cdd7f3c18467040540c845adb7dc7689761eee392455dcd9157240314ee663c88c0b51df2a1189f2525e3db15527602d7ee8b2c2ec64e1750d5 WHIRLPOOL b9e79fc82c2ecddd75e016a6ee240fda39a14dd8348c988af4084c61b9e9ab0ded1e0a35a27977c87397b60aee8d70237bd088aa51244d982c817b1618f99b66 +MISC ChangeLog-2015 19252 SHA256 fb27331cad753f36713e9c0a558192f34e52b5d07c674e010f37d74ef830de13 SHA512 de5d2ab5bf569d27d55b2c77e35208c429c2bcc61c1c60dce7774b9774bf93ca6ddd7161acd69778e20ebbeb4aa4c3717a28d409480440a11081437f23682800 WHIRLPOOL 1cc7d6dab1c3696e7a327284b52ad92045a3e1f4a20ee4c854d556527d1f2bb9b2165f7e3ac6798b25a6886026ff6349a2b350ed93d98b882e8f96a8f30b78a7 +MISC metadata.xml 894 SHA256 2b195f1494f336f53cc8d2018077ea431e90d05b5ec0cd08ff851dac5d383738 SHA512 ec4e41f3143e4f8128e59188cbd0a105d22c5f28d8c388489bd71177d6c0084b798a2d127308cc1e04406a5fe9cfb143dd5aaf3308dd1422f82a561abeae13af WHIRLPOOL 3a98164903c0cb1670315bc2e522cc3bcea4583d10f45e6f785179e96b52730e78a5073ca699e82fc796d843e32f2e3a5e5e42941e0fae0a006cb9931b9e7f30 diff --git a/app-emulation/libguestfs/files/1.28/0000_bug_499150.patch b/app-emulation/libguestfs/files/1.28/0000_bug_499150.patch new file mode 100644 index 000000000000..1e0f1a32185e --- /dev/null +++ b/app-emulation/libguestfs/files/1.28/0000_bug_499150.patch @@ -0,0 +1,10 @@ +--- a/configure.ac 2014-01-24 19:04:05.633056872 +0100 ++++ b/configure.ac 2014-01-24 19:04:34.685691757 +0100 +@@ -24,6 +24,7 @@ + + AC_INIT([libguestfs],libguestfs_major.libguestfs_minor.libguestfs_release) + AC_CONFIG_AUX_DIR([build-aux]) ++AM_GNU_GETTEXT_VERSION(0.18.3) + + dnl Initialize automake. automake < 1.12 didn't have serial-tests and + dnl gives an error if it sees this, but for automake >= 1.13 diff --git a/app-emulation/libguestfs/files/1.28/0001_add_gentoo_names_to_configure.patch b/app-emulation/libguestfs/files/1.28/0001_add_gentoo_names_to_configure.patch new file mode 100644 index 000000000000..9d209ff53584 --- /dev/null +++ b/app-emulation/libguestfs/files/1.28/0001_add_gentoo_names_to_configure.patch @@ -0,0 +1,15 @@ +diff --git a/configure.ac b/configure.ac +--- a/configure.ac ++++ b/configure.ac +@@ -482,6 +482,11 @@ + DISTRO=UBUNTU + fi + fi ++ ++if test -f /etc/gentoo-release; then ++ DISTRO=GENTOO ++fi ++ + if test -f /etc/arch-release; then + DISTRO=ARCHLINUX + fi diff --git a/app-emulation/libguestfs/files/1.28/0002_add_gentooway_to_remove_la_files.patch b/app-emulation/libguestfs/files/1.28/0002_add_gentooway_to_remove_la_files.patch new file mode 100644 index 000000000000..38a591b811ed --- /dev/null +++ b/app-emulation/libguestfs/files/1.28/0002_add_gentooway_to_remove_la_files.patch @@ -0,0 +1,16 @@ +diff --git a/configure.ac b/configure.ac +--- a/configure.ac ++++ b/configure.ac +@@ -1487,8 +1487,10 @@ + + dnl Replace libtool with a wrapper that clobbers dependency_libs in *.la files + dnl http://lists.fedoraproject.org/pipermail/devel/2010-November/146343.html +-LIBTOOL='bash $(top_srcdir)/libtool-kill-dependency_libs.sh $(top_builddir)/libtool' +-AC_SUBST([LIBTOOL]) ++dnl LIBTOOL='bash $(top_srcdir)/libtool-kill-dependency_libs.sh $(top_builddir)/libtool' ++dnl AC_SUBST([LIBTOOL]) ++LT_INIT ++ + + dnl Produce output files. + AC_CONFIG_HEADERS([config.h]) diff --git a/app-emulation/libguestfs/files/1.28/0005_enable_gtk_docs_in_broken_autotools-utils-eclass.patch b/app-emulation/libguestfs/files/1.28/0005_enable_gtk_docs_in_broken_autotools-utils-eclass.patch new file mode 100644 index 000000000000..69b3ae6d0d2d --- /dev/null +++ b/app-emulation/libguestfs/files/1.28/0005_enable_gtk_docs_in_broken_autotools-utils-eclass.patch @@ -0,0 +1,21 @@ +diff --git a/configure.ac b/configure.ac +--- a/configure.ac ++++ b/configure.ac +@@ -1491,11 +1491,12 @@ + ]) + + # check for gtk-doc +-m4_ifdef([GTK_DOC_CHECK], [ +- GTK_DOC_CHECK([1.14],[--flavour no-tmpl]) +-],[ +- AM_CONDITIONAL([ENABLE_GTK_DOC], false) +-]) ++#m4_ifdef([GTK_DOC_CHECK], [ ++# GTK_DOC_CHECK([1.14],[--flavour no-tmpl]) ++#],[ ++# AM_CONDITIONAL([ENABLE_GTK_DOC], false) ++#]) ++GTK_DOC_CHECK([1.14],[--flavour no-tmpl]) + + dnl Library versioning. + MAX_PROC_NR=`cat $srcdir/src/MAX_PROC_NR` diff --git a/app-emulation/libguestfs/files/1.28/0103_disable_php_bindings_makefile.patch b/app-emulation/libguestfs/files/1.28/0103_disable_php_bindings_makefile.patch new file mode 100644 index 000000000000..34ab42d27903 --- /dev/null +++ b/app-emulation/libguestfs/files/1.28/0103_disable_php_bindings_makefile.patch @@ -0,0 +1,13 @@ +diff --git a/Makefile.am b/Makefile.am +--- a/Makefile.am ++++ b/Makefile.am +@@ -88,9 +88,6 @@ + if HAVE_HASKELL + SUBDIRS += haskell + endif +-if HAVE_PHP +-SUBDIRS += php +-endif + if HAVE_ERLANG + SUBDIRS += erlang erlang/examples + endif diff --git a/app-emulation/libguestfs/files/1.36/0001-Update-libtool-initialization.patch b/app-emulation/libguestfs/files/1.36/0001-Update-libtool-initialization.patch new file mode 100644 index 000000000000..24da76fbab5e --- /dev/null +++ b/app-emulation/libguestfs/files/1.36/0001-Update-libtool-initialization.patch @@ -0,0 +1,29 @@ +From a5fd133e001bb62d13c47ebc392fbb696a513640 Mon Sep 17 00:00:00 2001 +From: Gilles Dartiguelongue <g.dartiguelongue@lexfo.fr> +Date: Wed, 30 Aug 2017 11:30:56 +0200 +Subject: [PATCH 1/3] Update libtool initialization + +Use the recommanded macro post libtool-2 release. +--- + m4/guestfs_misc.m4 | 5 +---- + 1 file changed, 1 insertion(+), 4 deletions(-) + +diff --git a/m4/guestfs_misc.m4 b/m4/guestfs_misc.m4 +index 5dce207d7..a2bb39c0d 100644 +--- a/m4/guestfs_misc.m4 ++++ b/m4/guestfs_misc.m4 +@@ -17,10 +17,7 @@ + + dnl Miscellaneous configuration that doesn't fit anywhere else. + +-dnl Replace libtool with a wrapper that clobbers dependency_libs in *.la files +-dnl http://lists.fedoraproject.org/pipermail/devel/2010-November/146343.html +-LIBTOOL='bash $(top_srcdir)/libtool-kill-dependency_libs.sh $(top_builddir)/libtool' +-AC_SUBST([LIBTOOL]) ++LT_INIT + + dnl Only build boot-analysis program on x86-64 and aarch64. It + dnl requires custom work to port to each architecture. +-- +2.14.1 + diff --git a/app-emulation/libguestfs/files/1.36/0002-Add-support-for-Gentoo-in-distribution-detection.patch b/app-emulation/libguestfs/files/1.36/0002-Add-support-for-Gentoo-in-distribution-detection.patch new file mode 100644 index 000000000000..bf265f718c73 --- /dev/null +++ b/app-emulation/libguestfs/files/1.36/0002-Add-support-for-Gentoo-in-distribution-detection.patch @@ -0,0 +1,25 @@ +From 9c423cd2d24b6de924afc6e0d715594bb056288d Mon Sep 17 00:00:00 2001 +From: Gilles Dartiguelongue <g.dartiguelongue@lexfo.fr> +Date: Wed, 30 Aug 2017 11:27:50 +0200 +Subject: [PATCH 2/3] Add support for Gentoo in distribution detection + +--- + m4/guestfs_appliance.m4 | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/m4/guestfs_appliance.m4 b/m4/guestfs_appliance.m4 +index 890b1999c..9b79e1a41 100644 +--- a/m4/guestfs_appliance.m4 ++++ b/m4/guestfs_appliance.m4 +@@ -114,6 +114,8 @@ elif test -f /etc/frugalware-release; then + DISTRO=FRUGALWARE + elif test -f /etc/mageia-release; then + DISTRO=MAGEIA ++elif test -f /etc/gentoo-release; then ++ DISTRO=GENTOO + else + dnl fallback option + DISTRO=REDHAT +-- +2.14.1 + diff --git a/app-emulation/libguestfs/files/1.36/0003-Workaround-autotools-utils-detection-of-gtk-doc.patch b/app-emulation/libguestfs/files/1.36/0003-Workaround-autotools-utils-detection-of-gtk-doc.patch new file mode 100644 index 000000000000..087708db396a --- /dev/null +++ b/app-emulation/libguestfs/files/1.36/0003-Workaround-autotools-utils-detection-of-gtk-doc.patch @@ -0,0 +1,42 @@ +From 9bfa78095f6090c377fb40970653d1105a343cb7 Mon Sep 17 00:00:00 2001 +From: Gilles Dartiguelongue <g.dartiguelongue@lexfo.fr> +Date: Wed, 30 Aug 2017 11:33:58 +0200 +Subject: [PATCH 3/3] Workaround autotools-utils detection of gtk-doc + +--- + configure.ac | 3 +++ + m4/guestfs_gobject.m4 | 7 ------- + 2 files changed, 3 insertions(+), 7 deletions(-) + +diff --git a/configure.ac b/configure.ac +index 268e6a182..65f4231bc 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -121,6 +121,9 @@ m4_include([m4/guestfs_lua.m4]) + m4_include([m4/guestfs_golang.m4]) + m4_include([m4/guestfs_gobject.m4]) + ++dnl check for gtk-doc ++GTK_DOC_CHECK([1.14],[--flavour no-tmpl]) ++ + dnl Bash completion. + m4_include([m4/guestfs_bash_completion.m4]) + +diff --git a/m4/guestfs_gobject.m4 b/m4/guestfs_gobject.m4 +index 4b4eab80d..4304f7b00 100644 +--- a/m4/guestfs_gobject.m4 ++++ b/m4/guestfs_gobject.m4 +@@ -59,10 +59,3 @@ m4_ifdef([GOBJECT_INTROSPECTION_CHECK], [ + ],[ + AM_CONDITIONAL([HAVE_INTROSPECTION], [false]) + ]) +- +-# check for gtk-doc +-m4_ifdef([GTK_DOC_CHECK], [ +- GTK_DOC_CHECK([1.14],[--flavour no-tmpl]) +-],[ +- AM_CONDITIONAL([ENABLE_GTK_DOC], false) +-]) +-- +2.14.1 + diff --git a/app-emulation/libguestfs/libguestfs-1.28.5-r3.ebuild b/app-emulation/libguestfs/libguestfs-1.28.5-r3.ebuild new file mode 100644 index 000000000000..afc70750da9f --- /dev/null +++ b/app-emulation/libguestfs/libguestfs-1.28.5-r3.ebuild @@ -0,0 +1,158 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +WANT_LIBTOOL=latest +WANT_AUTOMAKE=1.14 +PYTHON_COMPAT=( python{2_7,3_{4,5}} ) + +inherit python-single-r1 autotools versionator linux-info perl-module + +MY_PV_1="$(get_version_component_range 1-2)" +MY_PV_2="$(get_version_component_range 2)" +[[ $(( $(get_version_component_range 2) % 2 )) -eq 0 ]] && SD="stable" || SD="development" + +DESCRIPTION="Tools for accessing, inspect and modifying virtual machine (VM) disk images" +HOMEPAGE="http://libguestfs.org/" +SRC_URI="http://libguestfs.org/download/${MY_PV_1}-${SD}/${P}.tar.gz" + +LICENSE="GPL-2 LGPL-2" +SLOT="0/"${MY_PV_1}"" + +KEYWORDS="~amd64" +IUSE="bash-completion erlang +fuse debug ocaml doc +perl python ruby static-libs +selinux systemtap introspection inspect-icons test lua" + +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +# Failures - doc +# Failures - bash-completion, see GBZ #486306 + +COMMON_DEPEND=" + sys-libs/ncurses:0= + sys-devel/gettext + >=app-misc/hivex-1.3.1 + dev-libs/libpcre:3 + app-arch/cpio + dev-lang/perl + virtual/cdrtools + >=app-emulation/qemu-2.0[qemu_softmmu_targets_x86_64,systemtap?,selinux?,filecaps] + sys-apps/fakeroot + sys-apps/file + app-emulation/libvirt + dev-libs/libxml2:2 + >=sys-apps/fakechroot-2.8 + >=app-admin/augeas-1.0.0 + sys-fs/squashfs-tools:* + dev-libs/libconfig + sys-libs/readline:0= + >=sys-libs/db-4.6:* + app-arch/xz-utils + app-arch/lzma + app-crypt/gnupg + app-arch/unzip[natspec] + perl? ( virtual/perl-ExtUtils-MakeMaker + >=dev-perl/Sys-Virt-0.2.4 + virtual/perl-Getopt-Long + virtual/perl-Data-Dumper + dev-perl/libintl-perl + >=app-misc/hivex-1.3.1[perl?] + dev-perl/String-ShellQuote + ) + python? ( ${PYTHON_DEPS} ) + fuse? ( sys-fs/fuse:= ) + introspection? ( + >=dev-libs/gobject-introspection-1.30.0:= + dev-libs/gjs + ) + selinux? ( sys-libs/libselinux sys-libs/libsemanage ) + systemtap? ( dev-util/systemtap ) + ocaml? ( dev-lang/ocaml[ocamlopt] + dev-ml/findlib[ocamlopt] + dev-ml/ocaml-gettext + ) + erlang? ( dev-lang/erlang ) + inspect-icons? ( media-libs/netpbm + media-gfx/icoutils + ) + virtual/acl + sys-libs/libcap + lua? ( dev-lang/lua:* ) + >=app-shells/bash-completion-2.0 + dev-libs/yajl + " + +DEPEND="${COMMON_DEPEND} + dev-util/gperf + doc? ( app-text/po4a ) + ruby? ( dev-lang/ruby virtual/rubygems dev-ruby/rake ) + " +RDEPEND="${COMMON_DEPEND} + app-emulation/libguestfs-appliance + " + +DOCS=( AUTHORS BUGS ChangeLog HACKING README TODO ) + +pkg_setup () { + CONFIG_CHECK="~KVM ~VIRTIO" + [ -n "${CONFIG_CHECK}" ] && check_extra_config; + + use python && python-single-r1_pkg_setup +} + +src_prepare() { + eapply "${FILESDIR}"/${MY_PV_1} + eapply_user + eaclocal + eautomake + eautoconf +} + +src_configure() { + # Disable feature test for kvm for more reason + # i.e: not loaded module in __build__ time, + # build server not supported kvm, etc. ... + # + # In fact, this feature is virtio support and requires + # configured kernel. + export vmchannel_test=no + + econf \ + $(use_enable test werror) \ + --with-libvirt \ + --with-default-backend=libvirt \ + --disable-appliance \ + --disable-daemon \ + --with-extra="-gentoo" \ + --with-readline \ + --disable-php \ + $(use_enable python) \ + --without-java \ + $(use_enable perl) \ + $(use_enable fuse) \ + $(use_enable ocaml) \ + $(use_enable ruby) \ + --disable-haskell \ + --disable-golang \ + $(use_enable introspection gobject) \ + $(use_enable erlang) \ + $(use_enable systemtap probes) \ + $(use_enable lua) +} + +src_install() { + strip-linguas -i po + emake DESTDIR="${D}" install "LINGUAS=""${LINGUAS}""" + + use perl && perl_delete_localpod +} + +pkg_postinst() { + if ! use perl ; then + einfo "Perl based tools NOT build" + fi + if ! use ocaml ; then + einfo "Ocaml based tools ( sysprep , ... ) NOT installed" + fi +} diff --git a/app-emulation/libguestfs/libguestfs-1.36.5.ebuild b/app-emulation/libguestfs/libguestfs-1.36.5.ebuild new file mode 100644 index 000000000000..bbd53624c9d4 --- /dev/null +++ b/app-emulation/libguestfs/libguestfs-1.36.5.ebuild @@ -0,0 +1,171 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python{2_7,3_{4,5}} ) + +inherit autotools linux-info perl-module python-single-r1 versionator + +MY_PV_1="$(get_version_component_range 1-2)" +MY_PV_2="$(get_version_component_range 2)" +[[ $(( $(get_version_component_range 2) % 2 )) -eq 0 ]] && SD="stable" || SD="development" + +DESCRIPTION="Tools for accessing, inspect and modifying virtual machine (VM) disk images" +HOMEPAGE="http://libguestfs.org/" +SRC_URI="http://libguestfs.org/download/${MY_PV_1}-${SD}/${P}.tar.gz" + +LICENSE="GPL-2 LGPL-2" +SLOT="0/"${MY_PV_1}"" + +KEYWORDS="~amd64" +IUSE="bash-completion erlang +fuse debug ocaml doc +perl python ruby static-libs +selinux systemtap introspection inspect-icons test lua gtk" + +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +# Failures - doc +# Failures - bash-completion, see GBZ #486306 + +# FIXME: selinux support is automagic +COMMON_DEPEND=" + sys-libs/ncurses:0= + sys-devel/gettext + >=app-misc/hivex-1.3.1 + dev-libs/libpcre:3 + app-arch/cpio + dev-lang/perl + virtual/cdrtools + >=app-emulation/qemu-2.0[qemu_softmmu_targets_x86_64,systemtap?,selinux?,filecaps] + sys-apps/fakeroot + sys-apps/file + app-emulation/libvirt + dev-libs/libxml2:2 + >=sys-apps/fakechroot-2.8 + >=app-admin/augeas-1.0.0 + sys-fs/squashfs-tools:* + dev-libs/libconfig + sys-libs/readline:0= + >=sys-libs/db-4.6:* + app-arch/xz-utils + app-arch/lzma + app-crypt/gnupg + app-arch/unzip[natspec] + perl? ( + virtual/perl-ExtUtils-MakeMaker + >=dev-perl/Sys-Virt-0.2.4 + virtual/perl-Getopt-Long + virtual/perl-Data-Dumper + dev-perl/libintl-perl + >=app-misc/hivex-1.3.1[perl?] + dev-perl/String-ShellQuote + ) + python? ( ${PYTHON_DEPS} ) + fuse? ( sys-fs/fuse:= ) + introspection? ( + >=dev-libs/glib-2.26:2 + >=dev-libs/gobject-introspection-1.30.0:= + dev-libs/gjs + ) + selinux? ( + sys-libs/libselinux + sys-libs/libsemanage + ) + systemtap? ( dev-util/systemtap ) + ocaml? ( >=dev-lang/ocaml-4.02[ocamlopt] + dev-ml/findlib[ocamlopt] + dev-ml/ocaml-gettext + >=dev-ml/ounit-2 + ) + erlang? ( dev-lang/erlang ) + inspect-icons? ( + media-libs/netpbm + media-gfx/icoutils + ) + virtual/acl + sys-libs/libcap + lua? ( dev-lang/lua:* ) + >=app-shells/bash-completion-2.0 + >=dev-libs/yajl-2.0.4 + gtk? ( + sys-apps/dbus + x11-libs/gtk+:3 + ) + " +DEPEND="${COMMON_DEPEND} + dev-util/gperf + >=dev-util/gtk-doc-am-1.14 + doc? ( app-text/po4a ) + ruby? ( dev-lang/ruby virtual/rubygems dev-ruby/rake ) + " +RDEPEND="${COMMON_DEPEND} + app-emulation/libguestfs-appliance + " + +DOCS=( AUTHORS BUGS ChangeLog HACKING README TODO ) + +pkg_setup () { + CONFIG_CHECK="~KVM ~VIRTIO" + [ -n "${CONFIG_CHECK}" ] && check_extra_config; + + use python && python-single-r1_pkg_setup +} + +src_prepare() { + eapply "${FILESDIR}"/${MY_PV_1} + eapply_user + eautoreconf +} + +src_configure() { + # Disable feature test for kvm for more reason + # i.e: not loaded module in __build__ time, + # build server not supported kvm, etc. ... + # + # In fact, this feature is virtio support and requires + # configured kernel. + export vmchannel_test=no + + econf \ + $(use_enable test werror) \ + --with-libvirt \ + --with-default-backend=libvirt \ + --disable-appliance \ + --disable-daemon \ + --with-extra="-gentoo" \ + --with-readline \ + --disable-php \ + $(use_enable python) \ + --without-java \ + $(use_enable perl) \ + $(use_enable fuse) \ + $(use_enable ocaml) \ + $(use_enable ruby) \ + --disable-haskell \ + --disable-golang \ + $(use_enable introspection gobject) \ + $(use_enable erlang) \ + $(use_enable systemtap probes) \ + $(use_enable lua) \ + --with-gtk=$(usex gtk 3 no) \ + $(usex doc '' PO4A=no) +} + +src_install() { + strip-linguas -i po + emake DESTDIR="${D}" install "LINGUAS=""${LINGUAS}""" + + use perl && perl_delete_localpod +} + +pkg_postinst() { + if ! use perl ; then + einfo "Perl based tools NOT build" + fi + if ! use ocaml ; then + einfo "Ocaml based tools ( sysprep , ... ) NOT installed" + fi + if ! gtk ; then + einfo "virt-p2v NOT installed" + fi +} diff --git a/app-emulation/libguestfs/metadata.xml b/app-emulation/libguestfs/metadata.xml new file mode 100644 index 000000000000..44378eae0f76 --- /dev/null +++ b/app-emulation/libguestfs/metadata.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="person"> + <email>maksbotan@gentoo.org</email> + <name>Maxim Koltsov</name> +</maintainer> +<maintainer type="person"> + <email>rich@annexia.org</email> + <name>Richard Jones</name> + <description>Upstream - please CC on bugs that concerns upstream</description> +</maintainer> +<longdescription>Libguestfs is a library and tool set for accessing and +modifying virtual machine (VM) disk images</longdescription> +<use> + <flag name="fuse">Enable image mount support via fuse</flag> + <flag name="erlang">Build Erlang bindings</flag> + <flag name="systemtap">Use <pkg>dev-util/systemtap</pkg> to inspect VM via "probes" way</flag> + <flag name="inspect-icons">Use <pkg>media-gfx/icoutils</pkg>for acces icon file in image and inspect it</flag> +</use> +</pkgmetadata> |