summaryrefslogtreecommitdiff
path: root/dev-scheme/stklos/files/stklos-2.00-gentoo.patch
blob: 83c33b8f0b2a804ea03f499f458d10c477c29840 (plain)
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
--- a/configure.ac
+++ b/configure.ac
@@ -143,28 +143,10 @@
    htmldir="${docdir}/html"
 fi
 
-# Manage standard options --libdir and --datadir
-# If the user doesn't specify these option, we fix
-#   libdir to ${prefix}/lib/
-#   datadir to ${prefix}/share
-# Otherwise, we take the user provided values.
-#
-# In any case, we will place our files in the stklos/${VERSION} subdir
-
-if test "$LIBDIR" == ""  ; then
-   # user has not given a "--libdir" option. Use ${prefix}/lib/stklos/${VERSION}
-   libdir="${prefix}/lib/${PACKAGE_TARNAME}/${VERSION}"
-fi
-
-if test "$DATADIR" == ""  ; then
-   # user has not given a "--datadir" option. Use ${prefix}/share/stklos/${VERSION}
-   datadir="${prefix}/share/${PACKAGE_TARNAME}/${VERSION}"
-fi
-
 ### Initialize the extra conf file in src
 PREFIX=$prefix
-SCMDIR=$datadir
-EXECDIR=$libdir
+SCMDIR="${datadir}/${PACKAGE_TARNAME}/${VERSION}"
+EXECDIR="${libdir}/${PACKAGE_TARNAME}/${VERSION}"
 
 
 ### Determine the kind of the machine which is running this script
--- a/lib/Lalr.d/Makefile.am
+++ b/lib/Lalr.d/Makefile.am
@@ -33,8 +33,8 @@
 all: lalr.ostk calc
 
 install-sources: install
-	mkdir -p $(schemedir)
-	cp lalr.stk $(DESTDIR)/$(schemedir)
+	mkdir -p $(DESTDIR)$(schemedir)
+	cp lalr.stk $(DESTDIR)$(schemedir)
 
 uninstall-hook:
 	rm  -f $(DESTDIR)/$(schemedir)/lalr.stk
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -174,7 +174,7 @@
 	@for i in $(SUBDIRS) ;do \
 	   (cd $$i; $(MAKE) install-sources)\
 	done
-	cp $(SRC_STK) $(scheme_BOOT) $(DESTDIR)/$(schemedir)
+	cp $(SRC_STK) $(scheme_BOOT) $(DESTDIR)$(schemedir)
 
 
 # Explicit some dependencies here
--- a/lib/SILex.d/Makefile.am
+++ b/lib/SILex.d/Makefile.am
@@ -25,8 +25,8 @@
 SRC= silex.scm multilex.scm
 
 install-sources:
-	mkdir -p  $(DESTDIR)/$(schemedir)
-	cp $(SRC) $(DESTDIR)/$(schemedir)
+	mkdir -p  $(DESTDIR)$(schemedir)
+	cp $(SRC) $(DESTDIR)$(schemedir)
 
 
 uninstall-hook:
--- a/lib/scheme/Makefile.am
+++ b/lib/scheme/Makefile.am
@@ -189,7 +189,7 @@
 	@for i in $(SUBDIRS) ;do \
 	   (cd $$i; $(MAKE) install-sources)\
 	done
-	cp $(scheme_sources) $(schemedir)
+	cp $(scheme_sources) $(DESTDIR)$(schemedir)
 
 clean:
 	(cd vector; $(MAKE) clean)
--- a/lib/scheme/vector/Makefile.am
+++ b/lib/scheme/vector/Makefile.am
@@ -130,8 +130,8 @@
 #======================================================================
 
 install-sources:
-	mkdir -p $(srfidir)
-	cp $(srfi_sources) $(srfi_interm) $(srfidir)
+	mkdir -p $(DESTDIR)$(srfidir)
+	cp $(srfi_sources) $(srfi_interm) $(DESTDIR)$(srfidir)
 
 # we also clean the TAG.stk files -- $(srfi-interm) --, which are NOT
 # srfi_OBJS (should not be installed with other objects):
--- a/lib/srfi/160/Makefile.am
+++ b/lib/srfi/160/Makefile.am
@@ -140,8 +140,8 @@
 #======================================================================
 
 install-sources:
-	mkdir -p $(srfidir)
-	cp $(srfi_sources) $(srfidir)
+	mkdir -p $(DESTDIR)$(srfidir)
+	cp $(srfi_sources) $(DESTDIR)$(srfidir)
 
 clean:
 	rm -f $(srfi_OBJS) *-incl.c *~
--- a/lib/srfi/Makefile.am
+++ b/lib/srfi/Makefile.am
@@ -383,7 +383,7 @@
 	@for i in $(SUBDIRS) ;do \
 	   (cd $$i; $(MAKE) install-sources)\
 	done
-	cp $(srfi_sources) $(srfidir)
+	cp $(srfi_sources) $(DESTDIR)$(srfidir)
 
 clean:
 	rm -f $(srfi_OBJS) *-incl.c *~
--- a/lib/stklos/Makefile.am
+++ b/lib/stklos/Makefile.am
@@ -75,7 +75,7 @@
 
 # ======================================================================
 install-sources:
-	cp $(scheme_sources) $(schemedir)
+	cp $(scheme_sources) $(DESTDIR)$(schemedir)
 
 clean:
 	rm -f $(ALL_OBJS) *-incl.c  *~
--- a/lib/streams/Makefile.am
+++ b/lib/streams/Makefile.am
@@ -75,7 +75,7 @@
 
 # ======================================================================
 install-sources:
-	install $(scheme_sources) $(schemedir)
+	install $(scheme_sources) $(DESTDIR)$(schemedir)
 
 clean:
 	rm -f $(ALL_OBJS) *-incl.c  *~
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -110,8 +110,8 @@
 
 
 install-exec-hook:
-	mv $(bindir)/stklos $(bindir)/stklos-@VERSION@
-	ln -s stklos-@VERSION@ $(bindir)/stklos
+	mv $(DESTDIR)$(bindir)/stklos $(DESTDIR)$(bindir)/stklos-@VERSION@
+	ln -s stklos-@VERSION@ $(DESTDIR)$(bindir)/stklos
 
 
 doc:  $(DOCDB)