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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.20