| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/media-libs/flickcurl/flickcurl-1.22.ebuild,v 1.3 2012/08/12 11:48:15 ago Exp $
|
| 4 |
|
| 5 |
EAPI="4"
|
| 6 |
|
| 7 |
inherit autotools
|
| 8 |
|
| 9 |
DESCRIPTION="C library for the Flickr API"
|
| 10 |
HOMEPAGE="http://librdf.org/flickcurl/"
|
| 11 |
SRC_URI="http://download.dajobe.org/flickcurl/${P}.tar.gz"
|
| 12 |
|
| 13 |
LICENSE="|| ( LGPL-2.1 GPL-2 Apache-2.0 )"
|
| 14 |
SLOT="0"
|
| 15 |
KEYWORDS="amd64 x86"
|
| 16 |
IUSE="doc oauth raptor static-libs"
|
| 17 |
|
| 18 |
RDEPEND=">=net-misc/curl-7.10.0
|
| 19 |
>=dev-libs/libxml2-2.6.8:2
|
| 20 |
raptor? ( media-libs/raptor:2 )"
|
| 21 |
DEPEND="${RDEPEND}
|
| 22 |
virtual/pkgconfig"
|
| 23 |
|
| 24 |
src_prepare() {
|
| 25 |
if ! use doc ; then
|
| 26 |
# Only install html documentation when the use flag is enabled
|
| 27 |
sed -i -e '/gtk-doc.make/d' \
|
| 28 |
-e 's:+=:=:' docs/Makefile.am || die
|
| 29 |
else
|
| 30 |
# Install html docs in the correct directory
|
| 31 |
sed -i -e '/^TARGET_DIR/s:/$(DOC_MODULE)::' gtk-doc.make || die
|
| 32 |
fi
|
| 33 |
|
| 34 |
eautoreconf
|
| 35 |
}
|
| 36 |
|
| 37 |
src_configure() {
|
| 38 |
econf \
|
| 39 |
--with-html-dir=/usr/share/doc/${PF}/html \
|
| 40 |
$(use_enable oauth) \
|
| 41 |
$(use_with raptor) \
|
| 42 |
$(use_enable static-libs static)
|
| 43 |
}
|
| 44 |
|
| 45 |
src_install() {
|
| 46 |
default
|
| 47 |
find "${ED}" -name '*.la' -exec rm -f '{}' +
|
| 48 |
}
|