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

Contents of /net-im/silc-toolkit/silc-toolkit-1.1.8.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Mon May 28 08:53:17 2012 UTC (6 years, 2 months ago) by scarabeus
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Remove older that refused to build. Bump latest to eapi4.

(Portage version: 2.2.0_alpha108/cvs/Linux x86_64)

1 # Copyright 1999-2012 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-1.1.8.ebuild,v 1.3 2012/05/04 06:22:12 jdhore Exp $
4
5 inherit eutils
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 arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
14 IUSE="debug ipv6"
15
16 RDEPEND=""
17 DEPEND="virtual/pkgconfig"
18
19 src_unpack() {
20 unpack ${A}
21
22 # They have incorrect DESTDIR usage
23 sed -i '/\$(srcdir)\/tutorial/s/\$(prefix)/\$(docdir)/' "${S}"/Makefile.{am,in}
24 sed -i \
25 "s/^\(pkgconfigdir =\) \$(libdir)\/pkgconfig/\1 \/usr\/$(get_libdir)\/pkgconfig/"\
26 "${S}"/lib/Makefile.{am,in}
27 }
28
29 src_compile() {
30 local myconf=""
31 use ipv6 && myconf="${myconf} --enable-ipv6"
32
33 econf \
34 --datadir=/usr/share/${PN} \
35 --datarootdir=/usr/share/${PN} \
36 --mandir=/usr/share/man \
37 --includedir=/usr/include/${PN} \
38 --sysconfdir=/etc/silc \
39 --with-helpdir=/usr/share/${PN}/help \
40 --libdir=/usr/$(get_libdir)/${PN} \
41 --docdir=/usr/share/doc/${PF} \
42 --disable-optimizations \
43 --with-simdir=/usr/$(get_libdir)/${PN}/modules \
44 $(use_enable debug) \
45 ${myconf}
46
47 emake || die "emake failed"
48 }
49
50 src_install() {
51 emake install DESTDIR="${D}" || die "make install failed"
52
53 rm -rf \
54 "${D}"/etc/${PN}/silcd.conf \
55 "${D}"/usr/share/man \
56 "${D}"/usr/share/doc/${PF}/examples \
57 "${D}"/usr/share/silc-toolkit \
58 "${D}"/var/log/silc-toolkit \
59 "${D}"/etc/silc
60 }

  ViewVC Help
Powered by ViewVC 1.1.20