View | Details | Raw Unified
Collapse All | Expand All

(-) /usr/portage/gnome-extra/gdesklets-core/gdesklets-core-0.36.ebuild (-17 / +43 lines)
 Lines 1-9    Link Here 
# Copyright 1999-2008 Gentoo Foundation
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/gnome-extra/gdesklets-core/gdesklets-core-0.36.ebuild,v 1.2 2008/03/26 03:10:23 mr_bones_ Exp $
# $Header: /var/cvsroot/gentoo-x86/gnome-extra/gdesklets-core/gdesklets-core-0.35.4.ebuild,v 1.12 2007/10/09 23:56:02 nixphoeni Exp $
# We want the latest autoconf and automake (the default)
inherit gnome2 python multilib eutils autotools
inherit gnome2 eutils autotools multilib
MY_PN="gdesklets"
MY_PN="gdesklets"
MY_P="${MY_PN}-${PV/_/}"
MY_P="${MY_PN}-${PV/_/}"
 Lines 15-47    Link Here 
LICENSE="GPL-2"
LICENSE="GPL-2"
SLOT="0"
SLOT="0"
IUSE=""
IUSE="doc"
KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86"
KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86"
# is libgsf needed for runtime or just compiling?
# is libgsf needed for runtime or just compiling?
RDEPEND=">=dev-lang/python-2.3
RDEPEND=">=dev-lang/python-2.3
	>=dev-libs/glib-2.4
	>=dev-libs/glib-2.10
	gnome-extra/libgsf
	>=x11-libs/gtk+-2.10
	>=gnome-base/librsvg-2.8
	>=gnome-base/librsvg-2.8
	>=gnome-base/libgtop-2.8.2
	>=gnome-base/libgtop-2.10
	>=dev-python/pygtk-2.10
	>=dev-python/pygtk-2.10
	>=dev-python/gnome-python-2.6
	>=dev-python/gnome-python-2.12
	>=dev-libs/expat-1.95.8
	>=dev-libs/expat-1.95.8
	>=dev-python/pyxml-0.8.3-r1"
	x11-misc/shared-mime-info"
	#gnome-extra/libgsf
	#>=dev-python/pyxml-0.8.3-r1
DEPEND="${RDEPEND}
DEPEND="${RDEPEND}
	sys-devel/gettext
	sys-devel/gettext
	dev-util/pkgconfig
	dev-util/pkgconfig
	dev-util/intltool"
	dev-util/intltool"
# Parallel makes sometimes break during install phase
MAKEOPTS="${MAKEOPTS} -j1"
# Force using MAKEOPTS with emake
USE_EINSTALL="0"
DOCS="AUTHORS ChangeLog NEWS README TODO"
DOCS="AUTHORS ChangeLog NEWS README TODO"
src_install() {
src_unpack() {
	gnome2_src_unpack
	# disable pyc compiling
	mv py-compile py-compile.orig
	ln -s $(type -P true) py-compile
	# Fix LINGUAS
	epatch "${FILESDIR}/${PN}-0.36_beta-linguas.patch"
	eautoreconf
}
src_install() {
	gnome2_src_install
	gnome2_src_install
	# Install the gdesklets-control-getid script
	# Install the gdesklets-control-getid script
 Lines 52-67    Link Here 
	# Create a global directory for Displays
	# Create a global directory for Displays
	dodir /usr/$(get_libdir)/gdesklets/Displays
	dodir /usr/$(get_libdir)/gdesklets/Displays
	# Install the Developer's Book
	use doc && \
		elog "Installing the Developer's Book into" && \
		elog "${ROOT}usr/share/doc/${PF}/html" && \
		dohtml -r "${WORKDIR}/gdesklets-develbook/*"
	# Install the man page
	doman "${S}/doc/man/*.1"
	# Remove conflicts with x11-misc/shared-mime-info and auto-generated
	# Remove conflicts with x11-misc/shared-mime-info and auto-generated
	# MIME info
	# MIME info
	rm -rf 	"${D}/usr/share/mime"
	rm -rf "${D}/usr/share/mime/aliases" "${D}/usr/share/mime/magic" \
		"${D}/usr/share/mime/globs" "${D}/usr/share/mime/subclasses" \
		"${D}/usr/share/mime/XMLnamespaces" \
		"${D}/usr/share/mime/mime.cache"
}
}
pkg_postinst() {
pkg_postinst() {
	gnome2_pkg_postinst
	gnome2_pkg_postinst
	python_mod_optimize "${ROOT}"/usr/$(get_libdir)/gdesklets
	echo
	echo
	elog "gDesklets Displays are required before the library"
	elog "gDesklets Displays are required before the library"
	elog "will be usable. The displays are found in -"
	elog "will be usable. The displays are found in -"
 Lines 83-87    Link Here 
	# This stuff is important, especially the migration-tool
	# This stuff is important, especially the migration-tool
	# information which flies by on an update.
	# information which flies by on an update.
	epause 9
	epause 9
}
pkg_postrm() {
	gnome2_pkg_postrm
	python_mod_cleanup /usr/$(get_libdir)/gdesklets
}
}