blob: 9a1bfc8b3a7afe69874383749b809b7e30ad57d4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Daniel Robbins <drobbins@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/sys-libs/gpm/gpm-1.19.3-r1.ebuild,v 1.1 2001/01/21 04:08:51 achim Exp $
P=gpm-1.19.3
A="${P}.tar.gz devfs.patch"
S=${WORKDIR}/${P}
DESCRIPTION="Console-based mouse driver"
SRC_URI="ftp://metalab.unc.edu/pub/Linux/system/mouse/${A}
ftp://ftp.prosa.it/pub/gpm/patches/devfs.patch"
DEPEND=">=sys-libs/glibc-2.1.3
>=sys-libs/ncurses-5.1"
RDEPEND=$DEPEND
src_unpack() {
unpack ${P}.tar.gz
cd ${S}
cp ${FILESDIR}/gpmInt.h .
patch -p1 < ${DISTDIR}/devfs.patch
}
src_compile() {
cd ${S}
try ./configure --prefix=/usr --sysconfdir=/etc/gpm
cp Makefile Makefile.orig
if [ -z "`use tex`" ]
then
sed -e "s/doc//" Makefile.orig > Makefile
fi
try make ${MAKEOPTS}
}
src_install() {
try make prefix=${D}/usr install
chmod 755 ${D}/usr/lib/libgpm.so.1.18.0
dodoc Announce COPYING ChangeLog FAQ MANIFEST README.*
docinto txt
dodoc doc/gpmdoc.txt
if [ "`use tex`" ]
then
docinto ps
dodoc doc/*.ps
fi
insinto /etc/gpm
doins gpm-root.conf
}
|