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

Contents of /x11-wm/fluxbox/fluxbox-1.0.0-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Thu May 22 13:36:03 2008 UTC (9 years, 5 months ago) by lack
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Marking stable on amd64, plus some small version cleanups
(Portage version: 2.1.5.2)

1 # Copyright 1999-2008 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.0.0-r1.ebuild,v 1.3 2008/02/28 15:27:57 lack Exp $
4
5 EAPI=1
6 inherit eutils
7
8 IUSE="nls xinerama truetype kde 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="kde gnome" simply adds support for the respective
16 # protocols, and does not depend on external libraries. They do, however,
17 # make the binary a fair bit bigger, so we don't want to turn them on unless
18 # the user actually wants them.
19
20 RDEPEND="x11-libs/libXpm
21 x11-libs/libXrandr
22 xinerama? ( x11-libs/libXinerama )
23 x11-apps/xmessage
24 virtual/xft
25 truetype? ( media-libs/freetype )
26 imlib? ( >=media-libs/imlib2-1.2.0 )
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 PROVIDE="virtual/blackbox"
36
37 SLOT="0"
38 LICENSE="MIT"
39 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
40
41 pkg_setup() {
42 if use imlib && ! built_with_use media-libs/imlib2 X ; then
43 eerror "To build fluxbox with imlib in USE, you need an X enabled"
44 eerror "media-libs/imlib2 . Either recompile imlib2 with the X"
45 eerror "USE flag turned on or disable the imlib USE flag for fluxbox."
46 die "USE=imlib requires imlib2 with USE=X"
47 fi
48 }
49
50 src_unpack() {
51 unpack ${A}
52 cd "${S}"
53
54 # We need to be able to include directories rather than just plain
55 # files in menu [include] items. This patch will allow us to do clever
56 # things with style ebuilds.
57 epatch "${FILESDIR}/${PV}/gentoo_style_location.patch"
58
59 # A couple menu generation fixes, #199437 and #199439
60 epatch "${FILESDIR}/${PV}/generate-menu.patch"
61
62 # Add in the Gentoo -r number to fluxbox -version output.
63 if [[ "${PR}" == "r0" ]] ; then
64 suffix="gentoo"
65 else
66 suffix="gentoo-${PR}"
67 fi
68 sed -i \
69 -e "s~\(__fluxbox_version .@VERSION@\)~\1-${suffix}~" \
70 version.h.in || die "version sed failed"
71 }
72
73 src_compile() {
74 econf \
75 $(use_enable nls) \
76 $(use_enable xinerama) \
77 $(use_enable truetype xft) \
78 $(use_enable kde) \
79 $(use_enable gnome) \
80 $(use_enable imlib imlib2) \
81 $(use_enable slit ) \
82 $(use_enable toolbar ) \
83 --sysconfdir=/etc/X11/${PN} \
84 --with-style=/usr/share/fluxbox/styles/Emerge \
85 ${myconf} || die "configure failed"
86
87 emake || die "make failed"
88
89 ebegin "Creating a menu file (may take a while)"
90 mkdir -p "${T}/home/.fluxbox" || die "mkdir home failed"
91 MENUFILENAME="${S}/data/menu" MENUTITLE="Fluxbox ${PV}" \
92 CHECKINIT="no. go away." HOME="${T}/home" \
93 "${S}/util/fluxbox-generate_menu" -is -ds \
94 || die "menu generation failed"
95 eend $?
96 }
97
98 src_install() {
99 dodir /usr/share/fluxbox
100 emake DESTDIR="${D}" install || die "install failed"
101 dodoc README* AUTHORS TODO* ChangeLog NEWS
102
103 dodir /usr/share/xsessions
104 insinto /usr/share/xsessions
105 doins "${FILESDIR}/${PN}.desktop"
106
107 exeinto /etc/X11/Sessions
108 newexe "${FILESDIR}/${PN}.xsession" fluxbox
109
110 dodir /usr/share/fluxbox/menu.d
111
112 # Styles menu framework
113 dodir /usr/share/fluxbox/menu.d/styles
114 insinto /usr/share/fluxbox/menu.d/styles
115 doins "${FILESDIR}/styles-menu-fluxbox" || die
116 doins "${FILESDIR}/styles-menu-commonbox" || die
117 doins "${FILESDIR}/styles-menu-user" || die
118 }

  ViewVC Help
Powered by ViewVC 1.1.20