[Fixed paths in Flux samples in openGL-resources-usrshare.dpatch
Danya Alexeyevsky**20080117223822] {
hunk ./debian/patches/openGL-resources-usrshare.dpatch 8
+diff -urNad iolanguage-20080107~/addons/Flux/samples/China/china.io iolanguage-20080107/addons/Flux/samples/China/china.io
+--- iolanguage-20080107~/addons/Flux/samples/China/china.io	2008-01-18 01:35:50.000000000 +0300
++++ iolanguage-20080107/addons/Flux/samples/China/china.io	2008-01-07 13:03:42.000000000 +0300
+@@ -1179,7 +1179,7 @@
+ ChinaApp setupFont := method(
+ 	e := try (
+ 		if (Lobby ?Font) then (
+-			self font := Font clone open("/usr/share/iolanguage/Flux/resources/fonts/Vera/Sans/Normal.ttf")
++			self font := Font clone open("addons/Flux/resources/fonts/Vera/Sans/Normal.ttf")
+ 			self font setPixelSize(self fontSize)
+ 		) else (
+ 			writeln("Couldn't find the specified font.")
+diff -urNad iolanguage-20080107~/addons/Font/samples/Terminal.io iolanguage-20080107/addons/Font/samples/Terminal.io
+--- iolanguage-20080107~/addons/Font/samples/Terminal.io	2008-01-18 01:37:19.000000000 +0300
++++ iolanguage-20080107/addons/Font/samples/Terminal.io	2008-01-07 13:03:42.000000000 +0300
+@@ -7,7 +7,7 @@
+     newSlot("bottomMargin", 10)
+     newSlot("prompt", "Io> ")
+ 
+-    font := Font clone open("/usr/share/iolanguage/Flux/resources/library/fonts/ProFont/Mono/Normal.ttf") setPixelSize(25)
++    font := Font clone open("resources/library/fonts/ProFont/Mono/Normal.ttf") setPixelSize(25)
+     lines := List clone append(Sequence clone with(prompt))
+     command := Sequence clone
+     
+diff -urNad iolanguage-20080107~/addons/Font/samples/fontTest.io iolanguage-20080107/addons/Font/samples/fontTest.io
+--- iolanguage-20080107~/addons/Font/samples/fontTest.io	2008-01-18 01:36:25.000000000 +0300
++++ iolanguage-20080107/addons/Font/samples/fontTest.io	2008-01-07 13:03:42.000000000 +0300
+@@ -24,7 +24,7 @@
+ )
+ 
+ Screen initFonts := method(
+-	fPath := "/usr/share/iolanguage/Flux/resources/fonts/"
++	fPath := "addons/Flux/resources/fonts/"
+ 	self infoFont = Font clone open(fPath .. "Free/Sans/Normal.ttf")
+ 	self infoFont setPixelSize(14)
+ 	font := nil
+diff -urNad iolanguage-20080107~/addons/Font/samples/slides.io iolanguage-20080107/addons/Font/samples/slides.io
+--- iolanguage-20080107~/addons/Font/samples/slides.io	2008-01-18 01:37:07.000000000 +0300
++++ iolanguage-20080107/addons/Font/samples/slides.io	2008-01-07 13:03:42.000000000 +0300
+@@ -5,9 +5,9 @@
+ //doFile(Path with(launchPath, "GLApp.io"))
+ 
+ Slide := Object clone do(
+-    bigFont    := Font clone open("/usr/share/iolanguage/Flux/resources/library/fonts/Free/Sans/Bold.ttf")   setPixelSize(200)
+-    mediumFont := Font clone open("/usr/share/iolanguage/Flux/resources/library/fonts/Free/Sans/Bold.ttf")   setPixelSize(48)
+-    smallFont  := Font clone open("/usr/share/iolanguage/Flux/resources/library/fonts/Free/Sans/Normal.ttf") setPixelSize(32)
++    bigFont    := Font clone open("../resources/library/fonts/Free/Sans/Bold.ttf")   setPixelSize(200)
++    mediumFont := Font clone open("../resources/library/fonts/Free/Sans/Bold.ttf")   setPixelSize(48)
++    smallFont  := Font clone open("../resources/library/fonts/Free/Sans/Normal.ttf") setPixelSize(32)
+     
+     titleFont := mediumFont
+     textFont  := smallFont
+diff -urNad iolanguage-20080107~/addons/Font/samples/test.io iolanguage-20080107/addons/Font/samples/test.io
+--- iolanguage-20080107~/addons/Font/samples/test.io	2008-01-18 01:36:39.000000000 +0300
++++ iolanguage-20080107/addons/Font/samples/test.io	2008-01-07 13:03:42.000000000 +0300
+@@ -1,10 +1,10 @@
+ #!/usr/bin/env io
+ 
+ 
+-monoFont  := Font clone open("/usr/share/iolanguage/Flux/resources/library/fonts/Vera/Mono/Bold.ttf") setPixelSize(12)
++monoFont  := Font clone open("resources/library/fonts/Vera/Mono/Bold.ttf") setPixelSize(12)
+ writeln("top1")
+-sansFont  := Font clone open("/usr/share/iolanguage/Flux/resources/library/fonts/Vera/Sans/Normal.ttf") setPixelSize(12)
+-serifFont := Font clone open("/usr/share/iolanguage/Flux/resources/library/fonts/Vera/Serif/Normal.ttf") setPixelSize(12)
++sansFont  := Font clone open("resources/library/fonts/Vera/Sans/Normal.ttf") setPixelSize(12)
++serifFont := Font clone open("resources/library/fonts/Vera/Serif/Normal.ttf") setPixelSize(12)
+ 
+ writeln("top")
+ 
+diff -urNad iolanguage-20080107~/addons/Font/samples/test2.io iolanguage-20080107/addons/Font/samples/test2.io
+--- iolanguage-20080107~/addons/Font/samples/test2.io	2008-01-18 01:36:33.000000000 +0300
++++ iolanguage-20080107/addons/Font/samples/test2.io	2008-01-07 13:03:42.000000000 +0300
+@@ -1,7 +1,7 @@
+ #!/usr/bin/env io
+ 
+-sansFontBig     := Font clone open("/usr/share/iolanguage/Flux/resources/library/fonts/Free/Sans/Bold.ttf") setPixelSize(200)
+-sansFontMedium  := Font clone open("/usr/share/iolanguage/Flux/resources/library/fonts/Free/Sans/Bold.ttf") setPixelSize(25)
++sansFontBig     := Font clone open("resources/library/fonts/Free/Sans/Bold.ttf") setPixelSize(200)
++sansFontMedium  := Font clone open("resources/library/fonts/Free/Sans/Bold.ttf") setPixelSize(25)
+ 
+ Screen := Object clone
+ Screen appendProto(OpenGL)
hunk ./debian/patches/openGL-resources-usrshare.dpatch 91
---- iolanguage-20080107~/addons/OpenGL/io/ResourceManager.io	2008-01-17 12:08:47.000000000 +0300
+--- iolanguage-20080107~/addons/OpenGL/io/ResourceManager.io	2008-01-18 01:37:26.000000000 +0300
hunk ./debian/patches/openGL-resources-usrshare.dpatch 97
--	newSlot("resourcesPath", Path with("/usr/share/iolanguage/Flux/resources"))
+-	newSlot("resourcesPath", Path with(System ioPath, "/usr/share/iolanguage/Flux/resources"))
}
