/app-text/gonzui/files/gonzui-1.2-r2-gentoo.patch

https://github.com/1000timesdead/portage · Patch · 238 lines · 204 code · 34 blank · 0 comment · 0 complexity · 9bbd9f4b30c7d53b4021f819ddddcad4 MD5 · raw file

  1. diff -Naur gonzui-1.2.orig/Makefile.am gonzui-1.2/Makefile.am
  2. --- gonzui-1.2.orig/Makefile.am 2005-03-25 18:00:20.000000000 +0900
  3. +++ gonzui-1.2/Makefile.am 2011-01-14 11:51:36.207687824 +0900
  4. @@ -28,7 +28,7 @@
  5. gonzui.rb.in > gonzui.rb
  6. chmod -w gonzui.rb
  7. -gonzuirc.sample.in: gonzuirc.sample.in.in
  8. +gonzuirc.sample.in: gonzui.rb gonzuirc.sample.in.in
  9. ruby gonzui-db --gonzuirc gonzuirc.sample.in.in --dump-config \
  10. > gonzuirc.sample.in
  11. diff -Naur gonzui-1.2.orig/acinclude.m4 gonzui-1.2/acinclude.m4
  12. --- gonzui-1.2.orig/acinclude.m4 2005-02-16 23:11:11.000000000 +0900
  13. +++ gonzui-1.2/acinclude.m4 2011-01-14 15:52:41.631014210 +0900
  14. @@ -54,7 +54,8 @@
  15. RUBY_CFLAGS="`ruby -rmkmf -e 'puts Config::MAKEFILE_CONFIG["CFLAGS"]'`"
  16. RUBY_DLEXT="`ruby -rmkmf -e 'puts Config::MAKEFILE_CONFIG["DLEXT"]'`"
  17. RUBY_DLDFLAGS="`ruby -rmkmf -e 'puts Config::MAKEFILE_CONFIG["DLDFLAGS"]'`"
  18. - RUBY_LIBS="`ruby -rmkmf -e 'puts Config::MAKEFILE_CONFIG["LIBS"]'`"
  19. + RUBY_SO_NAME="`ruby -rmkmf -e 'puts Config::MAKEFILE_CONFIG["RUBY_SO_NAME"]'`"
  20. + RUBY_LIBS="`ruby -rmkmf -e 'puts Config::MAKEFILE_CONFIG["LIBRUBYARG_SHARED"]+" "+Config::MAKEFILE_CONFIG["LIBS"]'`"
  21. RUBY_HDRHDIR="`ruby -rmkmf -e 'puts Config::CONFIG["archdir"]'`"
  22. RUBY_CPPFLAGS='-I. -I$(RUBY_HDRHDIR)'
  23. changequote([, ])
  24. @@ -64,6 +65,7 @@
  25. AC_SUBST(RUBY_CFLAGS)
  26. AC_SUBST(RUBY_DLEXT)
  27. AC_SUBST(RUBY_DLDFLAGS)
  28. + AC_SUBST(RUBY_SO_NAME)
  29. AC_SUBST(RUBY_LIBS)
  30. AC_SUBST(RUBY_HDRHDIR)
  31. AC_SUBST(RUBY_CPPFLAGS)
  32. diff -Naur gonzui-1.2.orig/configure.ac gonzui-1.2/configure.ac
  33. --- gonzui-1.2.orig/configure.ac 2005-07-05 00:07:52.000000000 +0900
  34. +++ gonzui-1.2/configure.ac 2011-01-14 11:51:36.207687824 +0900
  35. @@ -9,7 +9,6 @@
  36. AC_PROG_CC
  37. AC_PROG_INSTALL
  38. AC_PROG_MAKE_SET
  39. -AM_MAINTAINER_MODE
  40. AM_PATH_RUBY
  41. AM_RUN_LOG_DIRS
  42. AM_USER_GROUP
  43. diff -Naur gonzui-1.2.orig/gonzui/Makefile.am gonzui-1.2/gonzui/Makefile.am
  44. --- gonzui-1.2.orig/gonzui/Makefile.am 2005-03-17 15:48:44.000000000 +0900
  45. +++ gonzui-1.2/gonzui/Makefile.am 2011-01-14 17:58:12.112150295 +0900
  46. @@ -51,16 +51,16 @@
  47. SUFFIXES = .c .o # for automake 1.4-p6
  48. .c.o:
  49. - $(RUBY_CC) $(RUBY_CFLAGS) $(RUBY_CPPFLAGS) -c $<
  50. + $(RUBY_CC) $(CFLAGS) $(RUBY_CFLAGS) $(RUBY_CPPFLAGS) -c $<
  51. $(TEXTTOKENIZER_DLLIB): $(TEXTTOKENIZER_OBJS)
  52. rm -f $@
  53. - $(RUBY_LDSHARED) $(RUBY_DLDFLAGS) -o $@ $(TEXTTOKENIZER_OBJS) $(RUBY_LIBS)
  54. + $(RUBY_LDSHARED) $(LDFLAGS) $(RUBY_DLDFLAGS) -o $@ $(TEXTTOKENIZER_OBJS) $(RUBY_LIBS)
  55. $(DELTA_DLLIB): $(DELTA_OBJS)
  56. rm -f $@
  57. - $(RUBY_LDSHARED) $(RUBY_DLDFLAGS) -o $@ $(DELTA_OBJS) $(RUBY_LIBS)
  58. + $(RUBY_LDSHARED) $(LDFLAGS) $(RUBY_DLDFLAGS) -o $@ $(DELTA_OBJS) $(RUBY_LIBS)
  59. $(AUTOPACK_DLLIB): $(AUTOPACK_OBJS)
  60. rm -f $@
  61. - $(RUBY_LDSHARED) $(RUBY_DLDFLAGS) -o $@ $(AUTOPACK_OBJS) $(RUBY_LIBS)
  62. + $(RUBY_LDSHARED) $(LDFLAGS) $(RUBY_DLDFLAGS) -o $@ $(AUTOPACK_OBJS) $(RUBY_LIBS)
  63. diff -Naur gonzui-1.2.orig/gonzui/webapp/Makefile.am gonzui-1.2/gonzui/webapp/Makefile.am
  64. --- gonzui-1.2.orig/gonzui/webapp/Makefile.am 2005-03-14 18:24:17.000000000 +0900
  65. +++ gonzui-1.2/gonzui/webapp/Makefile.am 2011-01-14 17:58:36.352009521 +0900
  66. @@ -24,8 +24,8 @@
  67. SUFFIXES = .c .o # for automake 1.4-p6
  68. .c.o:
  69. - $(RUBY_CC) $(RUBY_CFLAGS) $(RUBY_CPPFLAGS) -c $<
  70. + $(RUBY_CC) $(CFLAGS) $(RUBY_CFLAGS) $(RUBY_CPPFLAGS) -c $<
  71. $(XMLFORMATTER_DLLIB): $(XMLFORMATTER_OBJS)
  72. rm -f $@
  73. - $(RUBY_LDSHARED) $(RUBY_DLDFLAGS) -o $@ $(XMLFORMATTER_OBJS) $(RUBY_LIBS)
  74. + $(RUBY_LDSHARED) $(LDFLAGS) $(RUBY_DLDFLAGS) -o $@ $(XMLFORMATTER_OBJS) $(RUBY_LIBS)
  75. diff -Naur gonzui-1.2.orig/langscan/Makefile.am gonzui-1.2/langscan/Makefile.am
  76. --- gonzui-1.2.orig/langscan/Makefile.am 2005-07-05 00:07:57.000000000 +0900
  77. +++ gonzui-1.2/langscan/Makefile.am 2011-01-14 11:51:36.207687824 +0900
  78. @@ -26,6 +26,7 @@
  79. brainfuck.rb \
  80. c.rb \
  81. css.rb \
  82. + ebuild.rb \
  83. elisp.rb \
  84. java.rb \
  85. javascript.rb \
  86. diff -Naur gonzui-1.2.orig/langscan/c/Makefile.am gonzui-1.2/langscan/c/Makefile.am
  87. --- gonzui-1.2.orig/langscan/c/Makefile.am 2005-03-20 21:08:25.000000000 +0900
  88. +++ gonzui-1.2/langscan/c/Makefile.am 2011-01-14 18:00:08.163475904 +0900
  89. @@ -35,9 +35,9 @@
  90. SUFFIXES = .c .o # for automake 1.4-p6
  91. .c.o:
  92. - $(RUBY_CC) $(RUBY_CFLAGS) $(RUBY_CPPFLAGS) -c $<
  93. + $(RUBY_CC) $(CFLAGS) $(RUBY_CFLAGS) $(RUBY_CPPFLAGS) -c $<
  94. $(LANGSCAN_C_DLLIB): $(LANGSCAN_C_OBJS)
  95. rm -f $@
  96. - $(RUBY_LDSHARED) $(RUBY_DLDFLAGS) -o $@ $(LANGSCAN_C_OBJS) $(RUBY_LIBS)
  97. + $(RUBY_LDSHARED) $(LDFLAGS) $(RUBY_DLDFLAGS) -o $@ $(LANGSCAN_C_OBJS) $(RUBY_LIBS)
  98. diff -Naur gonzui-1.2.orig/langscan/java/Makefile.am gonzui-1.2/langscan/java/Makefile.am
  99. --- gonzui-1.2.orig/langscan/java/Makefile.am 2005-03-20 21:08:39.000000000 +0900
  100. +++ gonzui-1.2/langscan/java/Makefile.am 2011-01-14 18:00:22.287393757 +0900
  101. @@ -27,7 +27,7 @@
  102. # We do this to workaround flex 2.5.4 issue because our .l
  103. # file could not be processed with flex 2.5.4.
  104. -javatok.c: javatok.l
  105. +javatok.c: javatok.l java.h
  106. flex -d -ojavatok.c javatok.l || cp javatok.c.dist javatok.c
  107. cmp -s javatok.c javatok.c.dist || cp javatok.c javatok.c.dist
  108. @@ -35,8 +35,8 @@
  109. SUFFIXES = .c .o # for automake 1.4-p6
  110. .c.o:
  111. - $(RUBY_CC) $(RUBY_CFLAGS) $(RUBY_CPPFLAGS) -c $<
  112. + $(RUBY_CC) $(CFLAGS) $(RUBY_CFLAGS) $(RUBY_CPPFLAGS) -c $<
  113. $(LANGSCAN_JAVA_DLLIB): $(LANGSCAN_JAVA_OBJS)
  114. rm -f $@
  115. - $(RUBY_LDSHARED) $(RUBY_DLDFLAGS) -o $@ $(LANGSCAN_JAVA_OBJS) $(RUBY_LIBS)
  116. + $(RUBY_LDSHARED) $(LDFLAGS) $(RUBY_DLDFLAGS) -o $@ $(LANGSCAN_JAVA_OBJS) $(RUBY_LIBS)
  117. diff -Naur gonzui-1.2.orig/langscan/javascript/Makefile.am gonzui-1.2/langscan/javascript/Makefile.am
  118. --- gonzui-1.2.orig/langscan/javascript/Makefile.am 2005-03-22 01:09:55.000000000 +0900
  119. +++ gonzui-1.2/langscan/javascript/Makefile.am 2011-01-14 18:00:41.683280922 +0900
  120. @@ -27,7 +27,7 @@
  121. # We do this to workaround flex 2.5.4 issue because our .l
  122. # file could not be processed with flex 2.5.4.
  123. -javascripttok.c: javascripttok.l
  124. +javascripttok.c: javascripttok.l javascript.h
  125. flex -d -ojavascripttok.c javascripttok.l || cp javascripttok.c.dist javascripttok.c
  126. cmp -s javascripttok.c javascripttok.c.dist || cp javascripttok.c javascripttok.c.dist
  127. @@ -35,8 +35,8 @@
  128. SUFFIXES = .c .o # for automake 1.4-p6
  129. .c.o:
  130. - $(RUBY_CC) $(RUBY_CFLAGS) $(RUBY_CPPFLAGS) -c $<
  131. + $(RUBY_CC) $(CFLAGS) $(RUBY_CFLAGS) $(RUBY_CPPFLAGS) -c $<
  132. $(LANGSCAN_JAVASCRIPT_DLLIB): $(LANGSCAN_JAVASCRIPT_OBJS)
  133. rm -f $@
  134. - $(RUBY_LDSHARED) $(RUBY_DLDFLAGS) -o $@ $(LANGSCAN_JAVASCRIPT_OBJS) $(RUBY_LIBS)
  135. + $(RUBY_LDSHARED) $(LDFLAGS) $(RUBY_DLDFLAGS) -o $@ $(LANGSCAN_JAVASCRIPT_OBJS) $(RUBY_LIBS)
  136. diff -Naur gonzui-1.2.orig/langscan/pairmatcher/Makefile.am gonzui-1.2/langscan/pairmatcher/Makefile.am
  137. --- gonzui-1.2.orig/langscan/pairmatcher/Makefile.am 2005-03-20 20:42:22.000000000 +0900
  138. +++ gonzui-1.2/langscan/pairmatcher/Makefile.am 2011-01-14 18:01:22.883041149 +0900
  139. @@ -21,9 +21,9 @@
  140. SUFFIXES = .c .o # for automake 1.4-p6
  141. .c.o:
  142. - $(RUBY_CC) $(RUBY_CFLAGS) $(RUBY_CPPFLAGS) -c $<
  143. + $(RUBY_CC) $(CFLAGS) $(RUBY_CFLAGS) $(RUBY_CPPFLAGS) -c $<
  144. $(PAIRMATCHER_C_DLLIB): $(PAIRMATCHER_C_OBJS)
  145. rm -f $@
  146. - $(RUBY_LDSHARED) $(RUBY_DLDFLAGS) -o $@ $(PAIRMATCHER_C_OBJS) $(RUBY_LIBS)
  147. + $(RUBY_LDSHARED) $(LDFLAGS) $(RUBY_DLDFLAGS) -o $@ $(PAIRMATCHER_C_OBJS) $(RUBY_LIBS)
  148. diff -Naur gonzui-1.2.orig/langscan/php/Makefile.am gonzui-1.2/langscan/php/Makefile.am
  149. --- gonzui-1.2.orig/langscan/php/Makefile.am 2005-03-20 21:08:45.000000000 +0900
  150. +++ gonzui-1.2/langscan/php/Makefile.am 2011-01-14 18:01:41.290933978 +0900
  151. @@ -27,7 +27,7 @@
  152. # We do this to workaround flex 2.5.4 issue because our .l
  153. # file could not be processed with flex 2.5.4.
  154. -phptok.c: phptok.l
  155. +phptok.c: phptok.l php.h
  156. flex -F -8 -d -ophptok.c phptok.l || cp phptok.c.dist phptok.c
  157. cmp -s phptok.c phptok.c.dist || cp phptok.c phptok.c.dist
  158. @@ -35,8 +35,8 @@
  159. SUFFIXES = .c .o # for automake 1.4-p6
  160. .c.o:
  161. - $(RUBY_CC) $(RUBY_CFLAGS) $(RUBY_CPPFLAGS) -c $<
  162. + $(RUBY_CC) $(CFLAGS) $(RUBY_CFLAGS) $(RUBY_CPPFLAGS) -c $<
  163. $(LANGSCAN_PHP_DLLIB): $(LANGSCAN_PHP_OBJS)
  164. rm -f $@
  165. - $(RUBY_LDSHARED) $(RUBY_DLDFLAGS) -o $@ $(LANGSCAN_PHP_OBJS) $(RUBY_LIBS)
  166. + $(RUBY_LDSHARED) $(LDFLAGS) $(RUBY_DLDFLAGS) -o $@ $(LANGSCAN_PHP_OBJS) $(RUBY_LIBS)
  167. diff -Naur gonzui-1.2.orig/langscan/python/Makefile.am gonzui-1.2/langscan/python/Makefile.am
  168. --- gonzui-1.2.orig/langscan/python/Makefile.am 2005-03-20 21:08:58.000000000 +0900
  169. +++ gonzui-1.2/langscan/python/Makefile.am 2011-01-14 18:01:57.318840641 +0900
  170. @@ -27,7 +27,7 @@
  171. # We do this to workaround flex 2.5.4 issue because our .l
  172. # file could not be processed with flex 2.5.4.
  173. -pythontok.c: pythontok.l
  174. +pythontok.c: pythontok.l python.h
  175. flex -d -opythontok.c pythontok.l || cp pythontok.c.dist pythontok.c
  176. cmp -s pythontok.c pythontok.c.dist || cp pythontok.c pythontok.c.dist
  177. @@ -35,8 +35,8 @@
  178. SUFFIXES = .c .o # for automake 1.4-p6
  179. .c.o:
  180. - $(RUBY_CC) $(RUBY_CFLAGS) $(RUBY_CPPFLAGS) -c $<
  181. + $(RUBY_CC) $(CFLAGS) $(RUBY_CFLAGS) $(RUBY_CPPFLAGS) -c $<
  182. $(LANGSCAN_PYTHON_DLLIB): $(LANGSCAN_PYTHON_OBJS)
  183. rm -f $@
  184. - $(RUBY_LDSHARED) $(RUBY_DLDFLAGS) -o $@ $(LANGSCAN_PYTHON_OBJS) $(RUBY_LIBS)
  185. + $(RUBY_LDSHARED) $(LDFLAGS) $(RUBY_DLDFLAGS) -o $@ $(LANGSCAN_PYTHON_OBJS) $(RUBY_LIBS)
  186. diff -Naur gonzui-1.2.orig/langscan/sh/Makefile.am gonzui-1.2/langscan/sh/Makefile.am
  187. --- gonzui-1.2.orig/langscan/sh/Makefile.am 2005-04-08 21:42:40.000000000 +0900
  188. +++ gonzui-1.2/langscan/sh/Makefile.am 2011-01-14 17:59:52.227568573 +0900
  189. @@ -27,7 +27,7 @@
  190. # We do this to workaround flex 2.5.4 issue because our .l
  191. # file could not be processed with flex 2.5.4.
  192. -shtok.c: shtok.l
  193. +shtok.c: shtok.l sh.h
  194. flex -d -oshtok.c shtok.l || cp shtok.c.dist shtok.c
  195. cmp -s shtok.c shtok.c.dist || cp shtok.c shtok.c.dist
  196. @@ -35,8 +35,8 @@
  197. SUFFIXES = .c .o # for automake 1.4-p6
  198. .c.o:
  199. - $(RUBY_CC) $(RUBY_CFLAGS) $(RUBY_CPPFLAGS) -c $<
  200. + $(RUBY_CC) $(CFLAGS) $(RUBY_CFLAGS) $(RUBY_CPPFLAGS) -c $<
  201. $(LANGSCAN_SH_DLLIB): $(LANGSCAN_SH_OBJS)
  202. rm -f $@
  203. - $(RUBY_LDSHARED) $(RUBY_DLDFLAGS) -o $@ $(LANGSCAN_SH_OBJS) $(RUBY_LIBS)
  204. + $(RUBY_LDSHARED) $(LDFLAGS) $(RUBY_DLDFLAGS) -o $@ $(LANGSCAN_SH_OBJS) $(RUBY_LIBS)