Skip to content

Instantly share code, notes, and snippets.

@lockie
Created February 23, 2023 10:16
Show Gist options
  • Save lockie/3dfddaf53498482702ed8d32851274e5 to your computer and use it in GitHub Desktop.
Save lockie/3dfddaf53498482702ed8d32851274e5 to your computer and use it in GitHub Desktop.
# Copyright 2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( pypy{3,} python{2_7,3_{4,5,6,7,8,9,10,11}} )
inherit git-r3 python-any-r1 ninja-utils llvm
DESCRIPTION="A Common Lisp with LLVM back end and interoperation with C++"
HOMEPAGE="https://github.com/clasp-developers/clasp"
EGIT_REPO_URI="https://github.com/clasp-developers/clasp.git"
EGIT_BRANCH="main"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="amd64"
IUSE=""
LLVM_MAX_SLOT=15
CXX="clang++"
CC="clang"
BDEPEND="
dev-vcs/git
dev-lisp/sbcl
sys-devel/clang:${LLVM_MAX_SLOT}
sys-devel/llvm:${LLVM_MAX_SLOT}
"
DEPEND="
${BDEPEND}
dev-libs/boehm-gc
dev-libs/boost
sys-libs/ncurses
"
RDEPEND="
"
pkg_setup () {
python-any-r1_pkg_setup
llvm_pkg_setup
}
src_configure () {
./koga --ld=ld --reproducible-build --package-path=${D} --bin-path=/usr/bin/ --share-path=/usr/share/clasp/ --lib-path=/usr/lib/clasp/
}
src_compile () {
eninja -C build
}
src_install () {
eninja -C build install
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment