summaryrefslogtreecommitdiff
blob: 52e401235d08a6b1156f6ab4422da03ba2883b29 (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
# Copyright 2004-2010 Sabayon
# Distributed under the terms of the GNU General Public License v2
# $

EAPI="2"
inherit python base

DESCRIPTION="The system-config-date tool lets you set the date and time of your machine."
HOMEPAGE="http://fedoraproject.org/wiki/SystemConfig/date"
SRC_URI="https://fedorahosted.org/released/${PN}/${P}.tar.bz2"

LICENSE="GPL-1"
KEYWORDS="~amd64 ~x86"
SLOT="0"
IUSE="gtk"

# FIXME: would also require a dependency against anaconda
DEPEND="app-text/docbook-xml-dtd
        app-text/docbook-sgml-dtd
        app-text/gnome-doc-utils
        app-text/rarian
        dev-libs/newt
        dev-util/desktop-file-utils
        dev-util/intltool
        sys-devel/gettext"

# also net-misc/ntp would be a soft-dependency
# but code is redhat-centric, so we won't really
# let user use this crap
# net-misc/ntp
RDEPEND="dev-libs/newt
	dev-python/python-slip
        dev-python/rhpl
	gtk? (  dev-python/pygtk:2
		dev-python/libgnomecanvas-python
	        x11-themes/hicolor-icon-theme )"

src_install() {
        base_src_install

	# removing .desktop file, not advertising this, it is
	# only needed by app-admin/anaconda
        rm -rf "${D}/usr/share/"{man,applications}
        rm -rf "${D}/etc/"{pam.d,security}
        rm -rf "${D}/usr/bin"
}

pkg_postrm() {
        python_mod_cleanup /usr/share/${PN}
}