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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Mon Feb 6 00:27:55 2006 UTC (11 years, 8 months ago) by ciaranm
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +1 -1 lines
FILE REMOVED
Tidy up
(Portage version: 2.1_pre4-r1 Can't sleep, clown will eat me)

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-r1.ebuild,v 1.9 2005/07/09 17:08:12 swegener 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 # menu generator things
43 epatch ${FILESDIR}/${PV}/${P}-you-got-mail.patch
44 epatch ${FILESDIR}/${PV}/${P}-sweet-sweet-music.patch
45 epatch ${FILESDIR}/${PV}/${P}-vi-sucks-use-vim.patch
46 epatch ${FILESDIR}/${PV}/${P}-pretty-eye-candy.patch
47
48 # fixes
49 epatch ${FILESDIR}/${PV}/${P}-3853-zero-is-not-null.patch
50 epatch ${FILESDIR}/${PV}/${P}-3853-zero-is-still-not-null.patch
51 epatch ${FILESDIR}/${PV}/${P}-3856-hide-and-seek-is-bad.patch
52 epatch ${FILESDIR}/${PV}/${P}-3860-menu-backups.patch
53
54 # Add in the Gentoo -r number to fluxbox -version output.
55 if [[ "${PR}" == "r0" ]] ; then
56 suffix="gentoo"
57 else
58 suffix="gentoo-${PR}"
59 fi
60 sed -i \
61 -e "s~\(__fluxbox_version .@VERSION@\)~\1-${suffix}~" \
62 version.h.in || die "version sed failed"
63
64 # Use a less fugly default theme
65 sed -i \
66 -e 's~styles/Meta~styles/Emerge~' data/init.in
67
68 # Turn on aa by default if possible. Fluxbox fonts are really frickin'
69 # broken, we'll do what we can to make it less painful by default.
70 use truetype 1>/dev/null && \
71 echo "session.screen0.antialias: true" >> data/init.in
72
73 ebegin "Fixing style fonts..."
74 for style in data/styles/* ; do
75 [[ -d "${style}" ]] && style=${style}/theme.cfg
76 [[ -f "${style}" ]] || die "waah! ${style} doesn't exist"
77
78 # Make fonts more readable if we use bigger-fonts
79 if use bigger-fonts 1>/dev/null ; then
80 sed -i \
81 -e 's~\([fF]ont:[ \t]\+[a-zA-Z]\+-\)[789]~\110~' \
82 ${style} || die "sed voodoo failed (insufficient goats?)"
83 fi
84
85 # We don't have a reliable sans font alias, change it to lucidasans.
86 # That might not work either, but it's more likely...
87 sed -i \
88 -e 's~\([ \t:]\)sans\(-\|$\)~\1lucidasans\2~' \
89 ${style} || die "sed voodoo failed (not a full moon)"
90 done
91 eend $?
92 }
93
94 src_compile() {
95 export PKG_CONFIG_PATH=/usr/X11R6/lib/pkgconfig:/usr/lib/pkgconfig
96
97 econf \
98 $(use_enable nls) \
99 $(use_enable xinerama) \
100 $(use_enable truetype xft) \
101 $(use_enable kde) \
102 $(use_enable gnome) \
103 $(use_enable !disablexmb xmb) \
104 $(use_enable imlib imlib2) \
105 --sysconfdir=/etc/X11/${PN} \
106 ${myconf} || die "configure failed"
107
108 emake || die "make failed"
109 }
110
111 src_install() {
112 dodir /usr/share/fluxbox
113 make DESTDIR=${D} install || die "make install failed"
114 dodoc README* AUTHORS TODO* COPYING ChangeLog NEWS
115
116 dodir /usr/share/xsessions
117 insinto /usr/share/xsessions
118 doins ${FILESDIR}/${PN}.desktop
119
120 dodir /etc/X11/Sessions
121 echo "/usr/bin/startfluxbox" > ${D}/etc/X11/Sessions/fluxbox
122 fperms a+x /etc/X11/Sessions/fluxbox
123
124 dodir /usr/share/fluxbox/menu.d
125
126 # Styles menu framework
127 dodir /usr/share/fluxbox/menu.d/styles
128 insinto /usr/share/fluxbox/menu.d/styles
129 doins ${FILESDIR}/0.9.10/styles-menu-fluxbox || die
130 doins ${FILESDIR}/0.9.10/styles-menu-commonbox || die
131 doins ${FILESDIR}/0.9.10/styles-menu-user || die
132 }
133
134 pkg_postinst() {
135 einfo "As of fluxbox 0.9.10-r3, we are using an improved system for"
136 einfo "handling styles in the menu. To take advantage of this, use"
137 einfo "the following for your menu styles section:"
138 einfo
139 einfo " [submenu] (Styles) {Select a Style}"
140 einfo " [include] (/usr/share/fluxbox/menu.d/styles/)"
141 einfo " [end]"
142 einfo
143 einfo "If you use fluxbox-generate_menu or the default global fluxbox"
144 einfo "menu file, this will already be present."
145 einfo
146 if has_version '<x11-wm/fluxbox-0.9.10-r3' ; then
147 ewarn "You must restart fluxbox before using the [include] /directory/"
148 ewarn "feature if you are upgrading from an older fluxbox!"
149 ewarn
150 fi
151 einfo "If you experience font problems, or if fluxbox takes a very"
152 einfo "long time to start up, please try the 'disablexmb' USE flag."
153 einfo "If that fails, please report bugs upstream."
154 epause
155 }

  ViewVC Help
Powered by ViewVC 1.1.20