blob: b504a3aa1d19d8752e078b8b4bdd158421dbe1d6 (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-mobilephone/smsclient/smsclient-2.0.8y.ebuild,v 1.1 2005/10/18 22:28:04 r3pek Exp $
inherit eutils
# Weird name scheme ...
MY_PV=${PVR/y/}
MY_P=${P/sms/sms_}
DESCRIPTION="Utility to send sms messages to phones and pagers."
HOMEPAGE="http://www.smsclient.org"
SRC_URI="http://www.smsclient.org/download/${PN}-${MY_PV}/${MY_P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
DEPEND=""
S="${WORKDIR}/${MY_P}"
src_compile() {
./configure || die "Configure failed"
sed -i -e "s/-g -I. -Wall/${CFLAGS} -I./g" Makefile.config || \
die "sed failed"
make || die "Make failed"
}
src_unpack() {
unpack ${A}
cd ${S}
epatch ${FILESDIR}/${P}_sms-makefile.patch
epatch ${FILESDIR}/${P}_client-makefile.patch
epatch ${FILESDIR}/${P}_logfile-makefile.patch
epatch ${FILESDIR}/${P}_docs-makefile.patch
}
src_install() {
make DESTDIR=${D} install || die "Install failed"
dodir /usr/bin
dosym /bin/sms_client /usr/bin/smsclient
dosym /bin/sms_address /usr/bin/smsaddress
}
|