diff options
author | Santiago M. Mola <coldwind@gentoo.org> | 2007-09-16 21:56:18 +0000 |
---|---|---|
committer | Santiago M. Mola <coldwind@gentoo.org> | 2007-09-16 21:56:18 +0000 |
commit | 98b0a078a5dae2b1931eff20434baa04eaad6428 (patch) | |
tree | 8a01fadd6facb384116e4158e0521d408e09bb44 /x11-misc/dzen/dzen-0.8.5.ebuild | |
parent | app-misc/tomboy-0.6.3: Fix assembly attribute related problem (bug #192684) (diff) | |
download | gentoo-2-98b0a078a5dae2b1931eff20434baa04eaad6428.tar.gz gentoo-2-98b0a078a5dae2b1931eff20434baa04eaad6428.tar.bz2 gentoo-2-98b0a078a5dae2b1931eff20434baa04eaad6428.zip |
Bump to 0.8.5 and added minimal and xpm flags. bug #192257 Thanks to MATSUU Takuto <matsuu@gentoo.org>
(Portage version: 2.1.2.12)
Diffstat (limited to 'x11-misc/dzen/dzen-0.8.5.ebuild')
-rw-r--r-- | x11-misc/dzen/dzen-0.8.5.ebuild | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/x11-misc/dzen/dzen-0.8.5.ebuild b/x11-misc/dzen/dzen-0.8.5.ebuild new file mode 100644 index 000000000000..59fe8a8a5f8d --- /dev/null +++ b/x11-misc/dzen/dzen-0.8.5.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/x11-misc/dzen/dzen-0.8.5.ebuild,v 1.1 2007/09/16 21:56:18 coldwind Exp $ + +inherit toolchain-funcs multilib + +SLOT="2" +MY_P="${PN}${SLOT}-${PV}" + +DESCRIPTION="a general purpose messaging, notification and menuing program for +X11." +HOMEPAGE="http://gotmor.googlepages.com/dzen" +SRC_URI="http://gotmor.googlepages.com/${MY_P}.tar.gz" + +LICENSE="MIT" +KEYWORDS="~x86" +IUSE="minimal xinerama xpm" + +RDEPEND="x11-libs/libX11 + xinerama? ( x11-libs/libXinerama ) + xpm? ( x11-libs/libXpm )" +DEPEND="${RDEPEND} + xinerama? ( x11-proto/xineramaproto )" + +S=${WORKDIR}/${MY_P} + +src_unpack() { + unpack ${A} + cd "${S}" + sed -e "s:/usr/local:/usr:g" \ + -e "s:-Os:${CFLAGS}:g" \ + -e "/CC/s:gcc:$(tc-getCC):" \ + -e "s:/usr/lib :/usr/$(get_libdir):" \ + -i config.mk gadgets/config.mk || die "sed failed" + sed -i -e "/strip/d" Makefile gadgets/Makefile || die "sed failed" + if use xinerama ; then + sed -e "/^LIBS/s/$/\ -lXinerama/" \ + -e "/^CFLAGS/s/$/\ -DDZEN_XINERAMA/" \ + -i config.mk || die "sed failed" + fi + if use xpm ; then + sed -e "/^LIBS/s/$/\ -lXpm/" \ + -e "/^CFLAGS/s/$/\ -DDZEN_XPM/" \ + -i config.mk || die "sed failed" + fi +} + +src_compile() { + emake || die "emake failed" + + if ! use minimal ; then + cd "${S}"/gadgets + emake || die "emake gadgets failed" + fi +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + dodoc README || die + + if ! use minimal ; then + cd "${S}"/gadgets + emake DESTDIR="${D}" install || die "emake gadgets install failed" + dodoc README* || die + fi +} |