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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Sun Jul 13 19:32:58 2014 UTC (2 months ago) by zlogene
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +2 -2 lines
alpha/arm/ia64/ppc64/ppc/sparc/s390 stable wrt bug #513728

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

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-r2.ebuild,v 1.7 2014/07/13 17:07:40 tgall Exp $
4
5 # emacs support disabled due to #99533 #335900
6
7 EAPI="4"
8
9 inherit eutils systemd toolchain-funcs autotools multilib-minimal
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-5.9-r3[${MULTILIB_USEDEP}]
21 selinux? ( sec-policy/selinux-gpm )
22 abi_x86_32? (
23 !<=app-emulation/emul-linux-x86-baselibs-20130224-r12
24 !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
25 )"
26 DEPEND=">=sys-libs/ncurses-5.9-r3[${MULTILIB_USEDEP}]
27 app-arch/xz-utils
28 virtual/yacc"
29
30 src_prepare() {
31 # fix ABI values
32 sed -i \
33 -e '/^abi_lev=/s:=.*:=1:' \
34 -e '/^abi_age=/s:=.*:=20:' \
35 configure.ac.footer || die
36 sed -i -e '/ACLOCAL/,$d' autogen.sh || die
37 ./autogen.sh
38 eautoreconf
39 multilib_copy_sources
40 }
41
42 multilib_src_configure() {
43 econf \
44 --sysconfdir=/etc/gpm \
45 $(use_enable static-libs static) \
46 emacs=/bin/false
47 }
48
49 multilib_src_compile() {
50 # make sure nothing compiled is left
51 emake clean
52 emake EMACS=: $(multilib_is_native_abi || echo "PROG= ")
53 }
54
55 multilib_src_install() {
56 emake \
57 DESTDIR="${D}" \
58 EMACS=: ELISP="" \
59 $(multilib_is_native_abi || echo "PROG= ") \
60 install
61
62 dosym libgpm.so.1 /usr/$(get_libdir)/libgpm.so
63 multilib_is_native_abi && gen_usr_ldscript -a gpm
64 }
65
66 multilib_src_install_all() {
67 insinto /etc/gpm
68 doins conf/gpm-*.conf
69
70 dodoc README TODO
71 dodoc doc/Announce doc/FAQ doc/README*
72
73 newinitd "${FILESDIR}"/gpm.rc6-2 gpm
74 newconfd "${FILESDIR}"/gpm.conf.d gpm
75 systemd_dounit "${FILESDIR}"/gpm.service
76 }

  ViewVC Help
Powered by ViewVC 1.1.20