aboutsummaryrefslogtreecommitdiff
path: root/office/keepnote
diff options
context:
space:
mode:
authormccnews <mccnews@free.fr>2010-06-13 15:04:07 -0500
committerRobby Workman <rworkman@slackbuilds.org>2010-06-13 15:04:07 -0500
commit28ac7ec060e16a1694d8954904bf31043e1b734b (patch)
treee7cae3dca15da1c03355ea8dde44bd72f8c4b1af /office/keepnote
parentef3f6709787e15d1b4c5bd77774a4cb546536984 (diff)
office/keepnote: Updated for version 0.6.2.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'office/keepnote')
-rw-r--r--office/keepnote/README6
-rw-r--r--office/keepnote/difsql1.patch22
-rw-r--r--office/keepnote/doinst.sh1
-rw-r--r--office/keepnote/keepnote.SlackBuild36
-rw-r--r--office/keepnote/keepnote.info8
-rw-r--r--office/keepnote/slack-desc4
6 files changed, 16 insertions, 61 deletions
diff --git a/office/keepnote/README b/office/keepnote/README
index e77418bde61b1..0385b2762ca19 100644
--- a/office/keepnote/README
+++ b/office/keepnote/README
@@ -1,10 +1,8 @@
KeepNote is a note taking application.
+
With KeepNote, you can store your class notes, TODO lists, research notes,
journal entries, paper outlines, etc in a simple notebook hierarchy
with rich-text formatting, images, and more. Using full-text search,
you can retrieve any note for later reference.
-KeepNote is implemented in Python and PyGTK
-
-To use spell checking (optional) you will need:
- python-gnome2-extras
+To use spell checking (optional), you will need python-gnome2-extras.
diff --git a/office/keepnote/difsql1.patch b/office/keepnote/difsql1.patch
deleted file mode 100644
index cfbf7278d676d..0000000000000
--- a/office/keepnote/difsql1.patch
+++ /dev/null
@@ -1,22 +0,0 @@
---- ./index_ori.py 2009-11-24 17:06:09.000000000 +0100
-+++ ./index.py 2010-02-01 23:33:13.000000000 +0100
-@@ -30,7 +30,18 @@
- import sys
- import traceback
- from thread import get_ident
--import sqlite3 as sqlite
-+#import sqlite3 as sqlite
-+
-+#modif mcc
-+try:
-+ import sqlite3 as sqlite
-+except ImportError:
-+ try:
-+ from pysqlite2 import dbapi2 as sqlite
-+ except ImportError:
-+ raise ImportError, "no module sqlite3 or pysqlite2"
-+
-+
- sqlite.enable_shared_cache(True)
- #sqlite.threadsafety = 0
-
diff --git a/office/keepnote/doinst.sh b/office/keepnote/doinst.sh
index 3e5691a052b5b..1f8ff67dedb29 100644
--- a/office/keepnote/doinst.sh
+++ b/office/keepnote/doinst.sh
@@ -7,3 +7,4 @@ if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
/usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1
fi
fi
+
diff --git a/office/keepnote/keepnote.SlackBuild b/office/keepnote/keepnote.SlackBuild
index dfccadbb2da74..4b6adccefbd12 100644
--- a/office/keepnote/keepnote.SlackBuild
+++ b/office/keepnote/keepnote.SlackBuild
@@ -24,16 +24,14 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=keepnote
-VERSION=0.6.1
+VERSION=${VERSION:-0.6.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
- # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
@@ -45,25 +43,12 @@ OUTPUT=${OUTPUT:-/tmp}
DOCS="CHANGES COPYING INSTALL LICENSE PKG-INFO README README.translations.txt"
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
- LIBDIRSUFFIX=""
-elif [ "$ARCH" = "i686" ]; then
- SLKCFLAGS="-O2 -march=i686 -mtune=i686"
- LIBDIRSUFFIX=""
-elif [ "$ARCH" = "x86_64" ]; then
- SLKCFLAGS="-O2 -fPIC"
- LIBDIRSUFFIX="64"
-else
- SLKCFLAGS="-O2"
- LIBDIRSUFFIX=""
-fi
-
-set -e # Exit on most errors
+set -e
-rm -fr $TMP/$PRGNAM-$VERSION $PKG
+rm -fr $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
+rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root.root .
@@ -73,22 +58,15 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-# Correction for python without sqlite3
-patch keepnote/notebook/index.py < $CWD/difsql1.patch
-
-CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
-
-# Build
python setup.py install --root=$PKG
-# Add documentation
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
-
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
-# Make package
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/office/keepnote/keepnote.info b/office/keepnote/keepnote.info
index 0de933d77553a..8747b1508fb64 100644
--- a/office/keepnote/keepnote.info
+++ b/office/keepnote/keepnote.info
@@ -1,10 +1,10 @@
PRGNAM="keepnote"
-VERSION="0.6.1"
+VERSION="0.6.2"
HOMEPAGE="http://rasm.ods.org/keepnote/"
-DOWNLOAD="http://rasm.ods.org/keepnote/download/keepnote-0.6.1.tar.gz"
-MD5SUM="3153159d83c26b26d14e6621fe7d99c1"
+DOWNLOAD="http://rasm.ods.org/keepnote/download/keepnote-0.6.2.tar.gz"
+MD5SUM="84b9edaa2dbd86f6fd4d78dd9d3c641d"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="mccnews"
EMAIL="mccnews@free.fr"
-APPROVED="dsomero"
+APPROVED="rworkman"
diff --git a/office/keepnote/slack-desc b/office/keepnote/slack-desc
index f813ab2f08d7b..ac20558c2156b 100644
--- a/office/keepnote/slack-desc
+++ b/office/keepnote/slack-desc
@@ -13,7 +13,7 @@ keepnote: research notes, journal entries, paper outlines, etc in a simple
keepnote: notebook hierarchy with rich-text formatting, images, and more.
keepnote: Using full-text search, you can retrieve any note
keepnote: for later reference.
-keepnote:
-keepnote:
+keepnote:
keepnote: Homepage: http://rasm.ods.org/keepnote/
keepnote:
+keepnote: