summaryrefslogtreecommitdiff
blob: 8283c0c038329b34d67706d8c245719d4574f26a (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
# Copyright 1999-2004 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.3 2004/07/19 09:17:37 pclouds Exp $

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"

IUSE=""

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

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 ""
}