Name: haxe
Version: 3.0
Release: 1%{?dist}
License: GPLv2
Group: Development/Languages
URL: http://code.google.com/p/haxe/
Source: %{name}-%{version}.tar.gz
#Source1: https://github.com/haxe-mirrors/haxe/archive/master.tar.gz
Summary: A cross-target language akin to AS3 and Java.
BuildRequires: subversion, ocaml, sed, zlib, nekovm, ocaml-camlp4, ocaml-camlp4-devel, zlib-static
%description
Haxe is a cross-target programming language inspired by Java and AS3 that allows you compile to lots of other programming languages/binaries.
%prep
%setup -q -n %{name}
%build
make clean > /dev/null
sed --in-place=.orig -e "s/\\(Haxe Compiler %d.%.2d\\) -/\\1 [SVN r$pkgver] -/" main.ml
make libs
make haxe
make tools
mkdir -p "%{_builddir}/%{name}/doc"
cd %{_builddir}/%{name}/doc
rm -rf content *.xml
HAXE_LIBRARY_PATH=%{_builddir}/%{name}/std %{_builddir}/%{name}/haxe all.hxml
[ ! \( -f flash8.xml -a -f flash9.xml -a -f neko.xml -a -f js.xml -a -f php.xml -a -f cpp.xml \) ] && return 1
%{_builddir}/%{name}/std/tools/haxedoc/haxedoc -v "flash8.xml;flash8;flash" "neko.xml;neko" "js.xml;js" "flash9.xml;flash" "php.xml;php" "cpp.xml;cpp"
_res=$?
%install
rm -r %{buildroot}
mkdir -p %{buildroot}%{_libdir}/haxe/std
mkdir -p %{buildroot}%{_libdir}/haxe/doc
mkdir -p %{buildroot}%{_bindir}
cp %{_builddir}/%{name}/haxe %{buildroot}%{_libdir}/haxe
cp %{_builddir}/%{name}/haxelib %{buildroot}%{_libdir}/haxe
cp %{_builddir}/%{name}/haxedoc %{buildroot}%{_libdir}/haxe
cp -r %{_builddir}/%{name}/std %{buildroot}%{_libdir}/haxe
cp -r %{_builddir}/%{name}/doc %{buildroot}%{_libdir}/haxe
#ln -s %{buildroot}%{_libdir}/haxe %{buildroot}%{_bindir}/haxe
#ln -s %{buildroot}%{_libdir}/haxelib %{buildroot}%{_bindir}/haxelib
#ln -s %{buildroot}%{_libdir}/haxedoc %{buildroot}%{_bindir}/haxedoc
%files
%{_libdir}/haxe/*
%post
env HAXE_LIBRARY_PATH=%{_libdir}/haxe
ln -s %{_libdir}/haxe/haxe %{_bindir}/haxe
ln -s %{_libdir}/haxe/haxedoc %{_bindir}/haxedoc
ln -s %{_libdir}/haxe/haxelib %{_bindir}/haxelib
%postun
unlink %{_bindir}/haxe
unlink %{_bindir}/haxedoc
unlink %{_bindir}/haxelib
--
To post to this group haxe...@googlegroups.com
http://groups.google.com/group/haxelang?hl=en
---
You received this message because you are subscribed to the Google Groups "Haxe" group.
To unsubscribe from this group and stop receiving emails from it, send an email to haxelang+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Name: haxeVersion: 3.0Release: 3%{?dist}
mkdir -p %{buildroot}%{_datarootdir}/haxe/stdmkdir -p %{buildroot}%{_datarootdir}/haxe/docmkdir -p %{buildroot}%{_datarootdir}/haxe/lib
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}/etc/profile.dcp %{_builddir}/%{name}/haxe %{buildroot}%{_bindir}cp %{_builddir}/%{name}/haxelib %{buildroot}%{_bindir}cp %{_builddir}/%{name}/haxedoc %{buildroot}%{_bindir}cp -r %{_builddir}/%{name}/std %{buildroot}%{_datarootdir}/haxecp -r %{_builddir}/%{name}/doc %{buildroot}%{_datarootdir}/haxeecho "export HAXE_LIBRARY_PATH=%{_libdir}/haxe/std" >> %{buildroot}/etc/profile.d/haxe_init.sh%files%{_datarootdir}/haxe/*/etc/profile.d/*%{_bindir}/*%posthaxelib setup %{_datarootdir}/lib
echo "export HAXE_LIBRARY_PATH=%{_datarootdir}/haxe/std" >> %{buildroot}/etc/profile.d/haxe_init.sh