summaryrefslogtreecommitdiffstats
path: root/setup
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2013-02-07 11:44:41 +0800
committerPeng Wu <alexepico@gmail.com>2013-02-07 11:51:26 +0800
commit4b26bca531a13aec957d0568f7d1696ce6a04d52 (patch)
tree2cbfc2d62713acb5df3347ef1a9940ae0ebd282d /setup
parent10375d1dc8c3943d7520129e14be05873e920f7d (diff)
downloadibus-libpinyin-4b26bca531a13aec957d0568f7d1696ce6a04d52.tar.gz
ibus-libpinyin-4b26bca531a13aec957d0568f7d1696ce6a04d52.tar.xz
ibus-libpinyin-4b26bca531a13aec957d0568f7d1696ce6a04d52.zip
update autoconf
Diffstat (limited to 'setup')
-rw-r--r--setup/Makefile.am5
-rw-r--r--setup/config.py.in7
2 files changed, 12 insertions, 0 deletions
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 <shawn.p.huang@gmail.com>
+# Copyright (c) 2013 Peng Wu <alexepico@gmail.com>
#
# 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@"