blob: 353f74993c36840fb497734173cb6cc99940b5da (
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
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-im/silc-toolkit/silc-toolkit-1.1.2-r1.ebuild,v 1.1 2007/07/15 17:25:09 armin76 Exp $
inherit eutils
DESCRIPTION="SDK for the SILC protocol"
HOMEPAGE="http://silcnet.org/"
SRC_URI="http://silcnet.org/download/toolkit/sources/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
IUSE="debug ipv6"
RDEPEND=""
DEPEND="dev-util/pkgconfig"
src_unpack() {
unpack ${A}
# They have incorrect DESTDIR usage
sed -i '/\$(srcdir)\/tutorial/s/\$(prefix)/\$(docdir)/' "${S}"/Makefile.{am,in}
}
src_compile() {
local myconf=""
use ipv6 && myconf="${myconf} --enable-ipv6"
econf \
--datadir=/usr/share/${PN} \
--datarootdir=/usr/share/${PN} \
--mandir=/usr/share/man \
--includedir=/usr/include/${PN} \
--sysconfdir=/etc/silc \
--with-helpdir=/usr/share/${PN}/help \
--libdir=/usr/$(get_libdir)/${PN} \
--docdir=/usr/share/doc/${PF} \
--disable-optimizations \
$(use_enable debug) \
${myconf}
emake || die "emake failed"
}
src_install() {
emake install DESTDIR="${D}" || die "make install failed"
rm -rf \
"${D}"/etc/${PN}/silcd.conf \
"${D}"/usr/share/man \
"${D}"/usr/share/doc/${PF}/examples \
"${D}"/usr/share/silc-toolkit \
"${D}"/var/log/silc-toolkit \
"${D}"/etc/silc
}
|