summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gentoo.org>2011-07-21 08:31:34 +0000
committerTim Harder <radhermit@gentoo.org>2011-07-21 08:31:34 +0000
commitf74553c0114c5e76f73d4bbac984e290c88a27fa (patch)
treef1762a21efdb00df5cb71350f5183ed9893c4b92 /media-libs/flickcurl
parentMove stable keywords forward since the only change is the eclass installing t... (diff)
downloadgentoo-2-f74553c0114c5e76f73d4bbac984e290c88a27fa.tar.gz
gentoo-2-f74553c0114c5e76f73d4bbac984e290c88a27fa.tar.bz2
gentoo-2-f74553c0114c5e76f73d4bbac984e290c88a27fa.zip
Initial import (bug #350109).
(Portage version: 2.2.0_alpha45/cvs/Linux x86_64)
Diffstat (limited to 'media-libs/flickcurl')
-rw-r--r--media-libs/flickcurl/ChangeLog10
-rw-r--r--media-libs/flickcurl/flickcurl-1.21.ebuild56
-rw-r--r--media-libs/flickcurl/metadata.xml8
3 files changed, 74 insertions, 0 deletions
diff --git a/media-libs/flickcurl/ChangeLog b/media-libs/flickcurl/ChangeLog
new file mode 100644
index 000000000000..11eb06807450
--- /dev/null
+++ b/media-libs/flickcurl/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for media-libs/flickcurl
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/flickcurl/ChangeLog,v 1.1 2011/07/21 08:31:34 radhermit Exp $
+
+*flickcurl-1.21 (21 Jul 2011)
+
+ 21 Jul 2011; Tim Harder <radhermit@gentoo.org> +flickcurl-1.21.ebuild,
+ +metadata.xml:
+ Initial import (bug #350109).
+
diff --git a/media-libs/flickcurl/flickcurl-1.21.ebuild b/media-libs/flickcurl/flickcurl-1.21.ebuild
new file mode 100644
index 000000000000..7c9501dd325f
--- /dev/null
+++ b/media-libs/flickcurl/flickcurl-1.21.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/flickcurl/flickcurl-1.21.ebuild,v 1.1 2011/07/21 08:31:34 radhermit Exp $
+
+EAPI="4"
+
+inherit autotools
+
+DESCRIPTION="C library for the Flickr API"
+HOMEPAGE="http://librdf.org/flickcurl/"
+SRC_URI="mirror://gentoo/${P}.tar.gz"
+# Regular tarball is missing a header file breaking non-raptor support
+#SRC_URI="http://download.dajobe.org/flickcurl/${P}.tar.gz"
+
+LICENSE="|| ( LGPL-2.1 GPL-2 Apache-2.0 )"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc raptor static-libs"
+
+RDEPEND=">=net-misc/curl-7.10.0
+ >=dev-libs/libxml2-2.6.8:2
+ raptor? ( media-libs/raptor:2 )"
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig"
+
+src_prepare() {
+ if ! use doc ; then
+ # Only install html documentation when the use flag is enabled
+ sed -i -e '/gtk-doc.make/d' \
+ -e 's:+=:=:' docs/Makefile.am || die
+ else
+ # Install html docs in the correct directory
+ sed -i -e '/^TARGET_DIR/s:/$(DOC_MODULE)::' gtk-doc.make || die
+ fi
+
+ eautoreconf
+}
+
+src_configure() {
+ local myconf
+ if use raptor ; then
+ myconf="--with-raptor=2"
+ else
+ myconf="--with-raptor=no"
+ fi
+
+ econf \
+ --with-html-dir=/usr/share/doc/${PF}/html \
+ $(use_enable static-libs static) \
+ ${myconf}
+}
+
+src_install() {
+ default
+ find "${ED}" -name '*.la' -exec rm -f '{}' +
+}
diff --git a/media-libs/flickcurl/metadata.xml b/media-libs/flickcurl/metadata.xml
new file mode 100644
index 000000000000..bbe3ae036794
--- /dev/null
+++ b/media-libs/flickcurl/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>graphics</herd>
+ <use>
+ <flag name="raptor">Use <pkg>media-libs/raptor</pkg> for proper RDF serializing</flag>
+ </use>
+</pkgmetadata>