Permalink
Browse files

Added dzen ebuild built from svn. Copied from eatnumber1's overlay (c…

…ommit b12825320d994d71c9ffc22f014d120f828ba7b5)
  • Loading branch information...
1 parent b41661b commit 46cea910a73ae8374678b95c8edf4612be04da48 @nbigaouette committed Dec 22, 2011
Showing with 48 additions and 0 deletions.
  1. +1 −0 x11-misc/dzen/Manifest
  2. +47 −0 x11-misc/dzen/dzen-9999.ebuild
View
@@ -0,0 +1 @@
+EBUILD dzen-9999.ebuild 1271 RMD160 998cd8874865ff3c7a4563594377d766bd82b20a SHA1 61f6fb1dd354d130f10da89823b9cbc0feea1b4c SHA256 f40ecdd8303430b03eaafb21a55c4f128b3d2f3d260ebb7195bf50da17c2d812
@@ -0,0 +1,47 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit subversion toolchain-funcs
+
+DESCRIPTION="A general purpose messaging, notification and menuing program for X11."
+HOMEPAGE="http://gotmor.googlepages.com/dzen"
+SRC_URI=""
+ESVN_REPO_URI="http://dzen.googlecode.com/svn/trunk/"
+
+LICENSE="MIT"
+SLOT="2"
+KEYWORDS=""
+IUSE="minimal xinerama xpm"
+
+DEPEND="x11-libs/libX11
+ xinerama? ( x11-libs/libXinerama )
+ xpm? ( x11-libs/libXpm )"
+RDEPEND="${DEPEND}"
+
+src_unpack() {
+ subversion_src_unpack
+
+ cd "${S}"
+ sed -e "s/\/usr\/local/\/usr/g" -e "s/-Os/${CFLAGS}/g" \
+ -e "s/CC =.*/CC = $(tc-getCC | sed -e 's/\//\\\//g')/g" \
+ -e "s/LD =.*/LD = $(tc-getCC | sed -e 's/\//\\\//g')/g" \
+ -i config.mk || 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_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ dodoc README TODO
+}
+

0 comments on commit 46cea91

Please sign in to comment.