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.
gentoo-overlay/net-libs/liboauth/liboauth-0.9.7.ebuild

83 lines
1.6 KiB

# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-libs/liboauth/liboauth-0.9.7.ebuild,v 1.1 2012/07/04 12:53:30 flameeyes Exp $
EAPI=4
DESCRIPTION="C library implementing the OAuth secure authentication protocol"
HOMEPAGE="http://liboauth.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz
http://liboauth.sourceforge.net/pool/${P}.tar.gz"
LICENSE="|| ( GPL-2 MIT )"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~x64-macos"
IUSE="curl doc bindist +nss"
REQUIRED_USE="bindist? ( nss )"
CDEPEND="
nss? ( dev-libs/nss
curl? ( || ( net-misc/curl[ssl,curl_ssl_nss] net-misc/curl[-ssl] ) )
)
!nss? ( dev-libs/openssl
curl? ( || ( net-misc/curl[ssl,curl_ssl_openssl] net-misc/curl[-ssl] ) )
)
net-misc/curl
"
RDEPEND="${CDEPEND}"
DEPEND="${CDEPEND}
doc? (
app-doc/doxygen
media-gfx/graphviz
media-fonts/freefont-ttf
)
virtual/pkgconfig"
src_configure() {
local myconf=
if use nss || use bindist; then
myconf="${myconf} --enable-nss"
else
myconf="${myconf} --disable-nss"
fi
econf \
--disable-dependency-tracking \
--enable-fast-install \
--disable-static \
$(use_enable !curl curl) \
$(use_enable curl libcurl) \
${myconf}
}
src_compile() {
emake
if use doc ; then
# make sure fonts are found
export DOTFONTPATH="${EPREFIX}"/usr/share/fonts/freefont-ttf
emake dox
fi
}
src_test() {
# explicitly allow parallel test build
emake check
}
DOCS=( AUTHORS ChangeLog LICENSE.OpenSSL NEWS README )
src_install() {
default
if use doc; then
dohtml -r doc/html/*
fi
}