mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 00:48:18 -07:00
34 lines
625 B
Bash
34 lines
625 B
Bash
# Copyright 1999-2021 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=6
|
|
inherit multilib
|
|
|
|
DESCRIPTION="OpenCL bindings for Erlang"
|
|
HOMEPAGE="https://github.com/tonyrog/cl"
|
|
SRC_URI="https://github.com/tonyrog/cl/archive/${P}.tar.gz"
|
|
|
|
LICENSE="MIT"
|
|
SLOT="0"
|
|
KEYWORDS="amd64 x86"
|
|
|
|
RDEPEND="
|
|
>=dev-lang/erlang-16
|
|
virtual/opencl
|
|
dev-util/rebar
|
|
"
|
|
DEPEND="${RDEPEND}"
|
|
|
|
S=${WORKDIR}/${PN}-${P}
|
|
|
|
src_compile() {
|
|
rebar compile || die
|
|
}
|
|
|
|
src_install() {
|
|
ERLANG_DIR="/usr/$(get_libdir)/erlang/lib"
|
|
CL_DIR="${ERLANG_DIR}/${P}"
|
|
insinto "${CL_DIR}"
|
|
doins -r ebin src include c_src examples
|
|
}
|