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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sun Jun 30 14:07:11 2013 UTC (4 years, 3 months ago) by xarthisius
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Drop old, obsoletes bug #464898 by Vicente Olivert Riera <vincent@gentoo.org>

(Portage version: 2.2.0_alpha179/cvs/Linux x86_64, signed Manifest commit with key 895192F9)

1 # Copyright 1999-2013 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.3.ebuild,v 1.1 2013/01/08 21:32:50 lack Exp $
4
5 EAPI=4
6 inherit eutils flag-o-matic toolchain-funcs prefix
7
8 IUSE="nls xinerama bidi +truetype +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.lzma"
13 HOMEPAGE="http://www.fluxbox.org"
14
15 RDEPEND="x11-libs/libXpm
16 x11-libs/libXrandr
17 x11-libs/libXext
18 x11-libs/libXft
19 x11-libs/libXrender
20 || ( x11-misc/gxmessage x11-apps/xmessage )
21 xinerama? ( x11-libs/libXinerama )
22 truetype? ( media-libs/freetype )
23 bidi? ( >=dev-libs/fribidi-0.19.2 )
24 imlib? ( >=media-libs/imlib2-1.2.0[X] )
25 vim-syntax? ( app-vim/fluxbox-syntax )
26 !!<x11-themes/fluxbox-styles-fluxmod-20040809-r1
27 !!<=x11-misc/fluxconf-0.9.9
28 !!<=x11-misc/fbdesk-1.2.1"
29 DEPEND="bidi? ( virtual/pkgconfig )
30 nls? ( sys-devel/gettext )
31 x11-proto/xextproto
32 ${RDEPEND}"
33
34 SLOT="0"
35 LICENSE="MIT"
36 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux"
37
38 src_prepare() {
39 # We need to be able to include directories rather than just plain
40 # files in menu [include] items. This patch will allow us to do clever
41 # things with style ebuilds.
42 epatch "${FILESDIR}/gentoo_style_location-1.1.x.patch"
43 eprefixify util/fluxbox-generate_menu.in
44
45 epatch "${FILESDIR}"/osx-has-otool.patch
46
47 # Add in the Gentoo -r number to fluxbox -version output.
48 if [[ "${PR}" == "r0" ]] ; then
49 suffix="gentoo"
50 else
51 suffix="gentoo-${PR}"
52 fi
53 sed -i \
54 -e "s~\(__fluxbox_version .@VERSION@\)~\1-${suffix}~" \
55 version.h.in || die "version sed failed"
56 }
57
58 src_configure() {
59 use bidi && append-cppflags "$($(tc-getPKG_CONFIG) --cflags fribidi)"
60
61 econf \
62 $(use_enable nls) \
63 $(use_enable xinerama) \
64 $(use_enable truetype xft) \
65 $(use_enable imlib imlib2) \
66 $(use_enable bidi fribidi ) \
67 $(use_enable slit ) \
68 $(use_enable toolbar ) \
69 --sysconfdir="${EPREFIX}"/etc/X11/${PN} \
70 --with-style="${EPREFIX}"/usr/share/fluxbox/styles/Emerge \
71 ${myconf}
72 }
73
74 src_compile() {
75 default
76
77 ebegin "Creating a menu file (may take a while)"
78 mkdir -p "${T}/home/.fluxbox" || die "mkdir home failed"
79 MENUFILENAME="${S}/data/menu" MENUTITLE="Fluxbox ${PV}" \
80 CHECKINIT="no. go away." HOME="${T}/home" \
81 "${S}/util/fluxbox-generate_menu" -is -ds \
82 || die "menu generation failed"
83 eend $?
84 }
85
86 src_install() {
87 dodir /usr/share/fluxbox
88 emake DESTDIR="${D}" STRIP="" install
89 dodoc README* AUTHORS TODO* ChangeLog NEWS
90
91 dodir /usr/share/xsessions
92 insinto /usr/share/xsessions
93 doins "${FILESDIR}/${PN}.desktop"
94
95 exeinto /etc/X11/Sessions
96 newexe "${FILESDIR}/${PN}.xsession" fluxbox
97
98 dodir /usr/share/fluxbox/menu.d
99
100 # Styles menu framework
101 dodir /usr/share/fluxbox/menu.d/styles
102 insinto /usr/share/fluxbox/menu.d/styles
103 doins "${FILESDIR}/styles-menu-fluxbox"
104 doins "${FILESDIR}/styles-menu-commonbox"
105 doins "${FILESDIR}/styles-menu-user"
106 }

  ViewVC Help
Powered by ViewVC 1.1.20