mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-29 01:13:08 +00:00
The project aims to create a feature-rich dictionary lookup program.
It supports: * Babylon .BGL files, complete with images and resources; * StarDict .ifo/.dict./.idx/.syn dictionaries; * Dictd .index/.dict(.dz) dictionary files; * ABBYY Lingvo .dsl source files, together with abbreviations. The files can be optionally compressed with dictzip. Dictionary resources can be packed together into a .zip file; * ABBYY Lingvo .lsa/.dat audio archives. Those can be indexed separately, or be referred to from .dsl files. LICENSE: GPL3 or later WWW: http://goldendict.berlios.de/
This commit is contained in:
parent
c3da7cc13a
commit
8410624681
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=244210
@ -192,6 +192,7 @@
|
||||
SUBDIR += gnome-doc-utils
|
||||
SUBDIR += gnome-spell
|
||||
SUBDIR += gnome-translate
|
||||
SUBDIR += goldendict
|
||||
SUBDIR += google-ctemplate
|
||||
SUBDIR += gpp
|
||||
SUBDIR += grap
|
||||
|
48
textproc/goldendict-devel/Makefile
Normal file
48
textproc/goldendict-devel/Makefile
Normal file
@ -0,0 +1,48 @@
|
||||
# New ports collection makefile for: textproc/goldendict
|
||||
# Date created: 2009-11-09
|
||||
# Whom: bsam
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= goldendict
|
||||
PORTVERSION= 0.9.0
|
||||
CATEGORIES= textproc
|
||||
MASTER_SITES= BERLIOS
|
||||
DISTNAME= ${PORTNAME}-${PORTVERSION}-src-x11
|
||||
|
||||
MAINTAINER= bsam@FreeBSD.org
|
||||
COMMENT= A feature-rich dictionary lookup program (with QT lib)
|
||||
|
||||
LIB_DEPENDS= hunspell-1.2.0:${PORTSDIR}/hungarian/hunspell \
|
||||
vorbis:${PORTSDIR}/audio/libvorbis
|
||||
|
||||
USE_BZIP2= yes
|
||||
HAS_CONFIGURE= yes
|
||||
USE_GNOME= pkgconfig
|
||||
USE_QT_VER= 4
|
||||
USE_QT4= linguist
|
||||
QT_COMPONENTS= corelib gui \
|
||||
qmake_build linguist_build moc_build
|
||||
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}-src
|
||||
|
||||
post-patch:
|
||||
@${SED} -I.bak -e "s:/usr:${PREFIX}:" ${WRKSRC}/redist/goldendict.desktop
|
||||
|
||||
do-configure:
|
||||
@cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \
|
||||
${QMAKE} -unix PREFIX=${PREFIX} INCLUDEPATH+=${LOCALBASE}/include \
|
||||
LIBS+=-L${LOCALBASE}/lib ${PORTNAME}.pro
|
||||
|
||||
post-install:
|
||||
@${MKDIR} ${DATADIR}/locale
|
||||
@${INSTALL_DATA} ${WRKSRC}/locale/ru.qm ${DATADIR}/locale/
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${OSVERSION}<800067
|
||||
IGNORE= wcscasecmp() id not implemented
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
3
textproc/goldendict-devel/distinfo
Normal file
3
textproc/goldendict-devel/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
MD5 (goldendict-0.9.0-src-x11.tar.bz2) = 89303abcac6c86c4635b264414f02ccc
|
||||
SHA256 (goldendict-0.9.0-src-x11.tar.bz2) = 30bf5e4ac6abf56067ee8d8750c545726509bcea591825de88ba44071769c946
|
||||
SIZE (goldendict-0.9.0-src-x11.tar.bz2) = 450332
|
16
textproc/goldendict-devel/files/patch-bgl_babylon.cc
Normal file
16
textproc/goldendict-devel/files/patch-bgl_babylon.cc
Normal file
@ -0,0 +1,16 @@
|
||||
--- bgl_babylon.cc.orig 2009-05-07 14:59:58.000000000 +0400
|
||||
+++ bgl_babylon.cc 2009-11-08 23:52:53.000000000 +0300
|
||||
@@ -545,13 +545,8 @@
|
||||
|
||||
inbufbytes = s.size();
|
||||
outbufbytes = s.size() * 6;
|
||||
-#ifdef _WIN32
|
||||
const char *inbuf;
|
||||
inbuf = s.data();
|
||||
-#else
|
||||
- char *inbuf;
|
||||
- inbuf = (char *)s.data();
|
||||
-#endif
|
||||
outbuf = (char*)malloc( outbufbytes + 1 );
|
||||
memset( outbuf, '\0', outbufbytes + 1 );
|
||||
defbuf = outbuf;
|
10
textproc/goldendict-devel/files/patch-dictzip.c
Normal file
10
textproc/goldendict-devel/files/patch-dictzip.c
Normal file
@ -0,0 +1,10 @@
|
||||
--- dictzip.c.orig 2009-11-09 01:12:06.000000000 +0300
|
||||
+++ dictzip.c 2009-11-09 01:12:21.000000000 +0300
|
||||
@@ -23,6 +23,7 @@
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
+#include <time.h>
|
||||
#include "dictzip.h"
|
||||
#include <limits.h>
|
||||
#include <stdarg.h>
|
44
textproc/goldendict-devel/files/patch-goldendict.pro
Normal file
44
textproc/goldendict-devel/files/patch-goldendict.pro
Normal file
@ -0,0 +1,44 @@
|
||||
--- goldendict.pro.orig 2009-05-24 23:28:51.000000000 +0400
|
||||
+++ goldendict.pro 2009-11-12 18:57:44.000000000 +0300
|
||||
@@ -35,24 +35,20 @@
|
||||
LIBS += -lXtst
|
||||
PREFIX = $$(PREFIX)
|
||||
isEmpty( PREFIX ):PREFIX = /usr/local
|
||||
- DEFINES += PROGRAM_DATA_DIR=\\\"$$PREFIX/share/apps/goldendict/\\\"
|
||||
+ isEmpty( DESKTOPDIR ):DESKTOPDIR = $$PREFIX/share/applications
|
||||
+ isEmpty( ICONDIR ):ICONDIR = $$PREFIX/share/pixmaps
|
||||
+ DEFINES += PROGRAM_DATA_DIR=\\\"$$PREFIX/share/goldendict/\\\"
|
||||
target.path = $$PREFIX/bin/
|
||||
- locale.path = $$PREFIX/share/apps/goldendict/locale/
|
||||
+ locale.path = $$PREFIX/share/goldendict
|
||||
locale.files = locale/*.qm
|
||||
INSTALLS += target \
|
||||
locale
|
||||
- icons.path = /usr/share/pixmaps
|
||||
- icons.files = redist/icons/*.*
|
||||
+ icons.path = $$ICONDIR
|
||||
+ icons.files = redist/icons/goldendict.png
|
||||
INSTALLS += icons
|
||||
- icons2.path = /usr/share/app-install/icons
|
||||
- icons2.files = redist/icons/*.*
|
||||
- INSTALLS += icons2
|
||||
- desktops.path = /usr/share/applications
|
||||
- desktops.files = redist/*.desktop
|
||||
+ desktops.path = $$DESKTOPDIR
|
||||
+ desktops.files = redist/goldendict.desktop
|
||||
INSTALLS += desktops
|
||||
- desktops2.path = /usr/share/app-install/desktop
|
||||
- desktops2.files = redist/*.desktop
|
||||
- INSTALLS += desktops2
|
||||
}
|
||||
DEFINES += PROGRAM_VERSION=\\\"$$VERSION\\\"
|
||||
|
||||
@@ -196,7 +192,7 @@
|
||||
TRANSLATIONS += locale/ru.ts
|
||||
|
||||
# This makes qmake generate translations
|
||||
-isEmpty(QMAKE_LRELEASE):QMAKE_LRELEASE = $$[QT_INSTALL_BINS]/lrelease
|
||||
+isEmpty(QMAKE_LRELEASE):QMAKE_LRELEASE = $$[QT_INSTALL_BINS]/lrelease-qt4
|
||||
TS_OUT = $$TRANSLATIONS
|
||||
TS_OUT ~= s/.ts/.qm
|
||||
TSQM.name = lrelease \
|
14
textproc/goldendict-devel/files/patch-iconv.cc
Normal file
14
textproc/goldendict-devel/files/patch-iconv.cc
Normal file
@ -0,0 +1,14 @@
|
||||
--- iconv.cc.orig 2009-04-18 21:20:12.000000000 +0400
|
||||
+++ iconv.cc 2009-11-09 01:15:24.000000000 +0300
|
||||
@@ -44,11 +44,7 @@
|
||||
throw( exIncorrectSeq, exOther )
|
||||
{
|
||||
size_t result = iconv( state,
|
||||
- #ifdef __WIN32
|
||||
(char const **)&inBuf,
|
||||
- #else
|
||||
- (char **)&inBuf,
|
||||
- #endif
|
||||
&inBytesLeft,
|
||||
(char **)&outBuf, &outBytesLeft );
|
||||
|
14
textproc/goldendict-devel/pkg-descr
Normal file
14
textproc/goldendict-devel/pkg-descr
Normal file
@ -0,0 +1,14 @@
|
||||
The project aims to create a feature-rich dictionary lookup program.
|
||||
It supports:
|
||||
* Babylon .BGL files, complete with images and resources;
|
||||
* StarDict .ifo/.dict./.idx/.syn dictionaries;
|
||||
* Dictd .index/.dict(.dz) dictionary files;
|
||||
* ABBYY Lingvo .dsl source files, together with abbreviations.
|
||||
The files can be optionally compressed with dictzip. Dictionary
|
||||
resources can be packed together into a .zip file;
|
||||
* ABBYY Lingvo .lsa/.dat audio archives. Those can be indexed
|
||||
separately, or be referred to from .dsl files.
|
||||
|
||||
LICENSE: GPL3 or later
|
||||
|
||||
WWW: http://goldendict.berlios.de/
|
6
textproc/goldendict-devel/pkg-plist
Normal file
6
textproc/goldendict-devel/pkg-plist
Normal file
@ -0,0 +1,6 @@
|
||||
bin/goldendict
|
||||
share/applications/goldendict.desktop
|
||||
share/pixmaps/goldendict.png
|
||||
%%DATADIR%%/locale/ru.qm
|
||||
@dirrm %%DATADIR%%/locale
|
||||
@dirrm %%DATADIR%%
|
48
textproc/goldendict/Makefile
Normal file
48
textproc/goldendict/Makefile
Normal file
@ -0,0 +1,48 @@
|
||||
# New ports collection makefile for: textproc/goldendict
|
||||
# Date created: 2009-11-09
|
||||
# Whom: bsam
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= goldendict
|
||||
PORTVERSION= 0.9.0
|
||||
CATEGORIES= textproc
|
||||
MASTER_SITES= BERLIOS
|
||||
DISTNAME= ${PORTNAME}-${PORTVERSION}-src-x11
|
||||
|
||||
MAINTAINER= bsam@FreeBSD.org
|
||||
COMMENT= A feature-rich dictionary lookup program (with QT lib)
|
||||
|
||||
LIB_DEPENDS= hunspell-1.2.0:${PORTSDIR}/hungarian/hunspell \
|
||||
vorbis:${PORTSDIR}/audio/libvorbis
|
||||
|
||||
USE_BZIP2= yes
|
||||
HAS_CONFIGURE= yes
|
||||
USE_GNOME= pkgconfig
|
||||
USE_QT_VER= 4
|
||||
USE_QT4= linguist
|
||||
QT_COMPONENTS= corelib gui \
|
||||
qmake_build linguist_build moc_build
|
||||
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}-src
|
||||
|
||||
post-patch:
|
||||
@${SED} -I.bak -e "s:/usr:${PREFIX}:" ${WRKSRC}/redist/goldendict.desktop
|
||||
|
||||
do-configure:
|
||||
@cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \
|
||||
${QMAKE} -unix PREFIX=${PREFIX} INCLUDEPATH+=${LOCALBASE}/include \
|
||||
LIBS+=-L${LOCALBASE}/lib ${PORTNAME}.pro
|
||||
|
||||
post-install:
|
||||
@${MKDIR} ${DATADIR}/locale
|
||||
@${INSTALL_DATA} ${WRKSRC}/locale/ru.qm ${DATADIR}/locale/
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${OSVERSION}<800067
|
||||
IGNORE= wcscasecmp() id not implemented
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
3
textproc/goldendict/distinfo
Normal file
3
textproc/goldendict/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
MD5 (goldendict-0.9.0-src-x11.tar.bz2) = 89303abcac6c86c4635b264414f02ccc
|
||||
SHA256 (goldendict-0.9.0-src-x11.tar.bz2) = 30bf5e4ac6abf56067ee8d8750c545726509bcea591825de88ba44071769c946
|
||||
SIZE (goldendict-0.9.0-src-x11.tar.bz2) = 450332
|
16
textproc/goldendict/files/patch-bgl_babylon.cc
Normal file
16
textproc/goldendict/files/patch-bgl_babylon.cc
Normal file
@ -0,0 +1,16 @@
|
||||
--- bgl_babylon.cc.orig 2009-05-07 14:59:58.000000000 +0400
|
||||
+++ bgl_babylon.cc 2009-11-08 23:52:53.000000000 +0300
|
||||
@@ -545,13 +545,8 @@
|
||||
|
||||
inbufbytes = s.size();
|
||||
outbufbytes = s.size() * 6;
|
||||
-#ifdef _WIN32
|
||||
const char *inbuf;
|
||||
inbuf = s.data();
|
||||
-#else
|
||||
- char *inbuf;
|
||||
- inbuf = (char *)s.data();
|
||||
-#endif
|
||||
outbuf = (char*)malloc( outbufbytes + 1 );
|
||||
memset( outbuf, '\0', outbufbytes + 1 );
|
||||
defbuf = outbuf;
|
10
textproc/goldendict/files/patch-dictzip.c
Normal file
10
textproc/goldendict/files/patch-dictzip.c
Normal file
@ -0,0 +1,10 @@
|
||||
--- dictzip.c.orig 2009-11-09 01:12:06.000000000 +0300
|
||||
+++ dictzip.c 2009-11-09 01:12:21.000000000 +0300
|
||||
@@ -23,6 +23,7 @@
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
+#include <time.h>
|
||||
#include "dictzip.h"
|
||||
#include <limits.h>
|
||||
#include <stdarg.h>
|
44
textproc/goldendict/files/patch-goldendict.pro
Normal file
44
textproc/goldendict/files/patch-goldendict.pro
Normal file
@ -0,0 +1,44 @@
|
||||
--- goldendict.pro.orig 2009-05-24 23:28:51.000000000 +0400
|
||||
+++ goldendict.pro 2009-11-12 18:57:44.000000000 +0300
|
||||
@@ -35,24 +35,20 @@
|
||||
LIBS += -lXtst
|
||||
PREFIX = $$(PREFIX)
|
||||
isEmpty( PREFIX ):PREFIX = /usr/local
|
||||
- DEFINES += PROGRAM_DATA_DIR=\\\"$$PREFIX/share/apps/goldendict/\\\"
|
||||
+ isEmpty( DESKTOPDIR ):DESKTOPDIR = $$PREFIX/share/applications
|
||||
+ isEmpty( ICONDIR ):ICONDIR = $$PREFIX/share/pixmaps
|
||||
+ DEFINES += PROGRAM_DATA_DIR=\\\"$$PREFIX/share/goldendict/\\\"
|
||||
target.path = $$PREFIX/bin/
|
||||
- locale.path = $$PREFIX/share/apps/goldendict/locale/
|
||||
+ locale.path = $$PREFIX/share/goldendict
|
||||
locale.files = locale/*.qm
|
||||
INSTALLS += target \
|
||||
locale
|
||||
- icons.path = /usr/share/pixmaps
|
||||
- icons.files = redist/icons/*.*
|
||||
+ icons.path = $$ICONDIR
|
||||
+ icons.files = redist/icons/goldendict.png
|
||||
INSTALLS += icons
|
||||
- icons2.path = /usr/share/app-install/icons
|
||||
- icons2.files = redist/icons/*.*
|
||||
- INSTALLS += icons2
|
||||
- desktops.path = /usr/share/applications
|
||||
- desktops.files = redist/*.desktop
|
||||
+ desktops.path = $$DESKTOPDIR
|
||||
+ desktops.files = redist/goldendict.desktop
|
||||
INSTALLS += desktops
|
||||
- desktops2.path = /usr/share/app-install/desktop
|
||||
- desktops2.files = redist/*.desktop
|
||||
- INSTALLS += desktops2
|
||||
}
|
||||
DEFINES += PROGRAM_VERSION=\\\"$$VERSION\\\"
|
||||
|
||||
@@ -196,7 +192,7 @@
|
||||
TRANSLATIONS += locale/ru.ts
|
||||
|
||||
# This makes qmake generate translations
|
||||
-isEmpty(QMAKE_LRELEASE):QMAKE_LRELEASE = $$[QT_INSTALL_BINS]/lrelease
|
||||
+isEmpty(QMAKE_LRELEASE):QMAKE_LRELEASE = $$[QT_INSTALL_BINS]/lrelease-qt4
|
||||
TS_OUT = $$TRANSLATIONS
|
||||
TS_OUT ~= s/.ts/.qm
|
||||
TSQM.name = lrelease \
|
14
textproc/goldendict/files/patch-iconv.cc
Normal file
14
textproc/goldendict/files/patch-iconv.cc
Normal file
@ -0,0 +1,14 @@
|
||||
--- iconv.cc.orig 2009-04-18 21:20:12.000000000 +0400
|
||||
+++ iconv.cc 2009-11-09 01:15:24.000000000 +0300
|
||||
@@ -44,11 +44,7 @@
|
||||
throw( exIncorrectSeq, exOther )
|
||||
{
|
||||
size_t result = iconv( state,
|
||||
- #ifdef __WIN32
|
||||
(char const **)&inBuf,
|
||||
- #else
|
||||
- (char **)&inBuf,
|
||||
- #endif
|
||||
&inBytesLeft,
|
||||
(char **)&outBuf, &outBytesLeft );
|
||||
|
14
textproc/goldendict/pkg-descr
Normal file
14
textproc/goldendict/pkg-descr
Normal file
@ -0,0 +1,14 @@
|
||||
The project aims to create a feature-rich dictionary lookup program.
|
||||
It supports:
|
||||
* Babylon .BGL files, complete with images and resources;
|
||||
* StarDict .ifo/.dict./.idx/.syn dictionaries;
|
||||
* Dictd .index/.dict(.dz) dictionary files;
|
||||
* ABBYY Lingvo .dsl source files, together with abbreviations.
|
||||
The files can be optionally compressed with dictzip. Dictionary
|
||||
resources can be packed together into a .zip file;
|
||||
* ABBYY Lingvo .lsa/.dat audio archives. Those can be indexed
|
||||
separately, or be referred to from .dsl files.
|
||||
|
||||
LICENSE: GPL3 or later
|
||||
|
||||
WWW: http://goldendict.berlios.de/
|
6
textproc/goldendict/pkg-plist
Normal file
6
textproc/goldendict/pkg-plist
Normal file
@ -0,0 +1,6 @@
|
||||
bin/goldendict
|
||||
share/applications/goldendict.desktop
|
||||
share/pixmaps/goldendict.png
|
||||
%%DATADIR%%/locale/ru.qm
|
||||
@dirrm %%DATADIR%%/locale
|
||||
@dirrm %%DATADIR%%
|
Loading…
Reference in New Issue
Block a user