2015-11-06 22:23:23 +01:00
|
|
|
# Copyright 1999-2015 Gentoo Foundation
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
# $Id$
|
|
|
|
|
|
|
|
EAPI="5"
|
|
|
|
|
2015-11-06 23:08:48 +01:00
|
|
|
inherit cmake-utils gnome2 vala
|
2015-11-06 22:23:23 +01:00
|
|
|
|
|
|
|
CMAKE_MIN_VERSION="2.6"
|
|
|
|
VALA_MIN_API_VERSION="0.24"
|
|
|
|
|
|
|
|
MY_P="FeedReader"
|
|
|
|
|
2015-12-29 23:54:55 +01:00
|
|
|
DESCRIPTION="Simple News Feed Reader for feeds aggregated by Tiny Tiny RSS or feedly"
|
2015-11-06 23:21:38 +01:00
|
|
|
HOMEPAGE="http://jangernert.github.io/${PN}/"
|
|
|
|
SRC_URI="https://launchpad.net/${PN}/1.2/${PV}/+download/${MY_P}-${PV}.tar.gz"
|
2015-11-06 22:23:23 +01:00
|
|
|
|
|
|
|
LICENSE="GPL-2"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="~amd64"
|
|
|
|
|
2015-11-13 01:04:49 +01:00
|
|
|
IUSE="+gnome webkit4"
|
2015-11-06 22:23:23 +01:00
|
|
|
|
|
|
|
RDEPEND=">=x11-libs/gtk+-3.12:3
|
|
|
|
app-text/html2text
|
|
|
|
$(vala_depend)
|
|
|
|
dev-libs/json-glib
|
|
|
|
dev-libs/libgee:0.8
|
|
|
|
net-libs/libsoup:2.4
|
|
|
|
dev-db/sqlite:3
|
|
|
|
app-crypt/libsecret
|
|
|
|
x11-libs/libnotify
|
|
|
|
dev-libs/libxml2
|
|
|
|
net-libs/rest:0.7
|
2015-11-13 01:04:49 +01:00
|
|
|
!webkit4? ( net-libs/webkit-gtk:3 )
|
|
|
|
webkit4? ( net-libs/webkit-gtk:4 )
|
2015-11-06 22:23:23 +01:00
|
|
|
dev-libs/gobject-introspection
|
|
|
|
gnome? ( gnome-base/gnome-keyring )"
|
|
|
|
|
|
|
|
DEPEND="${RDEPEND}
|
|
|
|
dev-util/intltool
|
|
|
|
virtual/pkgconfig"
|
|
|
|
|
|
|
|
S="${WORKDIR}/${MY_P}-${PV}"
|
|
|
|
|
|
|
|
src_prepare() {
|
|
|
|
vala_src_prepare
|
|
|
|
}
|
|
|
|
|
|
|
|
src_configure() {
|
|
|
|
local mycmakeargs=(
|
|
|
|
-DWITH_LIBUNITY=OFF
|
|
|
|
-DVALA_EXECUTABLE="${VALAC}"
|
|
|
|
-DCMAKE_INSTALL_PREFIX="${PREFIX}"
|
2015-11-06 23:13:39 +01:00
|
|
|
-DGSETTINGS_LOCALINSTALL=OFF
|
2015-11-06 22:23:23 +01:00
|
|
|
)
|
2015-11-13 01:04:49 +01:00
|
|
|
$(cmake-utils_use_use webkit4 WEBKIT_4)
|
2015-11-06 22:23:23 +01:00
|
|
|
cmake-utils_src_configure
|
|
|
|
}
|
|
|
|
|
|
|
|
src_compile() {
|
|
|
|
cmake-utils_src_compile
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
cmake-utils_src_install
|
|
|
|
}
|
2015-11-06 23:08:48 +01:00
|
|
|
|
|
|
|
pkg_preinst() {
|
|
|
|
gnome2_pkg_preinst
|
|
|
|
}
|
|
|
|
|
|
|
|
pkg_postinst() {
|
|
|
|
gnome2_pkg_postinst
|
|
|
|
}
|
|
|
|
|
|
|
|
pkg_postrm() {
|
|
|
|
gnome2_pkg_postrm
|
|
|
|
}
|