Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Jul 2008 08:16:17 GMT
From:      "Eric L. Chen" <d9364104@mail.nchu.edu.tw>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/125924: Add textproc/stardict3
Message-ID:  <200807240816.m6O8GHtS041981@www.freebsd.org>
Resent-Message-ID: <200807240820.m6O8K2t0011962@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         125924
>Category:       ports
>Synopsis:       Add textproc/stardict3
>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:   Thu Jul 24 08:20:02 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Eric L. Chen
>Release:        FreeBSD 7-STABLE
>Organization:
National Chung Hsing University
>Environment:
FreeBSD lihong-nb.local 7.0-STABLE FreeBSD 7.0-STABLE #15: Tue Jul 22 23:53:36 CST 2008     root@lihong-nb.local:/usr/obj/usr/src/sys/lihong-nb  i386

>Description:
Add new port textproc/stardict3 (update stardict-2.x to stardict-3.x).
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# 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:
#
#	textproc/stardict2/Makefile
#	textproc/stardict3
#	textproc/stardict3/files
#	textproc/stardict3/files/patch-src::conf.cpp
#	textproc/stardict3/files/patch-src::stardict-application-server.cpp
#	textproc/stardict3/pkg-descr
#	textproc/stardict3/pkg-message
#	textproc/stardict3/pkg-plist
#	textproc/stardict3/Makefile
#	textproc/stardict3/distinfo
#
echo x - textproc/stardict2/Makefile
sed 's/^X//' >textproc/stardict2/Makefile << '725df2876c673fa6d959561896e585fc'
X# Ports collection makefile for:	stardict2
X# Date created:			13 April 2003
X# Whom:				Shen Chuan-Hsing <statue@freebsd.sinica.edu.tw>
X#
X# $FreeBSD: ports/textproc/stardict2/Makefile,v 1.33 2008/06/06 14:05:02 edwin Exp $
X#
X
XPORTNAME=	stardict
XPORTVERSION=	2.4.8
XPORTREVISION=	7
XCATEGORIES=	textproc
XMASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR=	${PORTNAME}
XDIST_SUBDIR=	stardict
X
XMAINTAINER=	delphij@FreeBSD.org
XCOMMENT=	A cross-platform and international dictionary written in Gtk2
X
XGNU_CONFIGURE=	yes
XCONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
X		LIBS="-L${LOCALBASE}/lib"
XUSE_GMAKE=	yes
XUSE_BZIP2=	yes
XUSE_GNOME=	gnomehack gnomeprefix
XUSE_GETTEXT=	yes
X
XOPTIONS=	GNOMEUI "GNOME support" On
X
XCONFLICTS=      stardict-3.[0-9]*
X
X.include <bsd.port.pre.mk>
X
X.if !defined(WITHOUT_GNOMEUI)
XUSE_GNOME+=	libgnomeui
XGCONF_SCHEMAS=	stardict.schemas
XINSTALLS_OMF=	yes
XPLIST_SUB=	GNOME=""
X.else
XUSE_GNOME+=	gtk20
XCONFIGURE_ARGS+=--disable-gnome-support --disable-schemas-install
XPLIST_SUB=	GNOME="@comment not installed: "
X.endif
X
XMAN1=		stardict.1
X
Xpost-patch:
X# gcc 2.95 does not know std::string::clear()
X	@${REINPLACE_CMD} -e 's|.clear()|.erase()|' \
X		${WRKSRC}/src/docklet.cpp ${WRKSRC}/src/floatwin.cpp \
X		${WRKSRC}/src/selection.cpp
X
Xpost-install:
X	@${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.post.mk>
725df2876c673fa6d959561896e585fc
echo c - textproc/stardict3
mkdir -p textproc/stardict3 > /dev/null 2>&1
echo c - textproc/stardict3/files
mkdir -p textproc/stardict3/files > /dev/null 2>&1
echo x - textproc/stardict3/files/patch-src::conf.cpp
sed 's/^X//' >textproc/stardict3/files/patch-src::conf.cpp << 'd642b1e37bf4c41de0333ab6bad8f843'
X--- src/conf.cpp.orig	Mon Jul 10 05:23:39 2006
X+++ src/conf.cpp	Mon Jul 10 05:24:36 2006
X@@ -114,7 +114,7 @@
X #ifdef _WIN32
X 	add_entry("/apps/stardict/preferences/dictionary/tts_path", std::string("C:\\Program Files\\WyabdcRealPeopleTTS\nC:\\Program Files\\OtdRealPeopleTTS\nWyabdcRealPeopleTTS\nOtdRealPeopleTTS"));
X #else
X-	add_entry("/apps/stardict/preferences/dictionary/tts_path", std::string("/usr/share/WyabdcRealPeopleTTS\n/usr/share/OtdRealPeopleTTS"));
X+	add_entry("/apps/stardict/preferences/dictionary/tts_path", std::string("/usr/local/share/WyabdcRealPeopleTTS\n/usr/local/share/OtdRealPeopleTTS"));
X #endif
X 	add_entry("/apps/stardict/preferences/dictionary/history", get_default_history_filename());
X 	add_entry("/apps/stardict/preferences/dictionary/only_export_word", true);
d642b1e37bf4c41de0333ab6bad8f843
echo x - textproc/stardict3/files/patch-src::stardict-application-server.cpp
sed 's/^X//' >textproc/stardict3/files/patch-src::stardict-application-server.cpp << '123103089fe2a458e78036d48c9aa693'
X--- src/stardict-application-server.cpp.orig	Tue Sep 23 18:19:48 2003
X+++ src/stardict-application-server.cpp	Tue Jan 18 02:25:54 2005
X@@ -119,4 +119,4 @@
X         StardictApplicationServer,                    
X         GNOME_Stardict_Application, 
X         BONOBO_TYPE_OBJECT,           
X-        stardict_application_server);
X+        stardict_application_server)
123103089fe2a458e78036d48c9aa693
echo x - textproc/stardict3/pkg-descr
sed 's/^X//' >textproc/stardict3/pkg-descr << '87aded1553c3f251599ee31072e66f15'
XStarDict is a Cross-Platform and international dictionary written in Gtk2.
XIt has powerful features such as "Glob-style pattern matching," "Scan
Xselection word," "Fuzzy query," etc.
X
XWWW: http://stardict.sourceforge.net/
87aded1553c3f251599ee31072e66f15
echo x - textproc/stardict3/pkg-message
sed 's/^X//' >textproc/stardict3/pkg-message << '2bf8f572af9681f3edb269c759056fae'
X* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
X
XNow it's time to install some dictionary files:
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
X* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
2bf8f572af9681f3edb269c759056fae
echo x - textproc/stardict3/pkg-plist
sed 's/^X//' >textproc/stardict3/pkg-plist << 'c566b5ec468ac1c65f67d57e312a77f1'
Xbin/stardict
X%%GNOME%%libdata/bonobo/servers/GNOME_Stardict.server
Xshare/applications/stardict.desktop
X%%GNOME%%share/gnome/help/stardict/C/legal.xml
X%%GNOME%%share/gnome/help/stardict/C/stardict.xml
X%%GNOME%%share/gnome/help/stardict/C/figures/stardict_float_window.png
X%%GNOME%%share/gnome/help/stardict/C/figures/stardict_main_window.png
X%%GNOME%%share/gnome/help/stardict/C/figures/stardict_notification_area.png
X%%GNOME%%share/gnome/help/stardict/zh_CN/legal.xml
X%%GNOME%%share/gnome/help/stardict/zh_CN/stardict.xml
X%%GNOME%%share/gnome/help/stardict/zh_CN/figures/stardict_float_window.png
X%%GNOME%%share/gnome/help/stardict/zh_CN/figures/stardict_main_window.png
X%%GNOME%%share/gnome/help/stardict/zh_CN/figures/stardict_notification_area.png
X%%GNOME%%share/gnome/help/stardict/zh_TW/legal.xml
X%%GNOME%%share/gnome/help/stardict/zh_TW/stardict.xml
X%%GNOME%%share/gnome/help/stardict/zh_TW/figures/stardict_float_window.png
X%%GNOME%%share/gnome/help/stardict/zh_TW/figures/stardict_main_window.png
X%%GNOME%%share/gnome/help/stardict/zh_TW/figures/stardict_notification_area.png
X%%GNOME%%share/gnome/help/stardict/uk/legal.xml
X%%GNOME%%share/gnome/help/stardict/uk/stardict.xml
X%%GNOME%%share/gnome/help/stardict/uk/figures/stardict_float_window.png
X%%GNOME%%share/gnome/help/stardict/uk/figures/stardict_main_window.png
X%%GNOME%%share/gnome/help/stardict/uk/figures/stardict_notification_area.png
X%%GNOME%%share/gnome/help/stardict/ru/legal.xml
X%%GNOME%%share/gnome/help/stardict/ru/stardict.xml
X%%GNOME%%share/gnome/help/stardict/ru/figures/stardict_float_window.png
X%%GNOME%%share/gnome/help/stardict/ru/figures/stardict_main_window.png
X%%GNOME%%share/gnome/help/stardict/ru/figures/stardict_notification_area.png
X%%GNOME%%share/gnome/help/stardict/mk/legal.xml
X%%GNOME%%share/gnome/help/stardict/mk/stardict.xml
X%%GNOME%%share/gnome/help/stardict/mk/figures/stardict_float_window.png
X%%GNOME%%share/gnome/help/stardict/mk/figures/stardict_main_window.png
X%%GNOME%%share/gnome/help/stardict/mk/figures/stardict_notification_area.png
X%%GNOME%%share/gnome/help/stardict/nl/legal.xml
X%%GNOME%%share/gnome/help/stardict/nl/stardict.xml
X%%GNOME%%share/gnome/help/stardict/nl/figures/stardict_float_window.png
X%%GNOME%%share/gnome/help/stardict/nl/figures/stardict_main_window.png
X%%GNOME%%share/gnome/help/stardict/nl/figures/stardict_notification_area.png
X%%GNOME%%share/idl/GNOME_Stardict.idl
X%%GNOME%%share/omf/stardict/stardict-C.omf
X%%GNOME%%share/omf/stardict/stardict-zh_CN.omf
X%%GNOME%%share/omf/stardict/stardict-zh_TW.omf
X%%GNOME%%share/omf/stardict/stardict-uk.omf
X%%GNOME%%share/omf/stardict/stardict-ru.omf
X%%GNOME%%share/omf/stardict/stardict-mk.omf
X%%GNOME%%share/omf/stardict/stardict-nl.omf
Xshare/pixmaps/stardict.png
Xshare/stardict/pixmaps/docklet_normal.png
Xshare/stardict/pixmaps/docklet_scan.png
Xshare/stardict/pixmaps/docklet_stop.png
Xshare/stardict/pixmaps/index_appendix.png
Xshare/stardict/pixmaps/index_wazard.png
Xshare/stardict/pixmaps/index_dictlist.png
Xshare/stardict/pixmaps/index_translate.png
Xshare/stardict/pixmaps/splash.png
Xshare/stardict/sounds/menushow.wav
Xshare/stardict/sounds/buttonactive.wav
Xshare/stardict/data/advertisement/advertisement.txt
Xshare/stardict/data/advertisement/huzheng.png
Xshare/stardict/data/advertisement/linux_logo.jpg
Xshare/stardict/data/advertisement/redhat_linux_logo.gif
Xshare/stardict/data/advertisement/redhat_logo.jpg
Xshare/stardict/data/advertisement/wenjing.jpg
Xshare/stardict/data/advertisement/wenjing2.jpg
Xshare/locale/ar/LC_MESSAGES/stardict.mo
Xshare/locale/cs/LC_MESSAGES/stardict.mo
Xshare/locale/de/LC_MESSAGES/stardict.mo
Xshare/locale/el/LC_MESSAGES/stardict.mo
Xshare/locale/fr/LC_MESSAGES/stardict.mo
Xshare/locale/ga/LC_MESSAGES/stardict.mo
Xshare/locale/hr/LC_MESSAGES/stardict.mo
Xshare/locale/hu/LC_MESSAGES/stardict.mo
Xshare/locale/ku/LC_MESSAGES/stardict.mo
Xshare/locale/mk/LC_MESSAGES/stardict.mo
Xshare/locale/nl/LC_MESSAGES/stardict.mo
Xshare/locale/pt_BR/LC_MESSAGES/stardict.mo
Xshare/locale/ru/LC_MESSAGES/stardict.mo
Xshare/locale/rw/LC_MESSAGES/stardict.mo
Xshare/locale/sk/LC_MESSAGES/stardict.mo
Xshare/locale/sv/LC_MESSAGES/stardict.mo
Xshare/locale/tr/LC_MESSAGES/stardict.mo
Xshare/locale/tt/LC_MESSAGES/stardict.mo
Xshare/locale/uk/LC_MESSAGES/stardict.mo
Xshare/locale/vi/LC_MESSAGES/stardict.mo
Xshare/locale/zh_CN/LC_MESSAGES/stardict.mo
Xshare/locale/zh_TW/LC_MESSAGES/stardict.mo
Xlib/stardict/plugins/stardict_dictdotcn.so
Xlib/stardict/plugins/stardict_dictdotcn.la
Xlib/stardict/plugins/advertisement.so
Xlib/stardict/plugins/advertisement.la
Xlib/stardict/plugins/stardict_man.so
Xlib/stardict/plugins/stardict_man.la
Xlib/stardict/plugins/stardict_update_info.so
Xlib/stardict/plugins/stardict_update_info.la
Xlib/stardict/plugins/stardict_html_parsedata.so
Xlib/stardict/plugins/stardict_html_parsedata.la
Xlib/stardict/plugins/stardict_xdxf_parsedata.so
Xlib/stardict/plugins/stardict_xdxf_parsedata.la
Xlib/stardict/plugins/stardict_wordnet.so
Xlib/stardict/plugins/stardict_wordnet.la
Xlib/stardict/plugins/stardict_wordnet_parsedata.so
Xlib/stardict/plugins/stardict_wordnet_parsedata.la
Xlib/stardict/plugins/stardict_powerword_parsedata.so
Xlib/stardict/plugins/stardict_powerword_parsedata.la
Xlib/stardict/plugins/stardict_wiki_parsedata.so
Xlib/stardict/plugins/stardict_wiki_parsedata.la
Xlib/stardict/plugins/stardict_spell.so
Xlib/stardict/plugins/stardict_spell.la
Xlib/stardict/plugins/stardict_qqwry.so
Xlib/stardict/plugins/stardict_qqwry.la
X@dirrmtry share/locale/ar/LC_MESSAGES
X@dirrmtry share/locale/ar
X@dirrmtry share/locale/cs/LC_MESSAGES
X@dirrmtry share/locale/cs
X@dirrmtry share/locale/de/LC_MESSAGES
X@dirrmtry share/locale/de
X@dirrmtry share/locale/el/LC_MESSAGES
X@dirrmtry share/locale/el
X@dirrmtry share/locale/fr/LC_MESSAGES
X@dirrmtry share/locale/fr
X@dirrmtry share/locale/ga/LC_MESSAGES
X@dirrmtry share/locale/ga
X@dirrmtry share/locale/hr/LC_MESSAGES
X@dirrmtry share/locale/hr
X@dirrmtry share/locale/hu/LC_MESSAGES
X@dirrmtry share/locale/hu
X@dirrmtry share/locale/ku/LC_MESSAGES
X@dirrmtry share/locale/ku
X@dirrmtry share/locale/mk/LC_MESSAGES
X@dirrmtry share/locale/mk
X@dirrmtry share/locale/nl/LC_MESSAGES
X@dirrmtry share/locale/nl
X@dirrmtry share/locale/pt_BR/LC_MESSAGES
X@dirrmtry share/locale/pt_BR
X@dirrmtry share/locale/ru/LC_MESSAGES
X@dirrmtry share/locale/ru
X@dirrmtry share/locale/rw/LC_MESSAGES
X@dirrmtry share/locale/rw
X@dirrmtry share/locale/sk/LC_MESSAGES
X@dirrmtry share/locale/sk
X@dirrmtry share/locale/sv/LC_MESSAGES
X@dirrmtry share/locale/sv
X@dirrmtry share/locale/tr/LC_MESSAGES
X@dirrmtry share/locale/tr
X@dirrmtry share/locale/tt/LC_MESSAGES
X@dirrmtry share/locale/tt
X@dirrmtry share/locale/uk/LC_MESSAGES
X@dirrmtry share/locale/uk
X@dirrmtry share/locale/vi/LC_MESSAGES
X@dirrmtry share/locale/vi
X@dirrmtry share/locale/zh_CN/LC_MESSAGES
X@dirrmtry share/locale/zh_CN
X@dirrmtry share/locale/zh_TW/LC_MESSAGES
X@dirrmtry share/locale/zh_TW
X@dirrm share/stardict/sounds
X@dirrm share/stardict/pixmaps
X@dirrm share/stardict/treedict
X@dirrm share/stardict/data/advertisement
X@dirrmtry share/stardict/data
X@dirrmtry share/stardict
X%%GNOME%%@dirrm share/omf/stardict
X%%GNOME%%@dirrm share/gnome/help/stardict/C/figures
X%%GNOME%%@dirrm share/gnome/help/stardict/C
X%%GNOME%%@dirrm share/gnome/help/stardict/zh_CN/figures
X%%GNOME%%@dirrm share/gnome/help/stardict/zh_CN
X%%GNOME%%@dirrm share/gnome/help/stardict/zh_TW/figures
X%%GNOME%%@dirrm share/gnome/help/stardict/zh_TW
X%%GNOME%%@dirrm share/gnome/help/stardict/uk/figures
X%%GNOME%%@dirrm share/gnome/help/stardict/uk
X%%GNOME%%@dirrm share/gnome/help/stardict/ru/figures
X%%GNOME%%@dirrm share/gnome/help/stardict/ru
X%%GNOME%%@dirrm share/gnome/help/stardict/mk/figures
X%%GNOME%%@dirrm share/gnome/help/stardict/mk
X%%GNOME%%@dirrm share/gnome/help/stardict/nl/figures
X%%GNOME%%@dirrm share/gnome/help/stardict/nl
X%%GNOME%%@dirrm share/gnome/help/stardict
X@dirrmtry share/applications
c566b5ec468ac1c65f67d57e312a77f1
echo x - textproc/stardict3/Makefile
sed 's/^X//' >textproc/stardict3/Makefile << '280e7ec50760184f381a7c4b862697b8'
X# New ports collection makefile for:   stardict3
X# Date created:        23 July 2008
X# Whom:                eric
X#
X# $FreeBSD$
X#
X
XPORTNAME=	stardict
XPORTVERSION=	3.0.1
XCATEGORIES=	textproc
XMASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR=	${PORTNAME}
XDIST_SUBDIR=	stardict
X
XMAINTAINER=	delphij@FreeBSD.org
XCOMMENT=	A cross-platform and international dictionary written in Gtk2
X
XLIB_DEPENDS=    sigc-2.0.0:${PORTSDIR}/devel/libsigc++20 \
X		enchant.1:${PORTSDIR}/textproc/enchant
X
XGNU_CONFIGURE=	yes
XCONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
X		LIBS="-L${LOCALBASE}/lib"
XCONFIGURE_ARGS=	--disable-festival \
X		--disable-gucharmap \
X		--disable-espeak
XUSE_GMAKE=	yes
XUSE_BZIP2=	yes
XUSE_GNOME=	gnomehack gnomeprefix
XUSE_GETTEXT=	yes
X
XOPTIONS=	GNOMEUI "GNOME support" On
X
XCONFLICTS=      stardict-2.[0-9]*
X
X.include <bsd.port.pre.mk>
X
X.if !defined(WITHOUT_GNOMEUI)
XUSE_GNOME+=	libgnomeui
XGCONF_SCHEMAS=	stardict.schemas
XINSTALLS_OMF=	yes
XPLIST_SUB=	GNOME=""
X.else
XUSE_GNOME+=	gtk20
XCONFIGURE_ARGS+=--disable-gnome-support --disable-schemas-install
XPLIST_SUB=	GNOME="@comment not installed: "
X.endif
X
XMAN1=		stardict.1
X
Xpost-install:
X	@${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.post.mk>
280e7ec50760184f381a7c4b862697b8
echo x - textproc/stardict3/distinfo
sed 's/^X//' >textproc/stardict3/distinfo << '02488dc4978eca580d0cd230615204f5'
XMD5 (stardict/stardict-3.0.1.tar.bz2) = 93bb2d7825bc9d52a4f9ba4c1c506d1d
XSHA256 (stardict/stardict-3.0.1.tar.bz2) = 504b3a7748933b9bd998cb85f37d4fa0a8575306643ffe6a9742450e66cd556f
XSIZE (stardict/stardict-3.0.1.tar.bz2) = 1964195
02488dc4978eca580d0cd230615204f5
exit



>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200807240816.m6O8GHtS041981>