Gentoo Archives: gentoo-commits

From: Chris Reffett <creffett@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/xmind/
Date: Mon, 29 Feb 2016 23:40:46
Message-Id: 1456789151.17cf79885f38e87bfc8363f2559a48a4fab25612.creffett@gentoo
1 commit: 17cf79885f38e87bfc8363f2559a48a4fab25612
2 Author: Chris Reffett <creffett <AT> gentoo <DOT> org>
3 AuthorDate: Mon Feb 29 23:39:11 2016 +0000
4 Commit: Chris Reffett <creffett <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 29 23:39:11 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=17cf7988
7
8 app-misc/xmind: Version bump
9
10 Package-Manager: portage-2.2.27
11
12 app-misc/xmind/Manifest | 1 +
13 app-misc/xmind/xmind-3.6.1.ebuild | 88 +++++++++++++++++++++++++++++++++++++++
14 2 files changed, 89 insertions(+)
15
16 diff --git a/app-misc/xmind/Manifest b/app-misc/xmind/Manifest
17 index ae24342..ad0fb1e 100644
18 --- a/app-misc/xmind/Manifest
19 +++ b/app-misc/xmind/Manifest
20 @@ -1,3 +1,4 @@
21 +DIST xmind-7-update1-portable.zip 263875799 SHA256 2823c93178e55ff21d3a75ff2a9d2aa694f50a94a7220207a1ad757660cdf030 SHA512 c60cda54af5aefefde480627e7191ebdaf32df27e2873ac738ee7814ad0acda7066ef1ff62ffdc16148d190438d60991ca036fe0903cda44edbab91e2237b4bb WHIRLPOOL 4f177c52faef598143eb479b5cd9f7a55ddd7c82e7610852f01074227f6d8a29cf00c4ddd3d3d35d30ae6e859670791734594cf2c1f6d2ab2ec406207b612350
22 DIST xmind-icons.tar.xz 5024 SHA256 6a5e087c5c66aa6f36b7822268b486922157e3b75a091b6fbdeec905607b8aa5 SHA512 3ee6b8e42b75305bec8f97f733575f10ca3d08e1c5a76a10700776cb7740ae6f8a0f3dfbc4112d60ab2499915ca4ea0e3d56fd49e55bec00fccdc8710d9f9f0d WHIRLPOOL 590571a8b950ff6200d92417ab7eede2a8856263bc07c00fb129d751d9a00ae9bab69d916aab2f04d8270eadb0466723e99570032eacabd7350afd3cca4b8f23
23 DIST xmind-portable-3.4.1.201401221918.zip 138440913 SHA256 f70b8317ec0fe512e507bc26cc7fed70348af3c1d8c17603a78359175fc01261 SHA512 06d6473b26a0eef97d6651d14c13d7fd28fda19b33b2aea4f924d2e0f0d3131f19d5b64e081ba0d537c44eb09e27a83596aca91156bd32c5377903fbb7da9804 WHIRLPOOL 2601e8f293ef97d12576a461bb3b7a8e68bf6a4f807f780b9e6b7a12c20030bc979f61cf1f76f6deb617c57aa2c16e8d35621e66c5df825f8800ca38304d8ee0
24 DIST xmind-portable-3.5.1.201411201906.zip 160601004 SHA256 920321dc254604d51d4b3b4718ba04271de0e47b63a836fc597467c4062a89e4 SHA512 24da7bf3bfbc0beddbf6f4bb4b9d465e28c652b6e80ba9e0bc2a52cc2ff8c175a83ea8cc0d5b3dc87961c5b6666b6294ca836e29795631db41455ef1b8b2b3f0 WHIRLPOOL 9dab13d6578fe7e817cfa43ce171e33ae5f6d0f939f307b8cf15d651a70800763776bf9ed318a7116716dc7aa20793455a771d46f38ca13780dc9272024f73fe
25
26 diff --git a/app-misc/xmind/xmind-3.6.1.ebuild b/app-misc/xmind/xmind-3.6.1.ebuild
27 new file mode 100644
28 index 0000000..a83c4cd
29 --- /dev/null
30 +++ b/app-misc/xmind/xmind-3.6.1.ebuild
31 @@ -0,0 +1,88 @@
32 +# Copyright 1999-2016 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +# $Id$
35 +
36 +EAPI=6
37 +
38 +inherit eutils multilib gnome2-utils
39 +
40 +MY_PV="7-update1"
41 +MY_P="${PN}-${MY_PV}-portable"
42 +
43 +DESCRIPTION="A brainstorming and mind mapping software tool"
44 +HOMEPAGE="http://www.xmind.net"
45 +SRC_URI="http://dl2.xmind.net/xmind-downloads/${MY_P}.zip
46 + https://dev.gentoo.org/~creffett/distfiles/xmind-icons.tar.xz"
47 +LICENSE="EPL-1.0 LGPL-3"
48 +SLOT="0"
49 +KEYWORDS="~amd64 ~x86"
50 +IUSE=""
51 +
52 +RDEPEND="
53 + >=virtual/jre-1.5
54 + x11-libs/gtk+:2
55 +"
56 +
57 +S=${WORKDIR}
58 +
59 +QA_PRESTRIPPED="opt/xmind/XMind/libcairo-swt.so"
60 +QA_FLAGS_IGNORED="
61 + opt/xmind/Commons/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20120522-1813/eclipse_1502.so
62 + opt/xmind/Commons/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.1.200.v20120522-1813/eclipse_1502.so
63 + opt/xmind/XMind/libcairo-swt.so
64 + opt/xmind/XMind/XMind
65 +"
66 +
67 +src_configure() {
68 + if use amd64; then
69 + XDIR="XMind_Linux_64bit"
70 + else
71 + XDIR="XMind_Linux"
72 + fi
73 + mv "$XDIR" XMind || die
74 + cp "${FILESDIR}"/${PN}-3.4.0-config.ini Commons/configuration || die #Combined common+linux config.ini
75 + # force data instance & config area to be at home/.xmind directory
76 + sed \
77 + -e '/-configuration/d' \
78 + -e '/\.\/configuration/d' \
79 + -e '/-data/d' \
80 + -e '/\.\.\/Commons\/data\/workspace-cathy/d' \
81 + -e 's/\.\.\/Commons/\/opt\/xmind\/Commons/g' \
82 + -i XMind/XMind.ini || die
83 + echo '-Dosgi.instance.area=@user.home/.xmind/workspace-cathy' >> XMind/XMind.ini || die
84 + echo '-Dosgi.configuration.area=@user.home/.xmind/configuration-cathy' >> XMind/XMind.ini || die
85 +}
86 +
87 +src_compile() {
88 + :
89 +}
90 +
91 +src_install() {
92 + insinto /opt/xmind
93 + doins -r Commons XMind
94 + fperms a+rx "/opt/xmind/XMind/XMind"
95 +
96 + exeinto /opt/bin
97 + newexe "${FILESDIR}/xmind-wrapper-3.5.3" xmind
98 +
99 + # install icons
100 + local res
101 + for res in 16 32 48; do
102 + newicon -s ${res} "${WORKDIR}/xmind-icons/xmind.${res}.png" xmind.png
103 + done
104 +
105 + make_desktop_entry ${PN} "XMind" ${PN} "Office" "MimeType=application/x-xmind;"
106 +}
107 +
108 +pkg_preinst() {
109 + gnome2_icon_savelist
110 +}
111 +
112 +pkg_postinst() {
113 + gnome2_icon_cache_update
114 + elog "For audio notes support, install media-sound/lame"
115 +}
116 +
117 +pkg_postrm() {
118 + gnome2_icon_cache_update
119 +}