From b309d8545d91c7ecadfcec26cbce424981ef67a5 Mon Sep 17 00:00:00 2001 From: Rong-En Fan Date: Sun, 2 Mar 2008 06:20:47 +0000 Subject: - Update to 0.08 - Add OPTIONS for dbus and nls PR: ports/119457 Submitted by: Max Brazhnikov Approved by: maintainer timeout (2 months) --- textproc/qstardict/Makefile | 21 +++++++++++++++++---- textproc/qstardict/distinfo | 6 +++--- textproc/qstardict/files/patch-qstardict.pro | 10 ++++++++++ 3 files changed, 30 insertions(+), 7 deletions(-) create mode 100644 textproc/qstardict/files/patch-qstardict.pro (limited to 'textproc/qstardict') diff --git a/textproc/qstardict/Makefile b/textproc/qstardict/Makefile index 6b1712e92ad0..ab2c6c04317b 100644 --- a/textproc/qstardict/Makefile +++ b/textproc/qstardict/Makefile @@ -6,8 +6,7 @@ # PORTNAME= qstardict -PORTVERSION= 0.05 -PORTREVISION= 1 +PORTVERSION= 0.08 CATEGORIES= textproc MASTER_SITES= http://qstardict.ylsoftware.com/files/ \ ftp://local-distfiles.freebsd.org.cn/pub/china-ports/hamigua/ @@ -23,6 +22,20 @@ DICPATH= ${PREFIX}/share/stardict/dic PORTDOCS= AUTHORS COPYNG ChangeLog INSTALL README THANKS +OPTIONS= DBUS "Enable D-BUS support" on + +.include +.if defined(WITHOUT_NLS) +QMAKE_ARGS+= NO_TRANSLATIONS=1 +.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 @@ -30,7 +43,7 @@ post-patch: ${WRKSRC}/src/dictcore.cpp post-configure: - @cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${QMAKE} + cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${QMAKE} ${QMAKE_ARGS} post-install: .if !defined(NOPORTDOCS) @@ -41,4 +54,4 @@ post-install: .endif @${CAT} ${PKGMESSAGE} -.include +.include diff --git a/textproc/qstardict/distinfo b/textproc/qstardict/distinfo index 69952d0f758a..34a83bbf8417 100644 --- a/textproc/qstardict/distinfo +++ b/textproc/qstardict/distinfo @@ -1,3 +1,3 @@ -MD5 (qstardict-0.05.tar.bz2) = 9ace1928edcc808f3c4b9a827e050a39 -SHA256 (qstardict-0.05.tar.bz2) = 9a54124ed97f01af780430f124937afe680509cfa5a02677fb98c0080b3f08ac -SIZE (qstardict-0.05.tar.bz2) = 170500 +MD5 (qstardict-0.08.tar.bz2) = f3bbb1ab807a3558615fcb36e2824260 +SHA256 (qstardict-0.08.tar.bz2) = b33a93f4c7b85997e50bd161035c783e134438bc741ead7325f762d737e96e1b +SIZE (qstardict-0.08.tar.bz2) = 184903 diff --git a/textproc/qstardict/files/patch-qstardict.pro b/textproc/qstardict/files/patch-qstardict.pro new file mode 100644 index 000000000000..cd444a07593f --- /dev/null +++ b/textproc/qstardict/files/patch-qstardict.pro @@ -0,0 +1,10 @@ +--- ./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 \ -- cgit v1.2.3