You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
62 lines
1.3 KiB
62 lines
1.3 KiB
8 years ago
|
# Copyright 1999-2017 Gentoo Foundation
|
||
8 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
# $Id$
|
||
|
|
||
8 years ago
|
EAPI=6
|
||
8 years ago
|
|
||
|
inherit qmake-utils
|
||
|
|
||
|
DESCRIPTION="Qt-based library for OAuth support"
|
||
|
HOMEPAGE="https://wiki.github.com/ayoy/qoauth"
|
||
|
SRC_URI="https://dev.gentoo.org/~johu/distfiles/${P}.tar.xz"
|
||
|
|
||
|
LICENSE="LGPL-2.1"
|
||
|
SLOT="5"
|
||
|
KEYWORDS="~amd64 ~ppc64 ~x86"
|
||
8 years ago
|
IUSE="debug doc test"
|
||
8 years ago
|
|
||
8 years ago
|
COMMON_DEPEND="
|
||
|
app-crypt/qca:2[debug?,qt5]
|
||
|
dev-qt/qtnetwork:5
|
||
|
"
|
||
8 years ago
|
DEPEND="${COMMON_DEPEND}
|
||
|
doc? ( app-doc/doxygen )
|
||
|
test? ( dev-qt/qttest:5 )
|
||
|
"
|
||
|
RDEPEND="${COMMON_DEPEND}
|
||
8 years ago
|
app-crypt/qca:2[ssl]
|
||
8 years ago
|
!dev-libs/qoauth:0
|
||
|
"
|
||
|
|
||
8 years ago
|
# disable functional tests that require network connection
|
||
|
# and rely on 3rd party external server (bug #341267)
|
||
|
PATCHES=( "${FILESDIR}/${PN}-1.0.1-disable-ft.patch" )
|
||
8 years ago
|
|
||
|
src_prepare() {
|
||
|
default
|
||
|
|
||
|
if ! use test; then
|
||
|
sed -i -e '/SUBDIRS/s/tests//' ${PN}.pro || die "sed failed"
|
||
|
fi
|
||
|
|
||
|
sed -i -e '/^ *docs \\$/d' \
|
||
|
-e '/^ *build_all \\$/d' \
|
||
|
-e 's/^\#\(!macx\)/\1/' \
|
||
|
src/src.pro || die "sed failed"
|
||
|
|
||
|
sed -i -e "s/\(.*\)lib$/\1$(get_libdir)/" src/pcfile.sh || die "sed failed"
|
||
|
}
|
||
|
|
||
|
src_configure() {
|
||
|
eqmake5 qoauth.pro
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
if use doc; then
|
||
|
doxygen "${S}"/Doxyfile || die "failed to generate documentation"
|
||
8 years ago
|
HTML_DOCS=( "${S}"/doc/html/. )
|
||
8 years ago
|
fi
|
||
8 years ago
|
|
||
|
INSTALL_ROOT="${D}" default
|
||
8 years ago
|
}
|