/[gentoo-x86]/x11-wm/fluxbox/fluxbox-1.0_rc3-r1.ebuild
Gentoo

Contents of /x11-wm/fluxbox/fluxbox-1.0_rc3-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Wed Sep 5 18:04:18 2007 UTC (10 years, 11 months ago) by lack
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
Big version cleanout, and consolidated some patches
(Portage version: 2.1.3.7)

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

  ViewVC Help
Powered by ViewVC 1.1.20