blob: 94135d73074ccdd66b62f8ece31a731e5793477a (
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
54
55
56
57
58
59
60
61
62
63
64
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-wm/openbox/openbox-3.3_rc1-r1.ebuild,v 1.2 2005/04/05 22:36:59 lostlogic Exp $
inherit eutils
DESCRIPTION="Openbox is a standards compliant, fast, light-weight, extensible window manager."
HOMEPAGE="http://icculus.org/openbox/"
SRC_URI="http://icculus.org/openbox/releases/${P/_/-}.tar.gz
mirror://gentoo/ob-themes-usability.tar.bz2"
LICENSE="GPL-2"
SLOT="3"
KEYWORDS="~x86 ~ppc ~sparc ~alpha ~hppa ~amd64"
IUSE="pango nls startup-notification"
RDEPEND="virtual/xft
virtual/x11
>=dev-libs/glib-2
>=media-libs/fontconfig-2
>=dev-libs/libxml2-2.0"
DEPEND="${RDEPEND}
pango? ( x11-libs/pango )
startup-notification? ( x11-libs/startup-notification )
dev-util/pkgconfig"
S=${WORKDIR}/${P/_/-}
src_unpack() {
unpack ${A}
cd ${S}
epatch ${FILESDIR}/${PN}-3.2-makefile.patch
}
src_compile() {
if use pango ; then
myconf="--enable-pango"
else
myconf=""
fi
econf `use_enable nls` ${myconf} || die
emake || die
}
src_install() {
dodir /etc/X11/Sessions
echo "/usr/bin/openbox" > ${D}/etc/X11/Sessions/openbox
fperms a+x /etc/X11/Sessions/openbox
dodir /usr/share/xsessions
insinto /usr/share/xsessions
doins ${FILESDIR}/${PN}.desktop
make DESTDIR=${D} install || die
dodoc ABOUT-NLS AUTHORS CHANGELOG COMPLIANCE COPYING README
# Extra styles from http://home.clara.co.uk/dpb/openbox.htm
# These are included due to the poor usability of the default themes
# for users with limited vision. These are based on Jimmac's
# Gorilla and Industrial themes for Metacity.
dodir /usr/share/themes
cp -a ${WORKDIR}/ob-themes-usability/* ${D}/usr/share/themes
}
|