1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100
|
# vim:set noet ts=4:
#
# scim-python
#
# Copyright (c) 2007-2008 Huang Peng <shawn.p.huang@gmail.com>
#
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this program; if not, write to the
# Free Software Foundation, Inc., 59 Temple Place, Suite 330,
# Boston, MA 02111-1307 USA
#
# $Id: $
#
if ENABLE_PINYIN
pinyin_PYTHON = \
PinYin.py \
PYUtil.py \
PYParser.py \
PYSQLiteDB.py \
PYCreatePinYinDB.py \
SpecialTable.py \
SpecialPhrase.py \
ZhengJu.py \
ShuangPin.py \
JianPin.py \
QuanPin.py \
PYDict.py\
ZhengJuDB.py \
__init__.py \
$(NULL)
pinyindir = $(pkgdatadir)/engine/PinYin
# PYDATA_FILES = \
# utf8py.org \
# utf8pyPhrase.org \
# CharFreq-Modern_utf8.txt \
# SogouLabDic-utf8.dic \
# $(NULL)
PYDATA_FILES = \
$(NULL)
pydb_DATA = py.db
pydbdir = $(pkgdatadir)/engine/PinYin
DBVER = 0.1.10.5
DBTAR = pinyin-database-${DBVER}.tar.bz2
${DBTAR}:
wget http://scim-python.googlecode.com/files/${DBTAR}
py.db: ${DBTAR}
tar jxvfm ${DBTAR}
pyspecial_DATA = special_phrase special_table
pyspecialdir = $(pkgdatadir)/engine/PinYin
if ENABLE_DEBIAN_DPKG
EXTRA_DIST = \
$(PYDATA_FILES) \
special_table \
special_phrase \
${DBTAR} \
$(NULL)
DISTCLEANFILES = \
py.db \
*.pyc \
$(NULL)
else
EXTRA_DIST = \
$(PYDATA_FILES) \
special_table \
special_phrase \
$(NULL)
DISTCLEANFILES = \
py.db \
*.pyc \
${DBTAR} \
$(NULL)
endif
install-data-hook:
@(if test "${NO_INDEX}" = ""; then \
cd $(DESTDIR)$(pinyindir); \
echo "Creating INDEX"; \
$(PYTHON) -c "import PYSQLiteDB; db = PYSQLiteDB.PYSQLiteDB (filename='py.db'); db.create_indexes ();" ;\
fi)
endif
uninstall-hook:
|