# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header$ DESCRIPTION="Monotone Distbributed 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" DEPEND="${RDEPEND} sys-devel/gettext dev-libs/popt doc? ( dev-lang/perl sys-apps/texinfo )" src_compile() { local myconf= use nls || myconf="--disable-nls" # The -O0 option is _required_ by the boost # cipher library, which breaks with optimization. # The problem is known with the developers. # # Disabling hardened-gcc is necessary because # of whatever magic the LUA interpreter performs, # it breaks stack protection features. PaX users: # This might need to be chpax(8)ed. export CFLAGS='-O0 -yet_exec -yno_propolice' export CXXFLAGS='-O0 -yet_exec -yno_propolice' econf ${myconf} || die emake || die "emake failed" } src_install() { # This puts depot.cgi to /usr/bin! I have no # idea where else to put it? einstall || die # Generate html docs if [ `use doc` ] ; then emake html || die "emake html failed" dohtml -r html/* fi }