/[gentoo-x86]/x11-misc/dzen/dzen-0.8.5.ebuild
Gentoo

Contents of /x11-misc/dzen/dzen-0.8.5.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Sun Jun 6 09:49:15 2010 UTC (4 years, 6 months ago) by ssuominen
Branch: MAIN
Changes since 1.5: +7 -2 lines
Install noisyalert.sh and kittscanner.sh wrt #274730 by Simeon Maryasin.
(Portage version: 2.2_rc67/cvs/Linux x86_64)

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/x11-misc/dzen/dzen-0.8.5.ebuild,v 1.5 2009/09/30 04:45:48 jer Exp $
4
5 inherit toolchain-funcs multilib
6
7 SLOT="2"
8 MY_P="${PN}${SLOT}-${PV}"
9
10 DESCRIPTION="a general purpose messaging, notification and menuing program for
11 X11."
12 HOMEPAGE="http://gotmor.googlepages.com/dzen"
13 SRC_URI="http://gotmor.googlepages.com/${MY_P}.tar.gz"
14
15 LICENSE="MIT"
16 KEYWORDS="amd64 x86"
17 IUSE="minimal xinerama xpm"
18
19 RDEPEND="x11-libs/libX11
20 xinerama? ( x11-libs/libXinerama )
21 xpm? ( x11-libs/libXpm )"
22 DEPEND="${RDEPEND}
23 xinerama? ( x11-proto/xineramaproto )"
24
25 S=${WORKDIR}/${MY_P}
26
27 src_unpack() {
28 unpack ${A}
29 cd "${S}"
30 sed -i \
31 -e 's:../dzen2:dzen2:' \
32 gadgets/kittscanner.sh || die
33
34 sed -e "s:/usr/local:/usr:g" \
35 -e 's:-Os::g' \
36 -e "s:CFLAGS =:CFLAGS +=:g" \
37 -e '/^CC.*/d' \
38 -e 's:^LDFLAGS =:LDFLAGS +=:' \
39 -e "s:/usr/lib :/usr/$(get_libdir):" \
40 -i config.mk gadgets/config.mk || die "sed failed"
41 sed -i -e "/strip/d" Makefile gadgets/Makefile || die "sed failed"
42 if use xinerama ; then
43 sed -e "/^LIBS/s/$/\ -lXinerama/" \
44 -e "/^CFLAGS/s/$/\ -DDZEN_XINERAMA/" \
45 -i config.mk || die "sed failed"
46 fi
47 if use xpm ; then
48 sed -e "/^LIBS/s/$/\ -lXpm/" \
49 -e "/^CFLAGS/s/$/\ -DDZEN_XPM/" \
50 -i config.mk || die "sed failed"
51 fi
52 }
53
54 src_compile() {
55 tc-export CC
56 emake || die "emake failed"
57
58 if ! use minimal ; then
59 cd "${S}"/gadgets
60 emake || die "emake gadgets failed"
61 fi
62 }
63
64 src_install() {
65 emake DESTDIR="${D}" install || die "emake install failed"
66 dodoc README || die
67
68 if ! use minimal ; then
69 cd "${S}"/gadgets
70 emake DESTDIR="${D}" install || die "emake gadgets install failed"
71 dobin *.sh || die
72 dodoc README* || die
73 fi
74 }

  ViewVC Help
Powered by ViewVC 1.1.20