1 # Copyright 1999-2016 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 PYTHON_COMPAT=( python2_7 )
11 AUTOTOOLS_AUTORECONF=true
13 inherit autotools-utils fdo-mime flag-o-matic multilib python-single-r1 versionator wxwidgets
15 MY_PV=$(get_version_component_range 1-2)
18 DESCRIPTION="Cross-platform GUI front-end for the Subversion revision system"
19 HOMEPAGE="http://rapidsvn.tigris.org/"
21 http://www.rapidsvn.org/download/release/${PV}/${P}.tar.gz
22 doc? ( https://dev.gentoo.org/~jlec/distfiles/svncpp.dox.xz )"
24 LICENSE="GPL-2 LGPL-2.1 FDL-1.2"
26 KEYWORDS="amd64 arm ppc ppc64 x86 ~amd64-linux ~x86-linux"
27 IUSE="doc static-libs"
29 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
36 x11-libs/wxGTK:${WX_GTK_VER}[X]"
40 app-text/docbook-sgml-utils
42 app-text/docbook-xsl-stylesheets
45 RDEPEND="${COMMON_DEP}"
48 "${FILESDIR}/${P}-svncpp_link.patch"
49 "${FILESDIR}/${P}-locale.patch" )
51 AUTOTOOLS_IN_SOURCE_BUILD=1
53 DOCS=( HACKING.txt TRANSLATIONS )
57 mv "${WORKDIR}"/svncpp.dox doc/svncpp/ || die
59 strip-linguas $(grep ^RAPIDSVN_LANGUAGES src/locale/Makefile.am | sed 's:RAPIDSVN_LANGUAGES=::g')
61 -e "/^RAPIDSVN_LANGUAGES/s:=.*:=${LINGUAS}:g" \
62 -i src/locale/Makefile.am || die
63 autotools-utils_src_prepare
67 local myeconfargs=( --with-wx-config=${WX_CONFIG} )
70 myeconfargs+=( --with-manpage=yes )
79 append-cppflags $( apr-1-config --cppflags )
82 --with-svn-lib="${EPREFIX}"/usr/$(get_libdir)
83 --with-svn-include="${EPREFIX}"/usr/include
84 --with-apr-config="${EPREFIX}/usr/bin/apr-1-config"
85 --with-apu-config="${EPREFIX}/usr/bin/apu-1-config"
87 autotools-utils_src_configure
91 autotools-utils_src_compile
92 use doc && autotools-utils_src_compile -C doc/manpage manpage
96 autotools-utils_src_install
98 doicon src/res/rapidsvn.ico src/res/bitmaps/${PN}*.png
99 make_desktop_entry rapidsvn "RapidSVN ${PV}" \
100 "${EPREFIX}/usr/share/pixmaps/rapidsvn_32x32.png" \
101 "RevisionControl;Development"
104 doman doc/manpage/${PN}.1
105 dohtml "${S}"/doc/svncpp/html/*
110 pushd "${BUILD_DIR}"/src/tests/svncpp > /dev/null || die
112 ./svncpptest | grep OK || die
116 fdo-mime_desktop_database_update
120 fdo-mime_desktop_database_update