erlang: update to 21.2.6.
Rewrites template to build off of the GitHub erlang/otp mirrors. Removes the doc distfile in favor of using those generated during the build. The HTML documentation and examples are under the erlang-doc subpackage as extra documentation. PDF documentation is removed. Examples were previously under the main erlang package. [ci skip]
This commit is contained in:
parent
1df4cefff7
commit
b2d20f4beb
3 changed files with 35 additions and 16 deletions
1
srcpkgs/erlang-doc
Symbolic link
1
srcpkgs/erlang-doc
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
erlang
|
|
@ -1,26 +1,26 @@
|
||||||
# Template file for 'erlang'
|
# Template file for 'erlang'
|
||||||
pkgname=erlang
|
pkgname=erlang
|
||||||
version=21.2
|
version=21.2.6
|
||||||
revision=1
|
revision=1
|
||||||
create_wrksrc=yes
|
create_wrksrc=yes
|
||||||
build_wrksrc=otp_src_${version}
|
build_wrksrc=otp-OTP-${version}
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="$(vopt_if x11 --with-wx-config=wx-config-3.0)"
|
configure_args="$(vopt_if x11 --with-wx-config=wx-config-3.0)"
|
||||||
hostmakedepends="perl libxslt"
|
make_install_target="install install-docs"
|
||||||
|
hostmakedepends="perl libxslt autoconf"
|
||||||
makedepends="ncurses-devel unixodbc-devel libressl-devel zlib-devel
|
makedepends="ncurses-devel unixodbc-devel libressl-devel zlib-devel
|
||||||
$(vopt_if x11 'wxWidgets-devel glu-devel')"
|
$(vopt_if x11 'wxWidgets-devel glu-devel')"
|
||||||
short_desc="Concurrent functional programming language developed by Ericsson"
|
short_desc="Concurrent functional programming language developed by Ericsson"
|
||||||
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
||||||
license="Apache-2.0"
|
license="Apache-2.0"
|
||||||
homepage="http://www.erlang.org/"
|
homepage="http://www.erlang.org/"
|
||||||
distfiles="http://www.erlang.org/download/otp_src_${version}.tar.gz
|
distfiles="https://github.com/erlang/otp/archive/OTP-${version}.tar.gz"
|
||||||
http://www.erlang.org/download/otp_doc_man_${version}.tar.gz"
|
checksum="aa0b95031e7c01af8a7042a00974ab16ed8fec305a68d7dbaa4185e5d58ef4d5"
|
||||||
checksum="f6b07bf8e6705915679a63363ce80faaa6b7c231e7236cde443d6445f7430334
|
|
||||||
e85a782e0fcd38b92098110b320e28ea8030cce318868d99a4fe6d17ae08b778"
|
|
||||||
|
|
||||||
build_options="x11"
|
build_options="x11"
|
||||||
|
|
||||||
pre_configure() {
|
pre_configure() {
|
||||||
|
./otp_build autoconf
|
||||||
if [ "$CROSS_BUILD" ]; then
|
if [ "$CROSS_BUILD" ]; then
|
||||||
# Build the bootstrap compiler for the host platform.
|
# Build the bootstrap compiler for the host platform.
|
||||||
env - PATH=/usr/bin:/usr/sbin ./configure --enable-bootstrap-only
|
env - PATH=/usr/bin:/usr/sbin ./configure --enable-bootstrap-only
|
||||||
|
@ -29,14 +29,34 @@ pre_configure() {
|
||||||
export erl_xcomp_sysroot=/usr/${XBPS_CROSS_TRIPLET}
|
export erl_xcomp_sysroot=/usr/${XBPS_CROSS_TRIPLET}
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
post_configure() {
|
post_configure() {
|
||||||
sed -i '/LDFLAGS =/s/=/+=/' lib/odbc/c_src/*/Makefile
|
vsed -i -e '/LDFLAGS =/s/=/+=/' lib/odbc/c_src/*/Makefile
|
||||||
}
|
}
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
vmkdir usr/share/man
|
# Remove PR template and PDF documentation
|
||||||
vmkdir usr/lib/erlang/man
|
rm ${DESTDIR}/usr/lib/erlang/PR.template
|
||||||
vcopy ../man/man1 usr/share/man
|
find ${DESTDIR}/usr/lib/erlang -path '*/doc/pdf' -type d -print0 | xargs -0 rm -rf
|
||||||
vcopy ../man/man3 usr/lib/erlang/man
|
find ${DESTDIR}/usr/lib/erlang -iname '*.pdf' -delete
|
||||||
vcopy ../man/man4 usr/lib/erlang/man
|
# Make section 1 pages available outside erlang
|
||||||
vcopy ../man/man7 usr/lib/erlang/man
|
vmkdir usr/share/man/man1
|
||||||
|
local manprefix=/usr/lib/erlang/man/man1
|
||||||
|
for i in $(find ${DESTDIR}${manprefix} -type f)
|
||||||
|
do
|
||||||
|
ln -sf ${manprefix}/${i##*/} ${DESTDIR}/usr/share/man/man1
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
erlang-doc_package() {
|
||||||
|
short_desc="Erlang programming language documentation and examples"
|
||||||
|
depends="${sourcepkg}-${version}_${revision}"
|
||||||
|
archs=noarch
|
||||||
|
pkg_install() {
|
||||||
|
vmove usr/lib/erlang/doc
|
||||||
|
for i in $(cd ${DESTDIR}; find usr/lib/erlang -type d \( -path '*/examples' -o -path '*/doc/html' \))
|
||||||
|
do
|
||||||
|
vmove "$i"
|
||||||
|
done
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
site="http://www.erlang.org/download.html"
|
|
||||||
pattern='otp_src_\K[\d.]+\d+'
|
|
Loading…
Reference in a new issue