-# Copyright 1999-2008 Gentoo Foundation
+# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
-inherit eutils autotools
+EAPI="2"
+
+inherit eutils
MY_PN="Rainlendar-Lite"
MY_P=${MY_PN}-${PV}
-DESCRIPTION="Feature rich calendar application that is easy to
-use and doesn't take much space on your desktop."
+DESCRIPTION="Feature rich calendar application that is easy to use and doesn't take much space on your desktop."
HOMEPAGE="http://www.rainlendar.net"
SRC_URI="http://www.rainlendar.net/download/${MY_P}.tar.bz2"
KEYWORDS="~amd64 ~x86"
IUSE=""
-DEPEND=""
RDEPEND="amd64? ( app-emulation/emul-linux-x86-gtklibs
app-emulation/emul-linux-x86-xlibs )
- x86? ( >=x11-libs/gtk+-2 )"
+ x86? ( x11-libs/gtk+:2[xinerama] )"
S=${WORKDIR}/rainlendar2
QA_TEXTRELS="opt/rainlendar2/plugins/iCalendarPlugin.so"
-pkg_setup() {
- if use x86 && ! built_with_use '=x11-libs/gtk+-2*' xinerama ; then
- local diemsg="Please re-emerge x11-libs/gtk+ with the xinerama USE flag set"
- eerror "${diemsg}"
- die "${diemsg}"
- fi
-}
-
src_install() {
insinto /opt/rainlendar2
doins -r locale plugins resources scripts skins rainlendar2.htb