ports/114556: New port:textproc/qstardict A StarDict clone written with using Qt4
relaxbsd at gmail.com
relaxbsd at gmail.com
Fri Jul 13 15:00:09 UTC 2007
>Number: 114556
>Category: ports
>Synopsis: New port:textproc/qstardict A StarDict clone written with using Qt4
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Fri Jul 13 15:00:08 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator: Yinghong.Liu
>Release: FreeBSD 6.2-STABLE i386
>Organization:
>Environment:
System: FreeBSD relaxbsd.org 6.2-STABLE FreeBSD 6.2-STABLE #0: Thu May 10 21:42:19 CST 2007 hamigua at relaxbsd.org:/usr/src/sys/i386/compile/LYH i386
>Description:
QStarDict is a StarDict clone written with using Qt4.
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
WWW: http://qstardict.ylsoftware.com/
>How-To-Repeat:
Beforetime the ports of dictionaries was depended textproc/stardict2
But now it isn't Hobson's choice. May I modify this ports' depend?
>Fix:
--- qstardict.shar begins here ---
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# qstardict
# qstardict/Makefile
# qstardict/distinfo
# qstardict/pkg-descr
# qstardict/pkg-message
# qstardict/pkg-plist
#
echo c - qstardict
mkdir -p qstardict > /dev/null 2>&1
echo x - qstardict/Makefile
sed 's/^X//' >qstardict/Makefile << 'END-of-qstardict/Makefile'
X# New ports collection makefile for: qstardict
X# Date created: 12 Jul 2007
X# Whom: Yinghong.Liu <relaxbsd at gmail.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME= qstardict
XPORTVERSION= 0.03
XCATEGORIES= textproc
XMASTER_SITES= http://qstardict.ylsoftware.com/files/ \
X ftp://local-distfiles.freebsd.org.cn/pub/china-ports/hamigua/
X
XMAINTAINER= relaxbsd at gmail.com
XCOMMENT= A StarDict clone written with using Qt4
X
XUSE_BZIP2= yes
XUSE_QT_VER= 4
XQT_COMPONENTS= gui corelib qmake uic moc rcc
X
XDICPATH= ${PREFIX}/share/gnome/stardict/dic
X
X.if !defined(WITHOUT_NLS)
XPLIST_SUB+= NLS=""
X.else
XPLIST_SUB+= NLS="@comment "
X.endif
X
Xpost-patch:
X @${REINPLACE_CMD} -e "s|/usr|${PREFIX}|g" \
X ${WRKSRC}/qstardict.pro
X @${REINPLACE_CMD} -e "s|/usr/share/stardict/dic|${DICPATH}|g" \
X ${WRKSRC}/src/dictcore.cpp
X
Xpost-configure:
X @cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${QMAKE}
X
Xpost-install:
X.if !defined(WITHOUT_NLS)
X @${MKDIR} ${DATADIR}/translations
X (cd ${WRKSRC}/translations/ && ${COPYTREE_SHARE} '*.qm' ${DATADIR}/translations)
X.endif
X.if !defined(NOPORTDOCS)
X @${MKDIR} ${DOCSDIR}
X.for doc in AUTHORS COPYNG ChangeLog INSTALL README THANKS
X @${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
X.endfor
X.endif
X @${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.mk>
END-of-qstardict/Makefile
echo x - qstardict/distinfo
sed 's/^X//' >qstardict/distinfo << 'END-of-qstardict/distinfo'
XMD5 (qstardict-0.03.tar.bz2) = 5e4ba2a3fcf712b4a30bd2d1cb4889fd
XSHA256 (qstardict-0.03.tar.bz2) = a710c4e3c9894a2243b44798f35782cdc27f8d92a1b4acf7bc83ffa13e98a9a0
XSIZE (qstardict-0.03.tar.bz2) = 179052
END-of-qstardict/distinfo
echo x - qstardict/pkg-descr
sed 's/^X//' >qstardict/pkg-descr << 'END-of-qstardict/pkg-descr'
XQStarDict is a StarDict clone written with using Qt4.
XThe user interface is similar to StarDict.
X
XMain features
X* Full support of StarDict dictionaries
X* Working in system tray
X* Scanning mouse selection and showing popup window
X with translation of selected word
X
XWWW: http://qstardict.ylsoftware.com/
END-of-qstardict/pkg-descr
echo x - qstardict/pkg-message
sed 's/^X//' >qstardict/pkg-message << 'END-of-qstardict/pkg-message'
X=======================================================================
XQStarDict can support for StarDict dictionaries.
XYou can install some dictionaries for StarDict(QStarDict):
X
X chinese/stardict2-dict-zh_CN Simplified Chinese - English
X chinese/stardict2-dict-zh_TW Traditional Chinese - English
X japanese/stardict2-dict-ja Japanese - English
X korean/stardict2-dict-kr orean and foreign language Dictionaries
X textproc/stardict2-dictd_mova Dictionaries from www.mova.org
X textproc/stardict2-quick Dictionaries from Quick for StarDict
X=======================================================================
END-of-qstardict/pkg-message
echo x - qstardict/pkg-plist
sed 's/^X//' >qstardict/pkg-plist << 'END-of-qstardict/pkg-plist'
Xbin/qstardict
Xshare/applications/qstardict.desktop
X%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
X%%PORTDOCS%%%%DOCSDIR%%/COPYNG
X%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
X%%PORTDOCS%%%%DOCSDIR%%/INSTALL
X%%PORTDOCS%%%%DOCSDIR%%/README
X%%PORTDOCS%%%%DOCSDIR%%/THANKS
Xshare/pixmaps/qstardict.png
X%%NLS%%%%DATADIR%%/translations/qstardict-ru_RU.qm
X%%NLS%%%%DATADIR%%/translations/qstardict-zh_TW.qm
X%%NLS%%@dirrm %%DATADIR%%/translations
X%%NLS%%@dirrm %%DATADIR%%
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
X at dirrmtry share/applications
END-of-qstardict/pkg-plist
exit
--- qstardict.shar ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list