$(SWIG) -python -I/usr/include -o anthy_wrap.c $(srcdir)/anthy.i
test:
- $(ENV) PYTHONPATH=$(builddir)/.libs $(PYTHON) $(srcdir)/main.py
+ $(ENV) IBUS_ANTHY_LOCATION=$(abs_top_srcdir) PYTHONPATH=$(builddir)/.libs $(PYTHON) $(srcdir)/main.py
EXTRA_DIST = \
anthy.i \
Exec=@prefix@/libexec/ibus-engine-anthy
Name=anthy
Lang=ja
-Icon=ibus-anthy
+Icon=@prefix@/ibus-anthy/ibus-anthy.png
Author=Huang Peng <shawn.p.huang@gmail.com>
Credits=
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+import os
import ibus
import engine
class EngineFactory(ibus.EngineFactoryBase):
NAME = "Anthy"
LANG = "ja"
- ICON = "ibus-anthy"
+ ICON = os.getenv("IBUS_ANTHY_LOCATION") + "/icons/ibus-anthy.png"
AUTHORS = "Huang Peng <shawn.p.huang@gmail.com>"
CREDITS = "GPLv2"
# Free Software Foundation, Inc., 59 Temple Place, Suite 330,
# Boston, MA 02111-1307 USA
+export IBUS_ANTHY_LOCATION=@prefix@/share/ibus-anthy
exec python @prefix@/share/ibus-anthy/main.py $@
ibus-anthy.png \
$(NULL)
-iconsdir = $(datadir)/ibus/icons
+iconsdir = $(datadir)/ibus-anthy/icons
EXTRA_DIST = \
ibus-anthy.png \