/[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.5 - (show annotations) (download)
Thu May 14 07:48:10 2015 UTC (3 years, 7 months ago) by mr_bones_
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +14 -14 lines
EAPI=5

(Portage version: 2.2.18/cvs/Linux x86_64, unsigned Manifest commit)

1 # Copyright 1999-2015 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.4 2014/08/09 12:05:06 ago Exp $
4
5 EAPI=5
6 inherit eutils toolchain-funcs
7
8 DESCRIPTION="Small, unconfigurable window manager"
9 HOMEPAGE="http://www.all-day-breakfast.com/wm2/"
10 SRC_URI="http://www.all-day-breakfast.com/wm2/${P}.tar.gz"
11
12 SLOT="0"
13 LICENSE="freedist"
14 KEYWORDS="amd64 ppc x86"
15 IUSE=""
16
17 RDEPEND="x11-libs/libXmu"
18 DEPEND="${RDEPEND}
19 x11-proto/xextproto"
20
21 src_prepare() {
22 epatch "${FILESDIR}/${P}-gentoo.patch"
23 sed -e "s/CFLAGS/CXXFLAGS/" \
24 -e "s/\$(CCC) -o/\$(CCC) \$(LDFLAGS) -o/" \
25 -i Makefile || die #334681
26
27 sed 's/^#//' Config.h > wm2.conf
28 if [ -e "/etc/wm2.conf" ]; then
29 echo "#undef _CONFIG_H_" >> Config.h
30 awk '/^[^/]/{print "#" $0}' /etc/wm2.conf >> Config.h
31 fi
32 }
33
34 src_compile() {
35 emake \
36 CXXFLAGS="${CXXFLAGS}" \
37 CCC="$(tc-getCXX)" \
38 LDFLAGS="${LDFLAGS}"
39 }
40
41 src_install() {
42 dobin wm2
43 insinto /etc
44 doins wm2.conf
45 dodoc README
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