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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (show annotations) (download)
Mon Jan 28 14:45:11 2008 UTC (10 years, 5 months ago) by lack
Branch: MAIN
CVS Tags: HEAD
Changes since 1.10: +1 -1 lines
FILE REMOVED
Version cleanup, also fixes bug 207504
(Portage version: 2.1.4_rc14)

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_p4983.ebuild,v 1.10 2007/10/11 18:19:43 lack Exp $
4
5 inherit eutils autotools versionator
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
11 MY_P="fluxbox-1.0rc3"
12 MY_PBASE=$(get_version_component_range 1-3)
13 MY_SVN=$(get_version_component_range 4)
14
15 S="${WORKDIR}/${MY_P}"
16 SRC_URI="mirror://sourceforge/fluxbox/${MY_P}.tar.bz2
17 mirror://gentoo/${P}.patch.gz"
18 HOMEPAGE="http://www.fluxbox.org"
19
20 # Please note that USE="kde gnome" simply adds support for the respective
21 # protocols, and does not depend on external libraries. They do, however,
22 # make the binary a fair bit bigger, so we don't want to turn them on unless
23 # the user actually wants them.
24
25 RDEPEND="x11-libs/libXpm
26 x11-libs/libXrandr
27 xinerama? ( x11-libs/libXinerama )
28 x11-apps/xmessage
29 virtual/xft
30 truetype? ( media-libs/freetype )
31 imlib? ( >=media-libs/imlib2-1.2.0 )
32 !<x11-themes/fluxbox-styles-fluxmod-20040809-r1
33 !<=x11-misc/fluxconf-0.9.9"
34 DEPEND=">=sys-devel/autoconf-2.52
35 nls? ( sys-devel/gettext )
36 x11-proto/xextproto
37 xinerama? ( x11-proto/xineramaproto )
38 ${RDEPEND}"
39 PROVIDE="virtual/blackbox"
40
41 SLOT="0"
42 LICENSE="MIT"
43 KEYWORDS="alpha amd64 hppa ia64 ~mips ppc ppc64 sparc x86 ~x86-fbsd"
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 epatch "${WORKDIR}/${P}.patch"
61
62 # We need to be able to include directories rather than just plain
63 # files in menu [include] items. This patch will allow us to do clever
64 # things with style ebuilds.
65 epatch "${FILESDIR}/${MY_PBASE}/gentoo_style_location.patch"
66
67 # Add in the Gentoo -r number to fluxbox -version output.
68 if [[ "${PR}" == "r0" ]] ; then
69 suffix="${MY_SVN}-gentoo"
70 else
71 suffix="${MY_SVN}-gentoo-${PR}"
72 fi
73 sed -i \
74 -e "s~\(__fluxbox_version .@VERSION@\)~\1-${suffix}~" \
75 version.h.in || die "version sed failed"
76
77 # Fix broken styles
78 ebegin "Fixing backgrounds..."
79 for style in "${S}/data/styles/"* ; do
80 [[ -f "${style}" ]] || continue
81 sed -i -e 's,\([^f]\)bsetroot,\1fbsetroot,' "${style}" \
82 || die "styles sed failed on ${style}"
83 done
84 eend 0
85 }
86
87 src_compile() {
88 export PKG_CONFIG_PATH=/usr/X11R6/lib/pkgconfig:/usr/lib/pkgconfig
89
90 eautoreconf
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 }

  ViewVC Help
Powered by ViewVC 1.1.20