diff options
Diffstat (limited to 'app-office/qtstalker')
-rw-r--r-- | app-office/qtstalker/ChangeLog | 63 | ||||
-rw-r--r-- | app-office/qtstalker/Manifest | 16 | ||||
-rw-r--r-- | app-office/qtstalker/files/qtstalker-0.35-gcc43.patch | 29 | ||||
-rw-r--r-- | app-office/qtstalker/files/qtstalker-0.35-nodocs.patch | 37 | ||||
-rw-r--r-- | app-office/qtstalker/files/qtstalker-0.35-parallel-make.patch | 12 | ||||
-rw-r--r-- | app-office/qtstalker/files/qtstalker-0.36-csv_quote.patch | 215 | ||||
-rw-r--r-- | app-office/qtstalker/files/qtstalker-0.36-fibo.patch | 83 | ||||
-rw-r--r-- | app-office/qtstalker/files/qtstalker-0.36-gcc43.patch | 29 | ||||
-rw-r--r-- | app-office/qtstalker/files/qtstalker-0.36-nodocs.patch | 37 | ||||
-rw-r--r-- | app-office/qtstalker/files/qtstalker-0.36-parallel-make.patch | 12 | ||||
-rw-r--r-- | app-office/qtstalker/files/qtstalker.desktop | 15 | ||||
-rw-r--r-- | app-office/qtstalker/files/qtstalker.png | bin | 0 -> 6035 bytes | |||
-rw-r--r-- | app-office/qtstalker/metadata.xml | 14 | ||||
-rw-r--r-- | app-office/qtstalker/qtstalker-0.35.ebuild | 92 | ||||
-rw-r--r-- | app-office/qtstalker/qtstalker-0.36.ebuild | 96 |
15 files changed, 750 insertions, 0 deletions
diff --git a/app-office/qtstalker/ChangeLog b/app-office/qtstalker/ChangeLog new file mode 100644 index 00000000..f5dd2238 --- /dev/null +++ b/app-office/qtstalker/ChangeLog @@ -0,0 +1,63 @@ +# ChangeLog for app-office/qtstalker +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-office/qtstalker/ChangeLog,v 1.11 2009/04/26 12:10:33 patrick Exp $ + +*qtstalker-0.36 (26 Apr 2009) + + 26 Apr 2009; Patrick Lauer <patrick@gentoo.org> + +files/qtstalker-0.36-csv_quote.patch, +files/qtstalker-0.36-fibo.patch, + +files/qtstalker-0.36-gcc43.patch, +files/qtstalker-0.36-nodocs.patch, + +files/qtstalker-0.36-parallel-make.patch, +qtstalker-0.36.ebuild: + Bump to 0.36, patches and ebuild mods by Anton Bolshakov. Fixes #218904 + + 27 Jul 2008; Carsten Lohrke <carlo@gentoo.org> qtstalker-0.35.ebuild: + QA: Get rid of deprecated qt_min_version(). + + 09 Jun 2008; Peter Alfredsen <loki_val@gentoo.org> ChangeLog: + Add patch for gcc-4.3.0, remove old. Closes bug #217671. + + 14 Mar 2008; Christian Heim <phreak@gentoo.org> qtstalker-0.32.ebuild, + qtstalker-0.33.ebuild: + Fixing some minor syntax errors. + + 14 Mar 2008; Christian Heim <phreak@gentoo.org> metadata.xml: + Removing Przemyslaw Maciag (troll, #104750) from metadata.xml. + + 20 Jan 2008; Samuli Suominen <drac@gentoo.org> qtstalker-0.35.ebuild: + Remove INSTALL from dodoc, it's only telling how to run make. + + 20 Jan 2008; Samuli Suominen <drac@gentoo.org> files/qtstalker.desktop: + Update desktop entry to spec. + +*qtstalker-0.35 (20 Jan 2008) + + 20 Jan 2008; Ryan Hill <dirtyepic@gentoo.org> + +files/qtstalker-0.35-nodocs.patch, + +files/qtstalker-0.35-parallel-make.patch, +qtstalker-0.35.ebuild: + Version bump. Thanks to everyone on bug #195846. + - new dep on sci-libs/ta-lib + - don't prestrip plugin libraries + - fix multilib-strict / misc path issues + - misc QA (quoting, etc.) + +*qtstalker-0.33 (05 Mar 2007) + + 05 Mar 2007; Przemysław Maciąg <troll@gentoo.org> + +files/qtstalker-0.33-install_docs_with_emerge.patch, + +files/qtstalker-0.33-sandboxfix_no_fixpath.patch, +qtstalker-0.33.ebuild: + Version bump + Some ebuild cleanups + + 23 Nov 2006; Francesco Riosa <vivo@gentoo.org> qtstalker-0.32.ebuild: + dev-db/mysql => virtual/mysql + +*qtstalker-0.32 (28 Sep 2006) + + 28 Sep 2006; Przemysław Maciąg <troll@gentoo.org> + +files/qtstalker.desktop, +files/qtstalker.png, + +files/qtstalker-install_docs_with_emerge.patch, + +files/qtstalker-no_mysql_support.patch, + +files/qtstalker-sandboxfix_no_fixpath.patch, +metadata.xml, + +qtstalker-0.32.ebuild: + Initial release. Fixing my bug #108932. + diff --git a/app-office/qtstalker/Manifest b/app-office/qtstalker/Manifest new file mode 100644 index 00000000..80519435 --- /dev/null +++ b/app-office/qtstalker/Manifest @@ -0,0 +1,16 @@ +AUX qtstalker-0.35-gcc43.patch 845 RMD160 fb0c33f4ab85eb675557e2dd8c529a600f785d6f SHA1 54b546aee0dad5e32cd07dfb6f968649b15236e3 SHA256 50ee142b8b80e7919a31001f7f9178b39e497d18dcb607e5c30675f315c6fc13 +AUX qtstalker-0.35-nodocs.patch 1077 RMD160 9f24fed34cadc77fbd0883d54478f1250b5114fc SHA1 124e3cca97e31488ac1cc5d83226e8f83c6d46dc SHA256 8da3ab590e83b5b6047487f43ee84f8f611bc2f9f19d2ced78bcc7debb58369e +AUX qtstalker-0.35-parallel-make.patch 315 RMD160 7b14aaa8ec19e6e199b7c48a537f4701acb6c661 SHA1 6c9082908a9be27d54b11a350bc7ed8a6f085a0f SHA256 38ec1cd687fd789156ec1805345ac28c4431e9aa01b680d98c685278c36aadff +AUX qtstalker-0.36-csv_quote.patch 5937 RMD160 215c31138b94882111e85e435360ec93e151626c SHA1 af7ffe219390fe477845dfc3ad66a8701e7f19c3 SHA256 4f155c885dbd29ecab80c1bb506b5cc39fdab776d3bf61dd55122814bd979e3a +AUX qtstalker-0.36-fibo.patch 1847 RMD160 0025abdf26d2828535cdae87ea807dc8e21f2ecc SHA1 dee4412beaff4bd9a5719279d15a41735c776183 SHA256 4b4479aa76edec49153b320d9578cae15a037212ba5041ba4b24460d9f233ca2 +AUX qtstalker-0.36-gcc43.patch 845 RMD160 fb0c33f4ab85eb675557e2dd8c529a600f785d6f SHA1 54b546aee0dad5e32cd07dfb6f968649b15236e3 SHA256 50ee142b8b80e7919a31001f7f9178b39e497d18dcb607e5c30675f315c6fc13 +AUX qtstalker-0.36-nodocs.patch 1037 RMD160 a1cdb6f9d3cda00d40f0ea2eadabee86773f9b3d SHA1 af0290dda11befc787153b7c5cea3b8415185a66 SHA256 62e6f2794b64c945572a7ea43fa27953c2851a418de38ee1722bb30267dea1eb +AUX qtstalker-0.36-parallel-make.patch 275 RMD160 29b2384668799e255932d0044692c929b914983c SHA1 73a37a514f387ea010af9ce6baa87abf26bf68f4 SHA256 7fc836b6605f9f82fec14d37c9923149cb36c24da496f3b3901fd67158024c66 +AUX qtstalker.desktop 418 RMD160 456edd2c8c496f5afefc6ff036e5b24f466856d3 SHA1 5ccd7073861d75ad9709575839d6f54c0484b9be SHA256 b61a00beaf433bc037a3f4c1cf88f9ef18968b9fb692adb35c6aca76f60b8ed9 +AUX qtstalker.png 6035 RMD160 2c4b0cdc70ab030b11efae2be86995b7d123bbf8 SHA1 8d1b12cdd35e3ebbb9b54d01b2415ade1fea002d SHA256 4419293fa81cea6ddc48cdd877b2da50f61b79ccf2ce4e09face45fe10294cfa +DIST qtstalker-0.35.tar.gz 1395170 RMD160 99174a00414b69233868122dc74869f884f053a8 SHA1 6acd140ab6de92231de5811b8525a171e56ae0fd SHA256 2524b7a02d81d3cd46d5a1211f2865d0b384e214c8191349d8ac589f2d57ebba +DIST qtstalker-0.36.tar.gz 1402092 RMD160 09acfbff57095cc956eec28789222f3cca00d5aa SHA1 4686bc3966193bf7943fd087645acd619646eb11 SHA256 c70716d1241b2968ab331f345ee97be6f866275f2992da222e973505f07d1879 +EBUILD qtstalker-0.35.ebuild 1982 RMD160 d8e5bbb037dc7d99edeedf6a877facb7d13d96b4 SHA1 c3025108f6af1fb2cfa368b6234546a662f1421f SHA256 40dfcebd64b6c04291461f5d225c87e27915ec65151729eeb81fe3c298f8e612 +EBUILD qtstalker-0.36.ebuild 2073 RMD160 cf79c1da7c78c554d0880395bfd12a1b8d5e859c SHA1 52ce6ba34c93babd9b245c8d2d45861f7ffdd308 SHA256 22e06a0d86d43535840c283a6985886f470958daf40f70dabb185a58df9e3c7c +MISC ChangeLog 2447 RMD160 a29ef7dafa2d6e0de12352b619f8bf6722cb793c SHA1 c5de20d02699346cd581c11ca87b0a8fa74cd01b SHA256 6f57ef8eaeab3e59ad4ac0db3c94b3db0304b029f194097152245a4b9a545768 +MISC metadata.xml 626 RMD160 98a68a5c1135b15c85beb884ea1e619e257107bb SHA1 e087814ee20ff90cf37d612be1eb2ebe27778c8f SHA256 ab045ba197269a91c1642c5e169ab4bebb4202348a5549366c6bb4191dcefa1a diff --git a/app-office/qtstalker/files/qtstalker-0.35-gcc43.patch b/app-office/qtstalker/files/qtstalker-0.35-gcc43.patch new file mode 100644 index 00000000..c42b5857 --- /dev/null +++ b/app-office/qtstalker/files/qtstalker-0.35-gcc43.patch @@ -0,0 +1,29 @@ +--- qtstalker/lib/UpgradeMessage.cpp.orig 2008-04-14 17:59:26.000000000 +0200 ++++ qtstalker/lib/UpgradeMessage.cpp 2008-04-14 17:59:59.000000000 +0200 +@@ -32,10 +32,11 @@ + #include <qfileinfo.h> + #include <qdir.h> + #include <qfile.h> + #include <qpushbutton.h> + #include <db.h> ++#include <stdlib.h> + + UpgradeMessage::UpgradeMessage (int type) : QTabDialog (0, "UpgradeMessage", TRUE) + { + switch (type) + { +--- qtstalker/src/IndicatorPage.cpp.orig 2008-04-14 18:06:35.000000000 +0200 ++++ qtstalker/src/IndicatorPage.cpp 2008-04-14 18:07:01.000000000 +0200 +@@ -41,11 +41,11 @@ + #include <qfile.h> + #include <qtextstream.h> + #include <qinputdialog.h> + #include <qmessagebox.h> + #include <qtooltip.h> +- ++#include <stdlib.h> + + IndicatorPage::IndicatorPage (QWidget *w, DBIndex *i) : QWidget (w) + { + chartIndex = i; + updateEnableFlag = FALSE; diff --git a/app-office/qtstalker/files/qtstalker-0.35-nodocs.patch b/app-office/qtstalker/files/qtstalker-0.35-nodocs.patch new file mode 100644 index 00000000..558b5b56 --- /dev/null +++ b/app-office/qtstalker/files/qtstalker-0.35-nodocs.patch @@ -0,0 +1,37 @@ +diff -Naur qtstalker-orig/docs/docs.pro qtstalker/docs/docs.pro +--- qtstalker-orig/docs/docs.pro 2007-09-28 02:01:58.000000000 -0600 ++++ qtstalker/docs/docs.pro 2008-01-20 00:41:16.000000000 -0600 +@@ -2,33 +2,6 @@ + + CONFIG += thread + +-# install the html files +-docs.path = /usr/local/share/doc/qtstalker/html +-docs.files = *.html +-INSTALLS += docs +- +-# install the html pic files +-pics.path = /usr/local/share/doc/qtstalker/html +-pics.files = *.png +-INSTALLS += pics +- +-# install the example indicator html files and pics +-idocs.path = /usr/local/share/doc/qtstalker/html/indicator +-idocs.files = indicator/*.html +-idocs.files += indicator/*.png +-INSTALLS += idocs +- +-# install the CHANGELOG files +-cl.path = /usr/local/share/doc/qtstalker/html +-cl.files = CHANGELOG* +-INSTALLS += cl +- +-# install the past CHANGELOG files +-pcl.path = /usr/local/share/doc/qtstalker/html/pastchanges +-pcl.files = pastchanges/*.html +-pcl.files += pastchanges/CHANGELOG* +-INSTALLS += pcl +- + # install the translation files + i18n.path = /usr/local/share/qtstalker/i18n + i18n.files = ../i18n/*.qm diff --git a/app-office/qtstalker/files/qtstalker-0.35-parallel-make.patch b/app-office/qtstalker/files/qtstalker-0.35-parallel-make.patch new file mode 100644 index 00000000..4ec072ea --- /dev/null +++ b/app-office/qtstalker/files/qtstalker-0.35-parallel-make.patch @@ -0,0 +1,12 @@ +diff -Naur qtstalker-orig/qtstalker.pro qtstalker/qtstalker.pro +--- qtstalker-orig/qtstalker.pro 2007-02-03 15:10:53.000000000 -0600 ++++ qtstalker/qtstalker.pro 2008-01-20 00:43:48.000000000 -0600 +@@ -3,6 +3,8 @@ + # compile TALIB + #SUBDIRS += TALIB + ++CONFIG += ordered ++ + # compile qtstalker lib + SUBDIRS += lib + diff --git a/app-office/qtstalker/files/qtstalker-0.36-csv_quote.patch b/app-office/qtstalker/files/qtstalker-0.36-csv_quote.patch new file mode 100644 index 00000000..b66d0ebb --- /dev/null +++ b/app-office/qtstalker/files/qtstalker-0.36-csv_quote.patch @@ -0,0 +1,215 @@ +diff -urN lib/QuotePlugin.cpp.orig lib/QuotePlugin.cpp +--- lib/QuotePlugin.cpp.orig 2007-09-28 15:05:07.000000000 +0800 ++++ lib/QuotePlugin.cpp 2008-07-04 14:57:58.000000000 +0800 +@@ -160,18 +160,26 @@ + tabs->addTab(w, tr("Timeout")); + } + +-void QuotePlugin::stripJunk (QString &d, QString &s) ++QString QuotePlugin::substituteSep (const QString &str, const QChar &search_sep, const QChar &new_sep) + { +- s = d.stripWhiteSpace(); ++ QString string_copy = str.copy(); + +- while (1) ++ bool isInBlock = false; ++ ++ for (uint i = 0; i < string_copy.length(); i++) + { +- int p = s.find('"', 0, TRUE); +- if (p == -1) +- break; +- else +- s.remove(p, 1); +- } ++ if (string_copy[i] == '\"') ++ { ++ isInBlock = !isInBlock; ++ string_copy.remove(i, 1); ++ } ++ ++ if ( (!isInBlock) && (string_copy[i] == search_sep) ) ++ { ++ string_copy = string_copy.replace(i, 1, new_sep); ++ } ++ } ++ return string_copy; + } + + bool QuotePlugin::setTFloat (QString &d, bool flag) +diff -urN lib/QuotePlugin.h.orig lib/QuotePlugin.h +--- lib/QuotePlugin.h.orig 2007-09-20 10:56:58.000000000 +0800 ++++ lib/QuotePlugin.h 2008-07-04 14:58:04.000000000 +0800 +@@ -55,7 +55,7 @@ + QuotePlugin (); + virtual ~QuotePlugin (); + bool setTFloat (QString &, bool); +- void stripJunk (QString &, QString &); ++ QString substituteSep(const QString &, const QChar &, const QChar &); + void createDirectory (QString &, QString &); + void getPluginName (QString &); + void getHelpFile (QString &); +diff -urN plugins/quote/CSV/CSV.cpp.orig plugins/quote/CSV/CSV.cpp +--- plugins/quote/CSV/CSV.cpp.orig 2008-02-19 11:34:26.000000000 +0800 ++++ plugins/quote/CSV/CSV.cpp 2008-07-04 14:57:36.000000000 +0800 +@@ -41,7 +41,7 @@ + CSV::CSV () + { + pluginName = "CSV"; +- delim = ","; ++ delim = ','; + helpFile = "csv.html"; + cancelFlag = FALSE; + +@@ -259,10 +259,8 @@ + while(stream.atEnd() == 0) + { + QString ts = stream.readLine(); +- QString s; +- stripJunk(ts, s); ++ QStringList l = QStringList::split( '\n', substituteSep( ts, delim, '\n' ), FALSE); + +- QStringList l = QStringList::split(delim, s, FALSE); + lineCount++; + if (l.count() != fieldList.count()) + { +@@ -272,7 +270,7 @@ + QString::number(lineCount).latin1(), l.count(), fieldList.count() + ); + printStatusLogMessage(ss); +- continue; ++ continue; + } + + int fieldLoop; +@@ -498,25 +496,25 @@ + { + if (! d.compare("Comma")) + { +- delim = ","; ++ delim = ','; + return; + } + + if (! d.compare("Tab")) + { +- delim = " "; ++ delim = '\t'; + return; + } + + if (! d.compare("Space")) + { +- delim = " "; ++ delim = ' '; + return; + } + + if (! d.compare("Semicolon")) + { +- delim = ";"; ++ delim = ';'; + return; + } + } +diff -urN plugins/quote/CSV/CSV.h.orig plugins/quote/CSV/CSV.h +--- plugins/quote/CSV/CSV.h.orig 2007-10-25 16:42:01.000000000 +0800 ++++ plugins/quote/CSV/CSV.h 2008-07-04 14:51:08.000000000 +0800 +@@ -66,7 +66,7 @@ + + private: + Config config; +- QString delim; ++ QChar delim; + FuturesData fd; + DbPlugin db; + QString symbolOveride; +diff -urN plugins/quote/NYBOT/NYBOT.cpp.orig plugins/quote/NYBOT/NYBOT.cpp +--- plugins/quote/NYBOT/NYBOT.cpp.orig 2007-02-04 07:04:37.000000000 +0800 ++++ plugins/quote/NYBOT/NYBOT.cpp 2008-07-04 14:56:35.000000000 +0800 +@@ -152,16 +152,12 @@ + QTextStream stream(&f); + + QString ts = stream.readLine(); +- QString s; +- stripJunk(ts, s); +- QStringList keys = QStringList::split(",", s, FALSE); ++ QStringList keys = QStringList::split( '\n', substituteSep( ts, ',', '\n' ), FALSE); + + while(stream.atEnd() == 0) + { + ts = stream.readLine(); +- stripJunk(ts, s); +- +- QStringList l = QStringList::split(",", s, FALSE); ++ QStringList l = QStringList::split( '\n', substituteSep( ts, ',', '\n' ), FALSE); + + if (l.count() != keys.count()) + continue; +@@ -202,6 +198,7 @@ + } + + ts = "dailyOpenPrice1"; ++ QString s; + data.getData(ts, s); + if (s.toFloat() == 0) + { +diff -urN plugins/quote/Yahoo/Yahoo.cpp.orig plugins/quote/Yahoo/Yahoo.cpp +--- plugins/quote/Yahoo/Yahoo.cpp.orig 2008-04-03 13:54:09.000000000 +0800 ++++ plugins/quote/Yahoo/Yahoo.cpp 2008-07-04 14:38:20.000000000 +0800 +@@ -294,7 +294,7 @@ + return; + + // strip off the header +- QString s = "Date,Open,High,Low,Close"; ++ QString s = "Date,Open,High,Low,Close,Volume,Adj Close\n"; + int p = data.find(s, 0, TRUE); + if (p != -1) + data.remove(0, p + s.length()); +@@ -368,12 +368,15 @@ + while(stream.atEnd() == 0) + { + ts = stream.readLine(); +- stripJunk(ts, s); ++ QStringList l = QStringList::split( '\n', substituteSep(ts, ',', '\n'), FALSE); + +- QStringList l = QStringList::split(",", s, FALSE); + if (l.count() < 5) ++ { ++ QString ss = tr("Parse: invalid number of parameters") + " " + ts2 + " " + tr("skipped"); ++ printStatusLogMessage(ss); ++ errorList.append(ts2); + continue; +- ++ } + // date + QString date = parseDate(l[0]); + Bar bar; +@@ -523,11 +526,15 @@ + while(stream.atEnd() == 0) + { + ts = stream.readLine(); +- stripJunk(ts, s); ++ QStringList l = QStringList::split( '\n', substituteSep( ts, ',', '\n' ), FALSE); + +- QStringList l = QStringList::split(",", s, FALSE); + if (l.count() < 9 || l.count() > 10) ++ { ++ QString ss = tr("Parse: invalid number of parameters ") + " " + ts2 + " " + tr("skipped"); ++ printStatusLogMessage(ss); ++ errorList.append(ts2); + continue; ++ } + + // get date + QStringList l2 = QStringList::split("/", l[3], FALSE); +@@ -561,6 +568,9 @@ + else + bar.setHigh(tfloat); + ++ // make Low price equal to Open if Low is not available ++ if (! l[8].compare("N/A")) ++ l[8] = l[6]; + if (setTFloat(l[8], FALSE)) + continue; + else diff --git a/app-office/qtstalker/files/qtstalker-0.36-fibo.patch b/app-office/qtstalker/files/qtstalker-0.36-fibo.patch new file mode 100644 index 00000000..c77fc32e --- /dev/null +++ b/app-office/qtstalker/files/qtstalker-0.36-fibo.patch @@ -0,0 +1,83 @@ +--- lib/FiboLine.cpp.orig 2007-02-13 08:18:30.000000000 +0800 ++++ lib/FiboLine.cpp 2008-05-22 21:45:10.000000000 +0800 +@@ -302,18 +302,8 @@ + break; + if (y >= ty) + break; +- +- startDate = tx; +- endDate = x; +- high = ty; +- low = y; +- +- setSaveFlag(TRUE); +- setColor(defaultColor); +- emit signalDraw(); + status = None; + emit message(""); +- emit signalSave(name); + break; + default: + break; +@@ -322,11 +312,20 @@ + return status; + } + +-void FiboLine::pointerMoving (QPixmap &buffer, QPoint &point, QDateTime &x, double y) ++void FiboLine::pointerMoving (QPixmap &, QPoint &, QDateTime &x, double y) + { + if (status == ClickWait2) + { +- drawMovingPointer(buffer, point); ++ startDate = tx; ++ endDate = x; ++ high = ty; ++ low = y; ++ setSaveFlag(TRUE); ++ setColor(defaultColor); ++ emit signalDraw(); ++ QString s = x.toString("yyyy-MM-dd hh:mm:ss") + " " + QString::number(y); ++ emit message(s); ++ emit signalSave(name); + return; + } + +@@ -371,38 +370,6 @@ + } + } + +-void FiboLine::drawMovingPointer (QPixmap &buffer, QPoint &point) +-{ +- if (point.x() < mpx) +- return; +- +- if (point.y() < mpy) +- return; +- +- QPainter painter; +- painter.begin(&buffer); +- painter.setRasterOp(Qt::XorROP); +- painter.setPen(defaultColor); +- +- // erase the previous line drawn +- if (mpx2 != -1 && mpy2 != -1) +- { +- painter.drawLine (mpx, mpy, mpx2, mpy); +- painter.drawLine (mpx, mpy2, mpx2, mpy2); +- } +- +- // draw the new line +- painter.drawLine (mpx, mpy, point.x(), mpy); +- painter.drawLine (mpx, point.y(), point.x(), point.y()); +- +- mpx2 = point.x(); +- mpy2 = point.y(); +- +- painter.end(); +- +- emit signalRefresh(); +-} +- + void FiboLine::loadDefaults () + { + QSettings settings; diff --git a/app-office/qtstalker/files/qtstalker-0.36-gcc43.patch b/app-office/qtstalker/files/qtstalker-0.36-gcc43.patch new file mode 100644 index 00000000..c42b5857 --- /dev/null +++ b/app-office/qtstalker/files/qtstalker-0.36-gcc43.patch @@ -0,0 +1,29 @@ +--- qtstalker/lib/UpgradeMessage.cpp.orig 2008-04-14 17:59:26.000000000 +0200 ++++ qtstalker/lib/UpgradeMessage.cpp 2008-04-14 17:59:59.000000000 +0200 +@@ -32,10 +32,11 @@ + #include <qfileinfo.h> + #include <qdir.h> + #include <qfile.h> + #include <qpushbutton.h> + #include <db.h> ++#include <stdlib.h> + + UpgradeMessage::UpgradeMessage (int type) : QTabDialog (0, "UpgradeMessage", TRUE) + { + switch (type) + { +--- qtstalker/src/IndicatorPage.cpp.orig 2008-04-14 18:06:35.000000000 +0200 ++++ qtstalker/src/IndicatorPage.cpp 2008-04-14 18:07:01.000000000 +0200 +@@ -41,11 +41,11 @@ + #include <qfile.h> + #include <qtextstream.h> + #include <qinputdialog.h> + #include <qmessagebox.h> + #include <qtooltip.h> +- ++#include <stdlib.h> + + IndicatorPage::IndicatorPage (QWidget *w, DBIndex *i) : QWidget (w) + { + chartIndex = i; + updateEnableFlag = FALSE; diff --git a/app-office/qtstalker/files/qtstalker-0.36-nodocs.patch b/app-office/qtstalker/files/qtstalker-0.36-nodocs.patch new file mode 100644 index 00000000..71eb940e --- /dev/null +++ b/app-office/qtstalker/files/qtstalker-0.36-nodocs.patch @@ -0,0 +1,37 @@ +diff -Naur docs-orig/docs.pro docs/docs.pro +--- docs-orig/docs.pro 2007-09-28 02:01:58.000000000 -0600 ++++ docs/docs.pro 2008-01-20 00:41:16.000000000 -0600 +@@ -2,33 +2,6 @@ + + CONFIG += thread + +-# install the html files +-docs.path = /usr/local/share/doc/qtstalker/html +-docs.files = *.html +-INSTALLS += docs +- +-# install the html pic files +-pics.path = /usr/local/share/doc/qtstalker/html +-pics.files = *.png +-INSTALLS += pics +- +-# install the example indicator html files and pics +-idocs.path = /usr/local/share/doc/qtstalker/html/indicator +-idocs.files = indicator/*.html +-idocs.files += indicator/*.png +-INSTALLS += idocs +- +-# install the CHANGELOG files +-cl.path = /usr/local/share/doc/qtstalker/html +-cl.files = CHANGELOG* +-INSTALLS += cl +- +-# install the past CHANGELOG files +-pcl.path = /usr/local/share/doc/qtstalker/html/pastchanges +-pcl.files = pastchanges/*.html +-pcl.files += pastchanges/CHANGELOG* +-INSTALLS += pcl +- + # install the translation files + i18n.path = /usr/local/share/qtstalker/i18n + i18n.files = ../i18n/*.qm diff --git a/app-office/qtstalker/files/qtstalker-0.36-parallel-make.patch b/app-office/qtstalker/files/qtstalker-0.36-parallel-make.patch new file mode 100644 index 00000000..6e297bfe --- /dev/null +++ b/app-office/qtstalker/files/qtstalker-0.36-parallel-make.patch @@ -0,0 +1,12 @@ +diff -Naur qtstalker.pro.orig qtstalker.pro +--- qtstalker.pro.orig 2007-02-03 15:10:53.000000000 -0600 ++++ qtstalker.pro 2008-01-20 00:43:48.000000000 -0600 +@@ -3,6 +3,8 @@ + # compile TALIB + #SUBDIRS += TALIB + ++CONFIG += ordered ++ + # compile qtstalker lib + SUBDIRS += lib + diff --git a/app-office/qtstalker/files/qtstalker.desktop b/app-office/qtstalker/files/qtstalker.desktop new file mode 100644 index 00000000..35e9c584 --- /dev/null +++ b/app-office/qtstalker/files/qtstalker.desktop @@ -0,0 +1,15 @@ +[Desktop Entry] +Type=Application +Version=1.0 +Name=Qtstalker +GenericName=Stock Charting +GenericName[nl]=Koersgrafieken +GenericName[pl]=Wykresy Giełdowe +Comment=Stock and commodity market charting and technical analysis +Comment[nl]=Koersgrafieken en technische analyse +Comment[pl]=Wykresy giełdowe i towarowe oraz analizy techniczne +Exec=/usr/bin/qtstalker +Icon=qtstalker +Terminal=false +Categories=Finance;Office;Qt; + diff --git a/app-office/qtstalker/files/qtstalker.png b/app-office/qtstalker/files/qtstalker.png Binary files differnew file mode 100644 index 00000000..c0b206ea --- /dev/null +++ b/app-office/qtstalker/files/qtstalker.png diff --git a/app-office/qtstalker/metadata.xml b/app-office/qtstalker/metadata.xml new file mode 100644 index 00000000..05c6af66 --- /dev/null +++ b/app-office/qtstalker/metadata.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>desktop-misc</herd> + <longdescription lang="en"> + Qtstalker is a basic end of day Technical Analysis package with many + features. It compares with similar commercial products like Metastock, + Superchartz, Tradestation (...maybe one day) etc. If you are familiar + with those, then you should be able to muddle along with Qtstalker. + + The project has kept to a lean and simple design philosophy in order + to maximize speed, portability and resource usage. + </longdescription> +</pkgmetadata> diff --git a/app-office/qtstalker/qtstalker-0.35.ebuild b/app-office/qtstalker/qtstalker-0.35.ebuild new file mode 100644 index 00000000..78af866c --- /dev/null +++ b/app-office/qtstalker/qtstalker-0.35.ebuild @@ -0,0 +1,92 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-office/qtstalker/qtstalker-0.35.ebuild,v 1.4 2008/07/27 19:55:28 carlo Exp $ + +EAPI=1 + +inherit qt3 eutils multilib + +LANGS="pl" +for i in ${LANGS}; do + IUSE="${IUSE} linguas_${i}" +done + +DESCRIPTION="Commodity and stock market charting and technical analysis" +HOMEPAGE="http://qtstalker.sourceforge.net" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +DEPEND="x11-libs/qt:3 + >=sci-libs/ta-lib-0.4.0 + >=sys-libs/db-4.3" + +IUSE="" + +S=${WORKDIR}/${PN} + +src_unpack() { + unpack ${A} + cd "${S}" + + epatch "${FILESDIR}"/${P}-nodocs.patch + epatch "${FILESDIR}"/${P}-parallel-make.patch + epatch "${FILESDIR}"/${P}-gcc43.patch + + ebegin 'Fixing install paths' + grep -rl '/usr/local' * \ + | xargs sed -i -e "s:/usr/local:/usr:g" + eend + + ebegin 'Fixing multilib paths' + grep -rl '/usr/lib' * \ + | xargs sed -i -e "s:/usr/lib:/usr/$(get_libdir):g" + eend + + ebegin 'Fixing manual paths' + grep -rl '/usr/share/doc/qtstalker/' * \ + | xargs sed -i -e "s:/usr/share/doc/qtstalker/:/usr/share/doc/${PF}/:g" + eend +} + +src_compile() { + eqmake3 || die "eqmake3 failed." + emake || die "emake failed." + + for i in ${LINGUAS}; do + if [[ -f ${PN}_${i}.ts ]]; then + ebegin "Building langpacks..." + lrelease ${PN}_${i}.ts + eend + fi + done +} + +src_install() { + export INSTALL_ROOT="${D}" + sed -i -e 's:-strip ::g' "${S}"/plugins/quote/*/Makefile + emake install || die "emake install failed." + + ebegin "Installing docs" + cd "${S}"/docs + dohtml *{html,png} + dodoc AUTHORS BUGS CHANGELOG-${PV} TODO "${S}"/README + eend + + # install only needed langpacks + ebegin "Installing langpacks" + cd "${S}"/i18n + insinto /usr/share/${PN}/i18n + for i in ${LINGUAS}; do + if [[ -f ${PN}_${i}.qm ]]; then + doins ${PN}_${i}.qm + fi + done + eend + + # menu and icon + domenu "${FILESDIR}"/${PN}.desktop + doicon "${FILESDIR}"/${PN}.png +} diff --git a/app-office/qtstalker/qtstalker-0.36.ebuild b/app-office/qtstalker/qtstalker-0.36.ebuild new file mode 100644 index 00000000..0334d037 --- /dev/null +++ b/app-office/qtstalker/qtstalker-0.36.ebuild @@ -0,0 +1,96 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-office/qtstalker/qtstalker-0.36.ebuild,v 1.1 2009/04/26 12:10:33 patrick Exp $ + +EAPI=1 + +inherit qt3 eutils multilib + +LANGS="pl" +for i in ${LANGS}; do + IUSE="${IUSE} linguas_${i}" +done + +DESCRIPTION="Commodity and stock market charting and technical analysis" +HOMEPAGE="http://qtstalker.sourceforge.net" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +DEPEND="x11-libs/qt:3 + >=sci-libs/ta-lib-0.4.0 + >=sys-libs/db-4.3" + +IUSE="" + +S=${WORKDIR}/${P} + +src_unpack() { + unpack ${A} + cd "${S}" + + epatch "${FILESDIR}"/${P}-nodocs.patch + epatch "${FILESDIR}"/${P}-parallel-make.patch + epatch "${FILESDIR}"/${P}-gcc43.patch + +#blshkv + epatch "${FILESDIR}"/${P}-fibo.patch + epatch "${FILESDIR}"/${P}-csv_quote.patch + + ebegin 'Fixing install paths' + grep -rl '/usr/local' * \ + | xargs sed -i -e "s:/usr/local:/usr:g" + eend + + ebegin 'Fixing multilib paths' + grep -rl '/usr/lib' * \ + | xargs sed -i -e "s:/usr/lib:/usr/$(get_libdir):g" + eend + + ebegin 'Fixing manual paths' + grep -rl '/usr/share/doc/qtstalker/' * \ + | xargs sed -i -e "s:/usr/share/doc/qtstalker/:/usr/share/doc/${PF}/:g" + eend +} + +src_compile() { + eqmake3 || die "eqmake3 failed." + emake || die "emake failed." + + for i in ${LINGUAS}; do + if [[ -f ${PN}_${i}.ts ]]; then + ebegin "Building langpacks..." + lrelease ${PN}_${i}.ts + eend + fi + done +} + +src_install() { + export INSTALL_ROOT="${D}" + sed -i -e 's:-strip ::g' "${S}"/plugins/quote/*/Makefile + emake install || die "emake install failed." + + ebegin "Installing docs" + cd "${S}"/docs + dohtml *{html,png} + dodoc AUTHORS BUGS CHANGELOG-${PV} TODO "${S}"/README + eend + + # install only needed langpacks + ebegin "Installing langpacks" + cd "${S}"/i18n + insinto /usr/share/${PN}/i18n + for i in ${LINGUAS}; do + if [[ -f ${PN}_${i}.qm ]]; then + doins ${PN}_${i}.qm + fi + done + eend + + # menu and icon + domenu "${FILESDIR}"/${PN}.desktop + doicon "${FILESDIR}"/${PN}.png +} |