diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-02-04 12:30:23 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-02-04 12:30:23 +0000 |
commit | dc45b83b28fb83e9659492066e347b8dc60bc9e3 (patch) | |
tree | f09e7ed499dae58267ca976cb1880321611f921a /net-libs/qxmpp/qxmpp-9999.ebuild | |
parent | eaab68ba6a05bc57d98ca12032440835ef905326 (diff) |
gentoo resync 04.02.2018
Diffstat (limited to 'net-libs/qxmpp/qxmpp-9999.ebuild')
-rw-r--r-- | net-libs/qxmpp/qxmpp-9999.ebuild | 43 |
1 files changed, 22 insertions, 21 deletions
diff --git a/net-libs/qxmpp/qxmpp-9999.ebuild b/net-libs/qxmpp/qxmpp-9999.ebuild index 21806f48a186..fc67feb3c99a 100644 --- a/net-libs/qxmpp/qxmpp-9999.ebuild +++ b/net-libs/qxmpp/qxmpp-9999.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2017 Gentoo Foundation +# Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=6 @@ -28,34 +28,35 @@ DEPEND="${RDEPEND} test? ( dev-qt/qttest:5 ) " -src_prepare(){ +src_prepare() { + default + if ! use doc; then - sed -i \ - -e '/SUBDIRS/s/doc//' \ + sed -e '/SUBDIRS/s/doc//' \ -e '/INSTALLS/d' \ - qxmpp.pro || die "sed for removing docs failed" + -i qxmpp.pro || die "failed to remove docs" fi if ! use test; then - sed -i -e '/SUBDIRS/s/tests//' \ - qxmpp.pro || die "sed for removing tests failed" + sed -e '/SUBDIRS/s/tests//' \ + -i qxmpp.pro || die "failed to remove tests" + else + # requires network connection, bug #623708 + sed -e "/qxmppiceconnection/d" \ + -i tests/tests.pro || die "failed to drop single test" fi # There is no point in building examples. Also, they require dev-qt/qtgui - sed -i -e '/SUBDIRS/s/examples//' \ - qxmpp.pro || die "sed for removing examples failed" - default_src_prepare + sed -e '/SUBDIRS/s/examples//' \ + -i qxmpp.pro || die "sed for removing examples failed" } -src_configure(){ - local conf_speex - local conf_theora - local conf_vpx - - use opus && conf_opus="QXMPP_USE_OPUS=1" - use speex && conf_speex="QXMPP_USE_SPEEX=1" - use theora && conf_theora="QXMPP_USE_THEORA=1" - use vpx && conf_vpx="QXMPP_USE_VPX=1" - - eqmake5 "${S}"/qxmpp.pro "PREFIX=${EPREFIX}/usr" "LIBDIR=$(get_libdir)" "${conf_opus}" "${conf_speex}" "${conf_theora}" "${conf_vpx}" +src_configure() { + eqmake5 "${S}"/qxmpp.pro \ + PREFIX="${EPREFIX}/usr" \ + LIBDIR="$(get_libdir)" \ + QXMPP_USE_OPUS=$(usex opus 1 0) \ + QXMPP_USE_SPEEX=$(usex speex 1 0) \ + QXMPP_USE_THEORA=$(usex theora 1 0) \ + QXMPP_USE_VPX=$(usex vpx 1 0) } src_install() { |