summaryrefslogtreecommitdiff
path: root/app-misc/xmind
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/xmind
reinit the tree, so we can have metadata
Diffstat (limited to 'app-misc/xmind')
-rw-r--r--app-misc/xmind/Manifest14
-rw-r--r--app-misc/xmind/files/xmind-3.4.0-config.ini20
-rw-r--r--app-misc/xmind/files/xmind-wrapper8
-rw-r--r--app-misc/xmind/files/xmind-wrapper-3.5.38
-rw-r--r--app-misc/xmind/files/xmind-wrapper-3.7.08
-rw-r--r--app-misc/xmind/metadata.xml8
-rw-r--r--app-misc/xmind/xmind-3.5.3.201506180105-r2.ebuild88
-rw-r--r--app-misc/xmind/xmind-3.7.1.ebuild92
-rw-r--r--app-misc/xmind/xmind-3.7.2.ebuild92
9 files changed, 338 insertions, 0 deletions
diff --git a/app-misc/xmind/Manifest b/app-misc/xmind/Manifest
new file mode 100644
index 000000000000..c6698dbb230d
--- /dev/null
+++ b/app-misc/xmind/Manifest
@@ -0,0 +1,14 @@
+AUX xmind-3.4.0-config.ini 1671 SHA256 2cb53e4e8d3533057b2215cfa351b093859440fdbf11e068156548d275ca926f SHA512 dc6e054839eeadd6aab4abd41f42766567404b44b5d7fbaaad785a45f1b9c1d92e4eeaafb936bfff8d827c6ebfbccf4b02f3f417c2a8280300f377608913f763 WHIRLPOOL 3c0b86abf80888afb84205d5053c4a53c041e7731adb618b2d9e67c61df84f1a9e4762435c7747a02fc47a3f491acfbba5b0e909bb5271f794dbc450abb113f2
+AUX xmind-wrapper 488 SHA256 79d6098d48b7076924d08fb12158d5a614102b5fe95f350b7a8850b4d52aaba8 SHA512 f400d3f527897f087d5e20bce43299a20bd64a458f7c95a47447c78bf0c2b951a8f38d29e4a6ce028a9b421c41880fb5850184cb0b190de79f712ec807dbf9d7 WHIRLPOOL aed064b864f0ee27525d54db45f16b130624e20c9571deb6563a12af368db629184d4d72815919d13dc1ff3cae948b50292229cb193872c5e4ea7342a3dcc91d
+AUX xmind-wrapper-3.5.3 493 SHA256 09fdbdbaba354681cf9df115f24a9f97db3ba6d7057cfe6896169b68fbf7dfa1 SHA512 555e1103dc5714bb5924421899262f1112c83807233c9969afdaa0eb0cba631b13e4fa984af7c2029fe57fb7e135f51a1d00e3dd3fffb8bcf3bb96eb93dfad80 WHIRLPOOL b36ab3f420f46305d662c7d6e49a0081b482832d0cb4d741951d7b83dfcbe2169f538dc8ce73a35afc3965e126657059604a84478ba51e8f588c1acb078c3f2f
+AUX xmind-wrapper-3.7.0 504 SHA256 9f69c91340f35e05930d12eb49c45a743f3400dc8f9596d87536dd23a29776ef SHA512 452560c9b1ab68df745616ac032089fb05f1aab61c7e1b247eb241195dd38e11b69459abb5e2b6696db76e2e421291de4dc41030f525f77f0e30522b52540248 WHIRLPOOL 5a69513c76e7d8878fb7ccbbdcca4d23117e1fab8c529c63c3f9417d03d23d09598848a6f3ecbbf72af85defeef61a7dc7a1c507c52d5e3f921a1a84d7f2277e
+DIST xmind-8-update1-linux.zip 142395100 SHA256 59dc865856d8b560ebc5a9d220a26e6694cb004b67cd1e7c76e177637f432e35 SHA512 725268287dfa9dc9a5d9fd429277eecd43ef2e09158b3bb8ef51e06355620741b2aa709c227debd0069f4401623b7274082f6b81b3ace153289ef7ffac25fca4 WHIRLPOOL 2b23a85c56d44ac3d4fa8480e6995386a2595f8947932a0e8179238f78c088c1b7af9b8ffc532121175ad7c0ab02fdecaae9008c53d99e1a5724225d0c689df5
+DIST xmind-8-update2-linux.zip 120800791 SHA256 e4b1a4f6b98b4d8801f09b12def790bbc4516d8ea1cc4463df7f0cc9485bfe23 SHA512 e658714a5944e8de62577302c22763e9c55d1f82ce6cbda187ec39801ac7cbd5c34de6e4d7d9735546bcef26795c21c194ff026cebf39b2c9af2663cec98ce58 WHIRLPOOL 0749a7611d06479e1fe2bba338d2437cc3731989eb07fb87ac1d36067f1ce315ad738adee867faa67394b387a3ee6aa25d1d35015f37b4b955ea877b2419aad9
+DIST xmind-icons.tar.xz 5024 SHA256 6a5e087c5c66aa6f36b7822268b486922157e3b75a091b6fbdeec905607b8aa5 SHA512 3ee6b8e42b75305bec8f97f733575f10ca3d08e1c5a76a10700776cb7740ae6f8a0f3dfbc4112d60ab2499915ca4ea0e3d56fd49e55bec00fccdc8710d9f9f0d WHIRLPOOL 590571a8b950ff6200d92417ab7eede2a8856263bc07c00fb129d751d9a00ae9bab69d916aab2f04d8270eadb0466723e99570032eacabd7350afd3cca4b8f23
+DIST xmind-portable-3.5.3.201506180105.zip 159265180 SHA256 38a20e7c4a19c13eb26f5f27ff1898fa4ca463d234e72c616b2305c7a3b31efc SHA512 d41deebec769d06276d051c57e546c44e4283feabd5f6c45ce97efdbf755d75e9b99d39b6fd10baf2f4735f25a695d2902ca9888d94ad414318f38c55e3f4af5 WHIRLPOOL 8aae5af4a2ad14afc2883b56a8b57b9906a7a1cd8e7959175d3a3e780b48725d5e7af83325e0c10e4f5cfee921637656171d21f8190f47810d7b40095a0da489
+EBUILD xmind-3.5.3.201506180105-r2.ebuild 2215 SHA256 0a60d5a3d91ff0617d3e7c43f6cc1fc47db15fe509021435a1a20b928fa9de00 SHA512 af0c431cca019f4b5b1228daf2931e1bed1d8d01711aa1a19aa3b73d75176f08e10d6353c8a0460f33dff0b13dcd9d4f3b7cd8d32fa89611663ead849674d7a0 WHIRLPOOL 31488ac9f66e920a361e1b09424c5db160b01b1e92fa14422b17b057bed23e9b7a6c367450d459eed73d896e15741d643da8a88435d0e9be02e8371f2c054138
+EBUILD xmind-3.7.1.ebuild 2186 SHA256 4a44fa8ace1f8f9c3ce6f0e40705e8cc676f9bc7ed8582733862a733289eefc7 SHA512 4d6eddb169f546dd7d119525db843abe4b7a450b56fb972c59011ba1d0b994bd25fae4ecf53208632407abaca7796d906a357cf99f60655b47ebb52ae4d0c214 WHIRLPOOL 352c233769b60d3e553d1e09436f29fff2caaac15f8ff90ca31cc101d8a8c004526fdfb042ec3c52bda791b99beb04037988964eb3049e95f464973007dc1b78
+EBUILD xmind-3.7.2.ebuild 2186 SHA256 5d9ef292a0a18a7ca68ee00ee77803a72ba60539fe2ed844b16fcd4b59675eaf SHA512 d5960a6dbedff1000859ced4aee8e43f86bd5fe63ea61e046c78a31c1634e1e653523f2f446e9429fb5d228623e81fad90279c18d29e1111a9b667543e2c9f1a WHIRLPOOL 7da1b6bc7165b540413e5f32a59c607fa9c5459da8ed5499dcfd2dc50ea16e65f0f7a514e7cbd5234f61bdf51c80f203b58999a010248bce096de8ce800152a0
+MISC ChangeLog 4890 SHA256 03b60aaca65f5ad2d8db0d59ca4ef301a191f3b2fd93d47399daac14964ace63 SHA512 53f918e7e0663f9a8245d421ea929d590aa11d2caf9d4f80d3c760c469e5d7ac7ea7faf67466a4b10e4d45f451f8a9b8409cab3f542250e8b4b3d28ad5a18b08 WHIRLPOOL c6069971254421292a47bc4af084d04c9409832a1fd485db6b169042b437d5119cd32a73a4a532560cb8645129268aa30cbf7f3d5d4d7d7a2d87b691af4f4c84
+MISC ChangeLog-2015 2816 SHA256 878639db21ae27d9f934a3da8828b1b666b3f131ef98986b43597f6148ee1c49 SHA512 88d10252fb897f618bcc10dd4402e3c7faba581ba33d369ea53ba4080b577366a721317ea122845301ccd3150914c144fe9418064cb2ddeca050c3448896de1e WHIRLPOOL 99cdab33b855abe71c32d59a1e9518f6ed101bb50541551bc752bee00bbe66459406bb7f9d72da1f763a34d90133f5775552731fc94103d2fa20c881b22da80f
+MISC metadata.xml 248 SHA256 276c1a0ca13c7abf47c84827347c1ed936141b1cbc6dc7f68061718cae3ca120 SHA512 29d9aef2134dc48ca8f1cf14bcb7197920bee680270c75fa551c892c9bbaa325a1a6cc6e97a25e1a33c1dc36e1c7085abb3672559b9803285d755db6eefe12a3 WHIRLPOOL 71e74598e61b7af968f3747f7fea0ded96efec00de3ec771a4bce49c8f7d897ed33958f9e76383703eb4058ed765c6ca13f3b0fd4f604bc4bb2b0806943f55ba
diff --git a/app-misc/xmind/files/xmind-3.4.0-config.ini b/app-misc/xmind/files/xmind-3.4.0-config.ini
new file mode 100644
index 000000000000..62abbd1f31ff
--- /dev/null
+++ b/app-misc/xmind/files/xmind-3.4.0-config.ini
@@ -0,0 +1,20 @@
+#These configurations are shared among all installs. Branded For XMind 2013.
+#Tue, 05 Nov 2013 22:06:37 +0800
+
+eclipse.buildId=3.4.0.201311050558
+org.xmind.product.distribution.id=cathy_portable
+org.xmind.product.license.restrictions=
+org.xmind.debug.core.workbookSave=true
+#This configuration file was written by: org.eclipse.equinox.internal.frameworkadmin.equinox.EquinoxFwConfigFileParser
+#Tue Nov 05 22:05:55 HKT 2013
+eclipse.p2.profile=profile
+osgi.framework=file\:plugins/org.eclipse.osgi_3.8.2.v20130124-134944.jar
+osgi.bundles=reference\:file\:org.eclipse.equinox.simpleconfigurator_1.0.301.v20120914-163612.jar@1\:start
+org.eclipse.equinox.simpleconfigurator.configUrl=file\:org.eclipse.equinox.simpleconfigurator/bundles.info
+eclipse.product=org.xmind.cathy.product
+osgi.splashPath=platform\:/base/plugins/org.xmind.cathy
+osgi.framework.extensions=reference\:file\:org.eclipse.osgi.nl_da_4.2.0.v20121120043402.jar,reference\:file\:org.eclipse.osgi.nl_de_4.2.0.v20121120043402.jar,reference\:file\:org.eclipse.osgi.nl_es_4.2.0.v20121120043402.jar,reference\:file\:org.eclipse.osgi.nl_fr_4.2.0.v20121120043402.jar,reference\:file\:org.eclipse.osgi.nl_ja_4.2.0.v20121120043402.jar,reference\:file\:org.eclipse.osgi.nl_ko_4.2.0.v20121120043402.jar,reference\:file\:org.eclipse.osgi.nl_ru_4.2.0.v20121120043402.jar,reference\:file\:org.eclipse.osgi.nl_sl_4.2.0.v20121120043402.jar,reference\:file\:org.eclipse.osgi.nl_zh_4.2.0.v20121120043402.jar,reference\:file\:org.eclipse.osgi.nl_zh_TW_4.2.0.v20121120043402.jar
+osgi.bundles.defaultStartLevel=4
+eclipse.p2.data.area=@config.dir/../p2
+eclipse.application=org.xmind.cathy.application
+osgi.requiredJavaVersion=1.5
diff --git a/app-misc/xmind/files/xmind-wrapper b/app-misc/xmind/files/xmind-wrapper
new file mode 100644
index 000000000000..728edce3e24a
--- /dev/null
+++ b/app-misc/xmind/files/xmind-wrapper
@@ -0,0 +1,8 @@
+#!/bin/bash
+#XMind wrapper script, copies configuration stuff into the user's local config dir if either
+#the files aren't there or are older than the set in /opt (indicating that XMind has been upgraded)
+if [ ! -f ~/.xmind/configuration-cathy/config.ini -o ~/.xmind/configuration-cathy/config.ini -ot /opt/xmind/XMind/configuration/config.ini ]; then
+ mkdir -p ~/.xmind/configuration-cathy
+ cp -r /opt/xmind/XMind/configuration/* ~/.xmind/configuration-cathy/
+fi
+/opt/xmind/XMind/XMind
diff --git a/app-misc/xmind/files/xmind-wrapper-3.5.3 b/app-misc/xmind/files/xmind-wrapper-3.5.3
new file mode 100644
index 000000000000..b38ef1476246
--- /dev/null
+++ b/app-misc/xmind/files/xmind-wrapper-3.5.3
@@ -0,0 +1,8 @@
+#!/bin/bash
+#XMind wrapper script, copies configuration stuff into the user's local config dir if either
+#the files aren't there or are older than the set in /opt (indicating that XMind has been upgraded)
+if [ ! -f ~/.xmind/configuration-cathy/config.ini -o ~/.xmind/configuration-cathy/config.ini -ot /opt/xmind/XMind/configuration/config.ini ]; then
+ mkdir -p ~/.xmind/configuration-cathy
+ cp -r /opt/xmind/XMind/configuration/* ~/.xmind/configuration-cathy/
+fi
+/opt/xmind/XMind/XMind "$@"
diff --git a/app-misc/xmind/files/xmind-wrapper-3.7.0 b/app-misc/xmind/files/xmind-wrapper-3.7.0
new file mode 100644
index 000000000000..41636ffd4c2b
--- /dev/null
+++ b/app-misc/xmind/files/xmind-wrapper-3.7.0
@@ -0,0 +1,8 @@
+#!/bin/bash
+#XMind wrapper script, copies configuration stuff into the user's local config dir if either
+#the files aren't there or are older than the set in /opt (indicating that XMind has been upgraded)
+if [ ! -f ~/.xmind/configuration-cathy/config.ini -o ~/.xmind/configuration-cathy/config.ini -ot /opt/xmind/XMind/configuration/config.ini ]; then
+ mkdir -p ~/.xmind/configuration-cathy
+ cp -r /opt/xmind/XMind/configuration/* ~/.xmind/configuration-cathy/
+fi
+SWT_GTK3=0 /opt/xmind/XMind/XMind "$@"
diff --git a/app-misc/xmind/metadata.xml b/app-misc/xmind/metadata.xml
new file mode 100644
index 000000000000..8c8ef6e93c28
--- /dev/null
+++ b/app-misc/xmind/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>creffett@gentoo.org</email>
+ <name>Chris Reffett</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-misc/xmind/xmind-3.5.3.201506180105-r2.ebuild b/app-misc/xmind/xmind-3.5.3.201506180105-r2.ebuild
new file mode 100644
index 000000000000..437bcef1b8d3
--- /dev/null
+++ b/app-misc/xmind/xmind-3.5.3.201506180105-r2.ebuild
@@ -0,0 +1,88 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils multilib gnome2-utils
+
+MY_PN="${PN}-portable"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="A brainstorming and mind mapping software tool"
+HOMEPAGE="http://www.xmind.net"
+SRC_URI="http://dl2.xmind.net/xmind-downloads/${MY_P}.zip
+ https://dev.gentoo.org/~creffett/distfiles/xmind-icons.tar.xz"
+LICENSE="EPL-1.0 LGPL-3"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND="
+ >=virtual/jre-1.5
+ x11-libs/gtk+:2
+"
+
+S=${WORKDIR}
+
+QA_PRESTRIPPED="opt/xmind/XMind/libcairo-swt.so"
+QA_FLAGS_IGNORED="
+ opt/xmind/Commons/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20120522-1813/eclipse_1502.so
+ opt/xmind/Commons/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.1.200.v20120522-1813/eclipse_1502.so
+ opt/xmind/XMind/libcairo-swt.so
+ opt/xmind/XMind/XMind
+"
+
+src_configure() {
+ if use amd64; then
+ XDIR="XMind_Linux_64bit"
+ else
+ XDIR="XMind_Linux"
+ fi
+ mv "$XDIR" XMind || die
+ mv XMind/.eclipseproduct Commons || die
+ cp "${FILESDIR}"/${PN}-3.4.0-config.ini Commons/configuration || die #Combined common+linux config.ini
+ # force data instance & config area to be at home/.xmind directory
+ sed \
+ -e '/-configuration/d' \
+ -e '/\.\/configuration/d' \
+ -e '/-data/d' \
+ -e '/\.\.\/Commons\/data\/workspace-cathy/d' \
+ -e 's/\.\.\/Commons/\/opt\/xmind\/Commons/g' \
+ -i XMind/XMind.ini || die
+ echo '-Dosgi.instance.area=@user.home/.xmind/workspace-cathy' >> XMind/XMind.ini || die
+ echo '-Dosgi.configuration.area=@user.home/.xmind/configuration-cathy' >> XMind/XMind.ini || die
+}
+
+src_compile() {
+ :
+}
+
+src_install() {
+ insinto /opt/xmind
+ doins -r Commons XMind
+ fperms a+rx "/opt/xmind/XMind/XMind"
+
+ exeinto /opt/bin
+ newexe "${FILESDIR}/xmind-wrapper-3.5.3" xmind
+
+ # install icons
+ local res
+ for res in 16 32 48; do
+ newicon -s ${res} "${WORKDIR}/xmind-icons/xmind.${res}.png" xmind.png
+ done
+
+ make_desktop_entry ${PN} "XMind" ${PN} "Office" "MimeType=application/x-xmind;"
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+ elog "For audio notes support, install media-sound/lame"
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/app-misc/xmind/xmind-3.7.1.ebuild b/app-misc/xmind/xmind-3.7.1.ebuild
new file mode 100644
index 000000000000..3e9a42274d25
--- /dev/null
+++ b/app-misc/xmind/xmind-3.7.1.ebuild
@@ -0,0 +1,92 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils multilib gnome2-utils font
+
+MY_PV="8-update1"
+MY_P="${PN}-${MY_PV}-linux"
+
+DESCRIPTION="A brainstorming and mind mapping software tool"
+HOMEPAGE="http://www.xmind.net"
+SRC_URI="http://dl2.xmind.net/xmind-downloads/${MY_P}.zip
+ https://dev.gentoo.org/~creffett/distfiles/xmind-icons.tar.xz"
+LICENSE="EPL-1.0 LGPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="
+ >=virtual/jre-1.8
+ x11-libs/gtk+:2
+"
+
+S=${WORKDIR}
+
+QA_PRESTRIPPED="opt/xmind/XMind/libcairo-swt.so"
+QA_FLAGS_IGNORED="
+ opt/xmind/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.1.400.v20160518-1444/eclipse_1617.so
+ opt/xmind/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.400.v20160518-1444/eclipse_1617.so
+ opt/xmind/XMind/XMind
+"
+
+FONT_SUFFIX="ttf"
+FONT_S="${S}/fonts"
+
+src_configure() {
+ if use amd64; then
+ XDIR="XMind_amd64"
+ else
+ XDIR="XMind_i388"
+ fi
+ mv "$XDIR" XMind || die
+ # force data instance & config area to be at home/.xmind directory
+ sed \
+ -e '/-configuration/d' \
+ -e '/\.\/configuration/d' \
+ -e '/-data/d' \
+ -e '/\.\.\/Commons\/data\/workspace-cathy/d' \
+ -e 's/\.\.\/plugins/\/opt\/xmind\/plugins/g' \
+ -e '/-vmargs/i-showsplash' \
+ -e '/vmargs/iorg.xmind.cathy' \
+ -i XMind/XMind.ini || die
+ echo '-Dosgi.instance.area=@user.home/.xmind/workspace-cathy' >> XMind/XMind.ini || die
+ echo '-Dosgi.configuration.area=@user.home/.xmind/configuration-cathy' >> XMind/XMind.ini || die
+}
+
+src_compile() {
+ :
+}
+
+src_install() {
+ insinto /opt/xmind
+ doins -r plugins configuration features XMind
+ fperms a+rx "/opt/xmind/XMind/XMind"
+
+ exeinto /opt/bin
+ newexe "${FILESDIR}/xmind-wrapper-3.7.0" xmind
+
+ # install icons
+ local res
+ for res in 16 32 48; do
+ newicon -s ${res} "${WORKDIR}/xmind-icons/xmind.${res}.png" xmind.png
+ done
+
+ make_desktop_entry ${PN} "XMind" ${PN} "Office" "MimeType=application/x-xmind;"
+ font_src_install
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+ font_pkg_postinst
+ elog "For audio notes support, install media-sound/lame"
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/app-misc/xmind/xmind-3.7.2.ebuild b/app-misc/xmind/xmind-3.7.2.ebuild
new file mode 100644
index 000000000000..e8a9a4ed312c
--- /dev/null
+++ b/app-misc/xmind/xmind-3.7.2.ebuild
@@ -0,0 +1,92 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils multilib gnome2-utils font
+
+MY_PV="8-update2"
+MY_P="${PN}-${MY_PV}-linux"
+
+DESCRIPTION="A brainstorming and mind mapping software tool"
+HOMEPAGE="http://www.xmind.net"
+SRC_URI="http://dl2.xmind.net/xmind-downloads/${MY_P}.zip
+ https://dev.gentoo.org/~creffett/distfiles/xmind-icons.tar.xz"
+LICENSE="EPL-1.0 LGPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="
+ >=virtual/jre-1.8
+ x11-libs/gtk+:2
+"
+
+S=${WORKDIR}
+
+QA_PRESTRIPPED="opt/xmind/XMind/libcairo-swt.so"
+QA_FLAGS_IGNORED="
+ opt/xmind/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.1.400.v20160518-1444/eclipse_1617.so
+ opt/xmind/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.400.v20160518-1444/eclipse_1617.so
+ opt/xmind/XMind/XMind
+"
+
+FONT_SUFFIX="ttf"
+FONT_S="${S}/fonts"
+
+src_configure() {
+ if use amd64; then
+ XDIR="XMind_amd64"
+ else
+ XDIR="XMind_i388"
+ fi
+ mv "$XDIR" XMind || die
+ # force data instance & config area to be at home/.xmind directory
+ sed \
+ -e '/-configuration/d' \
+ -e '/\.\/configuration/d' \
+ -e '/-data/d' \
+ -e '/\.\.\/Commons\/data\/workspace-cathy/d' \
+ -e 's/\.\.\/plugins/\/opt\/xmind\/plugins/g' \
+ -e '/-vmargs/i-showsplash' \
+ -e '/vmargs/iorg.xmind.cathy' \
+ -i XMind/XMind.ini || die
+ echo '-Dosgi.instance.area=@user.home/.xmind/workspace-cathy' >> XMind/XMind.ini || die
+ echo '-Dosgi.configuration.area=@user.home/.xmind/configuration-cathy' >> XMind/XMind.ini || die
+}
+
+src_compile() {
+ :
+}
+
+src_install() {
+ insinto /opt/xmind
+ doins -r plugins configuration features XMind
+ fperms a+rx "/opt/xmind/XMind/XMind"
+
+ exeinto /opt/bin
+ newexe "${FILESDIR}/xmind-wrapper-3.7.0" xmind
+
+ # install icons
+ local res
+ for res in 16 32 48; do
+ newicon -s ${res} "${WORKDIR}/xmind-icons/xmind.${res}.png" xmind.png
+ done
+
+ make_desktop_entry ${PN} "XMind" ${PN} "Office" "MimeType=application/x-xmind;"
+ font_src_install
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+ font_pkg_postinst
+ elog "For audio notes support, install media-sound/lame"
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}