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

Contents of /x11-wm/fluxbox/fluxbox-1.0_rc1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.20