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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Fri Sep 23 01:40:02 2005 UTC (12 years, 10 months ago) by ciaranm
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Fix style file backgrounds, bug #106074
(Portage version: 2.0.52-r1 cut-price flea-ridden swamp edition)

1 # Copyright 1999-2005 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/x11-wm/fluxbox/fluxbox-0.9.14.ebuild,v 1.1 2005/09/15 01:26:01 ciaranm Exp $
4
5 inherit eutils
6
7 IUSE="nls xinerama truetype kde gnome imlib"
8
9 DESCRIPTION="Fluxbox is an X11 window manager featuring tabs and an iconbar"
10 SRC_URI="mirror://sourceforge/fluxbox/${P}.tar.bz2"
11 HOMEPAGE="http://www.fluxbox.org"
12
13 # Please note that USE="kde gnome" simply adds support for the respective
14 # protocols, and does not depend on external libraries. They do, however,
15 # make the binary a fair bit bigger, so we don't want to turn them on unless
16 # the user actually wants them.
17
18 RDEPEND="virtual/x11
19 truetype? ( media-libs/freetype )
20 nls? ( sys-devel/gettext )
21 imlib? ( >=media-libs/imlib2-1.2.0 )
22 !<x11-themes/fluxbox-styles-fluxmod-20040809-r1"
23 DEPEND=">=sys-devel/autoconf-2.52
24 ${RDEPEND}"
25 PROVIDE="virtual/blackbox"
26
27 SLOT="0"
28 LICENSE="MIT"
29 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc-macos ~ppc64 ~sparc ~x86"
30
31 src_unpack() {
32 unpack ${A}
33 cd "${S}"
34
35 # We need to be able to include directories rather than just plain
36 # files in menu [include] items. This patch will allow us to do clever
37 # things with style ebuilds.
38 epatch "${FILESDIR}/0.9.13/${PN}-0.9.13-our-styles-go-over-here.patch"
39
40 # Add in the Gentoo -r number to fluxbox -version output.
41 if [[ "${PR}" == "r0" ]] ; then
42 suffix="gentoo"
43 else
44 suffix="gentoo-${PR}"
45 fi
46 sed -i \
47 -e "s~\(__fluxbox_version .@VERSION@\)~\1-${suffix}~" \
48 version.h.in || die "version sed failed"
49
50 # Turn on aa by default if possible. Fluxbox fonts are really frickin'
51 # broken, we'll do what we can to make it less painful by default.
52 use truetype 1>/dev/null && \
53 echo "session.screen0.antialias: true" >> data/init.in
54 }
55
56 src_compile() {
57 export PKG_CONFIG_PATH=/usr/X11R6/lib/pkgconfig:/usr/lib/pkgconfig
58
59 econf \
60 $(use_enable nls) \
61 $(use_enable xinerama) \
62 $(use_enable truetype xft) \
63 $(use_enable kde) \
64 $(use_enable gnome) \
65 $(use_enable imlib imlib2) \
66 --sysconfdir=/etc/X11/${PN} \
67 --with-style=/usr/share/fluxbox/styles/Emerge \
68 ${myconf} || die "configure failed"
69
70 emake || die "make failed"
71
72 ebegin "Creating a menu file (may take a while)"
73 mkdir -p "${T}/home/.fluxbox" || die "mkdir home failed"
74 MENUFILENAME="${S}/data/menu" MENUTITLE="Fluxbox ${PV}" \
75 CHECKINIT="no. go away." HOME="${T}/home" \
76 "${S}/util/fluxbox-generate_menu" -is -ds \
77 || die "menu generation failed"
78 eend $?
79 }
80
81 src_install() {
82 dodir /usr/share/fluxbox
83 make DESTDIR="${D}" install || die "make install failed"
84 dodoc README* AUTHORS TODO* ChangeLog NEWS
85
86 dodir /usr/share/xsessions
87 insinto /usr/share/xsessions
88 doins "${FILESDIR}/${PN}.desktop"
89
90 dodir /etc/X11/Sessions
91 echo "/usr/bin/startfluxbox" > "${D}/etc/X11/Sessions/fluxbox"
92 fperms a+x /etc/X11/Sessions/fluxbox
93
94 dodir /usr/share/fluxbox/menu.d
95
96 # Styles menu framework
97 dodir /usr/share/fluxbox/menu.d/styles
98 insinto /usr/share/fluxbox/menu.d/styles
99 doins "${FILESDIR}/0.9.10/styles-menu-fluxbox" || die
100 doins "${FILESDIR}/0.9.10/styles-menu-commonbox" || die
101 doins "${FILESDIR}/0.9.10/styles-menu-user" || die
102 }
103
104 pkg_postinst() {
105 einfo "As of fluxbox 0.9.10-r3, we are using an improved layout for"
106 einfo "styles to avoid problems with huge menus. Use the following"
107 einfo "in the menu for your menu styles section:"
108 einfo
109 einfo " [submenu] (Styles) {Select a Style}"
110 einfo " [include] (/usr/share/fluxbox/menu.d/styles/)"
111 einfo " [end]"
112 einfo
113 einfo "If you use fluxbox-generate_menu or the default global fluxbox"
114 einfo "menu file, this will already be present."
115 einfo
116 ewarn "Note that menumaker and similar utilities do *not* support"
117 ewarn "this out of the box."
118 einfo
119 einfo "As of fluxbox 0.9.14_pre1, Fluxbox uses XFT for font rendering. If"
120 einfo "you experience font problems, try tinkering with your theme files."
121 einfo "You can check the validity of a font name using:"
122 einfo
123 einfo " XFT_DEBUG=1 xfd -fa 'whatever-12:bold'"
124 einfo
125 einfo "The slow startup issues in previous versions should now be fixed;"
126 einfo "if you still encounter problems, please report bugs upstream."
127 epause
128 }
129

  ViewVC Help
Powered by ViewVC 1.1.20