View | Details | Raw Unified
Collapse All | Expand All

(-) /usr/portage/dev-util/rapidsvn/rapidsvn-0.6.0.ebuild (-6 / +37 lines)
 Lines 2-27    Link Here 
# Distributed under the terms of the GNU General Public License v2
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/rapidsvn/rapidsvn-0.6.0.ebuild,v 1.3 2004/07/15 00:02:07 agriffis Exp $
# $Header: /var/cvsroot/gentoo-x86/dev-util/rapidsvn/rapidsvn-0.6.0.ebuild,v 1.3 2004/07/15 00:02:07 agriffis Exp $
inherit eutils
DESCRIPTION="Cross-platform GUI front-end for the Subversion revision system."
DESCRIPTION="Cross-platform GUI front-end for the Subversion revision system."
HOMEPAGE="http://rapidsvn.tigris.org/"
HOMEPAGE="http://rapidsvn.tigris.org/"
SRC_URI="http://www.rapidsvn.org/download/${P}.tar.gz"
SRC_URI="http://www.rapidsvn.org/download/${P}.tar.gz"
LICENSE="Apache-1.1"
LICENSE="Apache-1.1"
SLOT="0"
SLOT="0"
KEYWORDS="~x86 ~ppc ~sparc ~amd64"
KEYWORDS="~x86 ~ppc ~sparc ~amd64"
IUSE="doc"
IUSE="doc gtk2"
DEPEND=">=dev-util/subversion-1.0.0
DEPEND=">=dev-util/subversion-1.0.0
	>=x11-libs/wxGTK-2.4.2
	>=x11-libs/wxGTK-2.4.2-r2
	doc? ( dev-libs/libxslt app-text/docbook-sgml-utils app-doc/doxygen )"
	doc? ( dev-libs/libxslt app-text/docbook-sgml-utils app-doc/doxygen app-text/docbook-xsl-stylesheets )"
src_unpack() {
	cd ${WORKDIR}
	unpack ${P}.tar.gz
	cd ${S}
	epatch ${FILESDIR}/svncpp_0.6.1_link.patch
}
src_compile() {
src_compile() {
	# if you compiled subversion without (the) apache2 (flag) and with the berkdb flag
	# 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
	# you will get an error that it can't find the lib db4
	local myconf
	local myconf
	#needs manpages support in docbook, gentoo doesn't seem to have this - i dunno
	local xslss_dir
	use doc && myconf="--with-docbook-xsl=/usr/share/sgml/docbook/" \
		|| myconf="--without-xsltproc --without-docbook-xsl --without-doxygen \
	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"
			--without-dot"
	fi
	if use gtk2; then
		if test -x /usr/bin/wxgtk2-2.4-config; then
			myconf="${myconf} --with-wx-config=/usr/bin/wxgtk2-2.4-config"
		else
			ewarn "wxgtk2-2.4-config not found. Compiling with default wxGTK."
		fi
	elif test -x /usr/bin/wxgtk-2.4-config; then
		myconf="${myconf} --with-wx-config=/usr/bin/wxgtk-2.4-config"
	else
		ewarn "wxgtk-2.4-config not found. Compiling with default wxGTK."
	fi
	econf	--with-svn-lib=/usr/lib \
	econf	--with-svn-lib=/usr/lib \
		--with-svn-include=/usr/include \
		--with-svn-include=/usr/include \
		${myconf} || die "./configure failed"
		${myconf} || die "./configure failed"
 Lines 30-33    Link Here 
src_install() {
src_install() {
	einstall || die
	einstall || die
	if use doc ; then
		cd ${S}
		dodir /usr/share/doc/${PF}/svncpp
		cp -r ${S}/doc/svncpp/html ${D}/usr/share/doc/${PF}/svncpp
	fi
}
}