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
|
diff -urwpN smalltalk-2.1.11/Makefile.am smalltalk-2.1.11.changed/Makefile.am
--- smalltalk-2.1.11/Makefile.am 2005-06-21 10:09:05.000000000 -0400
+++ smalltalk-2.1.11.changed/Makefile.am 2005-08-16 23:22:42.000000000 -0400
@@ -59,9 +59,7 @@ gsticon.o: gsticon.ico
echo ProgramIcon ICON `cygpath -w $(srcdir)/gsticon.ico` | windres -o gsticon.o
gst.im: $(bin_PROGRAMS) kernel/stamp-classes
- SMALLTALK_KERNEL="`cd $(srcdir)/kernel; pwd`" \
- SMALLTALK_IMAGE="`pwd`" \
- ./gst -iQ dummy_file
+ SMALLTALK_KERNEL="${D}/usr/share/smalltalk/gst -iQ dummy_file"
gst-mode.el: gst-mode.el.in
sed "s,@\(bindir\)@,$(bindir)," $(srcdir)/gst-mode.el.in > gst-mode.el
diff -urwpN smalltalk-2.1.11/Makefile.in smalltalk-2.1.11.changed/Makefile.in
--- smalltalk-2.1.11/Makefile.in 2005-06-21 10:51:13.000000000 -0400
+++ smalltalk-2.1.11.changed/Makefile.in 2005-08-16 23:23:58.000000000 -0400
@@ -962,9 +962,7 @@ gsticon.o: gsticon.ico
echo ProgramIcon ICON `cygpath -w $(srcdir)/gsticon.ico` | windres -o gsticon.o
gst.im: $(bin_PROGRAMS) kernel/stamp-classes
- SMALLTALK_KERNEL="`cd $(srcdir)/kernel; pwd`" \
- SMALLTALK_IMAGE="`pwd`" \
- ./gst -iQ dummy_file
+ SMALLTALK_KERNEL="${D}/usr/share/smalltalk/gst -iQ dummy_file"
gst-mode.el: gst-mode.el.in
sed "s,@\(bindir\)@,$(bindir)," $(srcdir)/gst-mode.el.in > gst-mode.el
diff -urwpN smalltalk-2.1.11/gst-package.in smalltalk-2.1.11.changed/gst-package.in
--- smalltalk-2.1.11/gst-package.in 2005-06-21 10:09:17.000000000 -0400
+++ smalltalk-2.1.11.changed/gst-package.in 2005-08-16 23:25:44.000000000 -0400
@@ -138,8 +138,13 @@ fi
echo "Merging $files and $IMAGE_PATH/packages.xml..."
$dry_run || {
- sed -e '$i\' -e '</packages>' -e '/<.packages>/,/<packages>/d' $files > $IMAGE_PATH/packages.tmp
- mv $IMAGE_PATH/packages.tmp $IMAGE_PATH/packages.xml
+ tmpfile=$(mktemp)
+ sed -e '$i\' -e '</packages>' -e '/<.packages>/,/<packages>/d' $files > $tmpfile
+ if [ -n ${EBUILD_PHASE} ]; then
+ mv $tmpfile ${D}/usr/share/smalltalk/packages.xml
+ else
+ mv $tmpfile $IMAGE_PATH/packages.xml
+ fi
}
|