From 866bd2b64319edfcd0bb34c0e099c4c52faddc8c Mon Sep 17 00:00:00 2001 From: David Guglielmi Date: Thu, 3 Sep 2020 14:53:54 +0200 Subject: [PATCH] x11-libs/bamf: remove python2 tests --- x11-libs/bamf/Manifest | 2 + x11-libs/bamf/bamf-0.5.4-r1.ebuild | 53 +++++++++++++++++++ ...f-0.5.4-remove-tests-require-python2.patch | 43 +++++++++++++++ 3 files changed, 98 insertions(+) create mode 100644 x11-libs/bamf/bamf-0.5.4-r1.ebuild create mode 100644 x11-libs/bamf/files/bamf-0.5.4-remove-tests-require-python2.patch diff --git a/x11-libs/bamf/Manifest b/x11-libs/bamf/Manifest index 8e059b7..2a54a9d 100644 --- a/x11-libs/bamf/Manifest +++ b/x11-libs/bamf/Manifest @@ -1,3 +1,5 @@ AUX bamf-0.5.4-fix-deprecated-g-type-class-add-private.patch 23068 BLAKE2B 154833041ff2ab30691d768519a907fbfb44a3e7d2686e61e0a7ccc9b4a923642b69f301b47143a8b94c889a03d13c7bd74dc7c7b1a1c4c0b65821644946ce18 SHA512 68682468c0a1829d2c66e00af54edae7bb438a4ffb779e3ab36688e460bd2d9ab10dcf54d62f0539ad884a284ffb94acffe785b854f704212cab440d1c5bd33c +AUX bamf-0.5.4-remove-tests-require-python2.patch 1108 BLAKE2B 341b4d05706390a65fb73cf1044ff83ae6f329c475b362f4d5a275df1688743506f7c5f4dde241b872e19db894cbcb0c51bdfa2cfeb2abd0f94a249ae5a9e9b8 SHA512 bdfd1828586a8cf3000c09e628df9fbb5fdfd4043a6a7013af8bef640a9cf196683c34898e68da3c62e8bb37695ebcb62c2ea5e894d206148e677a4a34c1be8b DIST bamf-0.5.4.tar.gz 638756 BLAKE2B 2ef28361ed5fc01a113c3b2a78617720d8d30a8403635951999633065f8a742bb4693f0ec76390639066a315a0007045db90777643b8b8656db1977fa81d844e SHA512 68a587d387ea1190b59207af81c9617aa8ebacb36b8eb6a790c62ccbd534c13bfd7cdb7b3b40a0c9109f5ec8da341b13743362506b080579a56ccf10e340de94 +EBUILD bamf-0.5.4-r1.ebuild 1124 BLAKE2B a2b45bbac324bb7dcd9da34689213cbe6a1fb6468119c1c956a3d8ae3fdbf8d0a2c05240d44476d8bf348a598c320b0399d686fcd4cb7c28a6138ceea4ba2975 SHA512 4af1e9c63b73633509dc2c9d35e8d0866ff0aa67d4178959cf78094b429c23bfcf5d3a303e6e4a5930286c107453877286c06dc4f3eed3612507b0c96f2b93bc EBUILD bamf-0.5.4.ebuild 1153 BLAKE2B 6d8024565425813a78843d3b053f6b8c8137c9c9d0f0297439bd4f690864d725837f4c63dad3356ee3a887426cdd4365f7abc222d7e91497fba9266897f580a4 SHA512 49b139b5b521f77c68ae6f9489dab9b6912f0d529b8bf63157cd4d1b087b403efd599f5a07e4930fc38b4b088ebc6fcc75dd5745678fe6adfdd7bf4873ad7d90 diff --git a/x11-libs/bamf/bamf-0.5.4-r1.ebuild b/x11-libs/bamf/bamf-0.5.4-r1.ebuild new file mode 100644 index 0000000..7e59570 --- /dev/null +++ b/x11-libs/bamf/bamf-0.5.4-r1.ebuild @@ -0,0 +1,53 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +VALA_MIN_API_VERSION=0.20 +VALA_USE_DEPEND=vapigen + +inherit vala autotools + +DESCRIPTION="BAMF Application Matching Framework" +HOMEPAGE="https://launchpad.net/bamf" +SRC_URI="http://launchpad.net/${PN}/0.5/${PV}/+download/${P}.tar.gz" + +LICENSE="LGPL-3" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="+introspection doc static-libs" + +RDEPEND="dev-libs/dbus-glib + dev-util/gdbus-codegen + >=dev-libs/glib-2.38.0:2 + gnome-base/libgtop:2 + x11-libs/gtk+:3 + x11-libs/libX11 + >=x11-libs/libwnck-3.4.7:3" +DEPEND="${RDEPEND} + $(vala_depend) + dev-libs/libxml2 + dev-libs/libxslt + introspection? ( dev-libs/gobject-introspection )" +BDEPEND="virtual/pkgconfig" + +DOCS=(AUTHORS COPYING COPYING.LGPL ChangeLog NEWS README TODO) + +PATCHES=( + "${FILESDIR}/${P}-fix-deprecated-g-type-class-add-private.patch" + "${FILESDIR}/${P}-remove-tests-require-python2.patch" +) + +src_prepare() { + if use introspection; then + vala_src_prepare + export VALA_API_GEN="${VAPIGEN}" + fi + + default + eautoreconf +} + +src_configure() { + econf $(use_enable introspection ) +} diff --git a/x11-libs/bamf/files/bamf-0.5.4-remove-tests-require-python2.patch b/x11-libs/bamf/files/bamf-0.5.4-remove-tests-require-python2.patch new file mode 100644 index 0000000..327dd9a --- /dev/null +++ b/x11-libs/bamf/files/bamf-0.5.4-remove-tests-require-python2.patch @@ -0,0 +1,43 @@ +diff -dNur a/configure.ac b/configure.ac +--- a/configure.ac 2018-11-07 23:39:11.355315678 +0100 ++++ b/configure.ac 2020-09-03 14:49:53.437337251 +0200 +@@ -110,18 +110,6 @@ + GTK_DOC_CHECK(1.0) + + ########################### +-# gtester2xunit checks # +-########################### +- +-AC_PATH_PROG([PYTHON],[python]) +-AC_MSG_CHECKING(for gtester2xunit dependencies) +-if !($PYTHON -c "import libxslt, libxml2" 2> /dev/null); then +- AC_MSG_RESULT([no]) +- AC_MSG_ERROR([You need to install python-libxslt1 and python-libxml2]); +-fi +-AC_MSG_RESULT([yes]) +- +-########################### + # Headless tests + ########################### + AC_ARG_ENABLE([headless-tests], +@@ -171,9 +159,6 @@ + lib/libbamf/Makefile + lib/libbamf/libbamf3.pc + src/Makefile +-tests/Makefile +-tests/bamfdaemon/Makefile +-tests/libbamf/Makefile + data/Makefile + doc/Makefile + doc/reference/Makefile +diff -dNur a/Makefile.am b/Makefile.am +--- a/Makefile.am 2018-11-07 23:39:11.355315678 +0100 ++++ b/Makefile.am 2020-09-03 14:50:00.505337289 +0200 +@@ -6,7 +6,6 @@ + lib/libbamf-private \ + lib/libbamf \ + src \ +- tests \ + data \ + doc +