diff options
author | ahze <ahze@FreeBSD.org> | 2005-02-10 03:12:05 +0800 |
---|---|---|
committer | ahze <ahze@FreeBSD.org> | 2005-02-10 03:12:05 +0800 |
commit | 6e28ae2d030c4a08ce17e540ce96d914d3f3b4c1 (patch) | |
tree | 1bbb5dc262c7e26d895308259cdb7181dbfb58d0 | |
parent | 1e38761821d111f95bcb55555fab3a21cf510eb2 (diff) | |
download | freebsd-ports-gnome-6e28ae2d030c4a08ce17e540ce96d914d3f3b4c1.tar.gz freebsd-ports-gnome-6e28ae2d030c4a08ce17e540ce96d914d3f3b4c1.tar.zst freebsd-ports-gnome-6e28ae2d030c4a08ce17e540ce96d914d3f3b4c1.zip |
Add libtranslate 0.99, a natural language translation library.
PR: ports/76859
Submitted by: Jean-Yves Lefort <jylefort@brutele.be>
-rw-r--r-- | textproc/Makefile | 1 | ||||
-rw-r--r-- | textproc/libtranslate/Makefile | 52 | ||||
-rw-r--r-- | textproc/libtranslate/distinfo | 2 | ||||
-rw-r--r-- | textproc/libtranslate/pkg-descr | 17 | ||||
-rw-r--r-- | textproc/libtranslate/pkg-plist | 42 |
5 files changed, 114 insertions, 0 deletions
diff --git a/textproc/Makefile b/textproc/Makefile index 8630d4c29477..7b5fa08557ea 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -198,6 +198,7 @@ SUBDIR += liblrdf SUBDIR += libparsifal SUBDIR += libpathan + SUBDIR += libtranslate SUBDIR += libtre SUBDIR += libuninameslist SUBDIR += libwpd diff --git a/textproc/libtranslate/Makefile b/textproc/libtranslate/Makefile new file mode 100644 index 000000000000..6a84e4e6c970 --- /dev/null +++ b/textproc/libtranslate/Makefile @@ -0,0 +1,52 @@ +# New ports collection makefile for: libtranslate +# Date created: 15 Jan 2005 +# Whom: Jean-Yves Lefort <jylefort@brutele.be> +# +# $FreeBSD$ +# + +PORTNAME= libtranslate +PORTVERSION= 0.99 +CATEGORIES= textproc +MASTER_SITES= ${MASTER_SITE_SAVANNAH} +MASTER_SITE_SUBDIR= ${PORTNAME} + +MAINTAINER= jylefort@brutele.be +COMMENT= A natural language translation library + +USE_GETOPT_LONG= yes +USE_GNOME= glib20 gnomehack intlhack +GNU_CONFIGURE= yes +USE_GMAKE= yes +INSTALLS_SHLIB= yes +CPPFLAGS= -I${LOCALBASE}/include +LDFLAGS= -L${LOCALBASE}/lib +CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" +CONFIGURE_ARGS= --with-html-dir=${PREFIX}/share/doc + +OPTIONS= GENERIC "generic module" on \ + TALKFILTERS "talkfilters module" on + +MAN1= translate.1 + +.include <bsd.port.pre.mk> + +.if defined(WITHOUT_GENERIC) +CONFIGURE_ARGS+= --disable-generic +PLIST_SUB+= GENERIC="@comment " +.else +PLIST_SUB+= GENERIC="" +USE_GNOME+= libxml2 +LIB_DEPENDS+= soup-2.2:${PORTSDIR}/devel/libsoup +MAN5+= services.xml.5 +.endif + +.if defined(WITHOUT_TALKFILTERS) +CONFIGURE_ARGS+= --disable-talkfilters +PLIST_SUB+= TALKFILTERS="@comment " +.else +PLIST_SUB+= TALKFILTERS="" +LIB_DEPENDS+= talkfilters:${PORTSDIR}/misc/talkfilters +.endif + +.include <bsd.port.post.mk> diff --git a/textproc/libtranslate/distinfo b/textproc/libtranslate/distinfo new file mode 100644 index 000000000000..95fe1e215f9e --- /dev/null +++ b/textproc/libtranslate/distinfo @@ -0,0 +1,2 @@ +MD5 (libtranslate-0.99.tar.gz) = 1fe75a6a6e8a0c6518890b5fa6984d42 +SIZE (libtranslate-0.99.tar.gz) = 532516 diff --git a/textproc/libtranslate/pkg-descr b/textproc/libtranslate/pkg-descr new file mode 100644 index 000000000000..c913b416703a --- /dev/null +++ b/textproc/libtranslate/pkg-descr @@ -0,0 +1,17 @@ +libtranslate is a library for translating text and web pages between +natural languages. Its modular infrastructure allows to implement new +translation services separately from the core library. + +libtranslate is shipped with a generic module supporting web-based +translation services such as Babel Fish, Google Language Tools and +SYSTRAN. Moreover, the generic module allows to add new services +simply by adding a few lines to a XML file (see the services.xml(5) +manual page). + +The libtranslate distribution includes a powerful command line +interface (see the translate(1) manual page). + +WWW: http://www.nongnu.org/libtranslate/ + +- Jean-Yves Lefort +jylefort@brutele.be diff --git a/textproc/libtranslate/pkg-plist b/textproc/libtranslate/pkg-plist new file mode 100644 index 000000000000..6fb2b15e5bc9 --- /dev/null +++ b/textproc/libtranslate/pkg-plist @@ -0,0 +1,42 @@ +bin/translate +include/libtranslate/translate-common.h +include/libtranslate/translate-pair.h +include/libtranslate/translate-service.h +include/libtranslate/translate-session.h +include/libtranslate/translate-util.h +include/libtranslate/translate.h +lib/libtranslate.a +lib/libtranslate.so +lib/libtranslate.so.0 +%%GENERIC%%lib/libtranslate/modules/generic.so +%%TALKFILTERS%%lib/libtranslate/modules/talkfilters.so +libdata/pkgconfig/libtranslate.pc +share/doc/libtranslate/TranslatePair.html +share/doc/libtranslate/TranslateService.html +share/doc/libtranslate/TranslateSession.html +share/doc/libtranslate/api-reference.html +share/doc/libtranslate/ch01s02.html +share/doc/libtranslate/ch02s02.html +share/doc/libtranslate/compiling-modules.html +share/doc/libtranslate/home.png +share/doc/libtranslate/index.html +share/doc/libtranslate/index.sgml +share/doc/libtranslate/ix01.html +share/doc/libtranslate/left.png +share/doc/libtranslate/libtranslate-translate-common.html +share/doc/libtranslate/libtranslate-translate-util.html +share/doc/libtranslate/libtranslate-translate.html +share/doc/libtranslate/libtranslate.devhelp +share/doc/libtranslate/overview.html +share/doc/libtranslate/rfc3066-builtin.html +share/doc/libtranslate/right.png +share/doc/libtranslate/tutorials.html +share/doc/libtranslate/up.png +share/libtranslate/services.dtd +share/libtranslate/services.xml +share/locale/fr/LC_MESSAGES/libtranslate.mo +@dirrm include/libtranslate +@dirrm lib/libtranslate/modules +@dirrm lib/libtranslate +@dirrm share/doc/libtranslate +@dirrm share/libtranslate |