forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Package-Manager: Portage-2.3.5, Repoman-2.3.2
- Loading branch information
Jeroen Roovers
committed
Apr 12, 2017
1 parent
651b2a5
commit 403a8f6
Showing
4 changed files
with
118 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
DIST ratpoison-1.4.8.tar.xz 364700 SHA256 da4695636d1fce8883ef2144d79ce46ebb0431a5da02440bd1ffec5dca17a0f0 SHA512 10b44489e60d3186ca407a5bd87e23dbd737cdafee22ea7284ac4db8bb4463081af483460d1899161fbae2973f4d25fbd1bfd354e3ffb59735baf69bbd6f94f6 WHIRLPOOL 53e087a28e685f7667ecbf2302db3df88382ac5840c898b3b8e7954f5c6de3b6f6928e8d021df30e5562991dab5c1c1b810556abc8fdef8979ffc062dd144426 | ||
DIST ratpoison-1.4.9.tar.xz 315584 SHA256 d98fa4be025ecca453c407ff311ab3949f29f20d6d8abedf8f0716b85fc8d1f1 SHA512 97f705efd2092b8e12528496890c59f613e6fcec010aca94a5a59bd641e22dfc50dd500a4b94af7a07553a8a6359f6bec4eee0db1a7ded29d7f051904b09beef WHIRLPOOL 719aa36dce28b1cd0614e0e994f4109c3ade0d32fef7a295530f0c760c8bd3864b67ee3d2b5d9d45c89e059000721d0f564f40b33086c458f0a6df5876140e40 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
# Copyright 1999-2017 Gentoo Foundation | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=6 | ||
inherit elisp-common eutils toolchain-funcs | ||
|
||
DESCRIPTION="window manager without mouse dependency" | ||
HOMEPAGE="http://www.nongnu.org/ratpoison/" | ||
SRC_URI="http://download.savannah.gnu.org/releases/${PN}/${P}.tar.xz" | ||
|
||
LICENSE="GPL-2" | ||
SLOT="0" | ||
KEYWORDS="~amd64 ~hppa ~ppc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux" | ||
IUSE="debug emacs +history sloppy +xft +xrandr" | ||
|
||
RDEPEND=" | ||
emacs? ( virtual/emacs ) | ||
history? ( sys-libs/readline:= ) | ||
xft? ( x11-libs/libXft ) | ||
xrandr? ( x11-libs/libXrandr ) | ||
virtual/perl-Pod-Parser | ||
x11-libs/libXtst | ||
" | ||
DEPEND=" | ||
${RDEPEND} | ||
virtual/pkgconfig | ||
x11-proto/randrproto | ||
x11-proto/xproto | ||
" | ||
|
||
SITEFILE=50ratpoison-gentoo.el | ||
DOCS=( | ||
AUTHORS | ||
ChangeLog | ||
NEWS | ||
README | ||
TODO | ||
) | ||
|
||
PATCHES=( | ||
"${FILESDIR}"/ratpoison.el-gentoo.patch | ||
) | ||
|
||
src_configure() { | ||
econf \ | ||
$(use_enable debug) \ | ||
$(use_enable history) \ | ||
$(use_with xft) \ | ||
$(use_with xrandr) \ | ||
--without-electric-fence | ||
} | ||
|
||
src_compile() { | ||
emake CFLAGS="${CFLAGS}" | ||
if use emacs; then | ||
elisp-compile contrib/ratpoison.el || die | ||
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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters