erlang-otp _unstable_ port information

Info2: <<
Package: erlang-otp

Version: 12b-0
License: OSI-Approved
Revision: 1
Description: General-purpose programming language
Maintainer: Aleix Conchillo Flaque

Depends: <<
libncurses5-shlibs, gd2-shlibs, unixodbc2-shlibs | unixodbc2-nox-shlibs
<<
BuildDepends: <<
libncurses5, gd2 | gd2-nox, unixodbc2 | unixodbc2-nox
<<

Source: http://www.erlang.org/download/otp_src_R12B-0.tar.gz
Source-MD5: 54cd5a83697c515f571e44d4ea99c8d3
Source2: http://www.erlang.org/download/otp_doc_man_R12B-0.tar.gz
Source2-MD5: aa3a12a16e03d1aadec40e265f51e7c6
Source2ExtractDir: docs-man
Source3: http://www.erlang.org/download/otp_doc_html_R12B-0.tar.gz
Source3-MD5: ddbb484ebe97a837640e51305cc7557a
Source3ExtractDir: docs-html

Patch: %n.patch

DocFiles: README EPLICENCE

ConfigureParams: --with-odbc=%p --with-gd=%p

InstallScript: <<
#!/bin/sh -ev

# Determine ERTS version
ertsver=`cat %b/Makefile | grep "ERTS =" | cut -f2 -d'-'`

# Install
make install prefix=%i

# Fix symlinks
rm -f %i/bin/dialyzer %i/bin/epmd %i/bin/erl %i/bin/erlc %i/bin/escript %i/bin/run_erl %i/bin/to_erl %i/bin/typer %i/lib/erlang/bin/epmd

ln -s %p/lib/erlang/bin/dialyzer %i/bin/dialyzer
ln -s %p/lib/erlang/erts-${ertsver}/bin/epmd %i/lib/erlang/bin/epmd
ln -s %p/lib/erlang/bin/epmd %i/bin/epmd
ln -s %p/lib/erlang/bin/erl %i/bin/erl
ln -s %p/lib/erlang/bin/erlc %i/bin/erlc
ln -s %p/lib/erlang/bin/escript %i/bin/escript
ln -s %p/lib/erlang/bin/run_erl %i/bin/run_erl
ln -s %p/lib/erlang/bin/to_erl %i/bin/to_erl
ln -s %p/lib/erlang/bin/typer %i/bin/typer

# Fix paths in scripts
perl -i -pe "s:%d::g" \
%i/lib/erlang/bin/erl \
%i/lib/erlang/bin/start \
%i/lib/erlang/erts-${ertsver}/bin/erl \
%i/lib/erlang/erts-${ertsver}/bin/start \
%i/lib/erlang/releases/RELEASES

# Move documentation to erlang-aware location
mv %b/../docs-man/* %i/lib/erlang/

# Copy over html documentation
mkdir -p %i/share/doc/erlang-otp/html
mv %b/../docs-html/* %i/share/doc/erlang-otp/html/
<<

DescDetail: <<
Erlang is a general-purpose programming language and runtime environment.
Erlang has built-in support for concurrency, distribution and fault
tolerance. Erlang is used in several large telecommunication systems
from Ericsson. The most popular implementation of Erlang is available as
open source from the open source erlang site.
<<

DescPackaging: <<
Maintainer (<= 10b-10-1): Daniel Henninger
<<

Homepage: http://www.erlang.org/

<<