commit: 0f07273076f5886d2219cf4007fadb8c0f04dd27 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> AuthorDate: Sat Aug 31 19:16:53 2019 +0000 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> CommitDate: Sat Aug 31 20:46:08 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0f072730
net-libs/accounts-qt: EAPI-7 bump Package-Manager: Portage-2.3.74, Repoman-2.3.17 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> net-libs/accounts-qt/accounts-qt-1.15.ebuild | 34 ++++++++++++++++++---------- 1 file changed, 22 insertions(+), 12 deletions(-) diff --git a/net-libs/accounts-qt/accounts-qt-1.15.ebuild b/net-libs/accounts-qt/accounts-qt-1.15.ebuild index 042c2bffddf..9b7e7c225ad 100644 --- a/net-libs/accounts-qt/accounts-qt-1.15.ebuild +++ b/net-libs/accounts-qt/accounts-qt-1.15.ebuild @@ -1,43 +1,53 @@ # Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 +EAPI=7 -inherit qmake-utils vcs-snapshot +inherit qmake-utils DESCRIPTION="Qt5 bindings for libaccounts-glib" HOMEPAGE="https://01.org/gsso/" -SRC_URI="https://gitlab.com/accounts-sso/libaccounts-qt/repository/VERSION_1.15/archive.tar.gz -> ${P}.tar.gz" +SRC_URI="https://gitlab.com/accounts-sso/lib${PN}/repository/VERSION_${PV}/archive.tar.gz -> ${P}.tar.gz" LICENSE="LGPL-2.1" SLOT="0" KEYWORDS="amd64 ~arm arm64 x86" IUSE="doc test" -# dbus problems -RESTRICT="test" - +BDEPEND=" + doc? ( app-doc/doxygen ) +" RDEPEND=" - >=net-libs/libaccounts-glib-1.23:= dev-libs/glib:2 dev-qt/qtcore:5 dev-qt/qtxml:5 + >=net-libs/libaccounts-glib-1.23:= " DEPEND="${RDEPEND} - doc? ( app-doc/doxygen ) test? ( dev-qt/qttest:5 ) " +# dbus problems +RESTRICT="test" + +S="${WORKDIR}/lib${PN}-VERSION_${PV}-5b272ae218ccdf1f67f4eed92e2cdbe21c56ceb8" + src_prepare() { default - sed -e "s|share/doc/\$\${PROJECT_NAME}|share/doc/${PF}|" -i doc/doc.pri || die - use doc || sed -e "/include( doc\/doc.pri )/d" -i ${PN}.pro || die - use test || sed -i -e '/^SUBDIRS/s/tests//' accounts-qt.pro || die "couldn't disable tests" + sed -e "s|share/doc/\$\${PROJECT_NAME}|share/doc/${PF}|" \ + -i doc/doc.pri || die + if ! use doc; then + sed -e "/include( doc\/doc.pri )/d" -i ${PN}.pro || die + fi + if ! use test; then + sed -e '/^SUBDIRS/s/tests//' \ + -i accounts-qt.pro || die "couldn't disable tests" + fi } src_configure() { - eqmake5 LIBDIR="${EPREFIX%/}/usr/$(get_libdir)" + eqmake5 LIBDIR="${EPREFIX}/usr/$(get_libdir)" } src_install() {
