void-packages/srcpkgs/ponyc/template
Noel Cower 7235af7a07 ponyc: update to 0.33.2.
Updated to LLVM 9 now that ponyc uses it.

Adds which as the makefile uses it regardless of whether LLVM_CONFIG is
set, resulting in an error because it cannot find an llvm-config.
2020-02-14 13:01:44 +01:00

34 lines
1.2 KiB
Bash

# Template file for 'ponyc'
pkgname=ponyc
version=0.33.2
revision=1
archs="x86_64"
build_style=gnu-makefile
hostmakedepends="llvm9 which"
makedepends="zlib-devel ncurses-devel libatomic-devel libxml2-devel"
depends="libatomic-devel"
short_desc="OO, actor-model, capabilities-secure, high-performance language"
maintainer="Brian Mitchell <brian@strmpnk.co>"
license="BSD-2-Clause"
homepage="https://ponylang.org/"
distfiles="https://github.com/ponylang/ponyc/archive/${version}.tar.gz"
checksum=41ba573f16b4aecbcc39ec6d5b794185bf50e570b4a8f2cceef0a276e7fb50a3
do_build() {
vsed -e 's/-Werror //' -i Makefile
make config=release default_pic=true
}
do_install() {
make config=release destdir=${DESTDIR}/usr/lib/pony/${version} prefix=${DESTDIR}/usr install
rm ${DESTDIR}/usr/bin/ponyc ${DESTDIR}/usr/lib/libponyrt.a \
${DESTDIR}/usr/lib/libponyc.a ${DESTDIR}/usr/include/pony.h
ln -s /usr/lib/pony/${version}/lib/libponyrt.a ${DESTDIR}/usr/lib
ln -s /usr/lib/pony/${version}/lib/libponyc.a ${DESTDIR}/usr/lib
ln -s /usr/lib/pony/${version}/bin/ponyc ${DESTDIR}/usr/bin
ln -s /usr/lib/pony/${version}/include/pony.h ${DESTDIR}/usr/include
vlicense LICENSE
vdoc README.md
vcopy examples usr/share/doc/ponyc/
}