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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Wed Jul 13 00:45:45 2011 UTC (6 years, 9 months ago) by lack
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +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.3.0.ebuild,v 1.4 2011/04/16 18:22:51 ulm Exp $
4
5 EAPI=4
6 inherit eutils prefix
7
8 IUSE="nls xinerama bidi +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 bidi? ( dev-libs/fribidi )
27 imlib? ( >=media-libs/imlib2-1.2.0[X] )
28 vim-syntax? ( app-vim/fluxbox-syntax )
29 !!<x11-themes/fluxbox-styles-fluxmod-20040809-r1
30 !!<=x11-misc/fluxconf-0.9.9
31 !!<=x11-misc/fbdesk-1.2.1"
32 DEPEND="nls? ( sys-devel/gettext )
33 x11-proto/xextproto
34 xinerama? ( x11-proto/xineramaproto )
35 ${RDEPEND}"
36
37 SLOT="0"
38 LICENSE="MIT"
39 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux"
40
41 src_prepare() {
42 # We need to be able to include directories rather than just plain
43 # files in menu [include] items. This patch will allow us to do clever
44 # things with style ebuilds.
45 epatch "${FILESDIR}/gentoo_style_location-1.1.x.patch"
46 eprefixify util/fluxbox-generate_menu.in
47
48 epatch "${FILESDIR}"/osx-has-otool.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 bidi fribidi ) \
69 $(use_enable slit ) \
70 $(use_enable toolbar ) \
71 --sysconfdir="${EPREFIX}"/etc/X11/${PN} \
72 --with-style="${EPREFIX}"/usr/share/fluxbox/styles/Emerge \
73 ${myconf}
74 }
75
76 src_compile() {
77 default
78
79 ebegin "Creating a menu file (may take a while)"
80 mkdir -p "${T}/home/.fluxbox" || die "mkdir home failed"
81 MENUFILENAME="${S}/data/menu" MENUTITLE="Fluxbox ${PV}" \
82 CHECKINIT="no. go away." HOME="${T}/home" \
83 "${S}/util/fluxbox-generate_menu" -is -ds \
84 || die "menu generation failed"
85 eend $?
86 }
87
88 src_install() {
89 dodir /usr/share/fluxbox
90 emake DESTDIR="${D}" STRIP="" install
91 dodoc README* AUTHORS TODO* ChangeLog NEWS
92
93 dodir /usr/share/xsessions
94 insinto /usr/share/xsessions
95 doins "${FILESDIR}/${PN}.desktop"
96
97 exeinto /etc/X11/Sessions
98 newexe "${FILESDIR}/${PN}.xsession" fluxbox
99
100 dodir /usr/share/fluxbox/menu.d
101
102 # Styles menu framework
103 dodir /usr/share/fluxbox/menu.d/styles
104 insinto /usr/share/fluxbox/menu.d/styles
105 doins "${FILESDIR}/styles-menu-fluxbox"
106 doins "${FILESDIR}/styles-menu-commonbox"
107 doins "${FILESDIR}/styles-menu-user"
108 }

  ViewVC Help
Powered by ViewVC 1.1.20