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

Contents of /sys-libs/gpm/gpm-1.20.7-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.12 - (show annotations) (download)
Sat Feb 1 23:24:37 2014 UTC (10 months, 2 weeks ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.11: +2 -2 lines
Add arm64 love.

(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key D2E96200)

1 # Copyright 1999-2014 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.7-r1.ebuild,v 1.11 2014/02/01 23:24:03 vapier Exp $
4
5 # emacs support disabled due to #99533 #335900
6
7 EAPI="4"
8
9 inherit eutils systemd toolchain-funcs autotools
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 arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86"
18 IUSE="selinux static-libs"
19
20 RDEPEND="sys-libs/ncurses
21 selinux? ( sec-policy/selinux-gpm )"
22 DEPEND="sys-libs/ncurses
23 app-arch/xz-utils
24 virtual/yacc"
25
26 src_prepare() {
27 # fix ABI values
28 sed -i \
29 -e '/^abi_lev=/s:=.*:=1:' \
30 -e '/^abi_age=/s:=.*:=20:' \
31 configure.ac.footer || die
32 sed -i -e '/ACLOCAL/,$d' autogen.sh || die
33 ./autogen.sh
34 eautoreconf
35 }
36
37 src_configure() {
38 econf \
39 --sysconfdir=/etc/gpm \
40 $(use_enable static-libs static) \
41 emacs=/bin/false
42 }
43
44 src_compile() {
45 # make sure nothing compiled is left
46 emake clean
47 emake EMACS=:
48 }
49
50 src_install() {
51 emake install DESTDIR="${D}" EMACS=: ELISP=""
52
53 dosym libgpm.so.1 /usr/$(get_libdir)/libgpm.so
54 gen_usr_ldscript -a gpm
55
56 insinto /etc/gpm
57 doins conf/gpm-*.conf
58
59 dodoc README TODO
60 dodoc doc/Announce doc/FAQ doc/README*
61
62 newinitd "${FILESDIR}"/gpm.rc6-2 gpm
63 newconfd "${FILESDIR}"/gpm.conf.d gpm
64 systemd_dounit "${FILESDIR}"/gpm.service
65 }

  ViewVC Help
Powered by ViewVC 1.1.20