All pastes #953024 Raw Edit

Something

public text v1 · immutable
#953024 ·published 2008-03-22 18:55 UTC
rendered paste body
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

MY_PN="${PN/cairo-dock-plugins-}"

inherit autotools eutils gnome2 subversion

ESVN_REPO_URI="http://svn.berlios.de/svnroot/repos/cairo-dock/trunk/plug-ins/${MY_PN}"
ESVN_STORE_DIR="${PORTAGE_ACTUAL_DISTDIR-${DISTDIR}}/svn-src/"

DESCRIPTION="Official plugins for cairo-dock"
HOMEPAGE="http://developer.berlios.de/projects/cairo-dock/"
SRC_URI=""

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE="debug doc glitz svg"

RDEPEND="svg? ( gnome-base/librsvg )
	glitz? ( >=media-libs/glitz-0.4 )"

DEPEND="${RDEPEND}
	>=sys-devel/gettext-0.15
	>=dev-util/intltool-0.35
	>=dev-util/pkgconfig-0.19"


pkg_setup() {
	G2CONF="${G2CONF} $(use_enable glitz) $(use_enable svg)"

	if use svg && ! built_with_use x11-libs/cairo svg ; then
		eerror "Please rebuild cairo with USE=\"svg\""
		die "rebuild cairo with USE=\"svg\""
	fi
}
src_unpack() {
        subversion_src_unpack
	
	eautoreconf || die "eautoreconf failed"
	glib-gettextize --copy --force || die "glib-gettextize failed"
	intltoolize --automake --copy --force || die "intloolize failed"	
}

src_compile() {
	filter-ldflags -znow -z,now
	filter-ldflags -Wl,-znow -Wl,-z,now

	econf || die "econf failed"
	make || die "emake failed"
}

pkg_postinst() {
	gnome2_pkg_postinst

	ewarn "DO NOT report bugs to Gentoo's bugzilla"
	einfo "Please report all bugs to #gentoo-desktop-effects"
	einfo "Thank you on behalf of the Gentoo Desktop-Effects team"
}