2013-01-12 18:52:28 +04:00
|
|
|
# Copyright 1999-2013 Gentoo Foundation
|
2012-06-30 20:07:25 +04:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
2013-04-28 05:08:42 +04:00
|
|
|
# $Header: /var/cvsroot/gentoo-x86/net-misc/grive/grive-0.2.0-r1.ebuild,v 1.2 2013/04/27 23:02:56 ottxor Exp $
|
2012-06-30 20:07:25 +04:00
|
|
|
|
2013-04-15 09:49:15 +04:00
|
|
|
EAPI=5
|
2012-06-30 20:07:25 +04:00
|
|
|
|
|
|
|
inherit cmake-utils eutils multilib
|
|
|
|
|
2012-08-26 23:50:26 +04:00
|
|
|
if [[ ${PV} = *9999 ]]; then
|
2012-06-30 20:07:25 +04:00
|
|
|
inherit git-2
|
2012-07-02 01:08:49 +04:00
|
|
|
EGIT_REPO_URI="git://github.com/Grive/${PN}.git"
|
2012-08-26 23:50:26 +04:00
|
|
|
else
|
2012-11-14 11:34:15 +04:00
|
|
|
inherit eutils vcs-snapshot
|
2013-01-12 18:52:28 +04:00
|
|
|
SRC_URI="mirror://github/Grive/${PN}/tarball/v${PV} -> ${P}.tar.gz"
|
2012-06-30 20:07:25 +04:00
|
|
|
fi
|
|
|
|
|
|
|
|
DESCRIPTION="an open source Linux client for Google Drive"
|
|
|
|
HOMEPAGE="http://www.lbreda.com/grive/"
|
|
|
|
|
|
|
|
LICENSE="GPL-2"
|
|
|
|
SLOT="0"
|
2012-07-02 01:08:49 +04:00
|
|
|
KEYWORDS="~amd64 ~x86"
|
2012-06-30 20:07:25 +04:00
|
|
|
IUSE=""
|
|
|
|
|
|
|
|
RDEPEND="
|
2013-04-15 09:49:15 +04:00
|
|
|
dev-libs/boost:=
|
2012-06-30 20:07:25 +04:00
|
|
|
dev-libs/expat
|
2013-04-15 09:49:15 +04:00
|
|
|
dev-libs/json-c:=
|
|
|
|
dev-libs/libgcrypt:=
|
2012-06-30 20:07:25 +04:00
|
|
|
net-misc/curl
|
|
|
|
sys-devel/binutils
|
|
|
|
sys-libs/glibc
|
|
|
|
sys-libs/zlib
|
|
|
|
"
|
|
|
|
|
|
|
|
DEPEND="${RDEPEND}"
|
|
|
|
|
|
|
|
DOCS=( "README" )
|
2012-11-01 10:40:17 +04:00
|
|
|
|
|
|
|
src_prepare() {
|
2012-11-14 11:34:15 +04:00
|
|
|
epatch "${FILESDIR}"/"${P}"-check-bfd.h.patch
|
2013-03-24 22:48:41 +04:00
|
|
|
|
2013-04-28 05:08:42 +04:00
|
|
|
#include dir change in json-c-0.10 #462632 and #452234
|
|
|
|
if has_version ">=dev-libs/json-c-0.10" ; then
|
2013-03-24 22:48:41 +04:00
|
|
|
sed -i -e '/\(include\|INCLUDE\)/s@json/@json-c/@' \
|
|
|
|
libgrive/src/protocol/Json.cc \
|
|
|
|
cmake/Modules/FindJSONC.cmake || die
|
|
|
|
fi
|
2013-04-28 05:08:42 +04:00
|
|
|
#json-c library changed in 0.11, bug #467432
|
|
|
|
if has_version ">=dev-libs/json-c-0.11" ; then
|
|
|
|
sed -i -e '/LIBRARY/s@json)@json-c)@' \
|
|
|
|
cmake/Modules/FindJSONC.cmake || die
|
|
|
|
fi
|
2012-11-01 10:40:17 +04:00
|
|
|
}
|