| 1 |
# Copyright 1999-2012 Gentoo Foundation |
| 2 |
# Distributed under the terms of the GNU General Public License v2 |
| 3 |
# $Header: /var/cvsroot/gentoo-x86/net-libs/qtweetlib/qtweetlib-0.4.ebuild,v 1.1 2012/02/23 18:44:04 johu Exp $ |
| 4 |
|
| 5 |
EAPI=4 |
| 6 |
|
| 7 |
MY_PN=QTweetLib |
| 8 |
|
| 9 |
if [[ ${PV} != *9999* ]]; then |
| 10 |
SRC_URI="https://github.com/minimoog/${MY_PN}/tarball/${PV} -> ${P}.tar.gz" |
| 11 |
KEYWORDS="~amd64 ~x86" |
| 12 |
else |
| 13 |
GIT_ECLASS="git-2" |
| 14 |
EGIT_REPO_URI="git://github.com/minimoog/QTweetLib.git" |
| 15 |
KEYWORDS="" |
| 16 |
fi |
| 17 |
|
| 18 |
inherit qt4-r2 cmake-utils ${GIT_ECLASS} |
| 19 |
|
| 20 |
DESCRIPTION="Qt based Twitter library" |
| 21 |
HOMEPAGE="https://github.com/minimoog/QTweetLib" |
| 22 |
|
| 23 |
LICENSE="GPL-2" |
| 24 |
SLOT="0" |
| 25 |
IUSE="debug" |
| 26 |
|
| 27 |
DEPEND=" |
| 28 |
>=dev-libs/qjson-0.7.1 |
| 29 |
>=x11-libs/qt-core-4.6.0:4[ssl] |
| 30 |
" |
| 31 |
RDEPEND="${DEPEND}" |
| 32 |
|
| 33 |
src_unpack() { |
| 34 |
if [[ ${PV} != *9999* ]]; then |
| 35 |
unpack ${A} |
| 36 |
mv *-${MY_PN}-* "${S}" |
| 37 |
else |
| 38 |
git-2_src_unpack |
| 39 |
fi |
| 40 |
} |