/[gentoo-x86]/net-im/silc-toolkit/silc-toolkit-0.9.12-r2.ebuild
Gentoo

Contents of /net-im/silc-toolkit/silc-toolkit-0.9.12-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.12 - (show annotations) (download)
Tue Mar 7 04:05:28 2006 UTC (12 years, 3 months ago) by antarus
Branch: MAIN
CVS Tags: HEAD
Changes since 1.11: +1 -1 lines
FILE REMOVED
Remove old versions, bump to 1.0.2, thanks to <chevredansante AT nayh DOT ca> for reporting, bug # 117485
(Portage version: 2.1_pre5)

1 # Copyright 1999-2005 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-im/silc-toolkit/silc-toolkit-0.9.12-r2.ebuild,v 1.11 2005/02/18 17:34:23 slarti Exp $
4
5 inherit eutils flag-o-matic
6
7 DESCRIPTION="SDK for the SILC protocol"
8 HOMEPAGE="http://silcnet.org/"
9 SRC_URI="http://silcnet.org/download/toolkit/sources/${P}.tar.bz2"
10
11 LICENSE="GPL-2"
12 SLOT="0"
13 KEYWORDS="alpha amd64 hppa ia64 mips ppc sparc x86"
14 IUSE="debug ipv6"
15
16 DEPEND="!<=net-im/silc-client-1.0.1"
17
18 src_unpack() {
19 unpack ${A}
20 cd ${S}
21
22 sed -i \
23 -e 's:-cp -R $(srcdir)/tutorial $(prefix):-cp -R $(srcdir)/tutorial $(docdir):' \
24 Makefile.in
25 sed -i \
26 -e "s:-g -O2:${CFLAGS}:g" \
27 configure
28
29 # Fix for amd64
30 [ "${ARCH}" = "amd64" ] && epatch ${FILESDIR}/${P}-64bit_goodness.patch
31 }
32
33 src_compile() {
34 # Fix for amd64
35 [ "${ARCH}" = "amd64" ] && append-flags -fPIC
36
37 econf \
38 --datadir=/usr/share/${PN} \
39 --mandir=/usr/share/man \
40 --includedir=/usr/include/${PN} \
41 --with-etcdir=/etc/${PN} \
42 --with-helpdir=/usr/share/${PN}/help \
43 --with-simdir=/usr/lib/${PN} \
44 --with-docdir=/usr/share/doc/${PF} \
45 --with-logsdir=/var/log/${PN} \
46 --enable-shared \
47 --enable-static \
48 --without-irssi \
49 --without-silcd \
50 `use_enable debug` \
51 `use_enable ipv6` \
52 || die "econf failed"
53 emake || die "emake failed"
54 emake -C lib || die "emake -C lib failed"
55 }
56
57 src_install() {
58 make install DESTDIR=${D} || die "make install failed"
59
60 rm -rf \
61 ${D}/usr/share/man \
62 ${D}/etc/${PN}/silcd.conf \
63 ${D}/usr/share/doc/${PF}/{tutorial,examples}
64 }

  ViewVC Help
Powered by ViewVC 1.1.20