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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.15 - (show annotations) (download)
Wed May 6 12:45:37 2015 UTC (3 years, 4 months ago) by titanofold
Branch: MAIN
CVS Tags: HEAD
Changes since 1.14: +6 -5 lines
Fix bug 509014.

(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key D1BBFDA0)

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

  ViewVC Help
Powered by ViewVC 1.1.20