DESCR

gWaei is a Japanese-English dictionary program for the GNOME desktop.
It is made to be a modern drop in replacement for Gjiten with many
of the same features. The dictionary files it uses are from Jim
Breen's WWWJDIC project and are installed separately through the
program.

Features
* Easy dictionary installation with a click of a button.
* Support for searching using regular expressions.
* Streams results so the interface is never frozen.
* Click Kanji in the results pane to look information on it.
* Simple interface that makes sense.
* Intelligent design. Tab switches dictionaries.
* Organizes relevant matches to the top of the results.

Makefile

# $NetBSD: Makefile,v 1.12 2010/06/13 22:44:59 wiz Exp $
#

DISTNAME= gwaei-1.2.1
PKGREVISION= 2
CATEGORIES= misc
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=gwaei/}

MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://gwaei.sourceforge.net/
COMMENT= Japanese dictionary for GNOME
LICENSE= gnu-gpl-v3

DEPENDS+= rsync-[0-9]*:../../net/rsync

PKG_DESTDIR_SUPPORT= user-destdir

GNU_CONFIGURE= yes
USE_PKGLOCALEDIR= yes
USE_TOOLS+= gmake perl pkg-config

#SUBST_CLASSES+= perl
#SUBST_STAGE.perl= pre-configure
#SUBST_FILES.perl= src/kpengine/Makefile.in
#SUBST_SED.perl= -e "s,/usr/bin/perl,${PERL5},"
#SUBST_MESSAGE.perl= Fixing path to perl.

SUBST_CLASSES+= rsync
SUBST_STAGE.rsync= pre-configure
SUBST_FILES.rsync= src/io.c
SUBST_SED.rsync= -e "s,@RSYNC@,${LOCALBASE}/bin/rsync,"
SUBST_MESSAGE.rsync= Fixing path to rsync.

PLIST_SRC= PLIST
.include "options.mk"

.include "../../devel/gettext-lib/buildlink3.mk"
BUILDLINK_API_DEPENDS.glib2+= glib2>=2.16.5
.include "../../devel/glib2/buildlink3.mk"
BUILDLINK_API_DEPENDS.curl+= curl>=7.18.0
.include "../../www/curl/buildlink3.mk"
BUILDLINK_API_DEPENDS.gtk2+= gtk2+>=2.14.0
.include "../../x11/gtk2/buildlink3.mk"
.include "../../textproc/gnome-doc-utils/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

PLIST

@comment $NetBSD: PLIST,v 1.8 2009/12/15 14:46:44 wiz Exp $
bin/gwaei
bin/waei
man/man1/waei.1
share/doc/gwaei/COPYING
share/doc/gwaei/ChangeLog
share/doc/gwaei/NEWS
share/locale/en@boldquot/LC_MESSAGES/gwaei.mo
share/locale/en@quot/LC_MESSAGES/gwaei.mo
share/locale/es/LC_MESSAGES/gwaei.mo
share/locale/fr/LC_MESSAGES/gwaei.mo
share/locale/it/LC_MESSAGES/gwaei.mo
share/locale/ja/LC_MESSAGES/gwaei.mo

PLIST.gnome

@comment $NetBSD: PLIST.gnome,v 1.2 2009/12/15 14:46:44 wiz Exp $
lib/gwaei/kpengine
man/man1/gwaei.1
share/applications/gwaei.desktop
share/gconf/schemas/gwaei.schemas
share/gnome/help/gwaei/C/glossary.xml
share/gnome/help/gwaei/C/gwaei.xml
share/gwaei/character.png
share/gwaei/character2.png
share/gwaei/character3.png
share/gwaei/jdata.dat
share/gwaei/kanjipad.ui
share/gwaei/logo.png
share/gwaei/main.ui
share/gwaei/radicals.ui
share/gwaei/settings.ui
share/icons/hicolor/16x16/actions/non-word-boundary.png
share/icons/hicolor/16x16/actions/unknown-character.png
share/icons/hicolor/16x16/actions/word-boundary.png
share/icons/hicolor/16x16/apps/gwaei.png
share/icons/hicolor/22x22/actions/non-word-boundary.png
share/icons/hicolor/22x22/actions/unknown-character.png
share/icons/hicolor/22x22/actions/word-boundary.png
share/icons/hicolor/24x24/actions/non-word-boundary.png
share/icons/hicolor/24x24/actions/unknown-character.png
share/icons/hicolor/24x24/actions/word-boundary.png
share/icons/hicolor/24x24/apps/gwaei.png
share/icons/hicolor/32x32/apps/gwaei.png
share/icons/hicolor/48x48/apps/gwaei.png
share/omf/gwaei/gwaei-C.omf

distinfo

$NetBSD: distinfo,v 1.9 2009/12/16 22:52:42 wiz Exp $

SHA1 (gwaei-1.2.1.tar.gz) = b22fc28790223d115a121206f4855f3ab421c9eb
RMD160 (gwaei-1.2.1.tar.gz) = 5d06eecf5efde6aa6fed2d055b5637ca87fbb3a8
Size (gwaei-1.2.1.tar.gz) = 643964 bytes
SHA1 (patch-aa) = 2bab4ddca6b4547f9f748dffe2c79fdec8badf38

options.mk

# $NetBSD: options.mk,v 1.3 2009/12/16 22:52:42 wiz Exp $

PKG_OPTIONS_VAR= PKG_OPTIONS.gwaei
PKG_SUPPORTED_OPTIONS= gnome
PKG_SUGGESTED_OPTIONS= gnome

.include "../../mk/bsd.options.mk"

.if !empty(PKG_OPTIONS:Mgnome)
GCONF_SCHEMAS= gwaei.schemas
PLIST_SRC+= PLIST.gnome

post-install:
${INSTALL_DATA} ${WRKSRC}/src/schemas/gwaei.schemas \
${DESTDIR}${PREFIX}/share/gconf/schemas/

BUILDLINK_API_DEPENDS.GConf+= GConf>=2.22.0
.include "../../devel/GConf/schemas.mk"
BUILDLINK_API_DEPENDS.libgnome+= libgnome>=2.22.0
.include "../../devel/libgnome/buildlink3.mk"
BUILDLINK_API_DEPENDS.libsexy+= libsexy>=0.1.11
.include "../../devel/libsexy/buildlink3.mk"
.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../x11/libunique/buildlink3.mk"
.include "../../mk/omf-scrollkeeper.mk"
.else
CONFIGURE_ARGS+= --without-gnome
.endif