/[gentoo-x86]/x11-wm/blackbox/blackbox-0.70.1.ebuild
Gentoo

Contents of /x11-wm/blackbox/blackbox-0.70.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.15 - (show annotations) (download)
Fri May 4 08:58:57 2012 UTC (2 years, 2 months ago) by jdhore
Branch: MAIN
Changes since 1.14: +3 -3 lines
dev-til/pkgconfig -> virtual/pkgconfig

(Portage version: 2.2.0_alpha101/cvs/Linux i686)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/x11-wm/blackbox/blackbox-0.70.1.ebuild,v 1.14 2011/04/16 18:20:44 ulm Exp $
4
5 inherit autotools eutils
6
7 DESCRIPTION="A small, fast, full-featured window manager for X"
8 HOMEPAGE="http://blackboxwm.sourceforge.net/"
9 SRC_URI="mirror://sourceforge/${PN}wm/${P}.tar.bz2"
10
11 LICENSE="MIT"
12 SLOT="0"
13 KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sparc x86 ~x86-fbsd"
14 IUSE="nls truetype debug"
15
16 RDEPEND="x11-libs/libXft
17 x11-libs/libXt
18 nls? ( sys-devel/gettext )
19 truetype? ( media-libs/freetype )"
20 DEPEND="${RDEPEND}
21 virtual/pkgconfig
22 >=sys-apps/sed-4
23 x11-proto/xextproto"
24
25 src_unpack() {
26 unpack ${A}
27 cd "${S}"
28
29 epatch "${FILESDIR}/${P}-gcc-4.3.patch" \
30 "${FILESDIR}/${P}-asneeded.patch"
31 if has_version ">=x11-libs/libX11-1.4.0"; then
32 sed -i -e "s/_XUTIL_H_/_X11&/" lib/Util.hh || die #348556
33 fi
34 eautoreconf
35 }
36
37 src_compile() {
38 econf \
39 --sysconfdir=/etc/X11/${PN} \
40 $(use_enable debug) \
41 $(use_enable nls) \
42 $(use_enable truetype xft)
43 emake || die "emake failed"
44 }
45
46 src_install() {
47 dodir /etc/X11/Sessions
48 echo "/usr/bin/blackbox" > "${D}/etc/X11/Sessions/${PN}"
49 fperms a+x /etc/X11/Sessions/${PN}
50
51 insinto /usr/share/xsessions
52 doins "${FILESDIR}/${PN}.desktop"
53
54 emake DESTDIR="${D}" install || die "emake install failed"
55 dodoc AUTHORS ChangeLog* COMPLIANCE README* TODO || die
56 }

  ViewVC Help
Powered by ViewVC 1.1.20