diff options
author | Vlastimil Babka <caster@gentoo.org> | 2010-02-28 11:40:44 +0000 |
---|---|---|
committer | Vlastimil Babka <caster@gentoo.org> | 2010-02-28 11:40:44 +0000 |
commit | 305f710103d37089a1bdec54ee3459c588b0c22c (patch) | |
tree | 46fd3ce9a971377353380a7748fea6a268eac22a /app-misc/freemind/freemind-0.9.0_rc7.ebuild | |
parent | Fix repoman warnings and drop mips to ~mips (diff) | |
download | gentoo-2-305f710103d37089a1bdec54ee3459c588b0c22c.tar.gz gentoo-2-305f710103d37089a1bdec54ee3459c588b0c22c.tar.bz2 gentoo-2-305f710103d37089a1bdec54ee3459c588b0c22c.zip |
Version bump. Fix building with Ant 1.8.0 (broken by basedir handling change) with a sed call, compatible with Ant 1.7.1 too. Bug #305929.
(Portage version: 2.2_rc63/cvs/Linux x86_64)
Diffstat (limited to 'app-misc/freemind/freemind-0.9.0_rc7.ebuild')
-rw-r--r-- | app-misc/freemind/freemind-0.9.0_rc7.ebuild | 97 |
1 files changed, 97 insertions, 0 deletions
diff --git a/app-misc/freemind/freemind-0.9.0_rc7.ebuild b/app-misc/freemind/freemind-0.9.0_rc7.ebuild new file mode 100644 index 000000000000..6de926994811 --- /dev/null +++ b/app-misc/freemind/freemind-0.9.0_rc7.ebuild @@ -0,0 +1,97 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-misc/freemind/freemind-0.9.0_rc7.ebuild,v 1.1 2010/02/28 11:40:44 caster Exp $ + +EAPI="2" + +# will handle rewriting myself +JAVA_PKG_BSFIX="off" +WANT_ANT_TASKS="ant-nodeps ant-trax" +inherit java-pkg-2 java-ant-2 eutils + +MY_PV=${PV//beta/Beta_} +MY_PV=${MY_PV//rc/RC_} + +DESCRIPTION="Mind-mapping software written in Java" +HOMEPAGE="http://freemind.sourceforge.net" +SRC_URI="mirror://sourceforge/${PN}/${PN}-src-${MY_PV}.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="doc groovy latex pdf svg" +COMMON_DEP="dev-java/jgoodies-forms:0 + dev-java/jibx:0 + >=dev-java/simplyhtml-0.13.1:0 + dev-java/commons-lang:2.1 + dev-java/javahelp:0 + groovy? ( dev-java/groovy ) + latex? ( dev-java/hoteqn:0 ) + pdf? ( dev-java/batik:1.7 + >=dev-java/fop-0.95:0 ) + svg? ( dev-java/batik:1.7 + >=dev-java/fop-0.95:0 )" +DEPEND=">=virtual/jdk-1.4 + dev-java/xsd2jibx:0 + app-arch/unzip + ${COMMON_DEP}" +RDEPEND=">=virtual/jre-1.4 + ${COMMON_DEP}" + +S="${WORKDIR}/${PN}" + +java_prepare() { + # kill the jarbundler taskdef + epatch "${FILESDIR}/${PN}-0.9.0_rc1-build.xml.patch" + + # Ant 1.8.0 changed basedir handling in some subtle ways and probably + # correcly. This change does not break ant 1.7.1 builds. Bug #305929 + sed -i 's/basedir="\."/basedir="\.\."/' plugins/build_*.xml || die + + use groovy || rm plugins/build_scripting.xml || die + use latex || rm plugins/build_latex.xml || die + if ! use pdf && ! use svg ; then + rm plugins/build_svg.xml || die + fi + + local xml + for xml in $(find . -name 'build*.xml'); do + java-ant_rewrite-classpath ${xml} + java-ant_bsfix_one ${xml} + done + + rm -v lib/*.jar lib/*.zip lib/*/*.jar \ + plugins/*/*.jar plugins/*/*/*.jar || die +} + +src_compile() { + local jibxlibs="$(java-pkg_getjars --build-only --with-dependencies xsd2jibx)" + local gcp="jgoodies-forms,jibx,commons-lang-2.1,javahelp,simplyhtml" + use groovy && gcp="${gcp},groovy" + use latex && gcp="${gcp},hoteqn" + if use pdf || use svg ; then + # there is both direct batik usage and through fop + gcp="${gcp},batik-1.7,fop" + fi + local gcp="$(java-pkg_getjars --with-dependencies ${gcp}):lib/bindings.jar" + ANT_TASKS="${WANT_ANT_TASKS} jibx xsd2jibx" eant -Djibxlibs="${jibxlibs}" \ + -Dgentoo.classpath="${gcp}" -Dbasedir="${PWD}" dist browser $(use_doc doc) +} + +src_install() { + cd "${WORKDIR}/bin/dist" + local dest="/usr/share/${PN}/" + + java-pkg_dojar lib/*.jar + + insinto "${dest}" + doins -r accessories browser/ doc/ plugins/ patterns.xml || die + + use doc && java-pkg_dojavadoc doc/javadoc + + java-pkg_dolauncher ${PN} --java_args "-Dfreemind.base.dir=${dest}" \ + --pwd "${dest}" --main freemind.main.FreeMindStarter + + newicon "${S}/images/FreeMindWindowIcon.png" freemind.png + + make_desktop_entry freemind Freemind freemind Utility +} |