/[gentoo-x86]/x11-wm/flwm/flwm-1.00-r4.ebuild
Gentoo

Contents of /x11-wm/flwm/flwm-1.00-r4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.13 - (show annotations) (download)
Wed Dec 26 13:57:47 2007 UTC (12 years, 1 month ago) by coldwind
Branch: MAIN
CVS Tags: HEAD
Changes since 1.12: +1 -1 lines
FILE REMOVED
Punt old versions.
(Portage version: 2.1.3.19)

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/flwm/flwm-1.00-r4.ebuild,v 1.12 2007/07/13 18:37:55 coldwind Exp $
4
5 inherit eutils flag-o-matic
6
7 DESCRIPTION="A lightweight window manager based on fltk"
8 HOMEPAGE="http://flwm.sourceforge.net"
9 SRC_URI="http://flwm.sourceforge.net/${P}.tgz"
10
11 SLOT="0"
12 LICENSE="GPL-2"
13 KEYWORDS="amd64 ~ppc x86"
14 IUSE="opengl"
15
16 DEPEND="=x11-libs/fltk-1.1*
17 opengl? ( virtual/opengl )"
18 RDEPEND="${DEPEND}"
19
20 #Configuration of the appearance and behavior of flwm
21 #must be done at compile time, i.e. there is
22 #no .flwmrc file or interactive configuring while
23 #running. To quote the man page, "gcc is your friend,"
24 #so this type of configuration must be done at compile
25 #time by editing the config.h file. I can't see any
26 #way to do this automagically so we'll echo a message
27 #in pkg_postinst to tell the user to 'ebuild unpack'
28 #and edit the config.h to their liking.
29
30 pkg_setup() {
31 if ! built_with_use x11-libs/fltk noxft ; then
32 eerror "${PN} requires x11-libs/fltk built without xft support."
33 eerror "Please, reinstall x11-libs/fltk with USE=\"noxft\""
34 eerror "before installing ${PN}."
35 die "fltk without noxft"
36 fi
37 }
38
39 src_unpack() {
40 unpack ${A}
41 cd "${S}"
42 epatch "${FILESDIR}/${P}-fltk1.1.patch"
43 }
44
45 src_compile() {
46 use opengl && export X_EXTRA_LIBS=-lGL
47 append-flags -I/usr/include/fltk-1.1
48 append-ldflags -L/usr/lib/fltk-1.1
49
50 econf || die "econf failed"
51 emake || die "emake failed"
52 }
53
54 src_install() {
55 doman flwm.1 || die
56 dodoc README flwm_wmconfig || die
57 dobin flwm || die
58 }
59
60 pkg_postinst() {
61 elog "Customization of behaviour and appearance of"
62 elog "flwm requires manually editing the config.h"
63 elog "source file. If you want to change the defaults,"
64 elog "do the following:"
65 elog ""
66 elog "\tebuild ${P}.ebuild unpack"
67 elog "\t${EDITOR} ${S}/config.h "
68 elog "\tebuild ${P} compile install qmerge"
69 }

  ViewVC Help
Powered by ViewVC 1.1.20