--- /usr/portage/x11-misc/adesklets/adesklets-0.5.0.ebuild 2006-02-10 19:08:13.000000000 -0500 +++ ./adesklets-0.5.0-r1.ebuild 2006-02-21 00:29:19.000000000 -0500 @@ -1,6 +1,6 @@ # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/x11-misc/adesklets/adesklets-0.5.0.ebuild,v 1.4 2006/02/11 00:03:09 nelchael Exp $ +# $Header: DESCRIPTION="An interactive Imlib2 console for the X Window system" HOMEPAGE="http://adesklets.sf.net/" @@ -9,7 +9,7 @@ SLOT="0" LICENSE="GPL-2" KEYWORDS="amd64 ~ppc x86" -IUSE="X python" +IUSE="X python debug ctrlmenu" RDEPEND="X? ( || ( ( x11-libs/libX11 @@ -21,12 +21,26 @@ X? ( || ( x11-proto/xproto virtual/x11 ) ) python? ( >=dev-lang/python-2.3.4-r1 )" +inherit eutils + +src_unpack() +{ + unpack ${A} + cd ${S} + epatch ${FILESDIR}/${P}-ctrlmenu.patch || die "epatch failed" + # when performing minor changes to src/adesklets.c or src/commands.c, + # touching these files will avoid unneeded processing + touch scripting/enums scripting/prototypes +} + src_compile() { local myconf="" use X || myconf="--without-x" use python || myconf="${myconf} --without-python-support" + myconf="${myconf} $(use_enable debug)" + use ctrlmenu && myconf="--enable-control-on-context-menu" econf ${myconf} || die emake || die @@ -40,6 +54,12 @@ doinfo doc/*.info || die "info page installation failed" doman doc/*.1 || die "man page installation failed" dodoc ChangeLog NEWS TODO AUTHORS + use debug && + { + echo 'ADESKLETS_LOG="/tmp/adesklets_log"' > 70adesklets + doenvd 70adesklets + } + } pkg_postinst() @@ -66,4 +86,15 @@ ewarn ewarn "Type USE=\"python\" emerge adesklets to correct this." } + + use debug && + { + ewarn "You installed a debug build. Make sure you do:" + ewarn + ewarn "source /etc/profile" + ewarn + ewarn "If you want to use adesklets from your already" + ewarn "opened sessions. The sessions log are automatically" + ewarn "saved to /tmp/adesklets_log.pid*." + } }