aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2008-03-26 20:58:56 +0800
committermiwi <miwi@FreeBSD.org>2008-03-26 20:58:56 +0800
commitdeb0847a831cb3d2a0f4dd1466ba0a026bfc70c4 (patch)
treef71eca160a720eaae307798cd97f630a4b3b18b8
parent03e05d45834e7a85333a63c05079e5344bb97e57 (diff)
downloadfreebsd-ports-gnome-deb0847a831cb3d2a0f4dd1466ba0a026bfc70c4.tar.gz
freebsd-ports-gnome-deb0847a831cb3d2a0f4dd1466ba0a026bfc70c4.tar.zst
freebsd-ports-gnome-deb0847a831cb3d2a0f4dd1466ba0a026bfc70c4.zip
- Update to 0.9
PR: 122024 Submitted by: Max Brazhnikov <makc@issp.ac.ru> (maintainer)
-rw-r--r--textproc/qstardict/Makefile22
-rw-r--r--textproc/qstardict/distinfo6
-rw-r--r--textproc/qstardict/files/patch-qstardict.pri17
-rw-r--r--textproc/qstardict/files/patch-qstardict.pro10
-rw-r--r--textproc/qstardict/pkg-plist16
5 files changed, 51 insertions, 20 deletions
diff --git a/textproc/qstardict/Makefile b/textproc/qstardict/Makefile
index 5fa97cb1c4f5..fdd195ce4a2a 100644
--- a/textproc/qstardict/Makefile
+++ b/textproc/qstardict/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= qstardict
-PORTVERSION= 0.08
+PORTVERSION= 0.09
CATEGORIES= textproc
MASTER_SITES= http://qstardict.ylsoftware.com/files/ \
ftp://local-distfiles.freebsd.org.cn/pub/china-ports/hamigua/
@@ -16,7 +16,8 @@ COMMENT= A StarDict clone written with using Qt4
USE_BZIP2= yes
USE_QT_VER= 4
-QT_COMPONENTS= gui corelib qmake_build uic_build moc_build rcc_build
+QT_COMPONENTS= gui network xml qmake_build uic_build moc_build rcc_build
+QMAKE_ARGS+= -recursive SEPARATE_TRANSLATIONS=1
DICPATH= ${PREFIX}/share/stardict/dic
@@ -25,30 +26,37 @@ PORTDOCS= AUTHORS COPYNG ChangeLog INSTALL README THANKS
OPTIONS= DBUS "Enable D-BUS support" on
.include <bsd.port.pre.mk>
+
.if defined(WITHOUT_NLS)
QMAKE_ARGS+= NO_TRANSLATIONS=1
+PLIST_SUB+= NLS="@comment "
+.else
+PLIST_SUB+= NLS=""
.endif
.if defined(WITHOUT_DBUS)
QMAKE_ARGS+= NO_DBUS=1
.else
-#QMAKE_ARGS+= "CONFIG+=qdbus"
LIB_DEPENDS+= QtDBus.4:${PORTSDIR}/devel/dbus-qt4
.endif
post-patch:
@${REINPLACE_CMD} -e "s|/usr|${PREFIX}|g" \
- ${WRKSRC}/qstardict.pro
+ ${WRKSRC}/qstardict.pri
@${REINPLACE_CMD} -e "s|/usr/share/stardict/dic|${DICPATH}|g" \
- ${WRKSRC}/src/dictcore.cpp
+ ${WRKSRC}/plugins/stardict/stardict.cpp
-post-configure:
+do-configure:
cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${QMAKE} ${QMAKE_ARGS}
+post-configure:
+ ${FIND} ${WRKSRC} -name Makefile | ${XARGS} ${REINPLACE_CMD} -e \
+ 's|^CC .*|CC=${CC}|; s|^CXX .*|CXX=${CXX}|; s|^LINK .*|LINK=${CXX}|'
+
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
-.for doc in AUTHORS COPYNG ChangeLog INSTALL README THANKS
+.for doc in ${PORTDOCS}
@${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
.endfor
.endif
diff --git a/textproc/qstardict/distinfo b/textproc/qstardict/distinfo
index 34a83bbf8417..08764ba56741 100644
--- a/textproc/qstardict/distinfo
+++ b/textproc/qstardict/distinfo
@@ -1,3 +1,3 @@
-MD5 (qstardict-0.08.tar.bz2) = f3bbb1ab807a3558615fcb36e2824260
-SHA256 (qstardict-0.08.tar.bz2) = b33a93f4c7b85997e50bd161035c783e134438bc741ead7325f762d737e96e1b
-SIZE (qstardict-0.08.tar.bz2) = 184903
+MD5 (qstardict-0.09.tar.bz2) = 4d30cb7a12b85a9e062405b75660d17a
+SHA256 (qstardict-0.09.tar.bz2) = 8349e21cf2aeaa490f73e1d090ca356ceee62735d1c92c694e2e28a191f8434f
+SIZE (qstardict-0.09.tar.bz2) = 292337
diff --git a/textproc/qstardict/files/patch-qstardict.pri b/textproc/qstardict/files/patch-qstardict.pri
new file mode 100644
index 000000000000..829b122dd358
--- /dev/null
+++ b/textproc/qstardict/files/patch-qstardict.pri
@@ -0,0 +1,17 @@
+--- ./qstardict.pri.orig 2008-03-22 18:51:46.000000000 +0300
++++ ./qstardict.pri 2008-03-24 01:40:52.000000000 +0300
+@@ -37,13 +37,12 @@
+ }
+
+ unix:DEFINES += HAVE_MMAP
+-unix:isEmpty(NO_DBUS):!contains(QT_CONFIG, qdbus): NO_DBUS = 1
+ unix:isEmpty(NO_DBUS):CONFIG += qdbus
+ unix:isEmpty(NO_DBUS):DEFINES += QSTARDICT_WITH_DBUS
+ isEmpty(NO_TRANSLATIONS):DEFINES += QSTARDICT_WITH_TRANSLATIONS
+
+ unix {
+- isEmpty(INSTALL_PREFIX):INSTALL_PREFIX=/usr
++ isEmpty(INSTALL_PREFIX):INSTALL_PREFIX=$$(PREFIX)
+ isEmpty(BIN_DIR):BIN_DIR=$$INSTALL_PREFIX/bin
+ isEmpty(DATA_DIR):DATA_DIR=$$INSTALL_PREFIX/share/qstardict
+ isEmpty(NO_TRANSLATIONS):isEmpty(TRANSLATIONS_DIR):TRANSLATIONS_DIR=$$DATA_DIR/translations
diff --git a/textproc/qstardict/files/patch-qstardict.pro b/textproc/qstardict/files/patch-qstardict.pro
deleted file mode 100644
index cd444a07593f..000000000000
--- a/textproc/qstardict/files/patch-qstardict.pro
+++ /dev/null
@@ -1,10 +0,0 @@
---- ./qstardict.pro.orig 2007-11-11 16:32:55.000000000 +0300
-+++ ./qstardict.pro 2007-11-19 01:48:14.000000000 +0300
-@@ -5,7 +5,6 @@
- VERSION = 0.08
- DEFINES += QSTARDICT_VERSION=\\\"$$VERSION\\\"
-
--unix:isEmpty(NO_DBUS):!contains(QT_CONFIG, qdbus): NO_DBUS = 1
-
- QT = \
- gui \
diff --git a/textproc/qstardict/pkg-plist b/textproc/qstardict/pkg-plist
index 9bf55e0a83c6..b2912a7579d6 100644
--- a/textproc/qstardict/pkg-plist
+++ b/textproc/qstardict/pkg-plist
@@ -1,4 +1,20 @@
bin/qstardict
+lib/qstardict/plugins/libstardict.so
+lib/qstardict/plugins/libweb.so
share/applications/qstardict.desktop
share/pixmaps/qstardict.png
+%%NLS%%share/qstardict/translations/qstardict-bg_BG.qm
+%%NLS%%share/qstardict/translations/qstardict-cs_CZ.qm
+%%NLS%%share/qstardict/translations/qstardict-de_DE.qm
+%%NLS%%share/qstardict/translations/qstardict-it_IT.qm
+%%NLS%%share/qstardict/translations/qstardict-pl_PL.qm
+%%NLS%%share/qstardict/translations/qstardict-pt_BR.qm
+%%NLS%%share/qstardict/translations/qstardict-ru_RU.qm
+%%NLS%%share/qstardict/translations/qstardict-ua_UA.qm
+%%NLS%%share/qstardict/translations/qstardict-zh_CN.qm
+%%NLS%%share/qstardict/translations/qstardict-zh_TW.qm
+%%NLS%%@dirrm share/qstardict/translations
+@dirrm share/qstardict
@dirrmtry share/applications
+@dirrm lib/qstardict/plugins
+@dirrm lib/qstardict