1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit eutils multilib gnome2-utils font
9 MY_P="${PN}-${MY_PV}-linux"
11 DESCRIPTION="A brainstorming and mind mapping software tool"
12 HOMEPAGE="http://www.xmind.net"
13 SRC_URI="http://dl2.xmind.net/xmind-downloads/${MY_P}.zip
14 https://dev.gentoo.org/~creffett/distfiles/xmind-icons.tar.xz"
15 LICENSE="EPL-1.0 LGPL-3"
17 KEYWORDS="~amd64 ~x86"
27 QA_PRESTRIPPED="opt/xmind/XMind/libcairo-swt.so"
29 opt/xmind/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.1.400.v20160518-1444/eclipse_1617.so
30 opt/xmind/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.400.v20160518-1444/eclipse_1617.so
43 mv "$XDIR" XMind || die
44 # force data instance & config area to be at home/.xmind directory
46 -e '/-configuration/d' \
47 -e '/\.\/configuration/d' \
49 -e '/\.\.\/Commons\/data\/workspace-cathy/d' \
50 -e 's/\.\.\/plugins/\/opt\/xmind\/plugins/g' \
51 -e '/-vmargs/i-showsplash' \
52 -e '/vmargs/iorg.xmind.cathy' \
53 -i XMind/XMind.ini || die
54 echo '-Dosgi.instance.area=@user.home/.xmind/workspace-cathy' >> XMind/XMind.ini || die
55 echo '-Dosgi.configuration.area=@user.home/.xmind/configuration-cathy' >> XMind/XMind.ini || die
64 doins -r plugins configuration features XMind
65 fperms a+rx "/opt/xmind/XMind/XMind"
68 newexe "${FILESDIR}/xmind-wrapper-3.7.0" xmind
72 for res in 16 32 48; do
73 newicon -s ${res} "${WORKDIR}/xmind-icons/xmind.${res}.png" xmind.png
76 make_desktop_entry ${PN} "XMind" ${PN} "Office" "MimeType=application/x-xmind;"
85 gnome2_icon_cache_update
87 elog "For audio notes support, install media-sound/lame"
91 gnome2_icon_cache_update