openbsd-ports/lang/elixir/Makefile
jasper b9aaca8cf6 import elixir 0.5.0
Elixir is a programming language built on top of the Erlang VM. As
Erlang, it is a functional language built to support distributed,
fault-tolerant, non-stop applications with hot code swapping.

Elixir is also dynamic typed but, differently from Erlang, it is also
homoiconic, allowing meta-programming via macros. Elixir also supports
polymorphism via protocols (similar to Clojure's), dynamic records and
provides a reference mechanism.

Finally, Elixir and Erlang share the same bytecode and data types. This
means you can invoke Erlang code from Elixir (and vice-versa) without
any conversion or performance hit. This allows a developer to mix the
expressiveness of Elixir with the robustness and performance of Erlang.

feedback/ok sthen@
2012-06-02 12:24:13 +00:00

47 lines
955 B
Makefile

# $OpenBSD: Makefile,v 1.1.1.1 2012/06/02 12:24:13 jasper Exp $
COMMENT= modern approach to programming for the Erlang VM
V= 0.5.0
DISTNAME= v${V}
PKGNAME= elixir-${V}
CATEGORIES= lang
HOMEPAGE= http://elixir-lang.org/
# APLv2
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= https://github.com/downloads/elixir-lang/elixir/
EXTRACT_SUFX= .zip
DIST_SUBDIR= elixir
BUILD_DEPENDS= ${RUN_DEPENDS}
RUN_DEPENDS= lang/erlang
ALL_TARGET= compile
USE_GMAKE= Yes
WRKDIST= ${WRKDIR}
SUBST_VARS+= V
REGRESS_TARGET= test
LIB_DIR= ${PREFIX}/lib/erlang/lib/elixir-lang-${V}/
# Remove pre-compiled files.
post-extract:
cd ${WRKSRC} && ${MAKE_PROGRAM} clean
do-install:
.for s in elixir elixirc iex
${INSTALL_SCRIPT} ${WRKSRC}/bin/$s ${PREFIX}/bin/
.endfor
${INSTALL_DATA_DIR} ${LIB_DIR}
cd ${WRKSRC}/ebin/ && umask 022 && pax -rw . ${LIB_DIR}
.include <bsd.port.mk>