From 9aaeb4623d3ff5746e665bc17914eefd292b7dcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20K=C3=BChling?= Date: Sun, 2 Jan 2011 15:19:00 +0100 Subject: New OpenWrt package for GNU Octave. Experimental/probably still broken. Work in progress. Committing it as compilation seems to take forever. Not sure whether I can finish this within a few days. --- qstardict/Makefile | 57 ++ qstardict/patches/001-qstardict.patch | 1342 +++++++++++++++++++++++++++++++++ 2 files changed, 1399 insertions(+) create mode 100644 qstardict/Makefile create mode 100644 qstardict/patches/001-qstardict.patch (limited to 'qstardict') diff --git a/qstardict/Makefile b/qstardict/Makefile new file mode 100644 index 0000000..819f0d8 --- /dev/null +++ b/qstardict/Makefile @@ -0,0 +1,57 @@ +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=qstardict +PKG_VERSION:=0.13.1 +PKG_RELEASE:=1 +PKG_SOURCE_URL:=http://qstardict.ylsoftware.com/files/ +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 +PKG_MD5SUM:=0828c3fa01c5237db8a67d356a9d1a8c + +include $(INCLUDE_DIR)/package.mk +$(call include_mk,qmake.mk) + +define Package/qstardict + SECTION:=utils + CATEGORY:=Utilities + TITLE:=Qt clone of stardict + DEPENDS:=+qt4 +qt4-gui +dejavu-fonts-ttf +qt4-network +qt4-xml + URL:=http://qstardict.ylsoftware.com +endef + +define Build/Prepare + $(call Build/Prepare/Default) + (\ +cd $(PKG_BUILD_DIR); \ +echo "QMAKE_UIC=$(STAGING_DIR_HOST)/bin/uic" >> qstardict.pri; \ +echo "QMAKE_MOC=$(STAGING_DIR_HOST)/bin/moc" >> qstardict.pri; \ +echo "QMAKE_RCC=$(STAGING_DIR_HOST)/bin/rcc" >> qstardict.pri; \ +echo "QMAKE_LINK=$(TARGET_CXX)" >> qstardict.pri; \ +echo "QMAKE_LIBS+=-L$(STAGING_DIR)/usr/lib/libintl/lib" >> qstardict.pri; \ +echo "QMAKE_LIBS+=-L$(STAGING_DIR)/usr/lib/libiconv/lib" >> qstardict.pri; \ +echo "QMAKE_LIBS+=-Wl,-rpath-link=$(STAGING_DIR)/usr/lib" >> qstardict.pri; \ +echo "INCLUDEPATH += $(STAGING_DIR)/usr/include" >> qstardict.pri; \ +echo "INCLUDEPATH += $(STAGING_DIR)/usr/include/Qt" >> qstardict.pri; \ +echo "INCLUDEPATH += $(STAGING_DIR)/usr/include/QtGui" >> qstardict.pri; \ +echo "INCLUDEPATH += $(STAGING_DIR)/usr/include/QtCore" >> qstardict.pri; \ +echo "INCLUDEPATH += $(STAGING_DIR)/usr/include/QtNetwork" >> qstardict.pri; \ +echo "INCLUDEPATH += $(STAGING_DIR)/usr/include/QtXml" >> qstardict.pri; \ +) +endef + +define Build/Configure + $(call Build/Configure/Qmake,qstardict) +endef + +define Package/qstardict/install + $(INSTALL_DIR) $(1)/usr/bin $(1)/usr/lib/qstardict/plugins + $(INSTALL_BIN) $(PKG_BUILD_DIR)/qstardict/qstardict $(1)/usr/bin/ + $(INSTALL_BIN) $(PKG_BUILD_DIR)/plugins/stardict/libstardict.so $(1)/usr/lib/qstardict/plugins + $(INSTALL_BIN) $(PKG_BUILD_DIR)/plugins/web/libweb.so $(1)/usr/lib/qstardict/plugins +endef + +$(eval $(call BuildPackage,qstardict)) diff --git a/qstardict/patches/001-qstardict.patch b/qstardict/patches/001-qstardict.patch new file mode 100644 index 0000000..d9b9c78 --- /dev/null +++ b/qstardict/patches/001-qstardict.patch @@ -0,0 +1,1342 @@ +diff -ur qstardict-0.13.1.or/qstardict/keyboard.cpp qstardict-0.13.1/qstardict/keyboard.cpp +--- qstardict-0.13.1.or/qstardict/keyboard.cpp 2009-02-10 15:33:30.000000000 +0300 ++++ qstardict-0.13.1/qstardict/keyboard.cpp 2010-12-07 21:52:31.613898108 +0300 +@@ -82,7 +82,28 @@ + + } // namespace + +-#endif // Q_WS_WIN ++#elif defined(Q_WS_QWS) // Q_WS_WIN ++ ++namespace ++{ ++const unsigned mAlt = 0010; ++const unsigned mCtrl = 0004; ++const unsigned mShift = 0001; ++const unsigned mWin = 0100; ++} ++ ++namespace QStarDict ++{ ++ ++Qt::KeyboardModifiers Keyboard::activeModifiers() ++{ ++ Qt::KeyboardModifiers result; ++ return result; ++} ++ ++} // namespace ++ ++#endif // Q_WS_QWS + + // vim: tabstop=4 softtabstop=4 shiftwidth=4 expandtab cindent textwidth=120 formatoptions=tc + +diff -ur qstardict-0.13.1.or/qstardict/main.cpp qstardict-0.13.1/qstardict/main.cpp +--- qstardict-0.13.1.or/qstardict/main.cpp 2009-02-10 15:33:30.000000000 +0300 ++++ qstardict-0.13.1/qstardict/main.cpp 2010-12-09 21:29:28.240008646 +0300 +@@ -35,6 +35,10 @@ + #include + #endif // QSTARDICT_WITH_TRANSLATIONS + ++#ifdef Q_WS_QWS ++#include ++#endif ++ + int main(int argc, char *argv[]) + { + QStarDict::Application app(argc, argv); +@@ -61,6 +65,9 @@ + } + #endif // Q_OS_WIN + ++#ifdef Q_WS_QWS ++ QWSServer::setCursorVisible(false); ++#endif + + return app.exec(); + } +diff -ur qstardict-0.13.1.or/qstardict/mainwindow.cpp qstardict-0.13.1/qstardict/mainwindow.cpp +--- qstardict-0.13.1.or/qstardict/mainwindow.cpp 2009-02-10 15:33:30.000000000 +0300 ++++ qstardict-0.13.1/qstardict/mainwindow.cpp 2010-12-08 22:05:16.400898587 +0300 +@@ -93,7 +93,7 @@ + setVisible(config.value("MainWindow/visible", true).toBool()); + wordsListDock->setFloating(config.value("MainWindow/wordsListDock/floating", wordsListDock->isFloating()).toBool()); + wordsListDock->setGeometry(config.value("MainWindow/wordsListDock/geometry", wordsListDock->geometry()).toRect()); +- setInstantSearch(config.value("MainWindow/instantSearch", true).toBool()); ++ setInstantSearch(config.value("MainWindow/instantSearch", false).toBool()); + setDefaultStyleSheet(config.value("MainWindow/defaultStyleSheet", defaultStyleSheet()).toString()); + } + +diff -ur qstardict-0.13.1.or/qstardict/mainwindow.ui qstardict-0.13.1/qstardict/mainwindow.ui +--- qstardict-0.13.1.or/qstardict/mainwindow.ui 2009-02-10 15:33:30.000000000 +0300 ++++ qstardict-0.13.1/qstardict/mainwindow.ui 2010-12-09 21:31:59.423898167 +0300 +@@ -1,190 +1,241 @@ +- ++ ++ + QStarDict::MainWindow +- +- ++ ++ + + 0 + 0 +- 742 +- 511 ++ 326 ++ 240 + + +- ++ ++ BlankCursor ++ ++ + QStarDict + +- +- ++ ++ + :/icons/qstardict.png:/icons/qstardict.png + +- +- +- +- 9 +- +- +- 6 +- +- +- +- +- 6 ++ ++ ++ ++ 214 ++ 130 ++ ++ ++ ++ ++ 320 ++ 240 ++ ++ ++ ++ ++ 0 ++ ++ ++ 0 ++ ++ ++ ++ ++ 0 + +- ++ + 0 + + +- +- ++ ++ + Clear the search box + +- ++ + Clear + +- +- ++ ++ + :/icons/clear-right.png:/icons/clear-right.png + +- ++ + Qt::ToolButtonIconOnly + + + + +- ++ + + +- +- ++ ++ + Fuzzy query + +- ++ + Search + +- +- ++ ++ + :/icons/search-filter.png:/icons/search-filter.png + +- ++ + Qt::ToolButtonTextBesideIcon + + + + + +- +- ++ ++ + + + +- +- +- QDockWidget::AllDockWidgetFeatures ++ ++ ++ ++ 100 ++ 155 ++ ++ ++ ++ ++ 100 ++ 240 ++ + +- ++ ++ QDockWidget::DockWidgetClosable|QDockWidget::DockWidgetMovable ++ ++ + Qt::NoDockWidgetArea + +- ++ + Words list + +- ++ + 1 + +- +- +- +- 9 ++ ++ ++ ++ 100 ++ 130 ++ ++ ++ ++ ++ 100 ++ 240 ++ ++ ++ ++ ++ ++ 0 ++ 5 ++ 100 ++ 190 ++ ++ ++ ++ ++ 100 ++ 130 ++ + +- +- 6 ++ ++ ++ 100 ++ 240 ++ + +- +- +- +- ++ + + +- +- ++ ++ + + 0 + 0 +- 742 +- 22 ++ 326 ++ 27 + + +- +- ++ ++ + &File + +- ++ + +- +- ++ ++ + &Help + +- +- +- ++ ++ ++ + +- +- ++ ++ + &Settings + +- +- ++ ++ + +- +- +- ++ ++ ++ + +- +- +- ++ ++ ++ + :/icons/application-exit.png:/icons/application-exit.png + +- ++ + &Quit + +- ++ + Ctrl+Q + + +- +- ++ ++ + &About + + +- +- ++ ++ + About &Qt + + +- +- +- ++ ++ ++ + :/icons/configure.png:/icons/configure.png + +- ++ + &Configure QStarDict + + +- +- ++ ++ + true + +- ++ + &Scan + + +- +- +- ++ ++ ++ + :/icons/help-contents.png:/icons/help-contents.png + +- ++ + QStarDict &Help + +- ++ + F1 + + +@@ -203,7 +254,7 @@ + searchClearButton + + +- ++ + + + +@@ -212,11 +263,11 @@ + searchBox + clear() + +- ++ + 315 + 59 + +- ++ + 647 + 61 + +@@ -228,11 +279,11 @@ + searchBox + setFocus() + +- ++ + 315 + 59 + +- ++ + 647 + 61 + +@@ -244,11 +295,11 @@ + queryButton + click() + +- ++ + 438 + 50 + +- ++ + 661 + 51 + +diff -ur qstardict-0.13.1.or/qstardict/settingsdialog.ui qstardict-0.13.1/qstardict/settingsdialog.ui +--- qstardict-0.13.1.or/qstardict/settingsdialog.ui 2009-02-10 15:33:30.000000000 +0300 ++++ qstardict-0.13.1/qstardict/settingsdialog.ui 2010-12-09 21:31:59.432865593 +0300 +@@ -1,84 +1,67 @@ +- ++ ++ + QStarDict::SettingsDialog +- +- ++ ++ + + 0 + 0 +- 463 +- 498 ++ 320 ++ 240 + + +- ++ ++ ++ 0 ++ 0 ++ ++ ++ ++ BlankCursor ++ ++ + QStarDict Settings + +- ++ + + +- +- +- 9 +- +- +- 6 +- +- +- +- +- Qt::Horizontal +- +- +- QDialogButtonBox::Cancel|QDialogButtonBox::Ok +- +- +- false +- +- +- +- +- +- ++ ++ ++ ++ + 0 + +- +- +- +- 0 +- 0 +- 441 +- 414 +- +- +- ++ ++ + Global settings + +- ++ + +- +- ++ ++ + Instant search + + + + +- +- ++ ++ + 6 + +- ++ + 0 + + +- +- ++ ++ + Pronounce words using this command: + + + + +- +- +- Enter cmd for the speaching program.<br>If cmd contains "%s" it will be replaced to word, else word will be writen to stdin of speech process. ++ ++ ++ Enter cmd for the speaching program.<br>If cmd contains "%s" it will be replaced to word, else word will be writen to stdin of speech process. + + + +@@ -86,104 +69,96 @@ + + + +- ++ + Qt::Vertical + +- ++ + +- 369 +- 171 ++ 320 ++ 240 + + + + + + +- +- +- +- 0 +- 0 +- 441 +- 414 +- +- +- ++ ++ + Dictionaries + +- ++ + +- +- ++ ++ + Dictionaries + +- ++ + +- +- ++ ++ + QAbstractItemView::NoEditTriggers + +- ++ + QAbstractItemView::SingleSelection + +- ++ + QAbstractItemView::SelectRows + +- ++ + false + + + + +- ++ + +- +- ++ ++ + Move up + +- ++ + Up + +- +- ++ ++ + :/icons/arrow-up.png:/icons/arrow-up.png + + + + +- +- ++ ++ + Move down + +- ++ + Down + +- +- ++ ++ + :/icons/arrow-down.png:/icons/arrow-down.png + + + + +- +- ++ ++ + Show information about dictionary + +- ++ + Show info + +- +- ++ ++ + :/icons/dialog-information.png:/icons/dialog-information.png + + + + + +- ++ + Qt::Horizontal + +- ++ + + 40 + 20 +@@ -196,73 +171,80 @@ + + + ++ ++ ++ ++ ++ Plugins ++ ++ + +- +- ++ ++ + + 16777215 +- 196 ++ 16777215 + + +- ++ + Plugins + +- ++ + Qt::AlignBottom|Qt::AlignLeading|Qt::AlignLeft + +- ++ + +- +- ++ ++ + QAbstractItemView::NoEditTriggers + +- ++ + QAbstractItemView::SingleSelection + +- ++ + QAbstractItemView::SelectRows + +- ++ + false + + + + +- ++ + +- +- ++ ++ + Show information about plugin + +- ++ + Info + +- +- ++ ++ + :/icons/dialog-information.png:/icons/dialog-information.png + + + + +- +- ++ ++ + Configure plugin + +- ++ + Configure + +- +- ++ ++ + :/icons/configure.png:/icons/configure.png + + + + + +- ++ + Qt::Horizontal + +- ++ + + 40 + 20 +@@ -277,136 +259,128 @@ + + + +- +- +- +- 0 +- 0 +- 640 +- 409 +- +- +- +- Popup window ++ ++ ++ Behaviour + +- +- ++ ++ + 9 + +- ++ + 6 + +- +- +- ++ ++ ++ + Behavior + +- +- ++ ++ + 9 + +- ++ + 6 + +- +- +- ++ ++ ++ + 6 + +- ++ + 0 + + +- +- ++ ++ + Pronounce the word + + + + + +- +- +- ++ ++ ++ + 6 + +- ++ + 0 + + +- +- ++ ++ + Timeout before hide after mouse over + + + + +- +- ++ ++ + Don't hide + +- ++ + sec + +- ++ + 1 + +- ++ + 0.000000000000000 + +- ++ + 10.000000000000000 + +- ++ + 0.100000000000000 + +- ++ + 0.500000000000000 + + + + + +- +- +- ++ ++ ++ + 6 + +- ++ + 0 + + +- +- ++ ++ + true + +- ++ + Show only if modifier pressed + + + + +- +- ++ ++ + false + + +- ++ + Alt + + + +- ++ + Control + + + +- ++ + Shift + + + +- ++ + Win + + +@@ -414,19 +388,19 @@ + + + +- +- +- ++ ++ ++ + Scan selection + +- ++ + true + + + +- +- +- ++ ++ ++ + Show if word not found + + +@@ -434,108 +408,128 @@ + + + +- +- +- +- Apperance ++ ++ ++ ++ Qt::Vertical ++ ++ ++ ++ 20 ++ 101 ++ + +- +- ++ ++ ++ ++ ++ ++ ++ View ++ ++ ++ ++ ++ ++ View ++ ++ ++ + 9 + +- ++ + 6 + +- +- +- ++ ++ ++ + 6 + +- ++ + 0 + + +- +- ++ ++ + Opacity + + + + +- +- ++ ++ + % + +- ++ + + +- ++ + 1 + +- ++ + 100 + +- ++ + 100 + + + + + +- +- +- ++ ++ ++ + 6 + +- ++ + 0 + + +- +- ++ ++ + Default width + + + + +- +- ++ ++ + 96 + +- ++ + 9999 + +- ++ + 320 + + + + + +- +- +- ++ ++ ++ + 6 + +- ++ + 0 + + +- +- ++ ++ + Default height + + + + +- +- ++ ++ + 96 + +- ++ + 9999 + +- ++ + 240 + + +@@ -545,41 +539,40 @@ + + + +- +- +- +- Qt::Vertical +- +- +- +- 20 +- 101 +- +- +- +- + + +- +- +- +- 0 +- 0 +- 640 +- 409 +- +- +- ++ ++ + Apperance + +- +- +- ++ ++ ++ ++ ++ ++ 0 ++ 0 ++ ++ ++ + + + + + ++ ++ ++ ++ Qt::Horizontal ++ ++ ++ QDialogButtonBox::Cancel|QDialogButtonBox::Ok ++ ++ ++ false ++ ++ ++ + + + +@@ -599,21 +592,16 @@ + dictsMoveUpButton + dictsMoveDownButton + dictsShowInfoButton +- pluginsTableView +- pluginsShowInfoButton +- pluginsConfigureButton + useScanBox + showIfNotFoundBox + useScanModifierBox + modifierKeyBox + timeoutBeforeHideSpin + pronounceWordBox +- popupDefaultWidthSpin +- popupDefaultHeightSpin +- popupOpacitySpin + + +- ++ ++ + + + +@@ -622,11 +610,11 @@ + QStarDict::SettingsDialog + accept() + +- +- 330 +- 587 ++ ++ 310 ++ 230 + +- ++ + 410 + 299 + +@@ -638,11 +626,11 @@ + QStarDict::SettingsDialog + reject() + +- +- 406 +- 587 ++ ++ 310 ++ 230 + +- ++ + 410 + 299 + +@@ -654,13 +642,13 @@ + modifierKeyBox + setEnabled(bool) + +- +- 165 +- 140 ++ ++ 194 ++ 85 + +- +- 273 +- 137 ++ ++ 289 ++ 85 + + + -- cgit v1.2.3