summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVlastimil Babka <caster@gentoo.org>2008-12-22 19:18:00 +0000
committerVlastimil Babka <caster@gentoo.org>2008-12-22 19:18:00 +0000
commitff1355509f17fcad488a59e74176a817356f2b40 (patch)
tree02c70a93ccd59c01a01692e9b765f13028e99dcc /app-misc/freemind
parent- prep initial work for pie patches. thanks to kevq,zorry,psm and many others (diff)
downloadgentoo-2-ff1355509f17fcad488a59e74176a817356f2b40.tar.gz
gentoo-2-ff1355509f17fcad488a59e74176a817356f2b40.tar.bz2
gentoo-2-ff1355509f17fcad488a59e74176a817356f2b40.zip
Version bump, we can be fast too.
(Portage version: 2.2_rc17/cvs/Linux 2.6.27-gentoo-r1-perfctr x86_64)
Diffstat (limited to 'app-misc/freemind')
-rw-r--r--app-misc/freemind/ChangeLog8
-rw-r--r--app-misc/freemind/files/freemind-0.9.0_rc1-build.xml.patch16
-rw-r--r--app-misc/freemind/freemind-0.9.0_rc1.ebuild95
3 files changed, 118 insertions, 1 deletions
diff --git a/app-misc/freemind/ChangeLog b/app-misc/freemind/ChangeLog
index 25a1d375ab9e..ffa25a892b50 100644
--- a/app-misc/freemind/ChangeLog
+++ b/app-misc/freemind/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for app-misc/freemind
# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-misc/freemind/ChangeLog,v 1.43 2008/12/20 22:40:05 caster Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-misc/freemind/ChangeLog,v 1.44 2008/12/22 19:18:00 caster Exp $
+
+*freemind-0.9.0_rc1 (22 Dec 2008)
+
+ 22 Dec 2008; Vlastimil Babka <caster@gentoo.org>
+ +files/freemind-0.9.0_rc1-build.xml.patch, +freemind-0.9.0_rc1.ebuild:
+ Version bump, we can be fast too.
*freemind-0.9.0_beta20 (20 Dec 2008)
diff --git a/app-misc/freemind/files/freemind-0.9.0_rc1-build.xml.patch b/app-misc/freemind/files/freemind-0.9.0_rc1-build.xml.patch
new file mode 100644
index 000000000000..3c6efec30666
--- /dev/null
+++ b/app-misc/freemind/files/freemind-0.9.0_rc1-build.xml.patch
@@ -0,0 +1,16 @@
+--- build.xml 2008-12-22 20:03:53.000000000 +0100
++++ build.xml 2008-12-22 20:04:28.000000000 +0100
+@@ -32,11 +32,11 @@
+ <property name="java_target_version" value="1.4" />
+ <property name="build.compiler" value="modern" />
+ <property name="jarbundler.jar" value = "jarbundler-2.0.0.jar"/>
+-
++<!--
+ <taskdef name="jarbundler"
+ classpath="${src}/lib/${jarbundler.jar}"
+ classname="net.sourceforge.jarbundler.JarBundler" />
+-
++-->
+
+ <!-- begin generator part -->
+ <property name="jibxhome" value="lib/jibx"/>
diff --git a/app-misc/freemind/freemind-0.9.0_rc1.ebuild b/app-misc/freemind/freemind-0.9.0_rc1.ebuild
new file mode 100644
index 000000000000..7de0a7ad78d8
--- /dev/null
+++ b/app-misc/freemind/freemind-0.9.0_rc1.ebuild
@@ -0,0 +1,95 @@
+# Copyright 1999-2008 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_rc1.ebuild,v 1.1 2008/12/22 19:18:00 caster Exp $
+
+EAPI=1
+
+# 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.12.3:0
+ dev-java/commons-lang:2.1
+ dev-java/javahelp:0
+ groovy? ( dev-java/groovy:1 )
+ latex? ( dev-java/hoteqn:0 )
+ pdf? ( dev-java/batik:1.6
+ >=dev-java/fop-0.93:0 )
+ svg? ( dev-java/batik:1.6
+ >=dev-java/fop-0.93: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}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ # kill the jarbundler taskdef
+ epatch "${FILESDIR}/${P}-build.xml.patch"
+
+ 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-1"
+ use latex && gcp="${gcp},hoteqn"
+ if use pdf || use svg ; then
+ gcp="${gcp},batik-1.6,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}" 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
+}