summaryrefslogtreecommitdiff
path: root/textproc/qstardict
diff options
context:
space:
mode:
Diffstat (limited to 'textproc/qstardict')
-rw-r--r--textproc/qstardict/Makefile17
-rw-r--r--textproc/qstardict/distinfo6
-rw-r--r--textproc/qstardict/files/patch-qstardict.pro10
-rw-r--r--textproc/qstardict/pkg-descr17
-rw-r--r--textproc/qstardict/pkg-message4
-rw-r--r--textproc/qstardict/pkg-plist19
6 files changed, 38 insertions, 35 deletions
diff --git a/textproc/qstardict/Makefile b/textproc/qstardict/Makefile
index 3a952813d776..a8f4eb687571 100644
--- a/textproc/qstardict/Makefile
+++ b/textproc/qstardict/Makefile
@@ -1,5 +1,5 @@
PORTNAME= qstardict
-DISTVERSION= 3.0.0
+DISTVERSION= 4.0.0
CATEGORIES= textproc
MASTER_SITES= https://qstardict.ylsoftware.com/files/
@@ -10,7 +10,10 @@ WWW= https://qstardict.ylsoftware.com/
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
-USES= compiler:c++17-lang gettext gl gnome pkgconfig qmake qt:6 xorg
+LIB_DEPENDS= libxkbcommon.so:x11/libxkbcommon
+
+USES= compiler:c++17-lang gettext-runtime gl gnome pkgconfig qmake \
+ qt:6 xorg
USE_GL= opengl
USE_GNOME= glib20
USE_QT= base tools:build
@@ -18,14 +21,18 @@ USE_XORG= x11
QMAKE_ARGS= INSTALL_PREFIX=${PREFIX}
+PORTDATA= *
+PORTDOCS= *
+
OPTIONS_DEFINE= DOCS
-OPTIONS_SUB= yes
# Path to dictionaries installed by stardict-* ports
-DICPATH= ${LOCALBASE}/share/stardict/dic
+DICPATH= share/stardict/dic
post-patch:
- ${REINPLACE_CMD} '/m_dictDirs/s|/usr/share/stardict/dic|${PREFIX}/share/stardict/dic|g' \
+ @${REINPLACE_CMD} '/${DICPATH:S/\//\\\//g}/s|/usr|${PREFIX}|' \
${WRKSRC}/plugins/stardict/stardict.cpp
+ @${REINPLACE_CMD} '/VERSION = /s/3\.0\.0/${DISTVERSION}/' \
+ ${WRKSRC}/qstardict.pri
.include <bsd.port.mk>
diff --git a/textproc/qstardict/distinfo b/textproc/qstardict/distinfo
index e965125b291e..57917d714ac1 100644
--- a/textproc/qstardict/distinfo
+++ b/textproc/qstardict/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1734067811
-SHA256 (qstardict-3.0.0.tar.gz) = dbaf26711ad8ffa36c2befd3406b59c5c8d94d02ce35f377122aad5582f85df9
-SIZE (qstardict-3.0.0.tar.gz) = 489375
+TIMESTAMP = 1747764071
+SHA256 (qstardict-4.0.0.tar.gz) = ab8cfd9f8cb1c293c2fbd0b092ee63769c41a0c3a655d6667c6c13bc98cb492d
+SIZE (qstardict-4.0.0.tar.gz) = 565014
diff --git a/textproc/qstardict/files/patch-qstardict.pro b/textproc/qstardict/files/patch-qstardict.pro
new file mode 100644
index 000000000000..1ff02c5f55d3
--- /dev/null
+++ b/textproc/qstardict/files/patch-qstardict.pro
@@ -0,0 +1,10 @@
+--- qstardict.pro.orig 2025-05-23 18:12:50 UTC
++++ qstardict.pro
+@@ -24,7 +24,6 @@ DOCS += \
+
+ DOCS += \
+ AUTHORS \
+- COPYING \
+ ChangeLog \
+ THANKS
+ DISTFILES += $$DOCS \
diff --git a/textproc/qstardict/pkg-descr b/textproc/qstardict/pkg-descr
index 1dfc0c75ac0f..161d29463c52 100644
--- a/textproc/qstardict/pkg-descr
+++ b/textproc/qstardict/pkg-descr
@@ -1,8 +1,13 @@
-QStarDict is a StarDict clone written with using Qt4.
-The user interface is similar to StarDict.
+QStarDict is a free dictionary application written using Qt for
+learning languages. The user interface is similar to StarDict.
Main features
-* Full support of StarDict dictionaries
-* Working in system tray
-* Scanning mouse selection and showing popup window
- with translation of selected word
+* Full support of StarDict 2.x dictionaries
+* Working in the system tray
+* Scanning mouse selection and showing a popup window with
+ translation of selected words
+* Translations reformatting
+* Pronuncation of translated words
+* Pronunciation if IPA transcriptions in the translations
+* Plugins support
+* Training for studying words
diff --git a/textproc/qstardict/pkg-message b/textproc/qstardict/pkg-message
index e4f368a8f916..aa95679f2573 100644
--- a/textproc/qstardict/pkg-message
+++ b/textproc/qstardict/pkg-message
@@ -4,8 +4,8 @@
QStarDict can support for StarDict dictionaries.
You can install some dictionaries for StarDict(QStarDict):
- textproc/stardict2-dict-fa_IR English-Persian dictionary
- textproc/stardict2-dictd_mova Dictionaries from www.mova.org
+ russian/stardict-dictionaries English-Russian dictionaries
+ textproc/stardict-dict-fa_IR English-Persian dictionary
EOM
}
]
diff --git a/textproc/qstardict/pkg-plist b/textproc/qstardict/pkg-plist
index 2c595ed80d3c..06df6f090f77 100644
--- a/textproc/qstardict/pkg-plist
+++ b/textproc/qstardict/pkg-plist
@@ -2,23 +2,4 @@ bin/qstardict
lib/qstardict/plugins/libstardict.so
lib/qstardict/plugins/libweb.so
share/applications/qstardict.desktop
-%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
-%%PORTDOCS%%%%DOCSDIR%%/COPYING
-%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
-%%PORTDOCS%%%%DOCSDIR%%/THANKS
share/pixmaps/qstardict.png
-%%DATADIR%%/translations/qstardict-bg_BG.qm
-%%DATADIR%%/translations/qstardict-cs_CZ.qm
-%%DATADIR%%/translations/qstardict-de_DE.qm
-%%DATADIR%%/translations/qstardict-es_ES.qm
-%%DATADIR%%/translations/qstardict-fr_FR.qm
-%%DATADIR%%/translations/qstardict-he_IL.qm
-%%DATADIR%%/translations/qstardict-it_IT.qm
-%%DATADIR%%/translations/qstardict-ka_GE.ts
-%%DATADIR%%/translations/qstardict-lt_LT.qm
-%%DATADIR%%/translations/qstardict-pl_PL.qm
-%%DATADIR%%/translations/qstardict-pt_BR.qm
-%%DATADIR%%/translations/qstardict-ru_RU.qm
-%%DATADIR%%/translations/qstardict-ua_UA.qm
-%%DATADIR%%/translations/qstardict-zh_CN.qm
-%%DATADIR%%/translations/qstardict-zh_TW.qm