summaryrefslogtreecommitdiff
blob: aa43ef8d074ceb9c7781d93541522ffad523b7da (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
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author: Stein Magnus Jodal <stein.magnus@jodal.no>
# Updated by Phil Bordelon <phil@lsu.edu> to sync up to v0.9
# Maintainer: Chris Houser <chouser@gentoo.org>
# /space/gentoo/cvsroot/gentoo-x86/net-im/silc-client/silc-client-0.7.6.2.ebuild,v 1.3 2002/04/12 18:54:01 spider Exp

S=${WORKDIR}/${P}
DESCRIPTION="Secure Internet Live Conferencing"
SRC_URI="http://www.silcnet.org/download/client/sources/${P}.tar.bz2"
HOMEPAGE="http://silcnet.org"
SLOT="0"
DEPEND="virtual/glibc
	=dev-libs/glib-1.2*
	perl? ( sys-devel/perl )
	sys-libs/ncurses"

src_compile() {

	myconf="--with-ncurses"

	if [ "`use ipv6`" ]; then
		myconf="${myconf} --enable-ipv6"
	fi

	if [ "`use socks5`" ]; then
		myconf="${myconf} --with-socks5"
	fi

	./configure \
		--host=${CHOST} \
		--prefix=/usr \
		--sysconfdir=/etc/silc \
		--with-helpdir=/usr/share/silc/help \
		--with-docdir=/usr/share/doc/${P} \
		--with-simdir=/usr/lib/silc/modules \
		--with-logsdir=/var/log/silc \
		${myconf} || die "./configure failed"

	make || die "make failed"
}

src_install () {
	myflags=""
    if [ "`use perl`" ]
    then
        R1="s/installsitearch='//"
        R2="s/';//"
        perl_sitearch="`perl -V:installsitearch | sed -e ${R1} -e ${R2}`"
        myflags="${myflags} INSTALLPRIVLIB=${D}/usr"
        myflags="${myflags} INSTALLARCHLIB=${D}/${perl_sitearch}"
        myflags="${myflags} INSTALLSITELIB=${D}/${perl_sitearch}"
        myflags="${myflags} INSTALLSITEARCH=${D}/${perl_sitearch}"
    fi

	make DESTDIR=${D} ${myflags} install || die "make install failed"
	rmdir ${D}/usr/include
}