From baf57e3382b63a31656f1de6844afaba5be1c014 Mon Sep 17 00:00:00 2001 From: Ying-Chieh Liao Date: Thu, 13 Feb 2003 12:40:13 +0000 Subject: [PATCH] add babytrnas 0.9.1 GTK+/GNOME front-end for Babylon Translator .dic files Submitted by: Frederic Cambus --- deskutils/Makefile | 1 + deskutils/babytrans/Makefile | 38 +++++++++++++++++++++++++++ deskutils/babytrans/distinfo | 1 + deskutils/babytrans/files/patch-it.po | 13 +++++++++ deskutils/babytrans/pkg-comment | 1 + deskutils/babytrans/pkg-descr | 6 +++++ deskutils/babytrans/pkg-message | 6 +++++ deskutils/babytrans/pkg-plist | 10 +++++++ 8 files changed, 76 insertions(+) create mode 100644 deskutils/babytrans/Makefile create mode 100644 deskutils/babytrans/distinfo create mode 100644 deskutils/babytrans/files/patch-it.po create mode 100644 deskutils/babytrans/pkg-comment create mode 100644 deskutils/babytrans/pkg-descr create mode 100644 deskutils/babytrans/pkg-message create mode 100644 deskutils/babytrans/pkg-plist diff --git a/deskutils/Makefile b/deskutils/Makefile index 38d42932bfb5..4f333bf31dd9 100644 --- a/deskutils/Makefile +++ b/deskutils/Makefile @@ -3,6 +3,7 @@ SUBDIR += abacus SUBDIR += aspostit + SUBDIR += babytrans SUBDIR += bigyear SUBDIR += bulb SUBDIR += cal diff --git a/deskutils/babytrans/Makefile b/deskutils/babytrans/Makefile new file mode 100644 index 000000000000..cdf137106059 --- /dev/null +++ b/deskutils/babytrans/Makefile @@ -0,0 +1,38 @@ +# ex:ts=8 +# New ports collection makefile for: babytrans +# Date created: 18 September 2002 +# Whom: Frederic Cambus +# +# $FreeBSD$ +# + +PORTNAME= babytrans +PORTVERSION= 0.9.1 +CATEGORIES= deskutils +MASTER_SITES= http://fjolliton.free.fr/babytrans/ + +MAINTAINER= ports@FreeBSD.org + +LIB_DEPENDS= intl.4:${PORTSDIR}/devel/gettext + +USE_X_PREFIX= yes +USE_REINPLACE= yes +USE_GNOMENG= yes +USE_GNOME= gtk12 gnomehack gnomeprefix +GNU_CONFIGURE= yes +CONFIGURE_ENV= CPPFLAGS="${CXXFLAGS} -I${LOCALBASE}/include" \ + LDFLAGS="-L${LOCALBASE}/lib" +USE_GMAKE= yes + +post-patch: +.for file in de es fr pt_BR + @${REINPLACE_CMD} -e "s|CHARSET|ISO-8859-1|" \ + -e "s|ENCODING|8bit|" ${WRKSRC}/po/${file}.po +.endfor + +post-install: + @${MKDIR} ${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/config-file/dictionary ${DATADIR} + @${CAT} ${PKGMESSAGE} | ${SED} "s|%%DATADIR%%|${DATADIR}|" + +.include diff --git a/deskutils/babytrans/distinfo b/deskutils/babytrans/distinfo new file mode 100644 index 000000000000..977393db0aba --- /dev/null +++ b/deskutils/babytrans/distinfo @@ -0,0 +1 @@ +MD5 (babytrans-0.9.1.tar.gz) = fa8a447a2f1dd0dc187628583dbca79e diff --git a/deskutils/babytrans/files/patch-it.po b/deskutils/babytrans/files/patch-it.po new file mode 100644 index 000000000000..2b548da34113 --- /dev/null +++ b/deskutils/babytrans/files/patch-it.po @@ -0,0 +1,13 @@ +--- po/it.po.orig Mon Apr 3 04:02:43 2000 ++++ po/it.po Thu Feb 13 08:30:31 2003 +@@ -235,10 +235,6 @@ + msgid "Help for Babytrans" + msgstr "Aiuto per Babytrans" + +-#: src/main.cc:992 +-msgid "Auto mode active" +-msgstr "Modalità automatica attiva" +- + #: src/main.cc:1068 + msgid "Invalid selection" + msgstr "Selezione non valida" diff --git a/deskutils/babytrans/pkg-comment b/deskutils/babytrans/pkg-comment new file mode 100644 index 000000000000..62c27c574b37 --- /dev/null +++ b/deskutils/babytrans/pkg-comment @@ -0,0 +1 @@ +GTK+/GNOME front-end for Babylon Translator .dic files diff --git a/deskutils/babytrans/pkg-descr b/deskutils/babytrans/pkg-descr new file mode 100644 index 000000000000..cfdcb2e3b51c --- /dev/null +++ b/deskutils/babytrans/pkg-descr @@ -0,0 +1,6 @@ +Babytrans is a graphical front-end for GTK+/Gnome that allows you to use the +dictionaries from Babylon Translator software available under Windows. It use +only the old dictionnary format (.dic) and do not handle (yet) the new +format (.bgl/.dat). + +WWW: http://fjolliton.free.fr/babytrans/ diff --git a/deskutils/babytrans/pkg-message b/deskutils/babytrans/pkg-message new file mode 100644 index 000000000000..7b8827d80f78 --- /dev/null +++ b/deskutils/babytrans/pkg-message @@ -0,0 +1,6 @@ +====================================================================== +Babytrans is now installed! Go to: http://www.babylon.com and download +the dictionaries that suit your needs. Use unzip to decompress the +.EXE file you downloaded, and modify the configuration file located in +%%DATADIR%%/dictionary +====================================================================== diff --git a/deskutils/babytrans/pkg-plist b/deskutils/babytrans/pkg-plist new file mode 100644 index 000000000000..1c36495c2284 --- /dev/null +++ b/deskutils/babytrans/pkg-plist @@ -0,0 +1,10 @@ +bin/babytrans +etc/CORBA/servers/babytrans.gnorba +share/gnome/applets/Utility/babytrans.desktop +share/locale/es/LC_MESSAGES/babytrans.mo +share/locale/de/LC_MESSAGES/babytrans.mo +share/locale/fr/LC_MESSAGES/babytrans.mo +share/locale/it/LC_MESSAGES/babytrans.mo +share/locale/pt_BR/LC_MESSAGES/babytrans.mo +%%DATADIR%%/dictionary +@dirrm %%DATADIR%%