/[gentoo-x86]/dev-vcs/statsvn/statsvn-0.4.1.ebuild
Gentoo

Contents of /dev-vcs/statsvn/statsvn-0.4.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Jun 22 18:51:00 2010 UTC (4 years, 1 month ago) by arfrever
Branch: MAIN
Changes since 1.1: +2 -2 lines
dev-util/subversion renamed to dev-vcs/subversion.
(Portage version: HEAD/cvs/Linux x86_64)

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-vcs/statsvn/statsvn-0.4.1.ebuild,v 1.1 2010/03/05 17:58:29 serkan Exp $
4
5 EAPI=1
6 JAVA_PKG_IUSE="doc source test"
7
8 inherit eutils java-pkg-2 java-ant-2
9
10 DESCRIPTION="StatSVN generates HTML reports from SVN repository logs."
11 HOMEPAGE="http://www.statsvn.org/"
12 SRC_URI="mirror://sourceforge/${PN}/${P}-source.zip"
13 LICENSE="LGPL-2.1"
14 SLOT="0"
15 KEYWORDS="amd64 x86"
16 IUSE=""
17
18 COMMON_DEPEND="
19 >=dev-vcs/statcvs-0.3:0
20 >=dev-java/backport-util-concurrent-3.0:0"
21
22 DEPEND=">=virtual/jdk-1.4
23 app-arch/unzip
24 test?
25 (
26 dev-java/junit:0
27 dev-java/jfreechart:1.0
28 dev-java/jcommon:1.0
29 )
30 ${COMMON_DEPEND}"
31
32 RDEPEND=">=virtual/jre-1.4
33 >=dev-vcs/subversion-1.3.0
34 dev-java/xerces:2
35 ${COMMON_DEPEND}"
36
37 EANT_GENTOO_CLASSPATH="statcvs,backport-util-concurrent"
38 EANT_BUILD_TARGET="dist"
39 JAVA_ANT_CLASSPATH_TAGS="javac java javadoc"
40 JAVA_ANT_REWRITE_CLASSPATH="true"
41
42 src_unpack() {
43 unpack ${A}
44 cd "${S}" || die
45 einfo "Removing bundled jars."
46 find . -name "*.jar" -print -delete
47 rm -r "${S}"/bin/*
48 epatch "${FILESDIR}"/${P}-build.xml.patch
49 epatch "${FILESDIR}"/${P}-fixstatcvsusage.patch
50 }
51
52 src_test() {
53 ewarn "Note that the tests require you to be online."
54 eant -Dgentoo.classpath=$(java-pkg_getjars statcvs,backport-util-concurrent):$(java-pkg_getjars --build-only junit,jfreechart-1.0,jcommon-1.0) test
55 }
56
57 src_install() {
58 java-pkg_dojar dist/${PN}.jar
59
60 # jfreechart pulls in gnu-jaxp which doesn't work for statsvn so we need
61 # to force another SAXParserFactory and DocumentBuilderFactory
62 java-pkg_register-dependency xerces-2
63 java-pkg_dolauncher statsvn --main net.sf.statsvn.Main \
64 --java_args '-Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl -Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl'
65
66 use doc && java-pkg_dojavadoc doc
67 use source && java-pkg_dosrc src/*
68 }
69
70 pkg_postinst() {
71 elog "For instractions on how to use StatSVN see"
72 elog "http://svn.statsvn.org/statsvnwiki/index.php/Main_Page"
73 elog "You need to regenerate statistics"
74 elog "if you update dev-java/jtreemap"
75 }

  ViewVC Help
Powered by ViewVC 1.1.20