/[gentoo-x86]/x11-wm/ratpoison/ratpoison-9999.ebuild
Gentoo

Contents of /x11-wm/ratpoison/ratpoison-9999.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Mon Oct 20 15:11:09 2014 UTC (3 years, 4 months ago) by jer
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +2 -2 lines
Remove PN from DESCRIPTION.

(Portage version: 2.2.14_rc1/cvs/Linux x86_64, signed Manifest commit with key A792A613)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/x11-wm/ratpoison/ratpoison-9999.ebuild,v 1.6 2014/09/17 09:56:39 jer Exp $
4
5 EAPI=5
6
7 inherit autotools elisp-common eutils git-r3 toolchain-funcs
8
9 DESCRIPTION="an extremely light-weight and barebones wm modelled after screen"
10 HOMEPAGE="http://www.nongnu.org/ratpoison/"
11 EGIT_REPO_URI="git://git.savannah.nongnu.org/ratpoison.git"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS=""
16 IUSE="debug emacs +history sloppy +xft"
17
18 RDEPEND="
19 emacs? ( virtual/emacs )
20 history? ( sys-libs/readline )
21 virtual/perl-Pod-Parser
22 x11-libs/libXinerama
23 x11-libs/libXtst
24 xft? ( x11-libs/libXft )
25 "
26 DEPEND="
27 ${RDEPEND}
28 app-arch/xz-utils
29 virtual/pkgconfig
30 "
31
32 SITEFILE=50ratpoison-gentoo.el
33 DOCS=( AUTHORS ChangeLog NEWS README TODO )
34
35 src_prepare() {
36 epatch "${FILESDIR}/ratpoison.el-gentoo.patch"
37 eautoreconf
38 }
39
40 src_configure() {
41 econf \
42 $(use_enable debug) \
43 $(use_enable history) \
44 $(use_with xft) \
45 --without-electric-fence
46 }
47
48 src_compile() {
49 emake CFLAGS="${CFLAGS}"
50 if use emacs; then
51 elisp-compile contrib/ratpoison.el || die "elisp-compile failed"
52 fi
53
54 if use sloppy; then
55 pushd contrib
56 $(tc-getCC) \
57 ${CFLAGS} \
58 ${LDFLAGS} \
59 -o sloppy{,.c} \
60 $( $(tc-getPKG_CONFIG) --libs x11) \
61 || die
62 fi
63 }
64
65 src_install() {
66 default
67
68 exeinto /etc/X11/Sessions
69 newexe "${FILESDIR}"/ratpoison.xsession ratpoison
70
71 insinto /usr/share/xsessions
72 doins "${FILESDIR}"/${PN}.desktop
73
74 use sloppy && dobin contrib/sloppy
75
76 docinto example
77 dodoc contrib/{genrpbindings,split.sh} \
78 doc/{ipaq.ratpoisonrc,sample.ratpoisonrc}
79
80 rm -rf "${ED}/usr/share/"{doc/ratpoison,ratpoison}
81
82 if use emacs; then
83 elisp-install ${PN} contrib/ratpoison.*
84 elisp-site-file-install "${FILESDIR}/${SITEFILE}"
85 fi
86 }
87
88 pkg_postinst() {
89 use emacs && elisp-site-regen
90 }
91
92 pkg_postrm() {
93 use emacs && elisp-site-regen
94 }

  ViewVC Help
Powered by ViewVC 1.1.20