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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sun Mar 22 12:06:22 2015 UTC (3 years, 4 months ago) by titanofold
Branch: MAIN
CVS Tags: HEAD
Version bump fixes bug 539348. Thanks Daniel Campbell.

(Portage version: 2.2.14/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 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.xz"
13 HOMEPAGE="http://www.fluxbox.org"
14 SLOT="0"
15 LICENSE="MIT"
16 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux"
17
18 RDEPEND="
19 !!<=x11-misc/fbdesk-1.2.1
20 !!<=x11-misc/fluxconf-0.9.9
21 !!<x11-themes/fluxbox-styles-fluxmod-20040809-r1
22 bidi? ( >=dev-libs/fribidi-0.19.2 )
23 imlib? ( >=media-libs/imlib2-1.2.0[X] )
24 truetype? ( media-libs/freetype )
25 vim-syntax? ( app-vim/fluxbox-syntax )
26 x11-libs/libXext
27 x11-libs/libXft
28 x11-libs/libXpm
29 x11-libs/libXrandr
30 x11-libs/libXrender
31 xinerama? ( x11-libs/libXinerama )
32 || ( x11-misc/gxmessage x11-apps/xmessage )
33 "
34 DEPEND="
35 ${RDEPEND}
36 bidi? ( virtual/pkgconfig )
37 nls? ( sys-devel/gettext )
38 x11-proto/xextproto
39 "
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 use bidi && append-cppflags "$($(tc-getPKG_CONFIG) --cflags fribidi)"
63
64 econf ${myconf} \
65 $(use_enable bidi fribidi ) \
66 $(use_enable imlib imlib2) \
67 $(use_enable nls) \
68 $(use_enable slit ) \
69 $(use_enable toolbar ) \
70 $(use_enable truetype xft) \
71 $(use_enable xinerama) \
72 --sysconfdir="${EPREFIX}"/etc/X11/${PN} \
73 --with-style="${EPREFIX}"/usr/share/fluxbox/styles/Emerge
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 # Call fluxbox-generate_menu through bash since it lacks +x
82 # chmod 744 may be an equal fix
83 MENUFILENAME="${S}/data/menu" MENUTITLE="Fluxbox ${PV}" \
84 CHECKINIT="no. go away." HOME="${T}/home" \
85 bash "${S}/util/fluxbox-generate_menu" -is -ds \
86 || die "menu generation failed"
87 eend $?
88 }
89
90 src_install() {
91 emake DESTDIR="${D}" STRIP="" install
92 dodoc README* AUTHORS TODO* ChangeLog NEWS
93
94 # Install the generated menu
95 insinto /usr/share/fluxbox
96 doins data/menu
97
98 insinto /usr/share/xsessions
99 doins "${FILESDIR}"/${PN}.desktop
100
101 exeinto /etc/X11/Sessions
102 newexe "${FILESDIR}"/${PN}.xsession fluxbox
103
104 # Styles menu framework
105 insinto /usr/share/fluxbox/menu.d/styles
106 doins "${FILESDIR}"/styles-menu-fluxbox
107 doins "${FILESDIR}"/styles-menu-commonbox
108 doins "${FILESDIR}"/styles-menu-user
109 }

  ViewVC Help
Powered by ViewVC 1.1.20