From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- app-misc/xmind/xmind-3.7.1.ebuild | 92 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 92 insertions(+) create mode 100644 app-misc/xmind/xmind-3.7.1.ebuild (limited to 'app-misc/xmind/xmind-3.7.1.ebuild') 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 +} -- cgit v1.2.3