| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/dev-vcs/rapidsvn/rapidsvn-0.12.1_pre8247.ebuild,v 1.5 2012/08/10 07:04:07 jlec Exp $
|
| 4 |
|
| 5 |
EAPI=4
|
| 6 |
|
| 7 |
PYTHON_DEPEND="2"
|
| 8 |
WANT_AUTOCONF="2.5"
|
| 9 |
WX_GTK_VER=2.8
|
| 10 |
|
| 11 |
AUTOTOOLS_AUTORECONF=true
|
| 12 |
|
| 13 |
inherit autotools-utils fdo-mime flag-o-matic python versionator wxwidgets
|
| 14 |
|
| 15 |
MY_PV=$(get_version_component_range 1-2)
|
| 16 |
MY_REL="1"
|
| 17 |
|
| 18 |
DESCRIPTION="Cross-platform GUI front-end for the Subversion revision system"
|
| 19 |
HOMEPAGE="http://rapidsvn.tigris.org/"
|
| 20 |
#SRC_URI="http://www.rapidsvn.org/download/release/${MY_PV}/${P}-${MY_REL}.tar.gz"
|
| 21 |
SRC_URI="http://dev.gentoo.org/~jlec/distfiles/${P}.tar.xz"
|
| 22 |
|
| 23 |
LICENSE="GPL-2 LGPL-2.1 FDL-1.2"
|
| 24 |
SLOT="0"
|
| 25 |
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
|
| 26 |
IUSE="doc static-libs"
|
| 27 |
|
| 28 |
COMMON_DEP="
|
| 29 |
dev-libs/apr
|
| 30 |
dev-libs/apr-util
|
| 31 |
dev-vcs/subversion
|
| 32 |
x11-libs/wxGTK:2.8[X]"
|
| 33 |
DEPEND="${COMMON_DEP}
|
| 34 |
doc? (
|
| 35 |
dev-libs/libxslt
|
| 36 |
app-text/docbook-sgml-utils
|
| 37 |
app-doc/doxygen
|
| 38 |
app-text/docbook-xsl-stylesheets )"
|
| 39 |
RDEPEND="${COMMON_DEP}"
|
| 40 |
|
| 41 |
#S="${WORKDIR}/${P}-${MY_REL}"
|
| 42 |
|
| 43 |
PATCHES=( "${FILESDIR}/${P}-svncpp_link.patch" )
|
| 44 |
AUTOTOOLS_IN_SOURCE_BUILD=1
|
| 45 |
DOCS=( HACKING.txt TRANSLATIONS )
|
| 46 |
|
| 47 |
pkg_setup() {
|
| 48 |
wxwidgets_pkg_setup
|
| 49 |
python_set_active_version 2
|
| 50 |
python_pkg_setup
|
| 51 |
}
|
| 52 |
|
| 53 |
src_configure() {
|
| 54 |
local myeconfargs=( --with-wx-config=${WX_CONFIG} )
|
| 55 |
|
| 56 |
if use doc; then
|
| 57 |
myeconfargs+=( --with-manpage=yes )
|
| 58 |
else
|
| 59 |
myeconfargs+=(
|
| 60 |
--without-xsltproc
|
| 61 |
--with-manpage=no
|
| 62 |
--without-doxygen
|
| 63 |
--without-dot )
|
| 64 |
fi
|
| 65 |
|
| 66 |
append-cppflags $( "${EPREFIX}"/usr/bin/apr-1-config --cppflags )
|
| 67 |
|
| 68 |
myeconfargs+=(
|
| 69 |
--with-svn-lib="${EPREFIX}"/usr/$(get_libdir)
|
| 70 |
--with-svn-include="${EPREFIX}"/usr/include
|
| 71 |
--with-apr-config="${EPREFIX}/usr/bin/apr-1-config"
|
| 72 |
--with-apu-config="${EPREFIX}/usr/bin/apu-1-config"
|
| 73 |
)
|
| 74 |
autotools-utils_src_configure
|
| 75 |
}
|
| 76 |
|
| 77 |
src_install() {
|
| 78 |
autotools-utils_src_install
|
| 79 |
|
| 80 |
doicon rapidsvn/res/rapidsvn.ico librapidsvn/src/res/bitmaps/${PN}*.png
|
| 81 |
make_desktop_entry rapidsvn "RapidSVN ${PV}" \
|
| 82 |
"${EPREFIX}/usr/share/pixmaps/rapidsvn_32x32.png" \
|
| 83 |
"RevisionControl;Development"
|
| 84 |
|
| 85 |
if use doc ; then
|
| 86 |
dohtml "${S}"/doc/svncpp/html/*
|
| 87 |
fi
|
| 88 |
}
|
| 89 |
|
| 90 |
pkg_postinst() {
|
| 91 |
fdo-mime_desktop_database_update
|
| 92 |
}
|
| 93 |
|
| 94 |
pkg_postrm() {
|
| 95 |
fdo-mime_desktop_database_update
|
| 96 |
}
|