# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-util/rapidsvn/rapidsvn-0.9.2.ebuild,v 1.4 2006/07/10 21:24:46 gustavoz Exp $ inherit eutils libtool autotools DESCRIPTION="Cross-platform GUI front-end for the Subversion revision system." HOMEPAGE="http://rapidsvn.tigris.org/" SRC_URI="http://www.rapidsvn.org/download/${P}.tar.gz" LICENSE="GPL-2 LGPL-2.1 FDL-1.2" SLOT="0" KEYWORDS="~amd64 ppc sparc ~x86" IUSE="doc static" DEPEND=">=dev-util/subversion-1.3.0 >=x11-libs/wxGTK-2.6.2 doc? ( dev-libs/libxslt app-text/docbook-sgml-utils app-doc/doxygen app-text/docbook-xsl-stylesheets )" src_unpack() { cd ${WORKDIR} unpack ${A} cd ${S} epatch ${FILESDIR}/${P}-gcc-4.patch eautoreconf } src_compile() { # if you compiled subversion without (the) apache2 (flag) and with the # berkdb flag, you will get an error that it can't find the lib db4 local myconf local xslss_dir if use doc; then xslss_dir=$(ls -1d /usr/share/sgml/docbook/xsl-stylesheets*|head -n1) myconf="--with-docbook-xsl=$xslss_dir" else myconf="--without-xsltproc --without-docbook-xsl \ --without-doxygen --without-dot" fi if use static; then myconf="${myconf} --enable-static" else myconf="${myconf} --disable-static --enable-shared" fi # look for wx-config-2.6 if (test -x /usr/bin/wx-config-2.6 && `/usr/bin/wx-config-2.6 --toolkit=gtk2 2>/dev/null` ); then myconf="${myconf} --with-wx-config=/usr/bin/wx-config-2.6" else ewarn "wx-config-2.6 not found. Compiling with default wxGTK." fi libtoolize --copy --force elibtoolize --portage econf --with-svn-lib=/usr/$(get_libdir) \ --with-svn-include=/usr/include \ --with-neon-config=/usr/bin/neon-config \ ${myconf} || die "econf failed" emake || die "emake failed" } src_install() { einstall || die "einstall failed" doman doc/manpage/rapidsvn.1 || die "doman failed" doicon src/res/bitmaps/svn.xpm make_desktop_entry rapidsvn RapidSVN svn.xpm RevisionControl dodoc HACKING.txt TRANSLATIONS if use doc ; then dodoc AUTHORS CHANGES NEWS README dohtml ${S}/doc/svncpp/html/* fi }