# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-im/silc-toolkit/silc-toolkit-0.9.12-r1.ebuild,v 1.5 2004/06/24 22:59:41 agriffis Exp $ inherit eutils flag-o-matic DESCRIPTION="SDK for the SILC protocol" HOMEPAGE="http://silcnet.org/" SRC_URI="http://silcnet.org/download/toolkit/sources/silc-toolkit-${PV}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64" IUSE="client server debug ipv6" DEPEND="virtual/glibc !net-im/silc-client" RDEPEND="virtual/glibc" src_unpack() { unpack ${A} cd ${S} # Fix for amd64 [ "${ARCH}" = "amd64" ] && epatch ${FILESDIR}/${P}-64bit_goodness.patch } src_compile() { local myconf myconf="--prefix=${D}/usr \ --datadir=${D}/usr/share/silc \ --mandir=${D}/usr/man \ --includedir=${D}/usr/include/${PN} \ --sysconfdir=${D}/usr/share/silc/etc \ --with-etcdir=${D}/etc/silc \ --with-simdir=${D}/usr/share/silc/modules \ --with-docdir=${D}/usr/share/doc/${P} \ --with-logsdir=${D}/var/log/silc" # Fix for amd64 [ "${ARCH}" = "amd64" ] && append-flags -fPIC if [ "${DEBUG}" ] then einfo "debugging" myconf="${myconf} --enable-debug" fi use client \ && myconf="${myconf}" \ || myconf="${myconf} --without-irssi" use ipv6 \ && myconf="${myconf} --enable-ipv6" use server \ && myconf="${myconf}" \ || myconf="${myconf} --without-silcd" econf ${myconf} || die "./configure failed" make || die "make failed" } src_install() { make install mv ${D}/usr/tutorial ${D}/usr/share/doc/${P} }