/[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.1 - (show annotations) (download)
Sun Dec 30 23:53:45 2012 UTC (21 months, 3 weeks ago) by floppym
Branch: MAIN
Install systemd unit taken from Fedora, bug 449350.

(Portage version: 2.2.0_alpha149/cvs/Linux x86_64, signed Manifest commit with key 0BBEEA1FEA4843A4)

1 # Copyright 1999-2012 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.ebuild,v 1.1 2012/10/28 11:35:56 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 ~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