# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header$ DESCRIPTION="Monotone Distributed Version Control System" HOMEPAGE="http://www.venge.net/monotone/" SRC_URI="http://www.venge.net/monotone/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~ppc ~sparc ~mips ~alpha ~arm ~hppa ~amd64 ~ia64" IUSE="nls doc" RDEPEND="virtual/glibc >=dev-libs/boost-1.31.0 dev-libs/popt" DEPEND="${RDEPEND} >=sys-devel/gcc-3.3.3 sys-devel/gettext doc? ( dev-lang/perl sys-apps/texinfo )" src_compile() { local myconf= use nls || myconf="--disable-nls" # disable stack protector export CFLAGS="-fno-stack-protector-all -fno-stack-protector" # more aggressive optimizations cause trouble with the # crypto library export CFLAGS="${CFLAGS} -O2 -fno-strict-aliasing" export CXXFLAGS="${CFLAGS}" econf ${myconf} || die emake || die "emake failed" } src_install() { einstall || die # Generate html docs if [ `use doc` ] ; then emake html || die "emake html failed" dohtml -r html/* fi dodoc NEWS }