/[gentoo-x86]/sys-libs/gpm/gpm-1.20.6.ebuild
Gentoo

Contents of /sys-libs/gpm/gpm-1.20.6.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.15 - (show annotations) (download)
Thu Aug 11 02:25:13 2011 UTC (3 years, 3 months ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.14: +2 -2 lines
Use virtual/yacc instead of hardcoding list ourselves.

(Portage version: 2.2.0_alpha46/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-libs/gpm/gpm-1.20.6.ebuild,v 1.14 2011/07/29 08:15:20 robbat2 Exp $
4
5 # emacs support disabled due to #99533 #335900
6
7 EAPI="2"
8
9 inherit eutils toolchain-funcs
10
11 DESCRIPTION="Console-based mouse driver"
12 HOMEPAGE="http://www.nico.schottelius.org/software/gpm/"
13 SRC_URI="http://www.nico.schottelius.org/software/${PN}/archives/${P}.tar.lzma"
14
15 LICENSE="GPL-2"
16 SLOT="0"
17 KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86"
18 IUSE="selinux"
19
20 DEPEND="sys-libs/ncurses
21 app-arch/xz-utils
22 virtual/yacc"
23 RDEPEND="selinux? ( sec-policy/selinux-gpm )"
24
25 src_prepare() {
26 epatch "${FILESDIR}"/${PN}-1.20.5-abi.patch
27 epatch "${FILESDIR}"/0001-daemon-use-sys-ioctl.h-for-ioctl.patch #222099
28 epatch "${FILESDIR}"/0001-fixup-make-warnings.patch #206291
29
30 # workaround broken release
31 find -name '*.o' -delete
32 }
33
34 src_configure() {
35 econf \
36 --sysconfdir=/etc/gpm \
37 emacs=/bin/false
38 }
39
40 src_compile() {
41 # make sure nothing compiled is left
42 emake clean || die
43 emake EMACS=: || die
44 }
45
46 src_install() {
47 emake install DESTDIR="${D}" EMACS=: ELISP="" || die
48
49 dosym libgpm.so.1 /usr/$(get_libdir)/libgpm.so
50 gen_usr_ldscript -a gpm
51
52 insinto /etc/gpm
53 doins conf/gpm-*.conf
54
55 dodoc BUGS Changes README TODO
56 dodoc doc/Announce doc/FAQ doc/README*
57
58 newinitd "${FILESDIR}"/gpm.rc6 gpm
59 newconfd "${FILESDIR}"/gpm.conf.d gpm
60 }

  ViewVC Help
Powered by ViewVC 1.1.20