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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Thu Apr 19 19:35:14 2007 UTC (11 years, 1 month ago) by lack
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Version cleanup
(Portage version: 2.1.2.4)

1 # Copyright 1999-2007 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.15.1.ebuild,v 1.2 2007/04/19 18:48:03 grobian Exp $
4
5 inherit eutils
6
7 IUSE="nls xinerama truetype kde gnome imlib disableslit"
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="|| ( ( x11-libs/libXpm
19 x11-libs/libXrandr
20 xinerama? ( x11-libs/libXinerama )
21 )
22 virtual/x11
23 )
24 virtual/xft
25 truetype? ( media-libs/freetype )
26 imlib? ( >=media-libs/imlib2-1.2.0 )
27 !<x11-themes/fluxbox-styles-fluxmod-20040809-r1"
28 DEPEND=">=sys-devel/autoconf-2.52
29 nls? ( sys-devel/gettext )
30 || ( ( x11-proto/xextproto
31 xinerama? ( x11-proto/xineramaproto )
32 )
33 virtual/x11
34 )
35 ${RDEPEND}"
36 PROVIDE="virtual/blackbox"
37
38 SLOT="0"
39 LICENSE="MIT"
40 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
41
42 pkg_setup() {
43 if use imlib ; then
44 if ! built_with_use media-libs/imlib2 X ; then
45 eerror "To build fluxbox with imlib in USE, you need an X enabled"
46 eerror "media-libs/imlib2 . Either recompile imlib2 with the X"
47 eerror "USE flag turned on or disable the imlib USE flag for fluxbox."
48 die "USE=imlib requires imlib2 with USE=X"
49 fi
50 fi
51 }
52
53 src_unpack() {
54 unpack ${A}
55 cd "${S}"
56
57 # We need to be able to include directories rather than just plain
58 # files in menu [include] items. This patch will allow us to do clever
59 # things with style ebuilds.
60 epatch "${FILESDIR}/0.9.13/${PN}-0.9.13-our-styles-go-over-here.patch"
61 epatch "${FILESDIR}/0.9.15/129065-fix-doubleclick-64bit.patch"
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 # Turn on aa by default if possible. Fluxbox fonts are really frickin'
73 # broken, we'll do what we can to make it less painful by default.
74 use truetype 1>/dev/null && \
75 echo "session.screen0.antialias: true" >> data/init.in
76
77 # Fix broken styles
78 ebegin "Fixing backgrounds..."
79 for style in "${S}/data/styles/"* ; do
80 [[ -f "${style}" ]] || continue
81 sed -i -e 's,\([^f]\)bsetroot,\1fbsetroot,' "${style}" \
82 || die "styles sed failed on ${style}"
83 done
84 eend 0
85 }
86
87 src_compile() {
88 export PKG_CONFIG_PATH=/usr/X11R6/lib/pkgconfig:/usr/lib/pkgconfig
89
90 econf \
91 $(use_enable nls) \
92 $(use_enable xinerama) \
93 $(use_enable truetype xft) \
94 $(use_enable kde) \
95 $(use_enable gnome) \
96 $(use_enable imlib imlib2) \
97 $(use_enable !disableslit slit ) \
98 --sysconfdir=/etc/X11/${PN} \
99 --with-style=/usr/share/fluxbox/styles/Emerge \
100 ${myconf} || die "configure failed"
101
102 emake || die "make failed"
103
104 ebegin "Creating a menu file (may take a while)"
105 mkdir -p "${T}/home/.fluxbox" || die "mkdir home failed"
106 MENUFILENAME="${S}/data/menu" MENUTITLE="Fluxbox ${PV}" \
107 CHECKINIT="no. go away." HOME="${T}/home" \
108 "${S}/util/fluxbox-generate_menu" -is -ds \
109 || die "menu generation failed"
110 eend $?
111 }
112
113 src_install() {
114 dodir /usr/share/fluxbox
115 make DESTDIR="${D}" install || die "make install failed"
116 dodoc README* AUTHORS TODO* ChangeLog NEWS
117
118 dodir /usr/share/xsessions
119 insinto /usr/share/xsessions
120 doins "${FILESDIR}/${PN}.desktop"
121
122 dodir /etc/X11/Sessions
123 echo "/usr/bin/startfluxbox" > "${D}/etc/X11/Sessions/fluxbox"
124 fperms a+x /etc/X11/Sessions/fluxbox
125
126 dodir /usr/share/fluxbox/menu.d
127
128 # Styles menu framework
129 dodir /usr/share/fluxbox/menu.d/styles
130 insinto /usr/share/fluxbox/menu.d/styles
131 doins "${FILESDIR}/styles-menu-fluxbox" || die
132 doins "${FILESDIR}/styles-menu-commonbox" || die
133 doins "${FILESDIR}/styles-menu-user" || die
134 }
135
136 pkg_postinst() {
137 einfo "As of fluxbox 0.9.10-r3, we are using an improved layout for"
138 einfo "styles to avoid problems with huge menus. Use the following"
139 einfo "in the menu for your menu styles section:"
140 einfo
141 einfo " [submenu] (Styles) {Select a Style}"
142 einfo " [include] (/usr/share/fluxbox/menu.d/styles/)"
143 einfo " [end]"
144 einfo
145 einfo "If you use fluxbox-generate_menu or the default global fluxbox"
146 einfo "menu file, this will already be present."
147 einfo
148 ewarn "Note that menumaker and similar utilities do *not* support"
149 ewarn "this out of the box."
150 einfo
151 einfo "As of fluxbox 0.9.14_pre1, Fluxbox uses XFT for font rendering. If"
152 einfo "you experience font problems, try tinkering with your theme files."
153 einfo "You can check the validity of a font name using:"
154 einfo
155 einfo " XFT_DEBUG=1 xfd -fa 'whatever-12:bold'"
156 einfo
157 einfo "The slow startup issues in previous versions should now be fixed;"
158 einfo "if you still encounter problems, please report bugs upstream."
159 epause
160 }
161

  ViewVC Help
Powered by ViewVC 1.1.20