/[gentoo-x86]/x11-wm/wm2/wm2-4-r1.ebuild
Gentoo

Contents of /x11-wm/wm2/wm2-4-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sun Dec 18 19:46:08 2011 UTC (4 years, 9 months ago) by phajdan.jr
Branch: MAIN
Changes since 1.2: +2 -2 lines
x86 stable wrt bug #393817

(Portage version: 2.1.10.11/cvs/Linux i686)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/x11-wm/wm2/wm2-4-r1.ebuild,v 1.2 2011/12/16 19:36:03 ago Exp $
4
5 inherit eutils toolchain-funcs
6
7 DESCRIPTION="Small, unconfigurable window manager"
8 HOMEPAGE="http://www.all-day-breakfast.com/wm2/"
9 SRC_URI="http://www.all-day-breakfast.com/wm2/${P}.tar.gz"
10
11 RDEPEND="x11-libs/libXmu"
12 DEPEND="${RDEPEND}
13 x11-proto/xextproto"
14
15 SLOT="0"
16 LICENSE="freedist"
17 KEYWORDS="amd64 ~ppc x86"
18 IUSE=""
19
20 src_unpack() {
21 unpack ${A}
22
23 cd "${S}"
24 epatch "${FILESDIR}/${P}-gentoo.patch"
25 sed -e "s/CFLAGS/CXXFLAGS/" \
26 -e "s/\$(CCC) -o/\$(CCC) \$(LDFLAGS) -o/" \
27 -i Makefile || die #334681
28
29 sed 's/^#//' Config.h > wm2.conf
30 if [ -e "/etc/wm2.conf" ]; then
31 echo "#undef _CONFIG_H_" >> Config.h
32 awk '/^[^/]/{print "#" $0}' /etc/wm2.conf >> Config.h
33 fi
34 }
35
36 src_compile() {
37 emake CXXFLAGS="${CXXFLAGS}" CCC="$(tc-getCXX)" \
38 LDFLAGS="${LDFLAGS}" || die
39 }
40
41 src_install() {
42 dobin wm2 || die
43 insinto /etc
44 doins wm2.conf || die
45 dodoc README || die
46 }
47
48 pkg_postinst() {
49 echo
50 elog "wm2 is unconfigurable after you have installed. If you want to"
51 elog "change settings of wm2, please have a look at /etc/wm2.conf"
52 elog "and rewrite it, then emerge wm2 again (wm2 ebuild uses settings"
53 elog "from that file automatically). If you think wm2 lacks some important"
54 elog "features that you want to use (such as background pixmaps),"
55 elog "consider using wmx, written by the same author."
56 echo
57 }

  ViewVC Help
Powered by ViewVC 1.1.20