summaryrefslogtreecommitdiff
blob: 5b7e93c6f01e886e37d1f4085063bd5894891c27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-wm/aewm++-goodies/aewm++-goodies-1.0.ebuild,v 1.13 2008/05/04 08:52:24 omp Exp $

inherit eutils

DESCRIPTION="Goodies for aewm++"
HOMEPAGE="http://frankhale.org/"
SRC_URI="http://frankhale.org/${P/-/_}.tar.bz2"

# ae_fspanel is as-is. Appbar and setrootimage is "gpl", referring to gnu.org.
LICENSE="as-is || ( GPL-2 GPL-3 )"
SLOT="0"
KEYWORDS="amd64 ppc x86"
IUSE=""

RDEPEND="x11-libs/libX11
	x11-libs/libXext
	x11-libs/libXpm"
DEPEND="${RDEPEND}
	x11-proto/xproto
	x11-proto/xextproto"

S="${WORKDIR}/${PN/-/_}"

GOODIES="ae_fspanel-1.0 appbar-1.0 setrootimage-1.0"

src_unpack() {
	unpack ${A}
	cd "${S}"
	# compatibility with ANSI C++ and GCC3.2
	epatch "${FILESDIR}/aewm++-goodies-gcc3-gentoo.patch"
}

src_compile() {
	for i in ${GOODIES}
	do
		# remove -s from "install -s " and "-Xlinker -s "
		sed -i -e 's/ -s / /' $i/Makefile

		make CFLAGS="${CFLAGS}" -C $i || die "make failed"
	done
}

src_install() {
	dodir /usr/bin
	for i in ${GOODIES}
	do
		make DESTDIR="${D}" -C $i install || die "make install failed"
		docinto $i
		dodoc $i/{README,ChangeLog,COPYING,LICENSE}
	done
}