[Lunar-commits] <moonbase> freeplane: version 1.0.44 added to moonbase

Duncan Gibson engelsman at lunar-linux.org
Sat May 29 15:03:26 CEST 2010


commit 49f1a2eb0d616f5a51e3a951c87cb8635d9cf14d
Author: Paul Bredbury <brebs at sent.com>
Date:   Sat May 29 15:03:26 2010 +0200

    freeplane: version 1.0.44 added to moonbase
    
    new module, for mind-mapping
    
    NOTE: downloads, compiles, installs,
          but there are lots of warnings that should be reported to the
          upstream site. it also ignored my xfce-panel location so the
          menu-bar was obscured. But hey! this is a zbeta module!
          engelsman
---
 zbeta/freeplane/BUILD        |   57 ++++++++++++++++++++++++++++++++++++++++++
 zbeta/freeplane/DEPENDS      |    1 +
 zbeta/freeplane/DETAILS      |   15 +++++++++++
 zbeta/freeplane/POST_INSTALL |    2 +
 4 files changed, 75 insertions(+), 0 deletions(-)

diff --git a/zbeta/freeplane/BUILD b/zbeta/freeplane/BUILD
new file mode 100644
index 0000000..5397568
--- /dev/null
+++ b/zbeta/freeplane/BUILD
@@ -0,0 +1,57 @@
+(
+
+  cd freeplane_framework/ant &&
+
+  # Don't try to run bzr
+  sedit "s:bzr_version_info, ::" build.xml &&
+
+  ant &&
+  prepare_install &&
+  cd $SOURCE_DIRECTORY/freeplane_framework/build &&
+
+  # Recognize correct data directory
+  sedit "s:\${FREEPLANE_BASE_DIR}:/usr/share/freeplane:" freeplane.sh &&
+
+  mkdir -p /usr/share/{,doc}/freeplane/ /usr/share/applications/ /usr/share/icons/hicolor/32x32/{apps,mimetypes}/  /usr/share/mime/packages/ &&
+  cp -ra * /usr/share/freeplane/ &&
+  install -D -m755 freeplane.sh /usr/bin/freeplane &&
+
+  # Desktop menu entry
+  cat > $MODULE.desktop << EOF &&
+[Desktop Entry]
+Type=Application
+Name=Freeplane
+GenericName=Mind-map
+Comment=$SHORT
+Exec=$MODULE
+Icon=$MODULE
+Categories=Office;
+MimeType=application/x-freeplane;
+EOF
+
+  install -m644 $MODULE.desktop /usr/share/applications/ &&
+  install -m644 freeplane.png /usr/share/icons/hicolor/32x32/apps/ &&
+  ln -sfn ../apps/freeplane.png /usr/share/icons/hicolor/32x32/mimetypes/application-x-freeplane.png &&
+
+  # From http://www.rfhg.de/wiki/index.php/freeplane_Ubuntu_Installation
+  cat > freeplane.xml << EOF &&
+<?xml version="1.0" encoding="UTF-8"?>
+<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
+  <mime-type type="application/x-freeplane">
+    <sub-class-of type="text/xml"/>
+    <comment>Mind-map</comment>
+    <glob pattern="*.mm"/>
+  </mime-type>
+</mime-info>
+EOF
+
+  install -m644 freeplane.xml /usr/share/mime/packages/ &&
+
+  cd doc &&
+  gather_docs *.txt &&
+
+  if [[ -e /usr/bin/gtk-update-icon-cache ]] ; then
+    gtk-update-icon-cache -f /usr/share/icons/hicolor/
+  fi
+
+) > $C_FIFO 2>&1
diff --git a/zbeta/freeplane/DEPENDS b/zbeta/freeplane/DEPENDS
new file mode 100644
index 0000000..93a1846
--- /dev/null
+++ b/zbeta/freeplane/DEPENDS
@@ -0,0 +1 @@
+depends apache-ant
diff --git a/zbeta/freeplane/DETAILS b/zbeta/freeplane/DETAILS
new file mode 100644
index 0000000..ed2d605
--- /dev/null
+++ b/zbeta/freeplane/DETAILS
@@ -0,0 +1,15 @@
+          MODULE=freeplane
+         VERSION=1.0.44
+          SOURCE=${MODULE}_src-$VERSION.tar.gz
+      SOURCE_URL=$SFORGE_URL/$MODULE
+      SOURCE_VFY=sha1:6da87872a2b34ce102b42573b7c0f961e296bdb7
+        WEB_SITE=http://freeplane.sourceforge.net/
+         ENTERED=20100523
+         UPDATED=20100523
+           SHORT="Redesigned FreeMind, for mind-mapping"
+
+cat << EOF
+Freeplace is an application for mind-mapping, knowledge management,
+and project management. It is a redesigned version of the well-known
+FreeMind, created by one of its key developers.
+EOF
diff --git a/zbeta/freeplane/POST_INSTALL b/zbeta/freeplane/POST_INSTALL
new file mode 100644
index 0000000..df1698e
--- /dev/null
+++ b/zbeta/freeplane/POST_INSTALL
@@ -0,0 +1,2 @@
+update-mime-database /usr/share/mime
+update-desktop-database


More information about the Lunar-commits mailing list