cairo 1.8.3-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of cairo might be problematic. Click here for more details.

Files changed (352) hide show
  1. data/AUTHORS +4 -0
  2. data/COPYING +59 -0
  3. data/GPL +340 -0
  4. data/NEWS +163 -0
  5. data/Rakefile +190 -0
  6. data/doc/doc.css +91 -0
  7. data/doc/en/cairo-antialias.html +38 -0
  8. data/doc/en/cairo-clip-not-representable-error.html +47 -0
  9. data/doc/en/cairo-color-base.html +69 -0
  10. data/doc/en/cairo-color-cmyk.html +157 -0
  11. data/doc/en/cairo-color-hsv.html +137 -0
  12. data/doc/en/cairo-color-rgb.html +142 -0
  13. data/doc/en/cairo-color-x11.html +173 -0
  14. data/doc/en/cairo-color.html +238 -0
  15. data/doc/en/cairo-content.html +37 -0
  16. data/doc/en/cairo-context-blur.html +39 -0
  17. data/doc/en/cairo-context-circle.html +39 -0
  18. data/doc/en/cairo-context-color.html +39 -0
  19. data/doc/en/cairo-context-path.html +44 -0
  20. data/doc/en/cairo-context-rectangle.html +39 -0
  21. data/doc/en/cairo-context-triangle.html +39 -0
  22. data/doc/en/cairo-context.html +643 -0
  23. data/doc/en/cairo-error.html +44 -0
  24. data/doc/en/cairo-extend.html +38 -0
  25. data/doc/en/cairo-file-not-found.html +47 -0
  26. data/doc/en/cairo-fill-rule.html +36 -0
  27. data/doc/en/cairo-filter.html +40 -0
  28. data/doc/en/cairo-font-extents.html +129 -0
  29. data/doc/en/cairo-font-face.html +38 -0
  30. data/doc/en/cairo-font-options.html +139 -0
  31. data/doc/en/cairo-font-slant.html +37 -0
  32. data/doc/en/cairo-font-type-mismatch.html +47 -0
  33. data/doc/en/cairo-font-weight.html +36 -0
  34. data/doc/en/cairo-format.html +46 -0
  35. data/doc/en/cairo-glyph.html +99 -0
  36. data/doc/en/cairo-gradient-pattern.html +74 -0
  37. data/doc/en/cairo-hint-metrics.html +37 -0
  38. data/doc/en/cairo-hint-style.html +39 -0
  39. data/doc/en/cairo-image-surface.html +82 -0
  40. data/doc/en/cairo-invalid-clusters.html +47 -0
  41. data/doc/en/cairo-invalid-content-error.html +47 -0
  42. data/doc/en/cairo-invalid-dash-error.html +47 -0
  43. data/doc/en/cairo-invalid-dsc-comment-error.html +47 -0
  44. data/doc/en/cairo-invalid-format-error.html +47 -0
  45. data/doc/en/cairo-invalid-index-error.html +47 -0
  46. data/doc/en/cairo-invalid-matrix-error.html +47 -0
  47. data/doc/en/cairo-invalid-path-data-error.html +47 -0
  48. data/doc/en/cairo-invalid-pop-group-error.html +47 -0
  49. data/doc/en/cairo-invalid-restore-error.html +47 -0
  50. data/doc/en/cairo-invalid-slant.html +47 -0
  51. data/doc/en/cairo-invalid-status-error.html +47 -0
  52. data/doc/en/cairo-invalid-stride-error.html +47 -0
  53. data/doc/en/cairo-invalid-string-error.html +47 -0
  54. data/doc/en/cairo-invalid-visual-error.html +47 -0
  55. data/doc/en/cairo-invalid-weight.html +47 -0
  56. data/doc/en/cairo-line-cap.html +37 -0
  57. data/doc/en/cairo-line-join.html +37 -0
  58. data/doc/en/cairo-linear-pattern.html +60 -0
  59. data/doc/en/cairo-matrix.html +259 -0
  60. data/doc/en/cairo-negative-count.html +47 -0
  61. data/doc/en/cairo-no-current-point-error.html +47 -0
  62. data/doc/en/cairo-null-pointer-error.html +47 -0
  63. data/doc/en/cairo-operator.html +48 -0
  64. data/doc/en/cairo-paper-parse-error.html +47 -0
  65. data/doc/en/cairo-paper-unknown-paper-name.html +66 -0
  66. data/doc/en/cairo-paper-unknown-unit.html +66 -0
  67. data/doc/en/cairo-paper-unrecognized-paper-description.html +66 -0
  68. data/doc/en/cairo-paper.html +184 -0
  69. data/doc/en/cairo-path-close-path.html +49 -0
  70. data/doc/en/cairo-path-curve-to.html +49 -0
  71. data/doc/en/cairo-path-data-type.html +38 -0
  72. data/doc/en/cairo-path-data.html +98 -0
  73. data/doc/en/cairo-path-line-to.html +49 -0
  74. data/doc/en/cairo-path-move-to.html +49 -0
  75. data/doc/en/cairo-path.html +155 -0
  76. data/doc/en/cairo-pattern-type-mismatch-error.html +47 -0
  77. data/doc/en/cairo-pattern.html +99 -0
  78. data/doc/en/cairo-pdf-surface.html +57 -0
  79. data/doc/en/cairo-point.html +74 -0
  80. data/doc/en/cairo-ps-level.html +49 -0
  81. data/doc/en/cairo-ps-surface.html +92 -0
  82. data/doc/en/cairo-quartz-image-surface.html +57 -0
  83. data/doc/en/cairo-quartz-surface.html +57 -0
  84. data/doc/en/cairo-radial-pattern.html +60 -0
  85. data/doc/en/cairo-read-error.html +47 -0
  86. data/doc/en/cairo-rectangle.html +89 -0
  87. data/doc/en/cairo-scaled-font.html +94 -0
  88. data/doc/en/cairo-solid-pattern.html +62 -0
  89. data/doc/en/cairo-subpixel-order.html +39 -0
  90. data/doc/en/cairo-surface-finished-error.html +47 -0
  91. data/doc/en/cairo-surface-pattern.html +57 -0
  92. data/doc/en/cairo-surface-type-mismatch-error.html +47 -0
  93. data/doc/en/cairo-surface.html +121 -0
  94. data/doc/en/cairo-svg-surface.html +77 -0
  95. data/doc/en/cairo-svg-version.html +49 -0
  96. data/doc/en/cairo-temp-file-error.html +47 -0
  97. data/doc/en/cairo-text-cluster-flag.html +35 -0
  98. data/doc/en/cairo-text-cluster.html +84 -0
  99. data/doc/en/cairo-text-extents.html +144 -0
  100. data/doc/en/cairo-toy-font-face.html +67 -0
  101. data/doc/en/cairo-user-font-error.html +47 -0
  102. data/doc/en/cairo-user-font-face-text-to-glyphs-data.html +94 -0
  103. data/doc/en/cairo-user-font-face.html +72 -0
  104. data/doc/en/cairo-user-font-immutable.html +47 -0
  105. data/doc/en/cairo-win32-printing-surface.html +57 -0
  106. data/doc/en/cairo-win32-surface.html +62 -0
  107. data/doc/en/cairo-write-error.html +47 -0
  108. data/doc/en/cairo.html +131 -0
  109. data/doc/en/index.html +1154 -0
  110. data/doc/index.html +18 -0
  111. data/doc/ja/cairo-antialias.html +57 -0
  112. data/doc/ja/cairo-clip-not-representable-error.html +56 -0
  113. data/doc/ja/cairo-color-base.html +75 -0
  114. data/doc/ja/cairo-color-cmyk.html +152 -0
  115. data/doc/ja/cairo-color-hsv.html +135 -0
  116. data/doc/ja/cairo-color-rgb.html +145 -0
  117. data/doc/ja/cairo-color-x11.html +183 -0
  118. data/doc/ja/cairo-color.html +317 -0
  119. data/doc/ja/cairo-content.html +51 -0
  120. data/doc/ja/cairo-context-blur.html +53 -0
  121. data/doc/ja/cairo-context-circle.html +54 -0
  122. data/doc/ja/cairo-context-color.html +52 -0
  123. data/doc/ja/cairo-context-path.html +77 -0
  124. data/doc/ja/cairo-context-rectangle.html +60 -0
  125. data/doc/ja/cairo-context-triangle.html +47 -0
  126. data/doc/ja/cairo-context.html +1542 -0
  127. data/doc/ja/cairo-error.html +56 -0
  128. data/doc/ja/cairo-extend.html +56 -0
  129. data/doc/ja/cairo-file-not-found.html +51 -0
  130. data/doc/ja/cairo-fill-rule.html +58 -0
  131. data/doc/ja/cairo-filter.html +43 -0
  132. data/doc/ja/cairo-font-extents.html +164 -0
  133. data/doc/ja/cairo-font-face.html +55 -0
  134. data/doc/ja/cairo-font-options.html +189 -0
  135. data/doc/ja/cairo-font-slant.html +50 -0
  136. data/doc/ja/cairo-font-type-mismatch.html +52 -0
  137. data/doc/ja/cairo-font-weight.html +47 -0
  138. data/doc/ja/cairo-format.html +81 -0
  139. data/doc/ja/cairo-glyph.html +115 -0
  140. data/doc/ja/cairo-gradient-pattern.html +119 -0
  141. data/doc/ja/cairo-hint-metrics.html +57 -0
  142. data/doc/ja/cairo-hint-style.html +64 -0
  143. data/doc/ja/cairo-image-surface.html +131 -0
  144. data/doc/ja/cairo-invalid-clusters.html +55 -0
  145. data/doc/ja/cairo-invalid-content-error.html +54 -0
  146. data/doc/ja/cairo-invalid-dash-error.html +54 -0
  147. data/doc/ja/cairo-invalid-dsc-comment-error.html +54 -0
  148. data/doc/ja/cairo-invalid-format-error.html +54 -0
  149. data/doc/ja/cairo-invalid-index-error.html +54 -0
  150. data/doc/ja/cairo-invalid-matrix-error.html +54 -0
  151. data/doc/ja/cairo-invalid-path-data-error.html +54 -0
  152. data/doc/ja/cairo-invalid-pop-group-error.html +54 -0
  153. data/doc/ja/cairo-invalid-restore-error.html +55 -0
  154. data/doc/ja/cairo-invalid-slant.html +57 -0
  155. data/doc/ja/cairo-invalid-status-error.html +55 -0
  156. data/doc/ja/cairo-invalid-stride-error.html +55 -0
  157. data/doc/ja/cairo-invalid-string-error.html +54 -0
  158. data/doc/ja/cairo-invalid-visual-error.html +57 -0
  159. data/doc/ja/cairo-invalid-weight.html +57 -0
  160. data/doc/ja/cairo-line-cap.html +50 -0
  161. data/doc/ja/cairo-line-join.html +53 -0
  162. data/doc/ja/cairo-linear-pattern.html +87 -0
  163. data/doc/ja/cairo-matrix.html +354 -0
  164. data/doc/ja/cairo-negative-count.html +52 -0
  165. data/doc/ja/cairo-no-current-point-error.html +54 -0
  166. data/doc/ja/cairo-null-pointer-error.html +54 -0
  167. data/doc/ja/cairo-operator.html +51 -0
  168. data/doc/ja/cairo-paper-parse-error.html +55 -0
  169. data/doc/ja/cairo-paper-unknown-paper-name.html +76 -0
  170. data/doc/ja/cairo-paper-unknown-unit.html +75 -0
  171. data/doc/ja/cairo-paper-unrecognized-paper-description.html +76 -0
  172. data/doc/ja/cairo-paper.html +357 -0
  173. data/doc/ja/cairo-path-close-path.html +57 -0
  174. data/doc/ja/cairo-path-curve-to.html +70 -0
  175. data/doc/ja/cairo-path-data-type.html +53 -0
  176. data/doc/ja/cairo-path-data.html +127 -0
  177. data/doc/ja/cairo-path-line-to.html +62 -0
  178. data/doc/ja/cairo-path-move-to.html +62 -0
  179. data/doc/ja/cairo-path.html +144 -0
  180. data/doc/ja/cairo-pattern-type-mismatch-error.html +56 -0
  181. data/doc/ja/cairo-pattern.html +128 -0
  182. data/doc/ja/cairo-pdf-surface.html +86 -0
  183. data/doc/ja/cairo-point.html +90 -0
  184. data/doc/ja/cairo-ps-level.html +62 -0
  185. data/doc/ja/cairo-ps-surface.html +214 -0
  186. data/doc/ja/cairo-quartz-image-surface.html +75 -0
  187. data/doc/ja/cairo-quartz-surface.html +93 -0
  188. data/doc/ja/cairo-radial-pattern.html +93 -0
  189. data/doc/ja/cairo-read-error.html +55 -0
  190. data/doc/ja/cairo-rectangle.html +109 -0
  191. data/doc/ja/cairo-scaled-font.html +180 -0
  192. data/doc/ja/cairo-solid-pattern.html +87 -0
  193. data/doc/ja/cairo-subpixel-order.html +57 -0
  194. data/doc/ja/cairo-surface-finished-error.html +54 -0
  195. data/doc/ja/cairo-surface-pattern.html +68 -0
  196. data/doc/ja/cairo-surface-type-mismatch-error.html +56 -0
  197. data/doc/ja/cairo-surface.html +213 -0
  198. data/doc/ja/cairo-svg-surface.html +114 -0
  199. data/doc/ja/cairo-svg-version.html +66 -0
  200. data/doc/ja/cairo-temp-file-error.html +50 -0
  201. data/doc/ja/cairo-text-cluster-flag.html +46 -0
  202. data/doc/ja/cairo-text-cluster.html +102 -0
  203. data/doc/ja/cairo-text-extents.html +163 -0
  204. data/doc/ja/cairo-toy-font-face.html +107 -0
  205. data/doc/ja/cairo-user-font-error.html +55 -0
  206. data/doc/ja/cairo-user-font-face-text-to-glyphs-data.html +156 -0
  207. data/doc/ja/cairo-user-font-face.html +268 -0
  208. data/doc/ja/cairo-user-font-immutable.html +54 -0
  209. data/doc/ja/cairo-win32-printing-surface.html +80 -0
  210. data/doc/ja/cairo-win32-surface.html +100 -0
  211. data/doc/ja/cairo-write-error.html +55 -0
  212. data/doc/ja/cairo.html +177 -0
  213. data/doc/ja/index.html +1156 -0
  214. data/ext/cairo/cairo.def +104 -0
  215. data/ext/cairo/extconf.rb +80 -0
  216. data/ext/cairo/rb_cairo.c +104 -0
  217. data/ext/cairo/rb_cairo.h +275 -0
  218. data/ext/cairo/rb_cairo_constants.c +478 -0
  219. data/ext/cairo/rb_cairo_context.c +1693 -0
  220. data/ext/cairo/rb_cairo_exception.c +354 -0
  221. data/ext/cairo/rb_cairo_font_extents.c +200 -0
  222. data/ext/cairo/rb_cairo_font_face.c +713 -0
  223. data/ext/cairo/rb_cairo_font_options.c +197 -0
  224. data/ext/cairo/rb_cairo_glyph.c +161 -0
  225. data/ext/cairo/rb_cairo_matrix.c +366 -0
  226. data/ext/cairo/rb_cairo_path.c +459 -0
  227. data/ext/cairo/rb_cairo_pattern.c +540 -0
  228. data/ext/cairo/rb_cairo_private.c +242 -0
  229. data/ext/cairo/rb_cairo_private.h +114 -0
  230. data/ext/cairo/rb_cairo_scaled_font.c +235 -0
  231. data/ext/cairo/rb_cairo_surface.c +1371 -0
  232. data/ext/cairo/rb_cairo_text_cluster.c +151 -0
  233. data/ext/cairo/rb_cairo_text_extents.c +221 -0
  234. data/extconf.rb +45 -0
  235. data/lib/1.8/cairo.so +0 -0
  236. data/lib/1.9/cairo.so +0 -0
  237. data/lib/cairo.rb +151 -0
  238. data/lib/cairo/color.rb +267 -0
  239. data/lib/cairo/colors.rb +656 -0
  240. data/lib/cairo/constants.rb +24 -0
  241. data/lib/cairo/context.rb +29 -0
  242. data/lib/cairo/context/blur.rb +45 -0
  243. data/lib/cairo/context/circle.rb +9 -0
  244. data/lib/cairo/context/color.rb +11 -0
  245. data/lib/cairo/context/path.rb +116 -0
  246. data/lib/cairo/context/rectangle.rb +33 -0
  247. data/lib/cairo/context/triangle.rb +12 -0
  248. data/lib/cairo/paper.rb +183 -0
  249. data/lib/cairo/papers.rb +41 -0
  250. data/lib/cairo/path.rb +15 -0
  251. data/lib/cairo/point.rb +7 -0
  252. data/misc/update-colors.rb +143 -0
  253. data/pkg-config.rb +313 -0
  254. data/samples/agg/README +4 -0
  255. data/samples/agg/aa_test.rb +304 -0
  256. data/samples/blur.rb +47 -0
  257. data/samples/pac.rb +99 -0
  258. data/samples/pac2.rb +171 -0
  259. data/samples/png.rb +45 -0
  260. data/samples/scalable.rb +56 -0
  261. data/samples/text-on-path.rb +60 -0
  262. data/samples/text2.rb +131 -0
  263. data/test-unit/Rakefile +30 -0
  264. data/test-unit/bin/testrb +5 -0
  265. data/test-unit/lib/test/unit.rb +280 -0
  266. data/test-unit/lib/test/unit/assertionfailederror.rb +14 -0
  267. data/test-unit/lib/test/unit/assertions.rb +722 -0
  268. data/test-unit/lib/test/unit/attribute.rb +125 -0
  269. data/test-unit/lib/test/unit/autorunner.rb +254 -0
  270. data/test-unit/lib/test/unit/collector.rb +43 -0
  271. data/test-unit/lib/test/unit/collector/descendant.rb +23 -0
  272. data/test-unit/lib/test/unit/collector/dir.rb +108 -0
  273. data/test-unit/lib/test/unit/collector/load.rb +135 -0
  274. data/test-unit/lib/test/unit/collector/objectspace.rb +34 -0
  275. data/test-unit/lib/test/unit/color.rb +61 -0
  276. data/test-unit/lib/test/unit/diff.rb +524 -0
  277. data/test-unit/lib/test/unit/error.rb +124 -0
  278. data/test-unit/lib/test/unit/exceptionhandler.rb +39 -0
  279. data/test-unit/lib/test/unit/failure.rb +110 -0
  280. data/test-unit/lib/test/unit/fixture.rb +185 -0
  281. data/test-unit/lib/test/unit/notification.rb +125 -0
  282. data/test-unit/lib/test/unit/omission.rb +143 -0
  283. data/test-unit/lib/test/unit/pending.rb +146 -0
  284. data/test-unit/lib/test/unit/priority.rb +146 -0
  285. data/test-unit/lib/test/unit/runner/console.rb +46 -0
  286. data/test-unit/lib/test/unit/runner/emacs.rb +8 -0
  287. data/test-unit/lib/test/unit/testcase.rb +281 -0
  288. data/test-unit/lib/test/unit/testresult.rb +89 -0
  289. data/test-unit/lib/test/unit/testsuite.rb +110 -0
  290. data/test-unit/lib/test/unit/ui/console/outputlevel.rb +14 -0
  291. data/test-unit/lib/test/unit/ui/console/testrunner.rb +195 -0
  292. data/test-unit/lib/test/unit/ui/emacs/testrunner.rb +49 -0
  293. data/test-unit/lib/test/unit/ui/testrunner.rb +20 -0
  294. data/test-unit/lib/test/unit/ui/testrunnermediator.rb +77 -0
  295. data/test-unit/lib/test/unit/ui/testrunnerutilities.rb +41 -0
  296. data/test-unit/lib/test/unit/util/backtracefilter.rb +41 -0
  297. data/test-unit/lib/test/unit/util/observable.rb +90 -0
  298. data/test-unit/lib/test/unit/util/procwrapper.rb +48 -0
  299. data/test-unit/lib/test/unit/version.rb +7 -0
  300. data/test-unit/sample/adder.rb +13 -0
  301. data/test-unit/sample/subtracter.rb +12 -0
  302. data/test-unit/sample/tc_adder.rb +18 -0
  303. data/test-unit/sample/tc_subtracter.rb +18 -0
  304. data/test-unit/sample/ts_examples.rb +7 -0
  305. data/test-unit/test/collector/test_descendant.rb +135 -0
  306. data/test-unit/test/collector/test_dir.rb +406 -0
  307. data/test-unit/test/collector/test_load.rb +333 -0
  308. data/test-unit/test/collector/test_objectspace.rb +98 -0
  309. data/test-unit/test/run-test.rb +13 -0
  310. data/test-unit/test/test_assertions.rb +693 -0
  311. data/test-unit/test/test_attribute.rb +86 -0
  312. data/test-unit/test/test_color.rb +37 -0
  313. data/test-unit/test/test_diff.rb +477 -0
  314. data/test-unit/test/test_emacs_runner.rb +60 -0
  315. data/test-unit/test/test_error.rb +26 -0
  316. data/test-unit/test/test_failure.rb +33 -0
  317. data/test-unit/test/test_fixture.rb +252 -0
  318. data/test-unit/test/test_notification.rb +33 -0
  319. data/test-unit/test/test_omission.rb +81 -0
  320. data/test-unit/test/test_pending.rb +70 -0
  321. data/test-unit/test/test_priority.rb +89 -0
  322. data/test-unit/test/test_testcase.rb +430 -0
  323. data/test-unit/test/test_testresult.rb +113 -0
  324. data/test-unit/test/test_testsuite.rb +129 -0
  325. data/test-unit/test/testunit_test_util.rb +14 -0
  326. data/test-unit/test/ui/test_testrunmediator.rb +20 -0
  327. data/test-unit/test/util/test_backtracefilter.rb +41 -0
  328. data/test-unit/test/util/test_observable.rb +102 -0
  329. data/test-unit/test/util/test_procwrapper.rb +36 -0
  330. data/test/cairo-test-utils.rb +18 -0
  331. data/test/run-test.rb +28 -0
  332. data/test/test_color.rb +17 -0
  333. data/test/test_constants.rb +16 -0
  334. data/test/test_context.rb +105 -0
  335. data/test/test_exception.rb +27 -0
  336. data/test/test_font_extents.rb +36 -0
  337. data/test/test_font_face.rb +244 -0
  338. data/test/test_font_options.rb +13 -0
  339. data/test/test_paper.rb +81 -0
  340. data/test/test_pkg_config.rb +123 -0
  341. data/test/test_scaled_font.rb +34 -0
  342. data/test/test_surface.rb +41 -0
  343. data/test/test_text_cluster.rb +32 -0
  344. data/test/test_text_extents.rb +40 -0
  345. data/test/test_text_to_glyphs_data.rb +51 -0
  346. data/tmp/x86-mingw32/cairo/1.8.7/fake.rb +6 -0
  347. data/tmp/x86-mingw32/cairo/1.8.7/mkmf.rb +1836 -0
  348. data/tmp/x86-mingw32/cairo/1.8.7/rbconfig.rb +183 -0
  349. data/tmp/x86-mingw32/cairo/1.9.2/fake.rb +6 -0
  350. data/tmp/x86-mingw32/cairo/1.9.2/mkmf.rb +2079 -0
  351. data/tmp/x86-mingw32/cairo/1.9.2/rbconfig.rb +226 -0
  352. metadata +437 -0
@@ -0,0 +1,190 @@
1
+ # -*- coding: utf-8; mode: ruby -*-
2
+
3
+ require 'English'
4
+
5
+ require 'find'
6
+ require 'fileutils'
7
+ require 'rubygems'
8
+ require 'hoe'
9
+ require 'rake/extensiontask'
10
+
11
+ base_dir = File.join(File.dirname(__FILE__))
12
+ truncate_base_dir = Proc.new do |x|
13
+ x.gsub(/^#{Regexp.escape(base_dir + File::SEPARATOR)}/, '')
14
+ end
15
+
16
+ cairo_ext_dir = File.join(base_dir, 'ext', 'cairo')
17
+ cairo_lib_dir = File.join(base_dir, 'lib')
18
+ $LOAD_PATH.unshift(cairo_ext_dir)
19
+ $LOAD_PATH.unshift(cairo_lib_dir)
20
+ ENV["RUBYLIB"] = "#{cairo_lib_dir}:#{cairo_ext_dir}:#{ENV['RUBYLIB']}"
21
+
22
+ def guess_rcairo_version
23
+ require 'cairo'
24
+ Cairo.bindings_version
25
+ end
26
+
27
+ manifest = File.join(base_dir, "Manifest.txt")
28
+ manifest_contents = []
29
+ base_dir_included_components = %w(AUTHORS COPYING ChangeLog GPL
30
+ NEWS README.doc Rakefile
31
+ extconf.rb pkg-config.rb)
32
+ excluded_components = %w(.cvsignore .gdb_history CVS depend Makefile pkg
33
+ .test-result .gitignore .git vendor)
34
+ excluded_suffixes = %w(.png .ps .pdf .o .so .a .txt .~ .log)
35
+ Find.find(base_dir) do |target|
36
+ target = truncate_base_dir[target]
37
+ components = target.split(File::SEPARATOR)
38
+ if components.size == 1 and !File.directory?(target)
39
+ next unless base_dir_included_components.include?(components[0])
40
+ end
41
+ Find.prune if (excluded_components - components) != excluded_components
42
+ next if excluded_suffixes.include?(File.extname(target))
43
+ manifest_contents << target if File.file?(target)
44
+ end
45
+
46
+ File.open(manifest, "w") do |f|
47
+ f.puts manifest_contents.sort.join("\n")
48
+ end
49
+
50
+ # For Hoe's no user friendly default behavior. :<
51
+ File.open("README.txt", "w") {|file| file << "= Dummy README\n== XXX\n"}
52
+ FileUtils.cp("NEWS", "History.txt")
53
+ at_exit do
54
+ FileUtils.rm_f("README.txt")
55
+ FileUtils.rm_f("History.txt")
56
+ FileUtils.rm_f(manifest)
57
+ end
58
+
59
+ ENV["VERSION"] ||= guess_rcairo_version
60
+ version = ENV["VERSION"]
61
+ project = Hoe.spec('cairo') do |project|
62
+ project.version = version
63
+ project.rubyforge_name = 'cairo'
64
+ authors = File.join(base_dir, "AUTHORS")
65
+ project.author = File.readlines(authors).collect do |line|
66
+ if /\s*<[^<>]*>$/ =~ line
67
+ $PREMATCH
68
+ else
69
+ nil
70
+ end
71
+ end.compact
72
+ project.email = ['cairo@cairographics.org']
73
+ project.summary = 'Ruby bindings for cairo'
74
+ project.url = 'http://cairographics.org/rcairo'
75
+ project.test_globs = []
76
+ project.spec_extras = {
77
+ :extensions => ['ext/cairo/extconf.rb'],
78
+ :require_paths => ['lib'],
79
+ :has_rdoc => false,
80
+ }
81
+ platform = ENV["FORCE_PLATFORM"]
82
+ project.spec_extras[:platform] = platform if platform
83
+ news = File.join(base_dir, "NEWS")
84
+ project.changes = File.read(news).gsub(/\n+^Release(?m:.*)/, '')
85
+ project.description = "Ruby bindings for cairo"
86
+ project.need_tar = false
87
+ project.remote_rdoc_dir = "doc"
88
+ end
89
+
90
+ project.spec.dependencies.delete_if {|dependency| dependency.name == "hoe"}
91
+
92
+ Rake::ExtensionTask.new("cairo", project.spec) do |ext|
93
+ ext.cross_compile = true
94
+ ext.cross_platform = 'x86-mingw32'
95
+ end
96
+
97
+ if /mswin32/ =~ project.spec.platform.to_s
98
+ cairo_win32_dir = File.join(base_dir, "vendor", "local")
99
+ cairo_files = []
100
+ Find.find(cairo_win32_dir) do |f|
101
+ cairo_files << f
102
+ end
103
+ project.spec.files += cairo_files
104
+ end
105
+
106
+ # fix Hoe's incorrect guess.
107
+ project.spec.executables.clear
108
+
109
+ task(:release).prerequisites.reject! {|name| name == "clean"}
110
+ task(:release_to_rubyforge).prerequisites.reject! {|name| name == "clean"}
111
+
112
+ # for releasing
113
+ task :dist => [:docs] do
114
+ sh "./dist.sh", version
115
+ end
116
+ task :gem => [:docs]
117
+
118
+ # for documentation
119
+ langs = [
120
+ ["en", "English"],
121
+ ["ja", "日本語"],
122
+ ]
123
+
124
+ rcairo_doc_dir = File.expand_path(File.join(base_dir, "..", "rcairo-doc"))
125
+ rcairo_doc_css = File.join(rcairo_doc_dir, "doc.css")
126
+ rcairo_doc_title_image = File.join(rcairo_doc_dir, "rcairo-title.png")
127
+ doc_dir = "doc"
128
+ doc_index = File.join(doc_dir, "index.html")
129
+ doc_css = File.join(doc_dir, "doc.css")
130
+ doc_title_image = File.join(doc_dir, "rcairo-title.png")
131
+ task(doc_index).instance_variable_get("@actions").clear
132
+
133
+ file doc_dir do
134
+ mkdir_p doc_dir
135
+ end
136
+
137
+ file doc_title_image => [doc_dir, rcairo_doc_title_image] do
138
+ cp rcairo_doc_title_image, doc_title_image
139
+ end
140
+
141
+ file doc_css => [rcairo_doc_css, doc_title_image] do
142
+ cp rcairo_doc_css, doc_css
143
+ end
144
+
145
+ file doc_index => doc_css do
146
+ File.open(doc_index, "w") do |index|
147
+ index << <<-EOH
148
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
149
+ <html>
150
+ <head>
151
+ <title>rcairo reference manual</title>
152
+ <meta http-equiv="Content-type" content="text/html; charset=utf-8">
153
+ </head>
154
+
155
+ <body>
156
+ <h1>rcairo reference manual</h1>
157
+
158
+ <ul>
159
+ EOH
160
+
161
+ langs.each do |lang, native_lang|
162
+ index << <<-EOH
163
+ <li><a href="#{lang}/">#{native_lang}</a></li>
164
+ EOH
165
+ end
166
+
167
+ index << <<-EOH
168
+ </ui>
169
+
170
+ <p><a href="../">Up</a></p>
171
+ </body>
172
+ </html>
173
+ EOH
174
+ end
175
+ end
176
+
177
+ langs.each do |lang,|
178
+ lang_doc_dir = File.join(doc_dir, lang)
179
+ directory lang_doc_dir
180
+ lang_doc_index = File.join(lang_doc_dir, "index.html")
181
+ file doc_index => lang_doc_index
182
+ file lang_doc_index => [lang_doc_dir] do
183
+ lang_doc_dir = File.join(doc_dir, lang)
184
+ lang_rcairo_doc_dir = File.join(rcairo_doc_dir, lang)
185
+ cp Dir[File.join(lang_rcairo_doc_dir, "*.rd")], lang_doc_dir
186
+ ruby File.join(rcairo_doc_dir, "update-html.rb"), lang_doc_dir
187
+ ruby File.join(rcairo_doc_dir, "update-html.rb"), lang_doc_dir
188
+ rm Dir[File.join(lang_doc_dir, "*.{rd,rdc,rbl}")]
189
+ end
190
+ end
@@ -0,0 +1,91 @@
1
+ body
2
+ {
3
+ background-color: white;
4
+ margin: 1em;
5
+ }
6
+
7
+ h1
8
+ {
9
+ background-image: url(rcairo-title.png);
10
+ background-repeat: no-repeat;
11
+ background-position: right top;
12
+ padding-top: 50px;
13
+ }
14
+
15
+ h2
16
+ {
17
+ border-top: solid 1px black;
18
+ padding-top: 0.5em;
19
+ }
20
+
21
+ body > ul > li
22
+ {
23
+ line-height: 150%;
24
+ }
25
+
26
+ code
27
+ {
28
+ font: monospace;
29
+ font-style: italic;
30
+ }
31
+
32
+ dt
33
+ {
34
+ margin-bottom: 1em;
35
+ margin: 1.5em;
36
+ }
37
+
38
+ dt code
39
+ {
40
+ font-weight: bold;
41
+ padding: 0.5em;
42
+ background: #eeeeee;
43
+ border: solid 1px #aaaaaa;
44
+ }
45
+
46
+ dd
47
+ {
48
+ margin-bottom: 2em;
49
+ line-height: 150%;
50
+ padding: 1em;
51
+ padding-top: 0em;
52
+ border-bottom: 1px solid #ffaaaa;
53
+ border-right: 2px solid #ffaaaa;
54
+ }
55
+
56
+ pre
57
+ {
58
+ background: #ffeeee;
59
+ border: solid 1px #ffaaaa;
60
+ padding: 0.5em;
61
+ margin-left: 1em;
62
+ font: monospace;
63
+ }
64
+
65
+ em
66
+ {
67
+ color: #cb2327;
68
+ font-weight: bold;
69
+ }
70
+
71
+ div.header,
72
+ div.footer
73
+ {
74
+ background: #ffeeee;
75
+ border: solid 1px #ffaaaa;
76
+ }
77
+
78
+ div.header ul,
79
+ div.footer ul
80
+ {
81
+ padding-left: 1em;
82
+ }
83
+
84
+ div.header ul li,
85
+ div.footer ul li
86
+ {
87
+ display: inline;
88
+ background: #eeeeee;
89
+ border: solid 1px #aaaaaa;
90
+ padding: 0.5em 1em;
91
+ }
@@ -0,0 +1,38 @@
1
+ <?xml version="1.0" encoding="UTF-8" ?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+ <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
6
+ <head>
7
+ <meta http-equiv="Content-type" content="text/html; charset=UTF-8" />
8
+ <title>module Cairo::Antialias</title>
9
+ <link href="../doc.css" type="text/css" rel="stylesheet" />
10
+ </head>
11
+ <div class="footer">
12
+ <ul>
13
+ <li><a href="./">Index</a></li>
14
+ </ul>
15
+
16
+ </div>
17
+ </body>
18
+
19
+ <h1><a name="label-0" id="label-0">module Cairo::Antialias</a></h1><!-- RDLabel: "module Cairo::Antialias" -->
20
+ <h2><a name="label-1" id="label-1">Constants</a></h2><!-- RDLabel: "Constants" -->
21
+ <dl>
22
+ <dt><a name="label-2" id="label-2"><code>DEFAULT</code></a></dt><!-- RDLabel: "DEFAULT" -->
23
+ <dt><a name="label-3" id="label-3"><code>GRAY</code></a></dt><!-- RDLabel: "GRAY" -->
24
+ <dt><a name="label-4" id="label-4"><code>NONE</code></a></dt><!-- RDLabel: "NONE" -->
25
+ <dt><a name="label-5" id="label-5"><code>SUBPIXEL</code></a></dt><!-- RDLabel: "SUBPIXEL" -->
26
+ </dl>
27
+ <h2><a name="label-6" id="label-6">See Also</a></h2><!-- RDLabel: "See Also" -->
28
+ <h2><a name="label-7" id="label-7">ChangeLog</a></h2><!-- RDLabel: "ChangeLog" -->
29
+
30
+ <div class="footer">
31
+ <ul>
32
+ <li><a href="./">Index</a></li>
33
+ </ul>
34
+
35
+ </div>
36
+ </body>
37
+
38
+ </html>
@@ -0,0 +1,47 @@
1
+ <?xml version="1.0" encoding="UTF-8" ?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+ <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
6
+ <head>
7
+ <meta http-equiv="Content-type" content="text/html; charset=UTF-8" />
8
+ <title>class Cairo::ClipNotRepresentableError</title>
9
+ <link href="../doc.css" type="text/css" rel="stylesheet" />
10
+ </head>
11
+ <div class="footer">
12
+ <ul>
13
+ <li><a href="./">Index</a></li>
14
+ </ul>
15
+
16
+ </div>
17
+ </body>
18
+
19
+ <h1><a name="label-0" id="label-0">class Cairo::ClipNotRepresentableError</a></h1><!-- RDLabel: "class Cairo::ClipNotRepresentableError" -->
20
+ <h2><a name="label-1" id="label-1">Object Hierarchy</a></h2><!-- RDLabel: "Object Hierarchy" -->
21
+ <ul>
22
+ <li>Object
23
+ <ul>
24
+ <li>Exception
25
+ <ul>
26
+ <li>StandardError
27
+ <ul>
28
+ <li><a href="cairo-error.html#label-0">Cairo::Error</a>
29
+ <ul>
30
+ <li>Cairo::ClipNotRepresentableError</li>
31
+ </ul></li>
32
+ </ul></li>
33
+ </ul></li>
34
+ </ul></li>
35
+ </ul>
36
+ <h2><a name="label-2" id="label-2">See Also</a></h2><!-- RDLabel: "See Also" -->
37
+ <h2><a name="label-3" id="label-3">ChangeLog</a></h2><!-- RDLabel: "ChangeLog" -->
38
+
39
+ <div class="footer">
40
+ <ul>
41
+ <li><a href="./">Index</a></li>
42
+ </ul>
43
+
44
+ </div>
45
+ </body>
46
+
47
+ </html>
@@ -0,0 +1,69 @@
1
+ <?xml version="1.0" encoding="UTF-8" ?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+ <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
6
+ <head>
7
+ <meta http-equiv="Content-type" content="text/html; charset=UTF-8" />
8
+ <title>class Cairo::Color::Base</title>
9
+ <link href="../doc.css" type="text/css" rel="stylesheet" />
10
+ </head>
11
+ <div class="footer">
12
+ <ul>
13
+ <li><a href="./">Index</a></li>
14
+ </ul>
15
+
16
+ </div>
17
+ </body>
18
+
19
+ <h1><a name="label-0" id="label-0">class Cairo::Color::Base</a></h1><!-- RDLabel: "class Cairo::Color::Base" -->
20
+ <h2><a name="label-1" id="label-1">Object Hierarchy</a></h2><!-- RDLabel: "Object Hierarchy" -->
21
+ <ul>
22
+ <li>Object
23
+ <ul>
24
+ <li>Cairo::Color::Base</li>
25
+ </ul></li>
26
+ </ul>
27
+ <h2><a name="label-2" id="label-2">Class Methods</a></h2><!-- RDLabel: "Class Methods" -->
28
+ <dl>
29
+ <dt><a name="label-3" id="label-3"><code>Cairo::Color::Base.new</code></a></dt><!-- RDLabel: "Cairo::Color::Base.new" -->
30
+ <dd>
31
+ <ul>
32
+ <li>Returns: self: <em>FIXME</em></li>
33
+ </ul></dd>
34
+ </dl>
35
+ <h2><a name="label-4" id="label-4">Instance Methods</a></h2><!-- RDLabel: "Instance Methods" -->
36
+ <dl>
37
+ <dt><a name="label-5" id="label-5"><code>a</code></a></dt><!-- RDLabel: "a" -->
38
+ <dd>
39
+ <ul>
40
+ <li>Returns: self: <em>FIXME</em></li>
41
+ </ul></dd>
42
+ <dt><a name="label-6" id="label-6"><code>a=</code></a></dt><!-- RDLabel: "a=" -->
43
+ <dd>
44
+ <ul>
45
+ <li>Returns: self: <em>FIXME</em></li>
46
+ </ul></dd>
47
+ <dt><a name="label-7" id="label-7"><code>alpha</code></a></dt><!-- RDLabel: "alpha" -->
48
+ <dd>
49
+ <ul>
50
+ <li>Returns: self: <em>FIXME</em></li>
51
+ </ul></dd>
52
+ <dt><a name="label-8" id="label-8"><code>alpha=</code></a></dt><!-- RDLabel: "alpha=" -->
53
+ <dd>
54
+ <ul>
55
+ <li>Returns: self: <em>FIXME</em></li>
56
+ </ul></dd>
57
+ </dl>
58
+ <h2><a name="label-9" id="label-9">See Also</a></h2><!-- RDLabel: "See Also" -->
59
+ <h2><a name="label-10" id="label-10">ChangeLog</a></h2><!-- RDLabel: "ChangeLog" -->
60
+
61
+ <div class="footer">
62
+ <ul>
63
+ <li><a href="./">Index</a></li>
64
+ </ul>
65
+
66
+ </div>
67
+ </body>
68
+
69
+ </html>
@@ -0,0 +1,157 @@
1
+ <?xml version="1.0" encoding="UTF-8" ?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+ <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
6
+ <head>
7
+ <meta http-equiv="Content-type" content="text/html; charset=UTF-8" />
8
+ <title>class Cairo::Color::CMYK</title>
9
+ <link href="../doc.css" type="text/css" rel="stylesheet" />
10
+ </head>
11
+ <div class="footer">
12
+ <ul>
13
+ <li><a href="./">Index</a></li>
14
+ </ul>
15
+
16
+ </div>
17
+ </body>
18
+
19
+ <h1><a name="label-0" id="label-0">class Cairo::Color::CMYK</a></h1><!-- RDLabel: "class Cairo::Color::CMYK" -->
20
+ <h2><a name="label-1" id="label-1">Object Hierarchy</a></h2><!-- RDLabel: "Object Hierarchy" -->
21
+ <ul>
22
+ <li>Object
23
+ <ul>
24
+ <li><a href="cairo-color-base.html#label-0">Cairo::Color::Base</a>
25
+ <ul>
26
+ <li>Cairo::Color::CMYK</li>
27
+ </ul></li>
28
+ </ul></li>
29
+ </ul>
30
+ <h2><a name="label-2" id="label-2">Class Methods</a></h2><!-- RDLabel: "Class Methods" -->
31
+ <dl>
32
+ <dt><a name="label-3" id="label-3"><code>Cairo::Color::CMYK.new</code></a></dt><!-- RDLabel: "Cairo::Color::CMYK.new" -->
33
+ <dd>
34
+ <ul>
35
+ <li>Returns: self: <em>FIXME</em></li>
36
+ </ul></dd>
37
+ </dl>
38
+ <h2><a name="label-4" id="label-4">Instance Methods</a></h2><!-- RDLabel: "Instance Methods" -->
39
+ <dl>
40
+ <dt><a name="label-5" id="label-5"><code>c</code></a></dt><!-- RDLabel: "c" -->
41
+ <dd>
42
+ <ul>
43
+ <li>Returns: self: <em>FIXME</em></li>
44
+ </ul></dd>
45
+ <dt><a name="label-6" id="label-6"><code>c=</code></a></dt><!-- RDLabel: "c=" -->
46
+ <dd>
47
+ <ul>
48
+ <li>Returns: self: <em>FIXME</em></li>
49
+ </ul></dd>
50
+ <dt><a name="label-7" id="label-7"><code>cyan</code></a></dt><!-- RDLabel: "cyan" -->
51
+ <dd>
52
+ <ul>
53
+ <li>Returns: self: <em>FIXME</em></li>
54
+ </ul></dd>
55
+ <dt><a name="label-8" id="label-8"><code>cyan=</code></a></dt><!-- RDLabel: "cyan=" -->
56
+ <dd>
57
+ <ul>
58
+ <li>Returns: self: <em>FIXME</em></li>
59
+ </ul></dd>
60
+ <dt><a name="label-9" id="label-9"><code>k</code></a></dt><!-- RDLabel: "k" -->
61
+ <dd>
62
+ <ul>
63
+ <li>Returns: self: <em>FIXME</em></li>
64
+ </ul></dd>
65
+ <dt><a name="label-10" id="label-10"><code>k=</code></a></dt><!-- RDLabel: "k=" -->
66
+ <dd>
67
+ <ul>
68
+ <li>Returns: self: <em>FIXME</em></li>
69
+ </ul></dd>
70
+ <dt><a name="label-11" id="label-11"><code>key_plate</code></a></dt><!-- RDLabel: "key_plate" -->
71
+ <dd>
72
+ <ul>
73
+ <li>Returns: self: <em>FIXME</em></li>
74
+ </ul></dd>
75
+ <dt><a name="label-12" id="label-12"><code>key_plate=</code></a></dt><!-- RDLabel: "key_plate=" -->
76
+ <dd>
77
+ <ul>
78
+ <li>Returns: self: <em>FIXME</em></li>
79
+ </ul></dd>
80
+ <dt><a name="label-13" id="label-13"><code>m</code></a></dt><!-- RDLabel: "m" -->
81
+ <dd>
82
+ <ul>
83
+ <li>Returns: self: <em>FIXME</em></li>
84
+ </ul></dd>
85
+ <dt><a name="label-14" id="label-14"><code>m=</code></a></dt><!-- RDLabel: "m=" -->
86
+ <dd>
87
+ <ul>
88
+ <li>Returns: self: <em>FIXME</em></li>
89
+ </ul></dd>
90
+ <dt><a name="label-15" id="label-15"><code>magenta</code></a></dt><!-- RDLabel: "magenta" -->
91
+ <dd>
92
+ <ul>
93
+ <li>Returns: self: <em>FIXME</em></li>
94
+ </ul></dd>
95
+ <dt><a name="label-16" id="label-16"><code>magenta=</code></a></dt><!-- RDLabel: "magenta=" -->
96
+ <dd>
97
+ <ul>
98
+ <li>Returns: self: <em>FIXME</em></li>
99
+ </ul></dd>
100
+ <dt><a name="label-17" id="label-17"><code>to_a</code></a></dt><!-- RDLabel: "to_a" -->
101
+ <dd>
102
+ <ul>
103
+ <li>Returns: self: <em>FIXME</em></li>
104
+ </ul></dd>
105
+ <dt><a name="label-18" id="label-18"><code>to_ary</code></a></dt><!-- RDLabel: "to_ary" -->
106
+ <dd>
107
+ <ul>
108
+ <li>Returns: self: <em>FIXME</em></li>
109
+ </ul></dd>
110
+ <dt><a name="label-19" id="label-19"><code>to_cmyk</code></a></dt><!-- RDLabel: "to_cmyk" -->
111
+ <dd>
112
+ <ul>
113
+ <li>Returns: self: <em>FIXME</em></li>
114
+ </ul></dd>
115
+ <dt><a name="label-20" id="label-20"><code>to_hsv</code></a></dt><!-- RDLabel: "to_hsv" -->
116
+ <dd>
117
+ <ul>
118
+ <li>Returns: self: <em>FIXME</em></li>
119
+ </ul></dd>
120
+ <dt><a name="label-21" id="label-21"><code>to_rgb</code></a></dt><!-- RDLabel: "to_rgb" -->
121
+ <dd>
122
+ <ul>
123
+ <li>Returns: self: <em>FIXME</em></li>
124
+ </ul></dd>
125
+ <dt><a name="label-22" id="label-22"><code>y</code></a></dt><!-- RDLabel: "y" -->
126
+ <dd>
127
+ <ul>
128
+ <li>Returns: self: <em>FIXME</em></li>
129
+ </ul></dd>
130
+ <dt><a name="label-23" id="label-23"><code>y=</code></a></dt><!-- RDLabel: "y=" -->
131
+ <dd>
132
+ <ul>
133
+ <li>Returns: self: <em>FIXME</em></li>
134
+ </ul></dd>
135
+ <dt><a name="label-24" id="label-24"><code>yellow</code></a></dt><!-- RDLabel: "yellow" -->
136
+ <dd>
137
+ <ul>
138
+ <li>Returns: self: <em>FIXME</em></li>
139
+ </ul></dd>
140
+ <dt><a name="label-25" id="label-25"><code>yellow=</code></a></dt><!-- RDLabel: "yellow=" -->
141
+ <dd>
142
+ <ul>
143
+ <li>Returns: self: <em>FIXME</em></li>
144
+ </ul></dd>
145
+ </dl>
146
+ <h2><a name="label-26" id="label-26">See Also</a></h2><!-- RDLabel: "See Also" -->
147
+ <h2><a name="label-27" id="label-27">ChangeLog</a></h2><!-- RDLabel: "ChangeLog" -->
148
+
149
+ <div class="footer">
150
+ <ul>
151
+ <li><a href="./">Index</a></li>
152
+ </ul>
153
+
154
+ </div>
155
+ </body>
156
+
157
+ </html>