forked from hasufell/hasufell-repository
dev-util/bam: bump to 0.5.1
This commit is contained in:
43
packages/dev-util/bam/bam-0.5.1.exheres-0
Normal file
43
packages/dev-util/bam/bam-0.5.1.exheres-0
Normal file
@@ -0,0 +1,43 @@
|
||||
# Copyright 2016 Julian Ospald <hasufell@posteo.de>
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
require lua [ multibuild=false whitelist="5.2 5.3" ]
|
||||
require github [ user=matricks tag="v${PV}" ]
|
||||
|
||||
SUMMARY="Fast and flexible Lua-based build system"
|
||||
|
||||
LICENCES="ZLIB"
|
||||
SLOT="0"
|
||||
PLATFORMS="~amd64 ~x86"
|
||||
MYOPTIONS=""
|
||||
|
||||
DEPENDENCIES="
|
||||
build:
|
||||
virtual/pkg-config
|
||||
test:
|
||||
dev-lang/python:2.7
|
||||
"
|
||||
|
||||
BUGS_TO="hasufell@posteo.de"
|
||||
|
||||
DEFAULT_SRC_INSTALL_PARAMS=(
|
||||
INSTALL_BINDIR="/usr/$(exhost --target)/bin"
|
||||
)
|
||||
|
||||
src_compile() {
|
||||
emake \
|
||||
LUA_LIBS="$(${PKG_CONFIG} --libs lua-$(lua_get_abi))" \
|
||||
LUA_CFLAGS="$(${PKG_CONFIG} --cflags lua-$(lua_get_abi))"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# https://github.com/matricks/bam/issues/102
|
||||
export CC=$(exhost --build)-gcc CXX=$(exhost --build)-g++
|
||||
|
||||
emake -j1 \
|
||||
LUA_LIBS="$(${PKG_CONFIG} --libs lua-$(lua_get_abi))" \
|
||||
LUA_CFLAGS="$(${PKG_CONFIG} --cflags lua-$(lua_get_abi))" \
|
||||
PYTHON="python2.7" \
|
||||
test
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user