Import package vendor original specs for necessary manipulations.

Wed, 25 Feb 2009 13:55:52 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 25 Feb 2009 13:55:52 +0100
changeset 112
6052d0605a74
parent 111
7f3c34b6208f
child 113
29f149b6e2be

Import package vendor original specs for necessary manipulations.

haxe/haxe.patch file | annotate | diff | comparison | revisions
haxe/haxe.sh file | annotate | diff | comparison | revisions
haxe/haxe.spec file | annotate | diff | comparison | revisions
haxe/haxe.vim file | annotate | diff | comparison | revisions
mtasc/mtasc.patch file | annotate | diff | comparison | revisions
mtasc/mtasc.sh file | annotate | diff | comparison | revisions
mtasc/mtasc.spec file | annotate | diff | comparison | revisions
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/haxe/haxe.patch	Wed Feb 25 13:55:52 2009 +0100
     1.3 @@ -0,0 +1,17 @@
     1.4 +Index: haxe/doc/install.ml
     1.5 +--- haxe/doc/install.ml.orig	2007-12-16 14:37:46 +0100
     1.6 ++++ haxe/doc/install.ml	2008-05-30 14:06:45 +0200
     1.7 +@@ -144,10 +144,10 @@
     1.8 + in
     1.9 + let startdir = Sys.getcwd() in
    1.10 + try
    1.11 +-	download();
    1.12 ++	(* download(); *)
    1.13 + 	compile();
    1.14 + 	Sys.chdir startdir;
    1.15 + with
    1.16 + 	Failure msg ->
    1.17 + 		Sys.chdir startdir;
    1.18 +-		prerr_endline msg; exit 1
    1.19 +\ No newline at end of file
    1.20 ++		prerr_endline msg; exit 1
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/haxe/haxe.sh	Wed Feb 25 13:55:52 2009 +0100
     2.3 @@ -0,0 +1,4 @@
     2.4 +#!/bin/sh
     2.5 +HAXE_LIBRARY_PATH="@l_prefix@/lib/haxe"
     2.6 +export HAXE_LIBRARY_PATH
     2.7 +@l_prefix@/libexec/haxe/haxe ${1+"$@"}
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/haxe/haxe.spec	Wed Feb 25 13:55:52 2009 +0100
     3.3 @@ -0,0 +1,97 @@
     3.4 +##
     3.5 +##  haxe.spec -- OpenPKG RPM Package Specification
     3.6 +##  Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/>
     3.7 +##
     3.8 +##  Permission to use, copy, modify, and distribute this software for
     3.9 +##  any purpose with or without fee is hereby granted, provided that
    3.10 +##  the above copyright notice and this permission notice appear in all
    3.11 +##  copies.
    3.12 +##
    3.13 +##  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
    3.14 +##  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
    3.15 +##  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
    3.16 +##  IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
    3.17 +##  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
    3.18 +##  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
    3.19 +##  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
    3.20 +##  USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
    3.21 +##  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
    3.22 +##  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
    3.23 +##  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    3.24 +##  SUCH DAMAGE.
    3.25 +##
    3.26 +
    3.27 +#   package version
    3.28 +%define       V_release  2.02
    3.29 +%define       V_snapshot 20081125
    3.30 +
    3.31 +#   package information
    3.32 +Name:         haxe
    3.33 +Summary:      Haxe Programming Language
    3.34 +URL:          http://haxe.org/
    3.35 +Vendor:       Nicolas Cannasse, Motion Twin
    3.36 +Packager:     OpenPKG Foundation e.V.
    3.37 +Distribution: OpenPKG Community
    3.38 +Class:        EVAL
    3.39 +Group:        Language
    3.40 +License:      GPL/BSD
    3.41 +Version:      %{V_release}.%{V_snapshot}
    3.42 +Release:      20081125
    3.43 +
    3.44 +#   list of sources
    3.45 +Source0:      ftp://ftp.openpkg.org/sources/CPY/haxe/haxe-%{V_snapshot}.tar.bz2
    3.46 +Source1:      haxe.sh
    3.47 +Source2:      haxe.vim
    3.48 +Patch0:       haxe.patch
    3.49 +
    3.50 +#   build information
    3.51 +Prefix:       %{l_prefix}
    3.52 +BuildRoot:    %{l_buildroot}
    3.53 +BuildPreReq:  OpenPKG, openpkg >= 20060823, ocaml
    3.54 +PreReq:       OpenPKG, openpkg >= 20060823
    3.55 +AutoReq:      no
    3.56 +AutoReqProv:  no
    3.57 +
    3.58 +%description
    3.59 +    haXe (pronounced as hex) is a multi-platform programming language,
    3.60 +    which can be compiled to Javascript, Flash, NekoVM and PHP.
    3.61 +
    3.62 +%track
    3.63 +    prog haxe = {
    3.64 +        version   = %{V_release}
    3.65 +        url       = http://haxe.org/download
    3.66 +        regex     = haxe-(__VER__)-linux\.tar\.gz
    3.67 +    }
    3.68 +
    3.69 +%prep
    3.70 +    %setup -q -n haxe
    3.71 +    %patch -p0
    3.72 +
    3.73 +%build
    3.74 +    %{l_shtool} subst \
    3.75 +        -e 's%"/usr/lib/libz.dylib".*"/lib/libz.so.1"%"%{l_prefix}/lib/libz.a"%' \
    3.76 +        haxe/doc/install.ml
    3.77 +    %{l_prefix}/bin/ocaml haxe/doc/install.ml
    3.78 +
    3.79 +%install
    3.80 +    rm -rf $RPM_BUILD_ROOT
    3.81 +    %{l_shtool} mkdir -f -p -m 755 \
    3.82 +        $RPM_BUILD_ROOT%{l_prefix}/bin \
    3.83 +        $RPM_BUILD_ROOT%{l_prefix}/libexec/haxe \
    3.84 +        $RPM_BUILD_ROOT%{l_prefix}/lib/haxe \
    3.85 +        $RPM_BUILD_ROOT%{l_prefix}/share/vim/syntax
    3.86 +    %{l_shtool} install -c -m 755 %{l_value -s -a} \
    3.87 +        %{SOURCE haxe.sh} $RPM_BUILD_ROOT%{l_prefix}/bin/haxe
    3.88 +    %{l_shtool} install -c -s -m 755 \
    3.89 +        bin/haxe $RPM_BUILD_ROOT%{l_prefix}/libexec/haxe/
    3.90 +    find haxe/std -name CVS -type d -print | xargs rm -rf
    3.91 +    cp -rp haxe/std/* $RPM_BUILD_ROOT%{l_prefix}/lib/haxe/
    3.92 +    %{l_shtool} install -c -m 644 \
    3.93 +        %{SOURCE haxe.vim} $RPM_BUILD_ROOT%{l_prefix}/share/vim/syntax/
    3.94 +    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
    3.95 +
    3.96 +%files -f files
    3.97 +
    3.98 +%clean
    3.99 +    rm -rf $RPM_BUILD_ROOT
   3.100 +
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/haxe/haxe.vim	Wed Feb 25 13:55:52 2009 +0100
     4.3 @@ -0,0 +1,265 @@
     4.4 +" Vim syntax file
     4.5 +" Language:     haxe
     4.6 +
     4.7 +" Please check :help haxe.vim for comments on some of the options available.
     4.8 +
     4.9 +"set errorformat=%f\:%l\:\ characters\ %c-%*[^\ ]\ %m,%f\:%l\:\ %m
    4.10 +set errorformat=%f\:%l\:\ characters\ %c-%*[^\ ]\ %m,%f\:%l\:\ %m
    4.11 +
    4.12 +" Quit when a syntax file was already loaded
    4.13 +if !exists("main_syntax")
    4.14 +  if version < 600
    4.15 +    syntax clear
    4.16 +  elseif exists("b:current_syntax")
    4.17 +    finish
    4.18 +  endif
    4.19 +  " we define it here so that included files can test for it
    4.20 +  let main_syntax='haxe'
    4.21 +endif
    4.22 +
    4.23 +" don't use standard HiLink, it will not work with included syntax files
    4.24 +if version < 508
    4.25 +  command! -nargs=+ HaxeHiLink hi link <args>
    4.26 +else
    4.27 +  command! -nargs=+ HaxeHiLink hi def link <args>
    4.28 +endif
    4.29 +
    4.30 +" some characters that cannot be in a haxe program (outside a string)
    4.31 +syn match haxeError "[\\@`]"
    4.32 +syn match haxeError "<<<\|=>\|<>\|||=\|&&=\|\*\/"
    4.33 +
    4.34 +" use separate name so that it can be deleted in haxecc.vim
    4.35 +syn match   haxeError2 "#\|=<"
    4.36 +HaxeHiLink haxeError2 haxeError
    4.37 +
    4.38 +
    4.39 +" keyword definitions
    4.40 +syn keyword haxeExternal	import extern package
    4.41 +syn keyword haxeConditional	if else switch
    4.42 +syn keyword haxeRepeat		while for do in
    4.43 +syn keyword haxeBoolean		true false
    4.44 +syn keyword haxeConstant	null
    4.45 +syn keyword haxeTypedef		this super
    4.46 +syn keyword haxeOperator	new cast 
    4.47 +syn keyword haxeType		Void Bool Int Float Dynamic
    4.48 +syn keyword haxeStatement	return
    4.49 +syn keyword haxeStorageClass    function var final typedef enum
    4.50 +" syn keyword haxeStatic		
    4.51 +syn keyword haxeExceptions      throw try catch finally untyped
    4.52 +syn keyword haxeAssert		assert
    4.53 +syn keyword haxeMethodDecl      synchronized throws
    4.54 +syn keyword haxeClassDecl       extends implements interface
    4.55 +syn match   haxeOperator "\.\.\."
    4.56 +" to differentiate the keyword class from MyClass.class we use a match here
    4.57 +syn match   haxeTypedef		"\.\s*\<class\>"ms=s+1
    4.58 +syn match   haxeClassDecl       "^class\>"
    4.59 +syn match   haxeClassDecl       "[^.]\s*\<class\>"ms=s+1
    4.60 +syn keyword haxeBranch		break continue nextgroup=haxeUserLabelRef skipwhite
    4.61 +syn match   haxeUserLabelRef    "\k\+" contained
    4.62 +syn keyword haxeScopeDecl       static public protected private abstract override 
    4.63 +
    4.64 +" haxe.lang.*
    4.65 +syn match haxeLangClass "\<System\>"
    4.66 +syn keyword haxeLangClass  Array BasicType Class Date DateTools EReg Hash IntHash IntIter Iterator Lambda List Math Md5 Reflect Std String StringBuf StringTools Xml XmlType
    4.67 +HaxeHiLink haxeLangClass		     haxeConstant
    4.68 +HaxeHiLink haxeLangObject		     haxeConstant
    4.69 +syn cluster haxeTop add=haxeLangObject,haxeLangClass
    4.70 +syn cluster haxeClasses add=haxeLangClass
    4.71 +
    4.72 +if filereadable(expand("<sfile>:p:h")."/haxeid.vim")
    4.73 +  source <sfile>:p:h/haxeid.vim
    4.74 +endif
    4.75 +
    4.76 +if exists("haxe_space_errors")
    4.77 +  if !exists("haxe_no_trail_space_error")
    4.78 +    syn match   haxeSpaceError  "\s\+$"
    4.79 +  endif
    4.80 +  if !exists("haxe_no_tab_space_error")
    4.81 +    syn match   haxeSpaceError  " \+\t"me=e-1
    4.82 +  endif
    4.83 +endif
    4.84 +
    4.85 +syn region  haxeLabelRegion     transparent matchgroup=haxeLabel start="\<case\>" matchgroup=NONE end=":" contains=haxeNumber,haxeCharacter
    4.86 +syn match   haxeUserLabel       "^\s*[_$a-zA-Z][_$a-zA-Z0-9_]*\s*:"he=e-1 contains=haxeLabel
    4.87 +syn keyword haxeLabel		default
    4.88 +
    4.89 +" The following cluster contains all haxe groups except the contained ones
    4.90 +syn cluster haxeTop add=haxeExternal,haxeError,haxeError,haxeBranch,haxeLabelRegion,haxeLabel,haxeConditional,haxeRepeat,haxeBoolean,haxeConstant,haxeTypedef,haxeOperator,haxeType,haxeType,haxeStatement,haxeStorageClass,haxeAssert,haxeExceptions,haxeMethodDecl,haxeClassDecl,haxeClassDecl,haxeClassDecl,haxeScopeDecl,haxeError,haxeError2,haxeUserLabel,haxeLangObject
    4.91 +
    4.92 +
    4.93 +" Comments
    4.94 +syn keyword haxeTodo		 contained TODO FIXME XXX
    4.95 +if exists("haxe_comment_strings")
    4.96 +  syn region  haxeCommentString    contained start=+"+ end=+"+ end=+$+ end=+\*/+me=s-1,he=s-1 contains=haxeSpecial,haxeCommentStar,haxeSpecialChar,@Spell
    4.97 +  syn region  haxeComment2String   contained start=+"+  end=+$\|"+  contains=haxeSpecial,haxeSpecialChar,@Spell
    4.98 +  syn match   haxeCommentCharacter contained "'\\[^']\{1,6\}'" contains=haxeSpecialChar
    4.99 +  syn match   haxeCommentCharacter contained "'\\''" contains=haxeSpecialChar
   4.100 +  syn match   haxeCommentCharacter contained "'[^\\]'"
   4.101 +  syn cluster haxeCommentSpecial add=haxeCommentString,haxeCommentCharacter,haxeNumber
   4.102 +  syn cluster haxeCommentSpecial2 add=haxeComment2String,haxeCommentCharacter,haxeNumber
   4.103 +endif
   4.104 +syn region  haxeComment		 start="/\*"  end="\*/" contains=@haxeCommentSpecial,haxeTodo,@Spell
   4.105 +syn match   haxeCommentStar      contained "^\s*\*[^/]"me=e-1
   4.106 +syn match   haxeCommentStar      contained "^\s*\*$"
   4.107 +syn match   haxeLineComment      "//.*" contains=@haxeCommentSpecial2,haxeTodo,@Spell
   4.108 +HaxeHiLink haxeCommentString haxeString
   4.109 +HaxeHiLink haxeComment2String haxeString
   4.110 +HaxeHiLink haxeCommentCharacter haxeCharacter
   4.111 +
   4.112 +syn cluster haxeTop add=haxeComment,haxeLineComment
   4.113 +
   4.114 +if exists("haxe_haxedoc") || main_syntax == 'jsp'
   4.115 +  syntax case ignore
   4.116 +  " syntax coloring for haxedoc comments (HTML)
   4.117 +  " syntax include @haxeHtml <sfile>:p:h/html.vim
   4.118 +  " unlet b:current_syntax
   4.119 +  syn region  haxeDocComment    start="/\*\*"  end="\*/" keepend contains=haxeCommentTitle,@haxeHtml,haxeDocTags,haxeTodo,@Spell
   4.120 +  syn region  haxeCommentTitle  contained matchgroup=haxeDocComment start="/\*\*"   matchgroup=haxeCommentTitle keepend end="\.$" end="\.[ \t\r<&]"me=e-1 end="[^{]@"me=s-2,he=s-1 end="\*/"me=s-1,he=s-1 contains=@haxeHtml,haxeCommentStar,haxeTodo,@Spell,haxeDocTags
   4.121 +
   4.122 +  syn region haxeDocTags  contained start="{@\(link\|linkplain\|inherit[Dd]oc\|doc[rR]oot\|value\)" end="}"
   4.123 +  syn match  haxeDocTags  contained "@\(see\|param\|exception\|throws\|since\)\s\+\S\+" contains=haxeDocParam
   4.124 +  syn match  haxeDocParam contained "\s\S\+"
   4.125 +  syn match  haxeDocTags  contained "@\(version\|author\|return\|deprecated\|serial\|serialField\|serialData\)\>"
   4.126 +  syntax case match
   4.127 +endif
   4.128 +
   4.129 +" match the special comment /**/
   4.130 +syn match   haxeComment		 "/\*\*/"
   4.131 +
   4.132 +" Strings and constants
   4.133 +syn match   haxeSpecialError     contained "\\."
   4.134 +syn match   haxeSpecialCharError contained "[^']"
   4.135 +syn match   haxeSpecialChar      contained "\\\([4-9]\d\|[0-3]\d\d\|[\"\\'ntbrf]\|u\x\{4\}\)"
   4.136 +syn match haxeEregEscape	contained "\(\\\\\|\\/\)"
   4.137 +syn region  haxeEreg		start=+\~\/+ end=+\/[gims]*+ contains=haxeEregEscape
   4.138 +
   4.139 +syn region  haxeString		start=+"+ end=+"+ contains=haxeSpecialChar,haxeSpecialError,@Spell
   4.140 +syn region  haxeSingleString  start=+'+ end=+'+ 
   4.141 +" next line disabled, it can cause a crash for a long line
   4.142 +"syn match   haxeStringError	  +"\([^"\\]\|\\.\)*$+
   4.143 +syn match   haxeCharacter	 "'[^']*'" contains=haxeSpecialChar,haxeSpecialCharError
   4.144 +syn match   haxeCharacter	 "'\\''" contains=haxeSpecialChar
   4.145 +syn match   haxeCharacter	 "'[^\\]'"
   4.146 +syn match   haxeNumber		 "\<\(0[0-7]*\|0[xX]\x\+\|\d\+\)[lL]\=\>"
   4.147 +"syn match   haxeNumber		 "\(\<\d\+\.\d*\|\.\d\+\)\([eE][-+]\=\d\+\)\=[fFdD]\="
   4.148 +syn match   haxeNumber		 "\(\<\d\+\.\d\+\)\([eE][-+]\=\d\+\)\=[fFdD]\="
   4.149 +syn match   haxeNumber		 "\<\d\+[eE][-+]\=\d\+[fFdD]\=\>"
   4.150 +syn match   haxeNumber		 "\<\d\+\([eE][-+]\=\d\+\)\=[fFdD]\>"
   4.151 +
   4.152 +
   4.153 +syn region haxeCondIf start="#if \+!\?" end="\W" skip="([A-Za-z0-9_ |&!]\+)"
   4.154 +syn region haxeCondElse start="#else \+!\?" end="\W" skip="([A-Za-z0-9_ |&!]\+)"
   4.155 +syn match haxeCondEnd "#end"
   4.156 +syn match haxeCondError "#else *$"
   4.157 +
   4.158 +" unicode characters
   4.159 +syn match   haxeSpecial "\\u\d\{4\}"
   4.160 +
   4.161 +syn cluster haxeTop add=haxeString,haxeCharacter,haxeNumber,haxeSpecial,haxeStringError
   4.162 +
   4.163 +if exists("haxe_highlight_functions")
   4.164 +  if haxe_highlight_functions == "indent"
   4.165 +    syn match  haxeFuncDef "^\(\t\| \{8\}\)[_$a-zA-Z][_$a-zA-Z0-9_. \[\]]*([^-+*/()]*)" contains=haxeScopeDecl,haxeType,haxeStorageClass,@haxeClasses
   4.166 +    syn region haxeFuncDef start=+^\(\t\| \{8\}\)[$_a-zA-Z][$_a-zA-Z0-9_. \[\]]*([^-+*/()]*,\s*+ end=+)+ contains=haxeScopeDecl,haxeType,haxeStorageClass,@haxeClasses
   4.167 +    syn match  haxeFuncDef "^  [$_a-zA-Z][$_a-zA-Z0-9_. \[\]]*([^-+*/()]*)" contains=haxeScopeDecl,haxeType,haxeStorageClass,@haxeClasses
   4.168 +    syn region haxeFuncDef start=+^  [$_a-zA-Z][$_a-zA-Z0-9_. \[\]]*([^-+*/()]*,\s*+ end=+)+ contains=haxeScopeDecl,haxeType,haxeStorageClass,@haxeClasses
   4.169 +  else
   4.170 +    " This line catches method declarations at any indentation>0, but it assumes
   4.171 +    " two things:
   4.172 +    "   1. class names are always capitalized (ie: Button)
   4.173 +    "   2. method names are never capitalized (except constructors, of course)
   4.174 +    syn region haxeFuncDef start=+^\s\+\(\(public\|protected\|private\|static\|abstract\|override\|final\|native\|synchronized\)\s\+\)*\(\(void\|boolean\|char\|byte\|short\|int\|long\|float\|double\|\([A-Za-z_][A-Za-z0-9_$]*\.\)*[A-Z][A-Za-z0-9_$]*\)\(\[\]\)*\s\+[a-z][A-Za-z0-9_$]*\|[A-Z][A-Za-z0-9_$]*\)\s*(+ end=+)+ contains=haxeScopeDecl,haxeType,haxeStorageClass,haxeComment,haxeLineComment,@haxeClasses
   4.175 +  endif
   4.176 +  syn match  haxeBraces  "[{}]"
   4.177 +  syn cluster haxeTop add=haxeFuncDef,haxeBraces
   4.178 +endif
   4.179 +
   4.180 +if exists("haxe_mark_braces_in_parens_as_errors")
   4.181 +  syn match haxeInParen		 contained "[{}]"
   4.182 +  HaxeHiLink haxeInParen	haxeError
   4.183 +  syn cluster haxeTop add=haxeInParen
   4.184 +endif
   4.185 +
   4.186 +" catch errors caused by wrong parenthesis
   4.187 +syn region  haxeParenT  transparent matchgroup=haxeParen  start="("  end=")" contains=@haxeTop,haxeParenT1
   4.188 +syn region  haxeParenT1 transparent matchgroup=haxeParen1 start="(" end=")" contains=@haxeTop,haxeParenT2 contained
   4.189 +syn region  haxeParenT2 transparent matchgroup=haxeParen2 start="(" end=")" contains=@haxeTop,haxeParenT  contained
   4.190 +syn match   haxeParenError       ")"
   4.191 +HaxeHiLink haxeParenError       haxeError
   4.192 +
   4.193 +if !exists("haxe_minlines")
   4.194 +  let haxe_minlines = 10
   4.195 +endif
   4.196 +exec "syn sync ccomment haxeComment minlines=" . haxe_minlines
   4.197 +
   4.198 +" The default highlighting.
   4.199 +if version >= 508 || !exists("did_haxe_syn_inits")
   4.200 +  if version < 508
   4.201 +    let did_haxe_syn_inits = 1
   4.202 +  endif
   4.203 +  HaxeHiLink haxeFuncDef		Function
   4.204 +  HaxeHiLink haxeBraces		Function
   4.205 +  HaxeHiLink haxeBranch		Conditional
   4.206 +  HaxeHiLink haxeUserLabelRef	haxeUserLabel
   4.207 +  HaxeHiLink haxeLabel		Label
   4.208 +  HaxeHiLink haxeUserLabel		Label
   4.209 +  HaxeHiLink haxeConditional	Conditional
   4.210 +  HaxeHiLink haxeRepeat		Repeat
   4.211 +  HaxeHiLink haxeExceptions		Exception
   4.212 +  HaxeHiLink haxeAssert		Statement
   4.213 +  HaxeHiLink haxeStatic MoreMsg
   4.214 +  HaxeHiLink haxeStorageClass	StorageClass
   4.215 +  HaxeHiLink haxeMethodDecl		haxeStorageClass
   4.216 +  HaxeHiLink haxeClassDecl		haxeStorageClass
   4.217 +  HaxeHiLink haxeScopeDecl		haxeStorageClass
   4.218 +  HaxeHiLink haxeBoolean		Boolean
   4.219 +  HaxeHiLink haxeSpecial		Special
   4.220 +  HaxeHiLink haxeSpecialError	Error
   4.221 +  HaxeHiLink haxeSpecialCharError	Error
   4.222 +  HaxeHiLink haxeString		String
   4.223 +  HaxeHiLink haxeSingleString	String
   4.224 +  HaxeHiLink haxeEreg Special
   4.225 +  HaxeHiLink haxeEregEscape Special
   4.226 +  HaxeHiLink haxeCharacter		Character
   4.227 +  HaxeHiLink haxeSpecialChar	SpecialChar
   4.228 +  HaxeHiLink haxeNumber		Number
   4.229 +  HaxeHiLink haxeError		Error
   4.230 +  HaxeHiLink haxeStringError	Error
   4.231 +  HaxeHiLink haxeStatement		Statement
   4.232 +  HaxeHiLink haxeOperator		Operator
   4.233 +  HaxeHiLink haxeComment		Comment
   4.234 +  HaxeHiLink haxeDocComment		Comment
   4.235 +  HaxeHiLink haxeLineComment	Comment
   4.236 +  HaxeHiLink haxeConstant		Constant
   4.237 +  HaxeHiLink haxeTypedef		Typedef
   4.238 +  HaxeHiLink haxeTodo		Todo
   4.239 +
   4.240 +  HaxeHiLink haxeCommentTitle	SpecialComment
   4.241 +  HaxeHiLink haxeDocTags		Special
   4.242 +  HaxeHiLink haxeDocParam		Function
   4.243 +  HaxeHiLink haxeCommentStar	haxeComment
   4.244 +
   4.245 +  HaxeHiLink haxeType		Type
   4.246 +  HaxeHiLink haxeExternal		Include
   4.247 +
   4.248 +  HaxeHiLink htmlComment		Special
   4.249 +  HaxeHiLink htmlCommentPart	Special
   4.250 +  HaxeHiLink haxeSpaceError		Error
   4.251 +
   4.252 +  HaxeHiLink haxeCondIf Macro
   4.253 +  HaxeHiLink haxeCondElse Macro
   4.254 +  HaxeHiLink haxeCondEnd Macro
   4.255 +  HaxeHiLink haxeCondError Error
   4.256 +endif
   4.257 +
   4.258 +delcommand HaxeHiLink
   4.259 +
   4.260 +let b:current_syntax = "haxe"
   4.261 +
   4.262 +if main_syntax == 'haxe'
   4.263 +  unlet main_syntax
   4.264 +endif
   4.265 +
   4.266 +let b:spell_options="contained"
   4.267 +
   4.268 +" vim: ts=8
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/mtasc/mtasc.patch	Wed Feb 25 13:55:52 2009 +0100
     5.3 @@ -0,0 +1,17 @@
     5.4 +Index: install.ml
     5.5 +--- install.ml.orig	2006-08-02 17:59:19 +0200
     5.6 ++++ install.ml	2008-05-30 17:49:27 +0200
     5.7 +@@ -104,10 +104,10 @@
     5.8 + in
     5.9 + let startdir = Sys.getcwd() in
    5.10 + try
    5.11 +-	download();
    5.12 ++	(* download(); *)
    5.13 + 	compile();
    5.14 + 	Sys.chdir startdir;
    5.15 + with
    5.16 + 	Failure msg -> 
    5.17 + 		Sys.chdir startdir;
    5.18 +-		prerr_endline msg; exit 1
    5.19 +\ No newline at end of file
    5.20 ++		prerr_endline msg; exit 1
     6.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.2 +++ b/mtasc/mtasc.sh	Wed Feb 25 13:55:52 2009 +0100
     6.3 @@ -0,0 +1,2 @@
     6.4 +#!/bin/sh
     6.5 +@l_prefix@/lib/mtasc/@tool@ ${1+"$@"}
     7.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     7.2 +++ b/mtasc/mtasc.spec	Wed Feb 25 13:55:52 2009 +0100
     7.3 @@ -0,0 +1,95 @@
     7.4 +##
     7.5 +##  mtasc.spec -- OpenPKG RPM Package Specification
     7.6 +##  Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/>
     7.7 +##
     7.8 +##  Permission to use, copy, modify, and distribute this software for
     7.9 +##  any purpose with or without fee is hereby granted, provided that
    7.10 +##  the above copyright notice and this permission notice appear in all
    7.11 +##  copies.
    7.12 +##
    7.13 +##  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
    7.14 +##  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
    7.15 +##  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
    7.16 +##  IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
    7.17 +##  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
    7.18 +##  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
    7.19 +##  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
    7.20 +##  USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
    7.21 +##  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
    7.22 +##  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
    7.23 +##  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    7.24 +##  SUCH DAMAGE.
    7.25 +##
    7.26 +
    7.27 +#   package version
    7.28 +%define       V_release  1.14
    7.29 +%define       V_snapshot 20080901
    7.30 +
    7.31 +#   package information
    7.32 +Name:         mtasc
    7.33 +Summary:      Motion-Twin ActionScript Compiler
    7.34 +URL:          http://mtasc.org/
    7.35 +Vendor:       Nicolas Cannasse, Motion Twin
    7.36 +Packager:     OpenPKG Foundation e.V.
    7.37 +Distribution: OpenPKG Community
    7.38 +Class:        EVAL
    7.39 +Group:        Flash
    7.40 +License:      GPL/BSD
    7.41 +Version:      %{V_release}.%{V_snapshot}
    7.42 +Release:      20080914
    7.43 +
    7.44 +#   list of sources
    7.45 +Source0:      ftp://ftp.openpkg.org/sources/CPY/mtasc/mtasc-%{V_snapshot}.tar.bz2
    7.46 +Source1:      mtasc.sh
    7.47 +Patch0:       mtasc.patch
    7.48 +
    7.49 +#   build information
    7.50 +Prefix:       %{l_prefix}
    7.51 +BuildRoot:    %{l_buildroot}
    7.52 +BuildPreReq:  OpenPKG, openpkg >= 20060823, ocaml
    7.53 +PreReq:       OpenPKG, openpkg >= 20060823
    7.54 +AutoReq:      no
    7.55 +AutoReqProv:  no
    7.56 +
    7.57 +%description
    7.58 +    MTASC is a free ActionScript 2 compiler and the predecessor to
    7.59 +    haXe. It can compile large number of ActionScript .as class files
    7.60 +    in a very short time and generate directly the corresponding .swf
    7.61 +    bytecode files without relying on Macromedia Flash or other tools.
    7.62 +
    7.63 +%track
    7.64 +    prog mtasc = {
    7.65 +        version   = %{V_release}
    7.66 +        url       = http://mtasc.org/
    7.67 +        regex     = mtasc-(__VER__)\.zip
    7.68 +    }
    7.69 +
    7.70 +%prep
    7.71 +    %setup -q -n mtasc
    7.72 +    %patch -p0
    7.73 +
    7.74 +%build
    7.75 +    %{l_prefix}/bin/ocaml install.ml
    7.76 +
    7.77 +%install
    7.78 +    rm -rf $RPM_BUILD_ROOT
    7.79 +    %{l_shtool} mkdir -f -p -m 755 \
    7.80 +        $RPM_BUILD_ROOT%{l_prefix}/bin \
    7.81 +        $RPM_BUILD_ROOT%{l_prefix}/lib/mtasc
    7.82 +    for tool in mtasc mtasc-byte; do
    7.83 +        %{l_shtool} install -c -m 755 %{l_value -s -a} \
    7.84 +            -e "s;@tool@;$tool;" \
    7.85 +            %{SOURCE mtasc.sh} $RPM_BUILD_ROOT%{l_prefix}/bin/$tool
    7.86 +    done
    7.87 +    %{l_shtool} install -c -s -m 755 \
    7.88 +        bin/mtasc bin/mtasc-byte \
    7.89 +        $RPM_BUILD_ROOT%{l_prefix}/lib/mtasc/
    7.90 +    find ocaml/mtasc -name CVS -type d -print | xargs rm -rf
    7.91 +    cp -rp ocaml/mtasc/std* $RPM_BUILD_ROOT%{l_prefix}/lib/mtasc/
    7.92 +    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
    7.93 +
    7.94 +%files -f files
    7.95 +
    7.96 +%clean
    7.97 +    rm -rf $RPM_BUILD_ROOT
    7.98 +

mercurial