| 1 | # This file is part of Mapnik (c++ mapping toolkit) |
|---|
| 2 | # Copyright (C) 2005 Artem Pavlenko, Jean-Francois Doyon |
|---|
| 3 | # |
|---|
| 4 | # Mapnik is free software; you can redistribute it and/or |
|---|
| 5 | # modify it under the terms of the GNU General Public License |
|---|
| 6 | # as published by the Free Software Foundation; either version 2 |
|---|
| 7 | # of the License, or any later version. |
|---|
| 8 | # |
|---|
| 9 | # This program is distributed in the hope that it will be useful, |
|---|
| 10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 12 | # GNU General Public License for more details. |
|---|
| 13 | # |
|---|
| 14 | # You should have received a copy of the GNU General Public License |
|---|
| 15 | # along with this program; if not, write to the Free Software |
|---|
| 16 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|---|
| 17 | # |
|---|
| 18 | # $Id$ |
|---|
| 19 | |
|---|
| 20 | import glob |
|---|
| 21 | |
|---|
| 22 | Import('env') |
|---|
| 23 | |
|---|
| 24 | prefix = env['PREFIX'] |
|---|
| 25 | install_prefix = env['DESTDIR'] + '/' + prefix |
|---|
| 26 | |
|---|
| 27 | # grab all the deja vu fonts |
|---|
| 28 | includes = glob.glob('*/*/*.ttf') |
|---|
| 29 | |
|---|
| 30 | # grab single unifont ttf (available at http://unifoundry.com/unifont.html) |
|---|
| 31 | includes.extend(glob.glob('unifont*.ttf')) |
|---|
| 32 | |
|---|
| 33 | fontscollectionpath = install_prefix + '/' + env['LIBDIR_SCHEMA'] + env['LIB_DIR_NAME'] + '/fonts' |
|---|
| 34 | |
|---|
| 35 | if 'uninstall' not in COMMAND_LINE_TARGETS and not env['SYSTEM_FONTS']: |
|---|
| 36 | env.Alias(target='install', source=env.Install(fontscollectionpath, includes)) |
|---|