You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
100 lines
1.8 KiB
100 lines
1.8 KiB
3 years ago
|
# Copyright 1999-2021 Gentoo Authors
|
||
11 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
8 years ago
|
EAPI=6
|
||
11 years ago
|
inherit elisp-common eutils toolchain-funcs
|
||
|
|
||
8 years ago
|
DESCRIPTION="window manager without mouse dependency"
|
||
11 years ago
|
HOMEPAGE="http://www.nongnu.org/ratpoison/"
|
||
8 years ago
|
SRC_URI="http://download.savannah.gnu.org/releases/${PN}/${P}.tar.xz"
|
||
11 years ago
|
|
||
|
LICENSE="GPL-2"
|
||
|
SLOT="0"
|
||
4 years ago
|
KEYWORDS="amd64 ~hppa ppc x86 ~amd64-linux ~x86-linux"
|
||
8 years ago
|
IUSE="debug emacs +history sloppy +xft +xrandr"
|
||
11 years ago
|
|
||
|
RDEPEND="
|
||
5 years ago
|
emacs? ( >=app-editors/emacs-23.1:* )
|
||
8 years ago
|
history? ( sys-libs/readline:= )
|
||
|
xft? ( x11-libs/libXft )
|
||
|
xrandr? ( x11-libs/libXrandr )
|
||
10 years ago
|
virtual/perl-Pod-Parser
|
||
3 years ago
|
x11-libs/libX11
|
||
11 years ago
|
x11-libs/libXtst
|
||
|
"
|
||
|
DEPEND="
|
||
|
${RDEPEND}
|
||
|
virtual/pkgconfig
|
||
6 years ago
|
x11-base/xorg-proto
|
||
11 years ago
|
"
|
||
|
|
||
|
SITEFILE=50ratpoison-gentoo.el
|
||
8 years ago
|
DOCS=(
|
||
|
AUTHORS
|
||
|
ChangeLog
|
||
|
NEWS
|
||
|
README
|
||
|
TODO
|
||
|
)
|
||
|
|
||
|
PATCHES=(
|
||
|
"${FILESDIR}"/ratpoison.el-gentoo.patch
|
||
|
)
|
||
11 years ago
|
|
||
|
src_configure() {
|
||
|
econf \
|
||
10 years ago
|
$(use_enable debug) \
|
||
10 years ago
|
$(use_enable history) \
|
||
8 years ago
|
$(use_with xft) \
|
||
|
$(use_with xrandr) \
|
||
|
--without-electric-fence
|
||
11 years ago
|
}
|
||
|
|
||
|
src_compile() {
|
||
|
emake CFLAGS="${CFLAGS}"
|
||
|
if use emacs; then
|
||
8 years ago
|
elisp-compile contrib/ratpoison.el || die
|
||
11 years ago
|
fi
|
||
|
|
||
|
if use sloppy; then
|
||
|
pushd contrib
|
||
|
$(tc-getCC) \
|
||
|
${CFLAGS} \
|
||
|
${LDFLAGS} \
|
||
|
-o sloppy{,.c} \
|
||
|
$( $(tc-getPKG_CONFIG) --libs x11) \
|
||
|
|| die
|
||
|
fi
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
default
|
||
|
|
||
|
exeinto /etc/X11/Sessions
|
||
|
newexe "${FILESDIR}"/ratpoison.xsession ratpoison
|
||
|
|
||
|
insinto /usr/share/xsessions
|
||
|
doins "${FILESDIR}"/${PN}.desktop
|
||
|
|
||
|
use sloppy && dobin contrib/sloppy
|
||
|
|
||
|
docinto example
|
||
|
dodoc contrib/{genrpbindings,split.sh} \
|
||
|
doc/{ipaq.ratpoisonrc,sample.ratpoisonrc}
|
||
|
|
||
|
rm -rf "${ED}/usr/share/"{doc/ratpoison,ratpoison}
|
||
|
|
||
|
if use emacs; then
|
||
|
elisp-install ${PN} contrib/ratpoison.*
|
||
|
elisp-site-file-install "${FILESDIR}/${SITEFILE}"
|
||
|
fi
|
||
|
}
|
||
|
|
||
|
pkg_postinst() {
|
||
|
use emacs && elisp-site-regen
|
||
|
}
|
||
|
|
||
|
pkg_postrm() {
|
||
|
use emacs && elisp-site-regen
|
||
|
}
|