4 changed files with 225 additions and 0 deletions
@ -0,0 +1,95 @@
|
||||
diff -Naur kbib-0.6.4.orig/kbib/kbib.cpp kbib-0.6.4/kbib/kbib.cpp
|
||||
--- kbib-0.6.4.orig/kbib/kbib.cpp 2008-01-12 11:25:06.000000000 +0100
|
||||
+++ kbib-0.6.4/kbib/kbib.cpp 2008-11-08 00:53:52.000000000 +0100
|
||||
@@ -112,8 +112,6 @@
|
||||
|
||||
firstRun = TRUE;
|
||||
config=kapp->config();
|
||||
- QTextCodec *codec = QTextCodec::codecForName("utf8");
|
||||
- QTextCodec::setCodecForCStrings(codec);
|
||||
|
||||
|
||||
|
||||
@@ -156,8 +154,8 @@
|
||||
|
||||
|
||||
readOptions();
|
||||
-// QTextCodec *codec = QTextCodec::codecForName((kbibConfigState.encoding).latin1());
|
||||
-// QTextCodec::setCodecForCStrings(codec);
|
||||
+ QTextCodec *codec = QTextCodec::codecForName((kbibConfigState.encoding).latin1());
|
||||
+ QTextCodec::setCodecForCStrings(codec);
|
||||
|
||||
|
||||
|
||||
@@ -521,7 +519,7 @@
|
||||
config->writeEntry("Web Browser", kbibConfigState.browser);
|
||||
config->writeEntry("Compare references", kbibConfigState.compareRefSetting);
|
||||
config->writeEntry("Citation Key Connecting String", kbibConfigState.keyConnecting);
|
||||
-// config->writeEntry("Encoding", kbibConfigState.encoding);
|
||||
+ config->writeEntry("Encoding", kbibConfigState.encoding);
|
||||
config->writeEntry("Show Group View", !groupViewVisible);
|
||||
config->writeEntry("Show Preview", !previewVisible);
|
||||
|
||||
@@ -587,7 +585,7 @@
|
||||
kbibConfigState.browser = config->readEntry("Web Browser","konqueror");
|
||||
kbibConfigState.compareRefSetting = config->readNumEntry("Compare references",1);
|
||||
kbibConfigState.keyConnecting = config->readEntry("Citation Key Connecting String","");
|
||||
-// kbibConfigState.encoding = config->readEntry("Encoding", QString::fromLatin1("utf8"));
|
||||
+ kbibConfigState.encoding = config->readEntry("Encoding", QString::fromLatin1("utf8"));
|
||||
groupViewVisible = config->readBoolEntry("Show Group View", false);
|
||||
previewVisible = config->readBoolEntry("Show Preview", false);
|
||||
|
||||
diff -Naur kbib-0.6.4.orig/kbib/kbib.h kbib-0.6.4/kbib/kbib.h
|
||||
--- kbib-0.6.4.orig/kbib/kbib.h 2008-01-12 11:22:00.000000000 +0100
|
||||
+++ kbib-0.6.4/kbib/kbib.h 2008-11-08 00:53:52.000000000 +0100
|
||||
@@ -71,7 +71,7 @@
|
||||
int authorDisplaySetting;
|
||||
bool autocompletion;
|
||||
QMap<QString, QString> globalStringMacros;
|
||||
-// QString encoding;
|
||||
+ QString encoding;
|
||||
}
|
||||
configState;
|
||||
|
||||
diff -Naur kbib-0.6.4.orig/kbib/kbibconfigdlg.cpp kbib-0.6.4/kbib/kbibconfigdlg.cpp
|
||||
--- kbib-0.6.4.orig/kbib/kbibconfigdlg.cpp 2008-01-12 11:25:06.000000000 +0100
|
||||
+++ kbib-0.6.4/kbib/kbibconfigdlg.cpp 2008-11-08 00:53:52.000000000 +0100
|
||||
@@ -113,7 +113,7 @@
|
||||
state.askReqField = askReqField->isChecked();
|
||||
state.autocompletion = ! ( autocompletion->isChecked() );
|
||||
state.keyConnecting = ( keyConnectingEdit->text() ).stripWhiteSpace();
|
||||
- // state.encoding = encoding->currentText();
|
||||
+ state.encoding = encoding->currentText();
|
||||
for ( QListBoxItem* item = selectedFields->firstItem(); item; item = item->next() )
|
||||
{
|
||||
state.displayFields += item->text();
|
||||
@@ -207,7 +207,7 @@
|
||||
autocompletion->setChecked ( !mState.autocompletion );
|
||||
keyConnectingEdit->setText ( mState.keyConnecting );
|
||||
|
||||
- // encoding->setCurrentText(mState.encoding);
|
||||
+ encoding->setCurrentText(mState.encoding);
|
||||
//(browser->lineEdit()) ->setText(mState.browser);
|
||||
//(textViewer->lineEdit())->setText(mState.textViewer);
|
||||
|
||||
@@ -280,7 +280,7 @@
|
||||
|
||||
keyConnectingEdit->setText ( "" );
|
||||
fieldDelimiter->setCurrentItem ( 0 );
|
||||
- // encoding->setCurrentText(QString::fromLatin1("utf8"));
|
||||
+ encoding->setCurrentText(QString::fromLatin1("utf8"));
|
||||
|
||||
}
|
||||
else if ( activePageIndex() ==1 )
|
||||
diff -Naur kbib-0.6.4.orig/kbib/kbibconfigdlg.h kbib-0.6.4/kbib/kbibconfigdlg.h
|
||||
--- kbib-0.6.4.orig/kbib/kbibconfigdlg.h 2008-01-12 11:22:00.000000000 +0100
|
||||
+++ kbib-0.6.4/kbib/kbibconfigdlg.h 2008-11-08 00:54:03.000000000 +0100
|
||||
@@ -109,7 +109,7 @@
|
||||
QRadioButton *allAuthorSelect;
|
||||
QVButtonGroup *authorsDisplay;
|
||||
|
||||
-// QComboBox *encoding;
|
||||
+ QComboBox *encoding;
|
||||
|
||||
QComboBox * textViewer;
|
||||
QComboBox * browser;
|
@ -0,0 +1 @@
|
||||
076b33b7e2615643c181b0aaf9e1c4fce29aace8 kbib-0.6.4.tar.gz |
@ -0,0 +1,117 @@
|
||||
#!/bin/bash |
||||
# Build script for Slackware |
||||
# Damien Goutte-Gattat "gouttegd" < damien.goutte-gattat at e.ujf-grenoble.fr > |
||||
# |
||||
# Redistribution and use of this script, with or without modifications, is |
||||
# permitted provided that the following conditions are met: |
||||
# |
||||
# 1. Redistributions of this script must retain the above copyright |
||||
# notice, this list of conditions and the following disclaimer. |
||||
# |
||||
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED |
||||
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
||||
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO |
||||
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
||||
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, |
||||
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; |
||||
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, |
||||
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR |
||||
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF |
||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
||||
# |
||||
# Latest KBib sourcecode is available at: |
||||
# http://users.tpg.com.au/thachly/kbib/ |
||||
|
||||
# Source kbib infos |
||||
NAMESRC=${NAMESRC:-kbib} |
||||
VERSION=${VERSION:-0.6.4} |
||||
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz} |
||||
WGET=${WGET:-http://users.tpg.com.au/thachly/kbib/$ARCHIVE} |
||||
|
||||
# Built kbib infos |
||||
NAMETGZ=${NAMETGZ:-kbib} |
||||
BUILD=${BUILD:-2GGD} |
||||
ARCH=${ARCH:-i486} |
||||
TARGET=${TARGET:-i486} |
||||
|
||||
# Directories |
||||
TMP=${TMP:-/tmp} |
||||
OUT=${OUT:-$TMP/build} |
||||
PKG=${PKG:-$OUT/$NAMETGZ} |
||||
CWD=$(pwd) |
||||
|
||||
set -e # Quit if a command returns non-zero |
||||
|
||||
# Sanity checks |
||||
if [ $UID -eq 0 ]; then |
||||
echo "You should NOT run this script as ROOT!" |
||||
exit 1 |
||||
fi |
||||
if [ ! -d $TMP ]; then |
||||
echo "$TMP does not exist or is not a directory!" |
||||
exit 1 |
||||
fi |
||||
|
||||
# Compilation flags |
||||
case "$ARCH" in |
||||
i?86) |
||||
CPUOPT="-O2 -march=$ARCH -mtune=i686" |
||||
;; |
||||
*) |
||||
CPUOPT="-O2" |
||||
;; |
||||
esac |
||||
|
||||
# Get and verify the source archive |
||||
if [ ! -r $ARCHIVE ]; then |
||||
wget "$WGET" |
||||
fi |
||||
sha1sum -c $ARCHIVE.sha1 |
||||
NAME=$(tar ft $ARCHIVE | head -1 | cut -d / -f 1) |
||||
|
||||
# Compile |
||||
cd $TMP |
||||
echo "Building $ARCHIVE..." |
||||
tar xf $CWD/$ARCHIVE |
||||
cd $NAME |
||||
|
||||
# Patch the code to (re)allow the user to choose the encoding |
||||
if [ -f $CWD/encoding.diff ]; then |
||||
patch -p1 < $CWD/encoding.diff |
||||
fi |
||||
|
||||
CFLAGS=$CPUOPT \ |
||||
CXXFLAGS=$CPUOPT \ |
||||
./configure \ |
||||
--prefix=/usr \ |
||||
--disable-dependency-tracking |
||||
make -j 3 |
||||
make install DESTDIR=$PKG |
||||
|
||||
# Strip binaries |
||||
find $PKG | xargs file | grep "ELF 32-bit LSB" | cut -d : -f 1 | \ |
||||
xargs strip --strip-unneeded 2> /dev/null |
||||
|
||||
# Install the documentation |
||||
mkdir -p $PKG/usr/doc/$NAME |
||||
install -m 644 \ |
||||
AUTHORS COPYING ChangeLog INSTALL README TODO \ |
||||
$PKG/usr/doc/$NAME |
||||
|
||||
# Copy slack-desc file |
||||
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc |
||||
|
||||
# Package the tree |
||||
cd $PKG |
||||
mkdir -p $OUT |
||||
PACKAGING=" |
||||
chown root:root . -R |
||||
/sbin/makepkg -l y -c n $OUT/$NAMETGZ-$VERSION-$ARCH-$BUILD.tgz |
||||
rm -rf $PKG |
||||
rm -rf $TMP/$NAME |
||||
" |
||||
if type -p fakeroot ; then |
||||
echo "$PACKAGING" | fakeroot |
||||
else |
||||
su -c "$PACKAGING" |
||||
fi |
@ -0,0 +1,12 @@
|
||||
|-----handy-ruler------------------------------------------------------| |
||||
kbib: kbib (A Bibliography Manager for KDE) |
||||
kbib: |
||||
kbib: KBib is a bibliography reference manager for KDE. It uses BibTeX as |
||||
kbib: its native file format. KBib is written by Thach Nguyen and is |
||||
kbib: distributed under the terms of the GNU General Public License. |
||||
kbib: |
||||
kbib: |
||||
kbib: |
||||
kbib: |
||||
kbib: |
||||
kbib: |
Loading…
Reference in new issue