summaryrefslogtreecommitdiff
path: root/app-misc/freemind
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /app-misc/freemind
reinit the tree, so we can have metadata
Diffstat (limited to 'app-misc/freemind')
-rw-r--r--app-misc/freemind/Manifest5
-rw-r--r--app-misc/freemind/freemind-1.0.1-r2.ebuild121
-rw-r--r--app-misc/freemind/metadata.xml17
3 files changed, 143 insertions, 0 deletions
diff --git a/app-misc/freemind/Manifest b/app-misc/freemind/Manifest
new file mode 100644
index 000000000000..8638c639134f
--- /dev/null
+++ b/app-misc/freemind/Manifest
@@ -0,0 +1,5 @@
+DIST freemind-src-1.0.1.tar.gz 31617138 SHA256 018285126b27eae7392b8c3bfb513f25bd70b9907440e5eb8209f20b4fbd8619 SHA512 f3b7bd526da3075e883292fc88dd5b01f5b0112c58cfeae25a6be9c7dbf4a5444839821e3e2554303032d832b4520fa742894c09ded2705270f51aca98167fb5 WHIRLPOOL 5c3e1c795060bb92bced84fcf785c721c0ecf2ea8fcd8440cfe4935255bb4685c78dc4ad5991ee425a3c7d37589a8698ee9e1b3e4c63d362bc172edbe4e281da
+EBUILD freemind-1.0.1-r2.ebuild 3041 SHA256 4e8a390015f14ee5bbc5076ec1577affe4831eb9975ea23465fe84bf1fedfff2 SHA512 e5cfa780adc91cf4dda6aba410458711f3b9b5de0fd1f977a359ad406ca0ad9d1dd154fc3249ba34cafd11ef312f458065cd01151ef3cbf636b646a37432e412 WHIRLPOOL b9dff36f784cae4afbe763d652f3996fbc426e72e263a94d7a068b7e545711c87fb758e8f34cf6c8749f258a013c4288f1377c893e1a53d40dbd983406b400cd
+MISC ChangeLog 2957 SHA256 9e704d407321b1de7d44ade1e9604594d1fbda3c3920528486ba70be8c80ff51 SHA512 2134d58eaccf7497506ad7a78b107112045c05abf15889f98bb4239b9882d3e82a1e8a3f8583157563e080ce36ca06346cb388ec3de20a107c44881eca660cc2 WHIRLPOOL 337ca02b5f6b09a542db66b07e5c6ee65b094aaae13144108becee7a8cd4cd4efa641e9b560e04c7ba5ce4b6094037efd52b24bec85d85fd59bd2213dde5c530
+MISC ChangeLog-2015 12051 SHA256 c3f7fbf2e1b8217042491cf3eda417093b041c0b0b9e48097825bbc80fdfd3bf SHA512 a2f278195afae2254eaa4d3d2af0d41292c20934facd55d34c9fd7258a952b1f7216610776b794647bd01c991f8cfa03d01dcd698075cc67a3d6e24fcdc228a0 WHIRLPOOL 6e29465592ddcc3ef11e5cdbaa7fac5fb3651e8d4b778d7817f777fae78e92133ce66130dfd31209ddc51f11979c71cd1453bf2814c640b72351a65ee698faa0
+MISC metadata.xml 643 SHA256 bb4552970de23143cb509d162bb941de0634e992e29ac9ed468e8afed4704ee1 SHA512 2075eb39f587784119d83827cd4614dab2146bac37440ed3b8430fcb29fb4b0a1f53470e72f64ba875908e0b64a894074627e7beb6aa5d29d1893afa47445788 WHIRLPOOL 8af0ec2f6029967e033c7d652b76e55a33510cb695cd0cc72b464611740c13b8ae462b10bed2af91fa16880c3b3ccda906e4ec9b577120e799cc47870be5dadc
diff --git a/app-misc/freemind/freemind-1.0.1-r2.ebuild b/app-misc/freemind/freemind-1.0.1-r2.ebuild
new file mode 100644
index 000000000000..41a1ca8b39f9
--- /dev/null
+++ b/app-misc/freemind/freemind-1.0.1-r2.ebuild
@@ -0,0 +1,121 @@
+# Copyright 1999-2015 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.8
+ dev-java/fop:0
+ )
+ svg? (
+ dev-java/batik:1.8
+ 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.8,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
+}
diff --git a/app-misc/freemind/metadata.xml b/app-misc/freemind/metadata.xml
new file mode 100644
index 000000000000..7218d43e0873
--- /dev/null
+++ b/app-misc/freemind/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>java@gentoo.org</email>
+ <name>Java</name>
+ </maintainer>
+ <use>
+ <flag name="groovy">Build plugin for scripting via Groovy</flag>
+ <flag name="latex">Build plugin for inserting mathematical formulas in LaTeX syntax</flag>
+ <flag name="pdf">Build plugin for exporting mindmaps to SVG and PDF</flag>
+ <flag name="svg">Build plugin for exporting mindmaps to SVG and PDF</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">freemind</remote-id>
+ </upstream>
+</pkgmetadata>