diff options
Diffstat (limited to 'net-im/silc-toolkit/silc-toolkit-0.9.12-r3.ebuild')
-rw-r--r-- | net-im/silc-toolkit/silc-toolkit-0.9.12-r3.ebuild | 45 |
1 files changed, 27 insertions, 18 deletions
diff --git a/net-im/silc-toolkit/silc-toolkit-0.9.12-r3.ebuild b/net-im/silc-toolkit/silc-toolkit-0.9.12-r3.ebuild index 379843181477..06491f729077 100644 --- a/net-im/silc-toolkit/silc-toolkit-0.9.12-r3.ebuild +++ b/net-im/silc-toolkit/silc-toolkit-0.9.12-r3.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2004 Gentoo Foundation +# Copyright 1999-2005 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-r3.ebuild,v 1.1 2004/09/05 11:03:27 ticho Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-im/silc-toolkit/silc-toolkit-0.9.12-r3.ebuild,v 1.1.1.1 2005/11/30 10:09:50 chriswhite Exp $ inherit eutils flag-o-matic @@ -10,7 +10,7 @@ SRC_URI="http://silcnet.org/download/toolkit/sources/${P}.tar.bz2" LICENSE="GPL-2" SLOT="0" -KEYWORDS="~x86 ~ppc ~sparc ~hppa ~amd64 ~alpha ~ia64 ~mips" +KEYWORDS="alpha amd64 arm hppa ia64 mips ppc sparc x86 ppc64" IUSE="debug ipv6" DEPEND="!<=net-im/silc-client-1.0.1 @@ -20,29 +20,38 @@ src_unpack() { unpack ${A} cd ${S} + # also modify Makefile.am, since the build process seems to recreate + # Makefile.in and start over (see bug 63089) sed -i \ - -e 's:-cp -R $(srcdir)/tutorial $(prefix):-cp -R $(srcdir)/tutorial $(docdir):' \ + -e "s:\$(srcdir)/tutorial \$(prefix):\$(srcdir)/tutorial \$(docdir):" \ + Makefile.am + + sed -i \ + -e "s:\$(srcdir)/tutorial \$(prefix):\$(srcdir)/tutorial \$(docdir):" \ Makefile.in + sed -i \ -e "s:-g -O2:${CFLAGS}:g" \ configure # Fix for amd64 - [ "${ARCH}" = "amd64" ] && epatch ${FILESDIR}/${P}-64bit_goodness.patch + use amd64 && epatch ${FILESDIR}/${P}-64bit_goodness.patch + + libtoolize --copy --force } src_compile() { # Fix for amd64 - [ "${ARCH}" = "amd64" ] && append-flags -fPIC + use amd64 && append-flags -fPIC econf \ - --datadir=/$(get_libdir)/share/${PN} \ - --mandir=/$(get_libdir)/share/man \ - --includedir=/$(get_libdir)/include/${PN} \ + --datadir=/usr/share/${PN} \ + --mandir=/usr/share/man \ + --includedir=/usr/include/${PN} \ --with-etcdir=/etc/${PN} \ - --with-helpdir=/$(get_libdir)/share/${PN}/help \ - --with-simdir=/$(get_libdir)/lib/${PN} \ - --with-docdir=/$(get_libdir)/share/doc/${PF} \ + --with-helpdir=/usr/share/${PN}/help \ + --with-simdir=/usr/$(get_libdir)/${PN} \ + --with-docdir=/usr/share/doc/${PF} \ --with-logsdir=/var/log/${PN} \ --enable-shared \ --enable-static \ @@ -59,16 +68,16 @@ src_install() { make install DESTDIR=${D} || die "make install failed" rm -rf \ - ${D}/$(get_libdir)/share/man \ + ${D}/usr/share/man \ ${D}/etc/${PN}/silcd.conf \ - ${D}/$(get_libdir)/share/doc/${PF}/{tutorial,examples} + ${D}/usr/share/doc/${PF}/{tutorial,examples} - dodir $(get_libdir)/pkgconfig - cat >${D}/$(get_libdir)/pkgconfig/silc.pc <<EOF + dodir /usr/$(get_libdir)/pkgconfig + cat >${D}/usr/$(get_libdir)/pkgconfig/silc.pc <<EOF prefix=/usr exec_prefix=\${prefix} -libdir=/usr/$(get_libdir) -includedir=/usr/include +libdir=\${prefix}/$(get_libdir) +includedir=\${prefix}/include Name: silc Version: ${PV} |