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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Fri Oct 26 20:45:14 2012 UTC (21 months, 3 weeks ago) by flameeyes
Branch: MAIN
CVS Tags: HEAD
Revision bump to introduce static-libs USE flag (patch by Sean McGovern from bug #378283). Fix dependency on ncurses that was missing as RDEPEND. Update init script to use OpenRC's declarative syntax.

(Portage version: 2.2.0_alpha141/cvs/Linux x86_64, signed Manifest commit with key 1CD13C8AD4301342)

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.6.ebuild,v 1.15 2011/08/11 02:25:13 vapier Exp $
4
5 # emacs support disabled due to #99533 #335900
6
7 EAPI=4
8
9 inherit eutils 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 CDPEND="sys-libs/ncurses"
21 DEPEND="${CDEPEND}
22 app-arch/xz-utils
23 virtual/yacc"
24 RDEPEND="${CDEPEND}
25 selinux? ( sec-policy/selinux-gpm )"
26
27 src_prepare() {
28 epatch "${FILESDIR}"/0001-daemon-use-sys-ioctl.h-for-ioctl.patch #222099
29 epatch "${FILESDIR}"/0001-fixup-make-warnings.patch #206291
30 epatch "${FILESDIR}"/${P}-disablestatic.patch #378283
31
32 # fix ABI values
33 sed -i \
34 -e 's/^abi_lev=.*$/abi_lev="1"/' \
35 -e 's/^abi_age=.*$/abi_age="20"/' \
36 configure.ac || die
37
38 # workaround broken release
39 find -name '*.o' -delete
40
41 eautoreconf
42 }
43
44 src_configure() {
45 econf \
46 --sysconfdir=/etc/gpm \
47 $(use_enable static-libs static) \
48 emacs=/bin/false
49 }
50
51 src_compile() {
52 # make sure nothing compiled is left
53 emake clean
54 emake EMACS=:
55 }
56
57 src_install() {
58 emake install DESTDIR="${D}" EMACS=: ELISP=""
59
60 dosym libgpm.so.1 /usr/$(get_libdir)/libgpm.so
61 gen_usr_ldscript -a gpm
62
63 insinto /etc/gpm
64 doins conf/gpm-*.conf
65
66 dodoc BUGS Changes README TODO
67 dodoc doc/Announce doc/FAQ doc/README*
68
69 newinitd "${FILESDIR}"/gpm.rc6-2 gpm
70 newconfd "${FILESDIR}"/gpm.conf.d gpm
71 }

  ViewVC Help
Powered by ViewVC 1.1.20