summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVlastimil Babka <caster@gentoo.org>2011-10-21 21:42:37 +0000
committerVlastimil Babka <caster@gentoo.org>2011-10-21 21:42:37 +0000
commit48bf880c83e9fc6f6eb50e66cecebb1e495e785e (patch)
tree2e3289990527643df83be7618b9f925f1a93609d /app-misc
parentAllow mplayer2 as backend, bug 384591 (diff)
downloadgentoo-2-48bf880c83e9fc6f6eb50e66cecebb1e495e785e.tar.gz
gentoo-2-48bf880c83e9fc6f6eb50e66cecebb1e495e785e.tar.bz2
gentoo-2-48bf880c83e9fc6f6eb50e66cecebb1e495e785e.zip
Version bump, bug #365179. Thanks to Christopher Robin Elmersson <robin@girlplusboy.com> and Ralph Sennhauser <gentoo.sera@bluewin.ch> for the contribution.
(Portage version: 2.2.0_alpha68/cvs/Linux x86_64)
Diffstat (limited to 'app-misc')
-rw-r--r--app-misc/freemind/ChangeLog11
-rw-r--r--app-misc/freemind/freemind-0.9.0.ebuild108
2 files changed, 117 insertions, 2 deletions
diff --git a/app-misc/freemind/ChangeLog b/app-misc/freemind/ChangeLog
index f848a41f2d4c..70844f9de32d 100644
--- a/app-misc/freemind/ChangeLog
+++ b/app-misc/freemind/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for app-misc/freemind
-# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-misc/freemind/ChangeLog,v 1.51 2010/02/28 11:40:44 caster Exp $
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-misc/freemind/ChangeLog,v 1.52 2011/10/21 21:42:37 caster Exp $
+
+*freemind-0.9.0 (21 Oct 2011)
+
+ 21 Oct 2011; Vlastimil Babka <caster@gentoo.org> +freemind-0.9.0.ebuild:
+ Version bump, bug #365179. Thanks to Christopher Robin Elmersson
+ <robin@girlplusboy.com> and Ralph Sennhauser <gentoo.sera@bluewin.ch> for the
+ contribution.
*freemind-0.9.0_rc7 (28 Feb 2010)
diff --git a/app-misc/freemind/freemind-0.9.0.ebuild b/app-misc/freemind/freemind-0.9.0.ebuild
new file mode 100644
index 000000000000..f04e1824ff2e
--- /dev/null
+++ b/app-misc/freemind/freemind-0.9.0.ebuild
@@ -0,0 +1,108 @@
+# Copyright 1999-2011 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.ebuild,v 1.1 2011/10/21 21:42:37 caster Exp $
+
+EAPI="4"
+
+JAVA_PKG_IUSE="doc"
+
+inherit eutils java-pkg-2 java-ant-2
+
+DESCRIPTION="Mind-mapping software written in Java"
+HOMEPAGE="http://freemind.sourceforge.net"
+SRC_URI="mirror://sourceforge/${PN}/${PN}-src-${PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="groovy latex pdf svg"
+
+COMMON_DEP="
+ dev-java/javahelp:0
+ dev-java/jgoodies-forms:0
+ dev-java/jibx:0
+ >=dev-java/simplyhtml-0.13.1: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
+ pdf? ( dev-java/avalon-framework:4.2 )
+ svg? ( dev-java/avalon-framework:4.2 )
+ ${COMMON_DEP}"
+RDEPEND=">=virtual/jre-1.4
+ ${COMMON_DEP}"
+
+S="${WORKDIR}/${PN}"
+
+java_prepare() {
+ # someone got it all wrong (set/unset vs. bool)
+ sed -i -e 's|<property name="include_latex" value="false"/>||' plugins/build.xml || die
+
+ java-ant_remove-taskdefs --name jarbundler # macOS only
+
+ use groovy || rm plugins/build_scripting.xml || die
+ use latex || rm plugins/build_latex.xml || die
+ use pdf || use svg || rm plugins/build_svg.xml || die
+
+ rm -v $(find "${WORKDIR}" -name '*.jar' -o -name '*.zip') || die
+}
+
+src_configure() {
+ local build_files=( $(find "${S}" -name 'build*.xml') )
+ JAVA_PKG_BSFIX_NAME="${build_files[@]##*/}"
+ JAVA_ANT_REWRITE_CLASSPATH="yes"
+ java-ant-2_src_configure
+}
+
+src_compile() {
+ local svg_deps svg_build_deps
+ if use pdf || use svg; then
+ svg_deps="batik-1.7,fop"
+ svg_build_deps=":$(java-pkg_getjars --build-only avalon-framework-4.2)"
+ fi
+ EANT_GENTOO_CLASSPATH="
+ jgoodies-forms,jibx,javahelp,simplyhtml
+ $(usex groovy groovy)
+ $(usex latex hoteqn)
+ ${svg_deps}"
+ EANT_GENTOO_CLASSPATH_EXTRA="lib/bindings.jar${svg_build_deps}"
+ EANT_BUILD_TARGET="dist"
+ EANT_DOC_TARGET="doc"
+ EANT_ANT_TASKS="jibx"
+ java-pkg-2_src_compile
+}
+
+src_install() {
+ cd "${WORKDIR}/bin/dist"
+ local dest="/usr/share/${PN}/"
+
+ java-pkg_dojar lib/*.jar
+
+ if use doc; then
+ java-pkg_dojavadoc doc/javadoc
+ rm -r doc/javadoc
+ fi
+
+ insinto "${dest}"
+ doins -r accessories browser doc plugins patterns.xml
+
+ # register plugins for java-dep-check
+ local plugins="help"
+ use groovy && plugins+=" script"
+ use latex && plugins+=" latex"
+ if use pdf || use svg; then
+ plugins+=" svg"
+ fi
+ local plugin
+ for plugin in ${plugins}; do
+ java-pkg_regjar "${ED}"${dest}/plugins/${plugin}/*jar
+ done
+
+ 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
+}