From: "Patrice Clement" <monsieurp@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/freemind/
Date: Fri, 27 Oct 2017 19:21:09 +0000 (UTC) [thread overview]
Message-ID: <1509131909.837dc7dc52c71e9982e9f56d71651d3a9d515468.monsieurp@gentoo> (raw)
commit: 837dc7dc52c71e9982e9f56d71651d3a9d515468
Author: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
AuthorDate: Fri Oct 27 19:16:05 2017 +0000
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
CommitDate: Fri Oct 27 19:18:29 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=837dc7dc
app-misc/freemind: bump dev-java/batik's SLOT.
Package-Manager: Portage-2.3.8, Repoman-2.3.3
RepoMan-Options: --force
app-misc/freemind/freemind-1.0.1-r3.ebuild | 121 +++++++++++++++++++++++++++++
1 file changed, 121 insertions(+)
diff --git a/app-misc/freemind/freemind-1.0.1-r3.ebuild b/app-misc/freemind/freemind-1.0.1-r3.ebuild
new file mode 100644
index 00000000000..953b04686fb
--- /dev/null
+++ b/app-misc/freemind/freemind-1.0.1-r3.ebuild
@@ -0,0 +1,121 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+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 ~x86"
+IUSE="groovy latex pdf svg"
+
+CDEPEND="
+ dev-java/javahelp:0
+ dev-java/jgoodies-forms:0
+ dev-java/jibx:0
+ dev-java/jortho:0
+ >=dev-java/simplyhtml-0.13.1:0
+ groovy? ( dev-java/groovy )
+ latex? ( dev-java/hoteqn:0 )
+ pdf? (
+ dev-java/batik:1.9
+ dev-java/fop:0
+ )
+ svg? (
+ dev-java/batik:1.9
+ dev-java/fop:0
+ )"
+DEPEND="${CDEPEND}
+ >=virtual/jdk-1.6
+ pdf? ( dev-java/avalon-framework:4.2 )
+ svg? ( dev-java/avalon-framework:4.2 )"
+RDEPEND="${CDEPEND}
+ >=virtual/jre-1.6"
+
+S="${WORKDIR}/${PN}"
+
+java_prepare() {
+ chmod +x check_for_duplicate_resources.sh || die
+
+ # someone got it all wrong (set/unset vs. bool)
+ sed -i -e 's|<property name="include_latex" value="false"/>||' plugins/build.xml || die
+
+ # disable dmg build on Mac OS X
+ sed -i -e 's:<antcall target="dist_\(macos\|icon\)"/>::p' 'build.xml' || die
+
+ 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
+ # not compatible with releases of jmapviewer
+ rm plugins/build_map.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_CLASSPATH_TAGS+=" javadoc"
+ JAVA_ANT_ENCODING="utf-8"
+ java-ant-2_src_configure
+}
+
+src_compile() {
+ local svg_deps svg_build_deps
+ if use pdf || use svg; then
+ svg_deps="batik-1.9,fop"
+ svg_build_deps=":$(java-pkg_getjars --build-only avalon-framework-4.2)"
+ fi
+ EANT_GENTOO_CLASSPATH="
+ jgoodies-forms,jibx,javahelp,jortho,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 || die
+ 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=${EPREFIX}${dest}" \
+ --pwd "${EPREFIX}${dest}" --main freemind.main.FreeMindStarter
+
+ newicon "${S}/images/FreeMindWindowIcon.png" freemind.png
+
+ make_desktop_entry freemind Freemind freemind Utility
+}
next reply other threads:[~2017-10-27 19:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-27 19:21 Patrice Clement [this message]
-- strict thread matches above, loose matches on Subject: below --
2017-10-27 20:21 [gentoo-commits] repo/gentoo:master commit in: app-misc/freemind/ Patrice Clement
2017-10-27 19:21 Patrice Clement
2015-10-21 14:31 Patrice Clement
2015-10-21 14:31 Patrice Clement
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1509131909.837dc7dc52c71e9982e9f56d71651d3a9d515468.monsieurp@gentoo \
--to=monsieurp@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox