# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils rpm # Revision of the RPM. Shouldn't affect us, as we're just grabbing the source # tarball out of it RPMREV="1" DESCRIPTION="A graphical interface for modifying system date and time" HOMEPAGE="http://fedora.redhat.com/projects/config-tools/" SRC_URI="mirror://fedora/development/source/SRPMS/${P}-${RPMREV}.src.rpm" LICENSE="" SLOT="0" KEYWORDS="~ppc ~x86" IUSE="" # bumps: yum, mkinitrd, pyparted # circular? s-c-date RDEPEND=" sys-apps/kudzu sys-apps/pciutils app-arch/bzip2 sys-fs/e2fsprogs dev-lang/python =x11-libs/gtk+-2* app-arch/rpm dev-python/rhpl ??? booty dev-libs/libxml2 dev-libs/elfutils dev-libs/beecrypt sys-libs/libselinux x11-libs/libX11 x11-libs/libXxf86misc dev-python/urlgrabber ??? pykickstart >=sys-apps/yum-2.9.2 >=sys-fs/device-mapper-1.01.05 sys-libs/libsepol x11-libs/pango ??? pirut x11-libs/libXt >=sys-libs/slang-2.0.6 =dev-libs/glib-2* ??? libdhcp >=sys-apps/mkinitrd-5.1.2 ??? audit-libs >=sys-apps/parted-1.7.1 >=dev-python/pyparted-1.7.2 app-admin/system-config-date sys-fs/dosfstools ??? pyblock ??? libbdevid dev-python/rhpxl" DEPEND="${RDEPEND} sys-devel/gettext dev-util/intltool" pkg_setup() { for i in app-arch/rpm dev-libs/libxml2; do if ! built_with_use $i python; then local msg="Build $i with USE=python" eerror "$msg" die "$msg" fi done } src_install() { emake DESTDIR="${D}" install || die "emake install failed" make_desktop_entry /usr/bin/${PN} fperms 644 /etc/pam.d/${PN} }