19 | 19 |
|
20 | 20 |
override_dh_install:
|
21 | 21 |
dh_install
|
22 | |
# Remove unwanted info/dir.gz
|
|
22 |
# Remove unwanted info/dir.gz
|
23 | 23 |
rm -f debian/slib/usr/share/info/dir*
|
24 | |
# Remove configure script, etc. installed by upstream makefile
|
|
24 |
# Remove configure script, etc. installed by upstream makefile
|
25 | 25 |
for i in configure slib.sh syncase.sh Makefile slib.nsi slib.spec; do \
|
26 | 26 |
rm -f debian/slib/usr/share/slib/$$i; \
|
27 | 27 |
done
|
|
28 |
# Generate slibcat under /var/lib/slib for each supported Scheme
|
|
29 |
for i in gambc chez mitscheme; do \
|
|
30 |
mkdir -p debian/slib/var/lib/slib/$$i; \
|
|
31 |
done
|
|
32 |
# Generate slibcat for Gambit
|
|
33 |
SCHEME_LIBRARY_PATH=$(CURDIR)/debian/slib/usr/share/slib/ \
|
|
34 |
GAMBIT_IMPLEMENTATION_PATH=debian/slib/var/lib/slib/gambc/ \
|
|
35 |
gsi -f gambit.init -e "(require 'new-catalog)"
|
|
36 |
# Generate slibcat for Chez
|
|
37 |
echo "(require 'new-catalog)" | \
|
|
38 |
SCHEME_LIBRARY_PATH=$(CURDIR)/debian/slib/usr/share/slib/ \
|
|
39 |
CHEZ_IMPLEMENTATION_PATH=debian/slib/var/lib/slib/chez/ \
|
|
40 |
chezscheme -q chez.init
|
|
41 |
# Generate slibcat for MIT Scheme
|
|
42 |
echo "(require 'new-catalog)" | \
|
|
43 |
SCHEME_LIBRARY_PATH=$(CURDIR)/debian/slib/usr/share/slib/ \
|
|
44 |
MITSCHEME_IMPLEMENTATION_PATH=debian/slib/var/lib/slib/mitscheme/ \
|
|
45 |
mit-scheme --batch-mode --no-init-file --load mitscheme.init
|
|
46 |
# Strip the temporary DESTDIR from the slibcat paths
|
|
47 |
for i in gambc chez mitscheme; do \
|
|
48 |
sed -i 's|$(CURDIR)/debian/slib||' debian/slib/var/lib/slib/$$i/slibcat; \
|
|
49 |
done
|