All pastes #948466 Raw Edit

Miscellany

public text v1 · immutable
·published 2008-03-19 04:01 UTC
rendered paste body
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

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

inherit subversion autotools eutils gnome2 flag-o-matic
RESTRICT="mirror"

DESCRIPTION="Official plugins for cairo-dock"
HOMEPAGE="http://developer.berlios.de/projects/cairo-dock/"
RESTRICT="mirror"
ESVN_REPO_URI="http://svn.berlios.de/svnroot/repos/cairo-dock/trunk/plug-ins/xfce-integration"
ESVN_STORE_DIR="${PORTAGE_ACTUAL_DISTDIR-${DISTDIR}}/svn-src/"
SRC_URI=""
LICENSE="GPL"

SLOT="0"
KEYWORDS="~x86"
IUSE="xfce"

DEPEND=""

S="${WORKDIR}/xfce-integration"

src_unpack() {
        ESVN_UPDATE_CMD="svn update -N"
        ESVN_FETCH_CMD="svn checkout -N"
        ESVN_REPO_URI=`dirname ${ESVN_REPO_URI}`
	subversion_src_unpack

        ESVN_UPDATE_CMD="svn up"
        ESVN_FETCH_CMD="svn checkout"
        S=${WORKDIR}/${P}
        ESVN_REPO_URI="http://svn.berlios.de/svnroot/repos/cairo-dock/trunk/plug-ins/xfce-integration/"
	subversion_src_unpack
	cd "${S}"

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

src_install() {
	make DESTDIR="${D}" install || die "make install failed"
}

pkg_postinst() {
	xfce_pkg_postinst
	echo

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