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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Tue Jun 22 18:51:00 2010 UTC (3 years, 10 months ago) by arfrever
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +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.5.0.ebuild,v 1.2 2010/06/18 18:36:03 pacho Exp $
4
5 EAPI=2
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.5:0
20 >=dev-java/backport-util-concurrent-3.1:0
21 dev-java/jcommon:1.0
22 dev-java/jfreechart:1.0"
23
24 DEPEND=">=virtual/jdk-1.4
25 app-arch/unzip
26 test? ( dev-java/junit:0 )
27 ${COMMON_DEPEND}"
28
29 RDEPEND=">=virtual/jre-1.4
30 >=dev-vcs/subversion-1.3.0
31 dev-java/xerces:2
32 ${COMMON_DEPEND}"
33
34 EANT_GENTOO_CLASSPATH="statcvs,backport-util-concurrent,jcommon-1.0,jfreechart-1.0"
35 EANT_BUILD_TARGET="dist"
36 JAVA_ANT_CLASSPATH_TAGS="javac java javadoc"
37 JAVA_ANT_REWRITE_CLASSPATH="true"
38
39 java_prepare() {
40 ebegin "Removing bundled jars."
41 find . -name "*.jar" -delete
42 eend
43 ebegin "Removing prebuilt classses."
44 find . -name "*.class" -delete
45 rm -r "${S}"/bin/*
46 eend
47 epatch "${FILESDIR}"/${PN}-0.4.1-build.xml.patch
48 }
49
50 src_test() {
51 ewarn "Note that the tests require you to be online."
52 eant -Dgentoo.classpath=$(java-pkg_getjars ${EANT_GENTOO_CLASSPATH}):$(java-pkg_getjars --build-only junit) test
53 }
54
55 src_install() {
56 java-pkg_dojar dist/${PN}.jar
57
58 # jfreechart pulls in gnu-jaxp which doesn't work for statsvn so we need
59 # to force another SAXParserFactory and DocumentBuilderFactory
60 java-pkg_register-dependency xerces-2
61 java-pkg_dolauncher statsvn --main net.sf.statsvn.Main \
62 --java_args '-Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl -Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl'
63
64 use doc && java-pkg_dojavadoc doc
65 use source && java-pkg_dosrc src/*
66 }
67
68 pkg_postinst() {
69 elog "For instractions on how to use StatSVN see"
70 elog "http://svn.statsvn.org/statsvnwiki/index.php/Main_Page"
71 elog "You need to regenerate statistics"
72 elog "if you update dev-java/jtreemap"
73 }

  ViewVC Help
Powered by ViewVC 1.1.20