summaryrefslogtreecommitdiff
blob: 5ca1ca6bd5fa713d7852e2a21903796ba8511331 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-misc/gdeskcal/gdeskcal-0.57.1.ebuild,v 1.9 2005/07/09 19:24:50 swegener Exp $

inherit eutils

DESCRIPTION="Cute little eye-candy calendar for the desktop"
HOMEPAGE="http://www.pycage.de/software_gdeskcal.html"

# The name of the source tarball differs slightly from the package
# name and version:
MY_PN=gDeskCal
MY_P=${MY_PN}-${PV//./_}
SRC_URI="http://www.pycage.de/download/${MY_P}.tar.gz"

# The name of the unpacked tarball's sourcedir isn't the default $S
S="${WORKDIR}/${MY_PN}-${PV}"

SLOT="0"
LICENSE="GPL-2"
KEYWORDS="x86 ppc ppc64 ~amd64"

IUSE="gnome"

DEPEND=">=dev-lang/python-2.0
	>=x11-libs/gtk+-2.0
	>=dev-libs/glib-2.0
	>=dev-python/pygtk-2.0"

src_unpack() {
	unpack ${A}
	# Session support for gDeskCal (requires pygtk[gnome])
	use gnome && epatch ${FILESDIR}/${P}-gnomeui.patch
}

src_install() {
	# put documents in the right place
	dodoc AUTHORS NEWS README README.i18n README.skins

	# gdeskcal Python objects and i18n files
	GDESKCAL_DIR=/usr/share/${PN}
	dodir ${GDESKCAL_DIR}
	cp -R code skins data locale po gdeskcal ${D}${GDESKCAL_DIR}
	# make a symlink from /usr/share/gdeskcal/gdeskcal to /usr/bin/gdeskcal
	dodir /usr/bin
	dosym ${GDESKCAL_DIR}/gdeskcal /usr/bin/gdeskcal
}

pkg_postinst() {
	# some useful information about where to get skins
	einfo
	einfo "Skins for gDeskCal can be found at:"
	einfo "  ${HOMEPAGE}"
	einfo
	einfo "To install a new skin simply drag it onto the gDeskCal skinbrowser"
	einfo
}