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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Mon Jan 24 18:50:37 2005 UTC (13 years, 6 months ago) by ciaranm
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Killed 0.9.12, added a 0.9.12-r1 which hopefully doesn't have nasty vanishing window bugs. Patches: vanishing window on untab fix (upstream), 64-bit fixes (upstream), fix menu backups (upstream), menu locations (Gentoo), icon locations (Gentoo), extra menu contents (Gentoo).
(Portage version: 2.0.51-r14)

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.12.ebuild,v 1.3 2005/01/19 10:33:43 ciaranm Exp $
4
5 inherit eutils
6
7 IUSE="nls xinerama truetype kde gnome imlib bigger-fonts disablexmb"
8
9 DESCRIPTION="Fluxbox is an X11 window manager featuring tabs and an iconbar"
10 # SourceForge mirrors are broken. Yay!
11 # SRC_URI="mirror://sourceforge/fluxbox/${P}.tar.bz2"
12 SRC_URI="http://www.fluxbox.org/download/${P}.tar.bz2"
13 HOMEPAGE="http://www.fluxbox.org"
14
15 # Please note that USE="kde gnome" simply adds support for the respective
16 # protocols, and does not depend on external libraries. They do, however,
17 # make the binary a fair bit bigger, so we don't want to turn them on unless
18 # the user actually wants them.
19
20 RDEPEND="virtual/x11
21 truetype? ( media-libs/freetype )
22 nls? ( sys-devel/gettext )
23 imlib? ( >=media-libs/imlib2-1.2.0 )
24 !<x11-themes/fluxbox-styles-fluxmod-20040809-r1"
25 DEPEND=">=sys-devel/autoconf-2.52
26 ${RDEPEND}"
27 PROVIDE="virtual/blackbox"
28
29 SLOT="0"
30 LICENSE="MIT"
31 KEYWORDS="~x86 ~ppc ~sparc ~amd64 ~alpha ~hppa ~ia64 ~mips ~ppc64 ~ppc-macos"
32
33 src_unpack() {
34 unpack ${A}
35 cd ${S}
36
37 # We need to be able to include directories rather than just plain
38 # files in menu [include] items. This patch will allow us to do clever
39 # things with style ebuilds.
40 epatch ${FILESDIR}/${PV}/${P}-our-styles-go-over-here.patch
41
42 # Add in the Gentoo -r number to fluxbox -version output.
43 if [[ "${PR}" == "r0" ]] ; then
44 suffix="gentoo"
45 else
46 suffix="gentoo-${PR}"
47 fi
48 sed -i \
49 -e "s~\(__fluxbox_version .@VERSION@\)~\1-${suffix}~" \
50 version.h.in || die "version sed failed"
51
52 # Use a less fugly default theme
53 sed -i \
54 -e 's~styles/Meta~styles/Emerge~' data/init.in
55
56 # Turn on aa by default if possible. Fluxbox fonts are really frickin'
57 # broken, we'll do what we can to make it less painful by default.
58 use truetype 1>/dev/null && \
59 echo "session.screen0.antialias: true" >> data/init.in
60
61 ebegin "Fixing style fonts..."
62 for style in data/styles/* ; do
63 [[ -d "${style}" ]] && style=${style}/theme.cfg
64 [[ -f "${style}" ]] || die "waah! ${style} doesn't exist"
65
66 # Make fonts more readable if we use bigger-fonts
67 if use bigger-fonts 1>/dev/null ; then
68 sed -i \
69 -e 's~\([fF]ont:[ \t]\+[a-zA-Z]\+-\)[789]~\110~' \
70 ${style} || die "sed voodoo failed (insufficient goats?)"
71 fi
72
73 # We don't have a reliable sans font alias, change it to lucidasans.
74 # That might not work either, but it's more likely...
75 sed -i \
76 -e 's~\([ \t:]\)sans\(-\|$\)~\1lucidasans\2~' \
77 ${style} || die "sed voodoo failed (not a full moon)"
78 done
79 eend $?
80 }
81
82 src_compile() {
83 export PKG_CONFIG_PATH=/usr/X11R6/lib/pkgconfig:/usr/lib/pkgconfig
84
85 econf \
86 $(use_enable nls) \
87 $(use_enable xinerama) \
88 $(use_enable truetype xft) \
89 $(use_enable kde) \
90 $(use_enable gnome) \
91 $(use_enable !disablexmb xmb) \
92 $(use_enable imlib imlib2) \
93 --sysconfdir=/etc/X11/${PN} \
94 ${myconf} || die "configure failed"
95
96 emake || die "make failed"
97 }
98
99 src_install() {
100 dodir /usr/share/fluxbox
101 make DESTDIR=${D} install || die "make install failed"
102 dodoc README* AUTHORS TODO* COPYING ChangeLog NEWS
103
104 dodir /usr/share/xsessions
105 insinto /usr/share/xsessions
106 doins ${FILESDIR}/${PN}.desktop
107
108 dodir /etc/X11/Sessions
109 echo "/usr/bin/startfluxbox" > ${D}/etc/X11/Sessions/fluxbox
110 fperms a+x /etc/X11/Sessions/fluxbox
111
112 dodir /usr/share/fluxbox/menu.d
113
114 # Styles menu framework
115 dodir /usr/share/fluxbox/menu.d/styles
116 insinto /usr/share/fluxbox/menu.d/styles
117 doins ${FILESDIR}/0.9.10/styles-menu-fluxbox || die
118 doins ${FILESDIR}/0.9.10/styles-menu-commonbox || die
119 doins ${FILESDIR}/0.9.10/styles-menu-user || die
120 }
121
122 pkg_postinst() {
123 einfo "As of fluxbox 0.9.10-r3, we are using an improved system for"
124 einfo "handling styles in the menu. To take advantage of this, use"
125 einfo "the following for your menu styles section:"
126 einfo " "
127 einfo " [submenu] (Styles) {Select a Style}"
128 einfo " [include] (/usr/share/fluxbox/menu.d/styles/)"
129 einfo " [end]"
130 einfo " "
131 einfo "If you use fluxbox-generate_menu or the default global fluxbox"
132 einfo "menu file, this will already be present."
133 einfo " "
134 if has_version '<x11-wm/fluxbox-0.9.10-r3' ; then
135 ewarn "You must restart fluxbox before using the [include] /directory/"
136 ewarn "feature if you are upgrading from an older fluxbox!"
137 ewarn " "
138 fi
139 einfo "If you experience font problems, or if fluxbox takes a very"
140 einfo "long time to start up, please try the 'disablexmb' USE flag."
141 einfo "If that fails, please report bugs upstream."
142 epause
143 }

  ViewVC Help
Powered by ViewVC 1.1.20