/[gentoo-x86]/x11-wm/fluxbox/fluxbox-1.1.0.1.ebuild
Gentoo

Contents of /x11-wm/fluxbox/fluxbox-1.1.0.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Wed Jul 13 00:45:45 2011 UTC (7 years ago) by lack
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +1 -1 lines
FILE REMOVED
Version cleanup

(Portage version: 2.1.9.49/cvs/Linux i686)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/x11-wm/fluxbox/fluxbox-1.1.0.1.ebuild,v 1.7 2011/04/16 18:22:51 ulm Exp $
4
5 EAPI="3"
6 inherit eutils prefix
7
8 IUSE="nls xinerama truetype gnome +imlib +slit +toolbar vim-syntax"
9
10 DESCRIPTION="Fluxbox is an X11 window manager featuring tabs and an iconbar"
11
12 SRC_URI="mirror://sourceforge/fluxbox/${P}.tar.bz2"
13 HOMEPAGE="http://www.fluxbox.org"
14
15 # Please note that USE="gnome" simply adds support for some gnome protocols, and
16 # does not depend on external libraries. However, it does make the binary a
17 # fair bit bigger, so we don't want to turn it on unless the user actually wants
18 # it.
19
20 RDEPEND="x11-libs/libXpm
21 x11-libs/libXrandr
22 xinerama? ( x11-libs/libXinerama )
23 x11-apps/xmessage
24 x11-libs/libXft
25 truetype? ( media-libs/freetype )
26 imlib? ( >=media-libs/imlib2-1.2.0[X] )
27 vim-syntax? ( app-vim/fluxbox-syntax )
28 !!<x11-themes/fluxbox-styles-fluxmod-20040809-r1
29 !!<=x11-misc/fluxconf-0.9.9
30 !!<=x11-misc/fbdesk-1.2.1"
31 DEPEND="nls? ( sys-devel/gettext )
32 x11-proto/xextproto
33 xinerama? ( x11-proto/xineramaproto )
34 ${RDEPEND}"
35
36 SLOT="0"
37 LICENSE="MIT"
38 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux"
39
40 src_prepare() {
41 # We need to be able to include directories rather than just plain
42 # files in menu [include] items. This patch will allow us to do clever
43 # things with style ebuilds.
44 epatch "${FILESDIR}/${PV}/gentoo_style_location.patch"
45 eprefixify util/fluxbox-generate_menu.in
46
47 # Patch to handle a broken key file gracefully, #263379
48 epatch "${FILESDIR}/keyparse_hang.patch"
49
50 # Add in the Gentoo -r number to fluxbox -version output.
51 if [[ "${PR}" == "r0" ]] ; then
52 suffix="gentoo"
53 else
54 suffix="gentoo-${PR}"
55 fi
56 sed -i \
57 -e "s~\(__fluxbox_version .@VERSION@\)~\1-${suffix}~" \
58 version.h.in || die "version sed failed"
59 }
60
61 src_configure() {
62 econf \
63 $(use_enable nls) \
64 $(use_enable xinerama) \
65 $(use_enable truetype xft) \
66 $(use_enable gnome) \
67 $(use_enable imlib imlib2) \
68 $(use_enable slit ) \
69 $(use_enable toolbar ) \
70 --sysconfdir="${EPREFIX}"/etc/X11/${PN} \
71 --with-style="${EPREFIX}"/usr/share/fluxbox/styles/Emerge \
72 ${myconf}
73 }
74
75 src_compile() {
76 default
77
78 ebegin "Creating a menu file (may take a while)"
79 mkdir -p "${T}/home/.fluxbox" || die "mkdir home failed"
80 MENUFILENAME="${S}/data/menu" MENUTITLE="Fluxbox ${PV}" \
81 CHECKINIT="no. go away." HOME="${T}/home" \
82 "${S}/util/fluxbox-generate_menu" -is -ds \
83 || die "menu generation failed"
84 eend $?
85 }
86
87 src_install() {
88 dodir /usr/share/fluxbox
89 emake DESTDIR="${D}" STRIP="" install || die "install failed"
90 dodoc README* AUTHORS TODO* ChangeLog NEWS
91
92 dodir /usr/share/xsessions
93 insinto /usr/share/xsessions
94 doins "${FILESDIR}/${PN}.desktop"
95
96 exeinto /etc/X11/Sessions
97 newexe "${FILESDIR}/${PN}.xsession" fluxbox
98
99 dodir /usr/share/fluxbox/menu.d
100
101 # Styles menu framework
102 dodir /usr/share/fluxbox/menu.d/styles
103 insinto /usr/share/fluxbox/menu.d/styles
104 doins "${FILESDIR}/styles-menu-fluxbox" || die
105 doins "${FILESDIR}/styles-menu-commonbox" || die
106 doins "${FILESDIR}/styles-menu-user" || die
107 }

  ViewVC Help
Powered by ViewVC 1.1.20