From 4b26bca531a13aec957d0568f7d1696ce6a04d52 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Thu, 7 Feb 2013 11:44:41 +0800 Subject: update autoconf --- setup/Makefile.am | 5 +++++ setup/config.py.in | 7 +++++++ 2 files changed, 12 insertions(+) (limited to 'setup') diff --git a/setup/Makefile.am b/setup/Makefile.am index 7845342..64a8f1d 100644 --- a/setup/Makefile.am +++ b/setup/Makefile.am @@ -40,6 +40,11 @@ EXTRA_DIST = \ ibus-setup-libpinyin.in \ $(NULL) + +config.py: config.py.in + $(SED) -e "s:[@]VERSION@:$(VERSION):" \ + -e "s:[@]datadir@:$(datadir)/$(PACKAGE):" $< > $@ + test-libpinyin: $(ENV) DBUS_DEBUG=true \ IBUS_LOCALEDIR=@localedir@ \ diff --git a/setup/config.py.in b/setup/config.py.in index 8be42db..b601570 100644 --- a/setup/config.py.in +++ b/setup/config.py.in @@ -3,6 +3,7 @@ # ibus-libpinyin - Intelligent Pinyin engine based on libpinyin for IBus # # Copyright (c) 2008-2010 Peng Huang +# Copyright (c) 2013 Peng Wu # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -17,5 +18,11 @@ # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + def get_version(): return "@VERSION@" + + +def get_package_data_dir(): + return "@datadir@" -- cgit