aboutsummaryrefslogtreecommitdiff
path: root/office
diff options
context:
space:
mode:
authorGilcio Amaral <gilcio.amaral@gmail.com>2012-09-18 21:19:02 +0200
committerRobby Workman <rworkman@slackbuilds.org>2012-09-18 19:33:41 -0500
commit3bf3ccd7a2ca574b3351679bd9eaf56734a93c07 (patch)
treead1b9df4afbb71b6d097fbdb8996be86d01dba06 /office
parent2bfe21b7068db0bcfc2296ed06f22b25f4950d06 (diff)
office/tellico: Updated for version 2.3.6.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'office')
-rw-r--r--office/tellico/tellico-2.3.5.patch110
-rw-r--r--office/tellico/tellico.SlackBuild7
-rw-r--r--office/tellico/tellico.info6
3 files changed, 5 insertions, 118 deletions
diff --git a/office/tellico/tellico-2.3.5.patch b/office/tellico/tellico-2.3.5.patch
deleted file mode 100644
index 96e8c64ecb363..0000000000000
--- a/office/tellico/tellico-2.3.5.patch
+++ /dev/null
@@ -1,110 +0,0 @@
-From: Robby Stephenson <robby@periapsis.org>
-Date: Fri, 20 Jan 2012 07:45:00 +0000
-Subject: For KDE < 4.6, just use the KLineEdit for filtering dates
-X-Git-Url: http://quickgit.kde.org/?p=tellico.git&amp;a=commitdiff&amp;h=051f0860594091a95a9c94e19c9847b09fcef395
----
-For KDE < 4.6, just use the KLineEdit for filtering dates
----
-
-
---- a/src/filterdialog.cpp
-+++ b/src/filterdialog.cpp
-@@ -42,11 +42,11 @@
- #include <kiconloader.h>
-
- // KDateComboBox was new in KDE 4.7
--// use a local copy if building in an earlier version
-+// use a local copy if building in KDE 4.6
- #include <kdeversion.h>
- #if KDE_IS_VERSION(4,7,0)
- #include <kdatecombobox.h>
--#else
-+#elif KDE_IS_VERSION(4,6,0)
- #include "../gui/kdatecombobox.h"
- #endif
-
-@@ -66,7 +66,7 @@ using Tellico::FilterRuleWidgetLister;
- using Tellico::FilterDialog;
-
- FilterRuleWidget::FilterRuleWidget(Tellico::FilterRule* rule_, QWidget* parent_)
-- : KHBox(parent_), m_editRegExp(0), m_editRegExpDialog(0), m_isDate(false) {
-+ : KHBox(parent_), m_ruleDate(0), m_editRegExp(0), m_editRegExpDialog(0), m_isDate(false) {
- initLists();
- initWidget();
-
-@@ -102,12 +102,13 @@ void FilterRuleWidget::initWidget() {
- m_valueStack = new QStackedWidget(this);
- m_ruleValue = new KLineEdit(m_valueStack);
- connect(m_ruleValue, SIGNAL(textChanged(const QString&)), SIGNAL(signalModified()));
-+ m_valueStack->addWidget(m_ruleValue);
-
-+#if KDE_IS_VERSION(4,6,0)
- m_ruleDate = new KDateComboBox(m_valueStack);
- connect(m_ruleDate, SIGNAL(dateChanged(const QDate&)), SIGNAL(signalModified()));
--
-- m_valueStack->addWidget(m_ruleValue);
- m_valueStack->addWidget(m_ruleDate);
-+#endif
-
- if(!KServiceTypeTrader::self()->query(QLatin1String("KRegExpEditor/KRegExpEditor")).isEmpty()) {
- m_editRegExp = new KPushButton(i18n("Edit..."), this);
-@@ -172,9 +173,15 @@ void FilterRuleWidget::slotRuleFunctionC
-
- // don't show the date picker if we're using regular expressions
- if(m_isDate && data != FilterRule::FuncRegExp && data != FilterRule::FuncNotRegExp) {
-+#if KDE_IS_VERSION(4,6,0)
- m_valueStack->setCurrentWidget(m_ruleDate);
-- } else {
-+#else
-+ // I don't want a translated message but just an unambiguous hint for older versions
-+ m_ruleValue->setClickMessage(QLatin1String("2010-12-30"));
-+#endif
-+} else {
- m_valueStack->setCurrentWidget(m_ruleValue);
-+ m_ruleValue->setClickMessage(QString());
- }
- }
-
-@@ -195,7 +202,11 @@ void FilterRuleWidget::setRule(const Tel
- m_isDate = true;
- const QDate date = QDate::fromString(rule_->pattern(), Qt::ISODate);
- if(date.isValid()) {
-+#if KDE_IS_VERSION(4,6,0)
- m_ruleDate->setDate(date);
-+#else
-+ m_ruleValue->setText(rule_->pattern());
-+#endif
- }
- }
- const int idx = m_ruleField->findText(field ? field->title() : QString());
-@@ -218,9 +229,13 @@ Tellico::FilterRule* FilterRuleWidget::r
- }
-
- QString ruleValue;
-+#if KDE_IS_VERSION(4,6,0)
- if(m_valueStack->currentWidget() == m_ruleDate) {
- ruleValue = m_ruleDate->date().toString(Qt::ISODate);
- } else {
-+#else
-+ if(true) {
-+#endif
- ruleValue = m_ruleValue->text().trimmed();
- }
-
-
---- a/src/gui/CMakeLists.txt
-+++ b/src/gui/CMakeLists.txt
-@@ -34,9 +34,9 @@ SET(gui_STAT_SRCS
- )
-
- # The KDateComboBox class was added to KDE in version 4.7
--# If we're building under an earlier version, use a local copy
--IF(${KDE_VERSION} VERSION_LESS "4.6.99")
-+# If we're building under KDE 4.6, use a local copy
-+IF(${KDE_VERSION} VERSION_LESS "4.6.99" AND ${KDE_VERSION} VERSION_GREATER "4.5.99")
- LIST(APPEND gui_STAT_SRCS kdatecombobox.cpp)
--ENDIF(${KDE_VERSION} VERSION_LESS "4.6.99")
-+ENDIF(${KDE_VERSION} VERSION_LESS "4.6.99" AND ${KDE_VERSION} VERSION_GREATER "4.5.99")
-
- KDE4_ADD_LIBRARY(gui STATIC ${gui_STAT_SRCS})
-
diff --git a/office/tellico/tellico.SlackBuild b/office/tellico/tellico.SlackBuild
index 58297c7c7d94a..36cc9ff17576b 100644
--- a/office/tellico/tellico.SlackBuild
+++ b/office/tellico/tellico.SlackBuild
@@ -2,8 +2,7 @@
# SlackBuild script for tellico
-# Maintained by Gilcio Amaral <gilcio.amaral@gmail.com>
-
+# Copyright 2009 Gilcio Amaral <gilcio.amaral@gmail.com>
# Copyright 2007-2008 Michiel van Wessem, Manchester, United Kingdom
# All rights reserved.
#
@@ -27,7 +26,7 @@
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=tellico
-VERSION=${VERSION:-2.3.5}
+VERSION=${VERSION:-2.3.6}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -73,8 +72,6 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-patch -p1 < $CWD/tellico-2.3.5.patch
-
mkdir -p build
cd build
cmake \
diff --git a/office/tellico/tellico.info b/office/tellico/tellico.info
index b8d151645c556..7f6c1ffa80649 100644
--- a/office/tellico/tellico.info
+++ b/office/tellico/tellico.info
@@ -1,8 +1,8 @@
PRGNAM="tellico"
-VERSION="2.3.5"
+VERSION="2.3.6"
HOMEPAGE="http://tellico-project.org/"
-DOWNLOAD="http://tellico-project.org/files/tellico-2.3.5.tar.bz2"
-MD5SUM="e6a1835d2622b79c4bfd95271bce858e"
+DOWNLOAD="http://tellico-project.org/files/tellico-2.3.6.tar.bz2"
+MD5SUM="a547c3cff6559012bf2292cec5a543ed"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""