blob: e5bb7b361d807ec3dd741d33e8b0ab944ac83fb9 (
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
54
55
56
57
58
59
60
61
62
63
64
65
|
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-dialup/minicom/minicom-1.83.1-r1.ebuild,v 1.12 2003/09/07 00:09:22 msterret Exp $
S=${WORKDIR}/${P}
DESCRIPTION="Serial Communication Program"
SRC_URI="http://www.clinet.fi/~walker/${P}.src.tar.gz"
HOMEPAGE="http://www.clinet.fi/~walker/minicom.html"
DEPEND=">=sys-libs/ncurses-5.2-r3"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="x86 hppa"
src_unpack() {
unpack ${A}
cd ${S}/src
cp Makefile Makefile.orig
sed -e "s:^FLAGS\t=.*$:FLAGS\t= -Wall -D_POSIX -D_SYSV -D_SELECT ${CFLAGS} -pipe # -I/usr/include/ncurses:" \
-e "s:^LFLAGS\t=.*$:LFLAGS\t= -s ${CFLAGS}:" \
-e "s:^CC\t=.*$:CC\t= gcc:" \
-e "s:^LIBDIR\t=.*$:LIBDIR\t= /etc/minicom:" \
Makefile.orig > Makefile
cp dial.c dial.c.orig
sed -e "s:<sys/time.h>:<time.h>:" \
dial.c.orig > dial.c
cp common.c common.c.orig
sed -e "s:#include <stdarg.h>:#include <stdarg.h>\n#include <time.h>:" \
common.c.orig > common.c
cp po/Makefile po/Makefile.orig
sed -e 's:ko.mo::g' \
po/Makefile.orig > po/Makefile
}
src_compile() {
cd src
make || die
}
src_install() {
dobin src/minicom src/ascii-xfr src/runscript
doman man/minicom.1 man/ascii-xfr.1 man/runscript.1
dodoc doc/minicom.FAQ
docinto scripts
dodoc demos/*
exeinto /usr/bin
doexe src/xminicom
insinto /etc/minicom
doins ${FILESDIR}/minirc.dfl
dodoc Readme Copyright
}
pkg_postinst() {
einfo "Minicom relies on the net-misc/lrzsz package to transfer"
einfo "files using the XMODEM, YMODEM and ZMODEM protocols."
echo
einfo "If you need the capability of using the above protocols,"
einfo "make sure to install net-misc/lrsz."
echo
}
|