parent
be5f3e63c0
commit
59107d29fa
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,72 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{6..9} )
|
||||
|
||||
inherit autotools python-single-r1
|
||||
|
||||
DESCRIPTION="A scriptable multi-threaded benchmark tool based on LuaJIT"
|
||||
HOMEPAGE="https://github.com/akopytov/sysbench"
|
||||
SRC_URI="https://github.com/akopytov/sysbench/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2+"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~arm ~arm64 x86"
|
||||
IUSE="+aio attachsql drizzle +largefile mysql postgres test"
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="
|
||||
dev-lang/luajit:2
|
||||
aio? ( dev-libs/libaio )
|
||||
mysql? ( dev-db/mysql-connector-c:= )
|
||||
postgres? ( dev-db/postgresql:= )
|
||||
test? ( ${PYTHON_DEPS} )
|
||||
"
|
||||
DEPEND="
|
||||
dev-libs/concurrencykit
|
||||
dev-libs/libxslt
|
||||
test? (
|
||||
$(python_gen_cond_dep '
|
||||
dev-util/cram[${PYTHON_USEDEP}]
|
||||
')
|
||||
)
|
||||
${RDEPEND}
|
||||
"
|
||||
BDEPEND="
|
||||
sys-devel/libtool
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
rm -r third_party/{concurrency_kit/ck,cram,luajit/luajit} || die
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# Current versions of 'dev-db/oracle-instantclient' aren't supported.
|
||||
# See: https://github.com/akopytov/sysbench/issues/390.
|
||||
local myeconfargs=(
|
||||
--disable-rpath
|
||||
$(use_enable aio)
|
||||
$(use_enable largefile)
|
||||
$(use_with attachsql)
|
||||
$(use_with drizzle)
|
||||
$(use_with mysql)
|
||||
$(use_with postgres pgsql)
|
||||
--with-system-ck
|
||||
--with-system-luajit
|
||||
--without-oracle
|
||||
)
|
||||
|
||||
econf "${myeconfargs[@]}"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
emake check test
|
||||
}
|
@ -1,63 +0,0 @@
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -1,5 +1,5 @@
|
||||
-CFLAGS += -std=c99 -Wall -O2 -D_REENTRANT
|
||||
-LIBS := -lpthread -lm -lssl -lcrypto
|
||||
+CFLAGS += -std=c99 -Wall -D_REENTRANT
|
||||
+LIBS := -lm -lssl -lcrypto -lpthread
|
||||
|
||||
TARGET := $(shell uname -s | tr '[A-Z]' '[a-z]' 2>/dev/null || echo unknown)
|
||||
|
||||
@@ -24,15 +24,13 @@
|
||||
|
||||
ODIR := obj
|
||||
OBJ := $(patsubst %.c,$(ODIR)/%.o,$(SRC)) $(ODIR)/bytecode.o $(ODIR)/version.o
|
||||
-LIBS := -lluajit-5.1 $(LIBS)
|
||||
+LIBS := $(shell pkg-config luajit --libs) $(LIBS)
|
||||
|
||||
DEPS :=
|
||||
CFLAGS += -I$(ODIR)/include
|
||||
-LDFLAGS += -L$(ODIR)/lib
|
||||
|
||||
ifneq ($(WITH_LUAJIT),)
|
||||
CFLAGS += -I$(WITH_LUAJIT)/include
|
||||
- LDFLAGS += -L$(WITH_LUAJIT)/lib
|
||||
else
|
||||
CFLAGS += -I$(ODIR)/include/luajit-2.1
|
||||
DEPS += $(ODIR)/lib/libluajit-5.1.a
|
||||
@@ -40,7 +38,6 @@
|
||||
|
||||
ifneq ($(WITH_OPENSSL),)
|
||||
CFLAGS += -I$(WITH_OPENSSL)/include
|
||||
- LDFLAGS += -L$(WITH_OPENSSL)/lib
|
||||
else
|
||||
DEPS += $(ODIR)/lib/libssl.a
|
||||
endif
|
||||
@@ -51,15 +48,14 @@
|
||||
$(RM) -rf $(BIN) obj/*
|
||||
|
||||
$(BIN): $(OBJ)
|
||||
- @echo LINK $(BIN)
|
||||
- @$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
|
||||
+ $(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
|
||||
|
||||
$(OBJ): config.h Makefile $(DEPS) | $(ODIR)
|
||||
|
||||
$(ODIR):
|
||||
@mkdir -p $@
|
||||
|
||||
-$(ODIR)/bytecode.o: src/wrk.lua
|
||||
+$(ODIR)/bytecode.c: src/wrk.lua
|
||||
@echo LUAJIT $<
|
||||
@$(SHELL) -c 'PATH=obj/bin:$(PATH) luajit -b $(CURDIR)/$< $(CURDIR)/$@'
|
||||
|
||||
@@ -67,8 +63,7 @@
|
||||
@echo 'const char *VERSION="$(VER)";' | $(CC) -xc -c -o $@ -
|
||||
|
||||
$(ODIR)/%.o : %.c
|
||||
- @echo CC $<
|
||||
- @$(CC) $(CFLAGS) -c -o $@ $<
|
||||
+ $(CC) $(CFLAGS) -c -o $@ $<
|
||||
|
||||
# Dependencies
|
||||
|
@ -1,57 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
DESCRIPTION="A HTTP benchmarking tool"
|
||||
HOMEPAGE="https://www.github.com/wg/wrk"
|
||||
SRC_URI="https://www.github.com/wg/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
KEYWORDS="amd64 x86"
|
||||
LICENSE="Apache-2.0 BSD MIT"
|
||||
SLOT="0"
|
||||
IUSE="libressl"
|
||||
|
||||
CBUILD="dev-lang/luajit:2"
|
||||
|
||||
DEPEND="
|
||||
dev-lang/lua:0
|
||||
libressl? ( dev-libs/libressl:0= )
|
||||
!libressl? ( dev-libs/openssl:0= )
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
${CBUILD}
|
||||
${RDEPEND}
|
||||
"
|
||||
|
||||
BDEPEND="
|
||||
${CBUILD}
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
DOCS=( "CHANGES" "NOTICE" "README.md" "SCRIPTING" )
|
||||
|
||||
PATCHES=( "${FILESDIR}/${P}-r2-makefile.patch" )
|
||||
|
||||
src_compile() {
|
||||
myemakeargs=(
|
||||
CC="$(tc-getCC)"
|
||||
VER="${PV}"
|
||||
WITH_LUAJIT="/usr"
|
||||
WITH_OPENSSL="/usr"
|
||||
)
|
||||
|
||||
emake "${myemakeargs[@]}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin wrk
|
||||
|
||||
insinto /usr/share/wrk
|
||||
doins -r scripts
|
||||
|
||||
einstalldocs
|
||||
}
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,2 +1,3 @@
|
||||
DIST docker-compose-1.27.4.tar.gz 309308 BLAKE2B 098af5e0308de4fe72f8f7d5c9cbdb285ec1cb6fbd492baef8a4223f93591321c585ebabd4c7e4a40d7a1bce3ab2d7ccf4cee1d0a15e7f59bb80eb4df5b6c8d6 SHA512 b41b7cf88b1380021a30f9becb7567d1e154ef875c42b37483673b5107f1a26dae6868b92c6a61f695001eb63759b25f3729e6783272eb784047717cafea3b80
|
||||
DIST docker-compose-1.28.0.tar.gz 318112 BLAKE2B 2e721f2aed08f8c63c7c75aa91e6ee28d997763a7d93921e9a62c41b7d48943221aa2135e6ba3925db67b2376f662f81ef71df15180895ea4d5ced1edd0cc493 SHA512 c673f25ff993e7dcaf75512c378339bb7435d96310bf9a47ee3fd3a515967b323ed911b77c030a8e9c1d04b8aca235565a0ca0eaeab401c4ac48110712da405e
|
||||
DIST docker-compose-1.28.2.tar.gz 318196 BLAKE2B 60827043135b1b1455ce0fe8cd3b6bdfad025af80d32b805e7a7a9df7949808b6575555e860a2d0f57bf07af44cb7847b38146accbb2c4eec9a8919bc4ec4141 SHA512 ababba47717e31187243478ba4a9d4082e2f64a05a0bf48cbafb2a44b62138d7dfb1cbb88da4c388b559cb35d53bcf4c42617f6ae02412b7a65f02cb09255e45
|
||||
|
@ -0,0 +1,73 @@
|
||||
# Copyright 2018-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{6,7,8,9} )
|
||||
DISTUTILS_USE_SETUPTOOLS=rdepend
|
||||
|
||||
inherit bash-completion-r1 distutils-r1
|
||||
|
||||
MY_PV=${PV/_/-}
|
||||
DESCRIPTION="Multi-container orchestration for Docker"
|
||||
HOMEPAGE="https://github.com/docker/compose"
|
||||
SRC_URI="https://github.com/docker/compose/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64"
|
||||
IUSE="test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
>=dev-python/cached-property-1.2.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/distro-1.5.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/docker-py-4.4.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/dockerpty-0.4.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/docopt-0.6.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/python-dotenv-0.13.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/jsonschema-2.5.1[${PYTHON_USEDEP}]
|
||||
dev-python/paramiko[${PYTHON_USEDEP}]
|
||||
>=dev-python/PySocks-1.6.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/pyyaml-3.10[${PYTHON_USEDEP}]
|
||||
>=dev-python/requests-2.20.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/six-1.3.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/texttable-0.9.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/websocket-client-0.32.0[${PYTHON_USEDEP}]"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
test? (
|
||||
>=dev-python/pytest-5[${PYTHON_USEDEP}]
|
||||
>=dev-python/ddt-1.2.2[${PYTHON_USEDEP}]
|
||||
)"
|
||||
|
||||
S="${WORKDIR}/compose-${MY_PV}"
|
||||
|
||||
PATCHES=(
|
||||
# Bug #679968 -- https://bugs.gentoo.org/679968
|
||||
# Bug #681002 -- https://bugs.gentoo.org/681002
|
||||
"${FILESDIR}"/${PN}-1.28.0_rc2-setup-py.patch
|
||||
)
|
||||
|
||||
DOCS=( CHANGELOG.md README.md )
|
||||
|
||||
src_prepare() {
|
||||
# Address QA issue "docker-compose.exe: missing alias (symlink) for completed command."
|
||||
sed 's,^\(complete.*\) docker-compose\.exe\(.*\),\1\2,' -i contrib/completion/bash/docker-compose || die
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
python_test() {
|
||||
distutils_install_for_testing
|
||||
${PYTHON} -m pytest tests/unit/ || die "tests failed under ${EPYTHON}"
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
newbashcomp contrib/completion/bash/docker-compose ${PN}
|
||||
|
||||
insinto /usr/share/zsh/site-functions
|
||||
doins contrib/completion/zsh/*
|
||||
|
||||
distutils-r1_python_install_all
|
||||
}
|
Binary file not shown.
Binary file not shown.
@ -1,28 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( pypy3 python3_{6,7,8} )
|
||||
DISTUTILS_USE_SETUPTOOLS=rdepend
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Preview GitHub Markdown files like Readme locally before committing them"
|
||||
HOMEPAGE="https://github.com/joeyespo/grip"
|
||||
LICENSE="MIT"
|
||||
|
||||
SLOT="0"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
KEYWORDS="amd64"
|
||||
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
|
||||
RDEPEND="
|
||||
!media-sound/grip
|
||||
>=dev-python/docopt-0.4.0
|
||||
>=dev-python/flask-0.10.1
|
||||
>=dev-python/markdown-2.5.1
|
||||
>=dev-python/path-and-address-2.0.1
|
||||
>=dev-python/pygments-1.6
|
||||
>=dev-python/requests-2.4.1
|
||||
"
|
Binary file not shown.
Binary file not shown.
@ -1,4 +1,2 @@
|
||||
DIST go1.14.13.src.tar.gz 22553900 BLAKE2B 35aed1c43a59e06c1d5feaa91a6c4120c586958257cb3e4f83ab4e767159e20ae953d70bc0debabd80722bca0965d1b129531a2bd89f558df0a8700cadc09edc SHA512 b54a0bc3b85809a78d4704fe2e97ad7417a2027608ec0f90c2784e2ddb28b505df3cda862dc6f1b99af2d136363cbb9b120e2fd6ed985cb300c43f8e539a5e28
|
||||
DIST go1.14.14.src.tar.gz 22557733 BLAKE2B aa3638c7a20f89e90bf17e9da1b12323cc8c0f52fb0a92ca6a850f7b2c94e406ea50a57fc28cc34b951bf7ecee0a9bb1ce884ad86dfc23241d7b62cd9435f881 SHA512 76213b19eeec66ca6c6b5bdef875bea0b64c3877c70eec64dd65f7869ceb8db016ff19193f01771f8944fd5f0ae3b54c68185e158f2622d1db5552fec1f37976
|
||||
DIST go1.15.6.src.tar.gz 23019337 BLAKE2B d328401af9843f4a099dee7d82433ad2a0b349add0f2ecb609635814cca610e17a6fc50215e9928b8cb0d8ea8dd6ae9d84ffca125e1362dfb18ba08783bb4264 SHA512 f20e495204f32170d6554e8f4b64763dae8302a7859005020f650d1d53a5b15de3afbaff28e0b6418287396166c67bdc4c6bee7a0fd7ba8a87bb79b6c1d38326
|
||||
DIST go1.15.7.src.tar.gz 23017978 BLAKE2B 15b0827fb56b8e9208c65e8f7f11c7f67820efce1627b4123e937301bb437c597e87adfff9a2eee9aaf53ba0f22eb2f10746bafb7247b4250566f20181b7a2a0 SHA512 7b3e8bcd2fc95baad41f8b5f0456c009e01896d160e65c2670d51c23d8cfcf7a6801e831e6f9a8877fe58c8f54ac8f75bf6e7935b38ba7aaa51dc8e46cf76ddb
|
||||
|
@ -1,197 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
export CBUILD=${CBUILD:-${CHOST}}
|
||||
export CTARGET=${CTARGET:-${CHOST}}
|
||||
|
||||
MY_PV=${PV/_/}
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
case ${PV} in
|
||||
*9999*)
|
||||
EGIT_REPO_URI="https://github.com/golang/go.git"
|
||||
inherit git-r3
|
||||
;;
|
||||
*)
|
||||
SRC_URI="https://storage.googleapis.com/golang/go${MY_PV}.src.tar.gz "
|
||||
S="${WORKDIR}"/go
|
||||
case ${PV} in
|
||||
*_beta*|*_rc*) ;;
|
||||
*)
|
||||
KEYWORDS="-* amd64 arm arm64 ppc64 ~s390 x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris"
|
||||
;;
|
||||
esac
|
||||
esac
|
||||
|
||||
DESCRIPTION="A concurrent garbage collected and typesafe programming language"
|
||||
HOMEPAGE="https://golang.org"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0/${PV}"
|
||||
|
||||
BDEPEND="|| (
|
||||
dev-lang/go
|
||||
dev-lang/go-bootstrap )"
|
||||
RDEPEND="!<dev-go/go-tools-0_pre20150902"
|
||||
|
||||
# Do not complain about CFLAGS, etc, since Go doesn't use them.
|
||||
QA_FLAGS_IGNORED='.*'
|
||||
|
||||
# The tools in /usr/lib/go should not cause the multilib-strict check to fail.
|
||||
QA_MULTILIB_PATHS="usr/lib/go/pkg/tool/.*/.*"
|
||||
|
||||
# Do not strip this package. Stripping is unsupported upstream and may
|
||||
# fail.
|
||||
RESTRICT+=" strip"
|
||||
|
||||
DOCS=(
|
||||
AUTHORS
|
||||
CONTRIBUTING.md
|
||||
CONTRIBUTORS
|
||||
PATENTS
|
||||
README.md
|
||||
)
|
||||
|
||||
go_arch()
|
||||
{
|
||||
# By chance most portage arch names match Go
|
||||
local portage_arch=$(tc-arch $@)
|
||||
case "${portage_arch}" in
|
||||
x86) echo 386;;
|
||||
x64-*) echo amd64;;
|
||||
ppc64) [[ $(tc-endian $@) = big ]] && echo ppc64 || echo ppc64le ;;
|
||||
s390) echo s390x ;;
|
||||
*) echo "${portage_arch}";;
|
||||
esac
|
||||
}
|
||||
|
||||
go_arm()
|
||||
{
|
||||
case "${1:-${CHOST}}" in
|
||||
armv5*) echo 5;;
|
||||
armv6*) echo 6;;
|
||||
armv7*) echo 7;;
|
||||
*)
|
||||
die "unknown GOARM for ${1:-${CHOST}}"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
go_os()
|
||||
{
|
||||
case "${1:-${CHOST}}" in
|
||||
*-linux*) echo linux;;
|
||||
*-darwin*) echo darwin;;
|
||||
*-freebsd*) echo freebsd;;
|
||||
*-netbsd*) echo netbsd;;
|
||||
*-openbsd*) echo openbsd;;
|
||||
*-solaris*) echo solaris;;
|
||||
*-cygwin*|*-interix*|*-winnt*)
|
||||
echo windows
|
||||
;;
|
||||
*)
|
||||
die "unknown GOOS for ${1:-${CHOST}}"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
go_tuple()
|
||||
{
|
||||
echo "$(go_os $@)_$(go_arch $@)"
|
||||
}
|
||||
|
||||
go_cross_compile()
|
||||
{
|
||||
[[ $(go_tuple ${CBUILD}) != $(go_tuple) ]]
|
||||
}
|
||||
|
||||
src_compile()
|
||||
{
|
||||
if has_version -b dev-lang/go; then
|
||||
export GOROOT_BOOTSTRAP="${BROOT}/usr/lib/go"
|
||||
elif has_version -b dev-lang/go-bootstrap; then
|
||||
export GOROOT_BOOTSTRAP="${BROOT}/usr/lib/go-bootstrap"
|
||||
else
|
||||
eerror "Go cannot be built without go or go-bootstrap installed"
|
||||
die "Should not be here, please report a bug"
|
||||
fi
|
||||
|
||||
export GOROOT_FINAL="${EPREFIX}"/usr/lib/go
|
||||
export GOROOT="$(pwd)"
|
||||
export GOBIN="${GOROOT}/bin"
|
||||
|
||||
# Go's build script does not use BUILD/HOST/TARGET consistently. :(
|
||||
export GOHOSTARCH=$(go_arch ${CBUILD})
|
||||
export GOHOSTOS=$(go_os ${CBUILD})
|
||||
export CC=$(tc-getBUILD_CC)
|
||||
|
||||
export GOARCH=$(go_arch)
|
||||
export GOOS=$(go_os)
|
||||
export CC_FOR_TARGET=$(tc-getCC)
|
||||
export CXX_FOR_TARGET=$(tc-getCXX)
|
||||
if [[ ${ARCH} == arm ]]; then
|
||||
export GOARM=$(go_arm)
|
||||
fi
|
||||
|
||||
cd src
|
||||
bash -x ./make.bash || die "build failed"
|
||||
}
|
||||
|
||||
src_test()
|
||||
{
|
||||
go_cross_compile && return 0
|
||||
|
||||
cd src
|
||||
PATH="${GOBIN}:${PATH}" \
|
||||
./run.bash -no-rebuild || die "tests failed"
|
||||
cd ..
|
||||
rm -fr pkg/*_race || die
|
||||
rm -fr pkg/obj/go-build || die
|
||||
}
|
||||
|
||||
src_install()
|
||||
{
|
||||
# There is a known issue which requires the source tree to be installed [1].
|
||||
# Once this is fixed, we can consider using the doc use flag to control
|
||||
# installing the doc and src directories.
|
||||
# The use of cp is deliberate in order to retain permissions
|
||||
# [1] https://golang.org/issue/2775
|
||||
dodir /usr/lib/go
|
||||
cp -R api bin doc lib pkg misc src test "${ED}"/usr/lib/go
|
||||
einstalldocs
|
||||
|
||||
# testdata directories are not needed on the installed system
|
||||
rm -fr $(find "${ED}"/usr/lib/go -iname testdata -type d -print)
|
||||
|
||||
local bin_path
|
||||
if go_cross_compile; then
|
||||
bin_path="bin/$(go_tuple)"
|
||||
else
|
||||
bin_path=bin
|
||||
fi
|
||||
local f x
|
||||
for x in ${bin_path}/*; do
|
||||
f=${x##*/}
|
||||
dosym ../lib/go/${bin_path}/${f} /usr/bin/${f}
|
||||
done
|
||||
|
||||
# install the @golang-rebuild set for Portage
|
||||
insinto /usr/share/portage/config/sets
|
||||
newins "${FILESDIR}"/go-sets.conf go.conf
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
[[ -z ${REPLACING_VERSIONS} ]] && return
|
||||
einfo "After ${CATEGORY}/${PN} is updated it is recommended to rebuild"
|
||||
einfo "all packages compiled with previous versions of ${CATEGORY}/${PN}"
|
||||
einfo "due to the static linking nature of go."
|
||||
einfo "If this is not done, the packages compiled with the older"
|
||||
einfo "version of the compiler will not be updated until they are"
|
||||
einfo "updated individually, which could mean they will have"
|
||||
einfo "vulnerabilities."
|
||||
einfo "Run 'emerge @golang-rebuild' to rebuild all 'go' packages"
|
||||
einfo "See https://bugs.gentoo.org/752153 for more info"
|
||||
}
|
@ -1,197 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
export CBUILD=${CBUILD:-${CHOST}}
|
||||
export CTARGET=${CTARGET:-${CHOST}}
|
||||
|
||||
MY_PV=${PV/_/}
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
case ${PV} in
|
||||
*9999*)
|
||||
EGIT_REPO_URI="https://github.com/golang/go.git"
|
||||
inherit git-r3
|
||||
;;
|
||||
*)
|
||||
SRC_URI="https://storage.googleapis.com/golang/go${MY_PV}.src.tar.gz "
|
||||
S="${WORKDIR}"/go
|
||||
case ${PV} in
|
||||
*_beta*|*_rc*) ;;
|
||||
*)
|
||||
KEYWORDS="-* amd64 arm arm64 ppc64 ~s390 x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris"
|
||||
;;
|
||||
esac
|
||||
esac
|
||||
|
||||
DESCRIPTION="A concurrent garbage collected and typesafe programming language"
|
||||
HOMEPAGE="https://golang.org"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0/${PV}"
|
||||
|
||||
BDEPEND="|| (
|
||||
dev-lang/go
|
||||
dev-lang/go-bootstrap )"
|
||||
RDEPEND="!<dev-go/go-tools-0_pre20150902"
|
||||
|
||||
# Do not complain about CFLAGS, etc, since Go doesn't use them.
|
||||
QA_FLAGS_IGNORED='.*'
|
||||
|
||||
# The tools in /usr/lib/go should not cause the multilib-strict check to fail.
|
||||
QA_MULTILIB_PATHS="usr/lib/go/pkg/tool/.*/.*"
|
||||
|
||||
# Do not strip this package. Stripping is unsupported upstream and may
|
||||
# fail.
|
||||
RESTRICT+=" strip"
|
||||
|
||||
DOCS=(
|
||||
AUTHORS
|
||||
CONTRIBUTING.md
|
||||
CONTRIBUTORS
|
||||
PATENTS
|
||||
README.md
|
||||
)
|
||||
|
||||
go_arch()
|
||||
{
|
||||
# By chance most portage arch names match Go
|
||||
local portage_arch=$(tc-arch $@)
|
||||
case "${portage_arch}" in
|
||||
x86) echo 386;;
|
||||
x64-*) echo amd64;;
|
||||
ppc64) [[ $(tc-endian $@) = big ]] && echo ppc64 || echo ppc64le ;;
|
||||
s390) echo s390x ;;
|
||||
*) echo "${portage_arch}";;
|
||||
esac
|
||||
}
|
||||
|
||||
go_arm()
|
||||
{
|
||||
case "${1:-${CHOST}}" in
|
||||
armv5*) echo 5;;
|
||||
armv6*) echo 6;;
|
||||
armv7*) echo 7;;
|
||||
*)
|
||||
die "unknown GOARM for ${1:-${CHOST}}"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
go_os()
|
||||
{
|
||||
case "${1:-${CHOST}}" in
|
||||
*-linux*) echo linux;;
|
||||
*-darwin*) echo darwin;;
|
||||
*-freebsd*) echo freebsd;;
|
||||
*-netbsd*) echo netbsd;;
|
||||
*-openbsd*) echo openbsd;;
|
||||
*-solaris*) echo solaris;;
|
||||
*-cygwin*|*-interix*|*-winnt*)
|
||||
echo windows
|
||||
;;
|
||||
*)
|
||||
die "unknown GOOS for ${1:-${CHOST}}"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
go_tuple()
|
||||
{
|
||||
echo "$(go_os $@)_$(go_arch $@)"
|
||||
}
|
||||
|
||||
go_cross_compile()
|
||||
{
|
||||
[[ $(go_tuple ${CBUILD}) != $(go_tuple) ]]
|
||||
}
|
||||
|
||||
src_compile()
|
||||
{
|
||||
if has_version -b dev-lang/go; then
|
||||
export GOROOT_BOOTSTRAP="${BROOT}/usr/lib/go"
|
||||
elif has_version -b dev-lang/go-bootstrap; then
|
||||
export GOROOT_BOOTSTRAP="${BROOT}/usr/lib/go-bootstrap"
|
||||
else
|
||||
eerror "Go cannot be built without go or go-bootstrap installed"
|
||||
die "Should not be here, please report a bug"
|
||||
fi
|
||||
|
||||
export GOROOT_FINAL="${EPREFIX}"/usr/lib/go
|
||||
export GOROOT="$(pwd)"
|
||||
export GOBIN="${GOROOT}/bin"
|
||||
|
||||
# Go's build script does not use BUILD/HOST/TARGET consistently. :(
|
||||
export GOHOSTARCH=$(go_arch ${CBUILD})
|
||||
export GOHOSTOS=$(go_os ${CBUILD})
|
||||
export CC=$(tc-getBUILD_CC)
|
||||
|
||||
export GOARCH=$(go_arch)
|
||||
export GOOS=$(go_os)
|
||||
export CC_FOR_TARGET=$(tc-getCC)
|
||||
export CXX_FOR_TARGET=$(tc-getCXX)
|
||||
if [[ ${ARCH} == arm ]]; then
|
||||
export GOARM=$(go_arm)
|
||||
fi
|
||||
|
||||
cd src
|
||||
bash -x ./make.bash || die "build failed"
|
||||
}
|
||||
|
||||
src_test()
|
||||
{
|
||||
go_cross_compile && return 0
|
||||
|
||||
cd src
|
||||
PATH="${GOBIN}:${PATH}" \
|
||||
./run.bash -no-rebuild || die "tests failed"
|
||||
cd ..
|
||||
rm -fr pkg/*_race || die
|
||||
rm -fr pkg/obj/go-build || die
|
||||
}
|
||||
|
||||
src_install()
|
||||
{
|
||||
# There is a known issue which requires the source tree to be installed [1].
|
||||
# Once this is fixed, we can consider using the doc use flag to control
|
||||
# installing the doc and src directories.
|
||||
# The use of cp is deliberate in order to retain permissions
|
||||
# [1] https://golang.org/issue/2775
|
||||
dodir /usr/lib/go
|
||||
cp -R api bin doc lib pkg misc src test "${ED}"/usr/lib/go
|
||||
einstalldocs
|
||||
|
||||
# testdata directories are not needed on the installed system
|
||||
rm -fr $(find "${ED}"/usr/lib/go -iname testdata -type d -print)
|
||||
|
||||
local bin_path
|
||||
if go_cross_compile; then
|
||||
bin_path="bin/$(go_tuple)"
|
||||
else
|
||||
bin_path=bin
|
||||
fi
|
||||
local f x
|
||||
for x in ${bin_path}/*; do
|
||||
f=${x##*/}
|
||||
dosym ../lib/go/${bin_path}/${f} /usr/bin/${f}
|
||||
done
|
||||
|
||||
# install the @golang-rebuild set for Portage
|
||||
insinto /usr/share/portage/config/sets
|
||||
newins "${FILESDIR}"/go-sets.conf go.conf
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
[[ -z ${REPLACING_VERSIONS} ]] && return
|
||||
einfo "After ${CATEGORY}/${PN} is updated it is recommended to rebuild"
|
||||
einfo "all packages compiled with previous versions of ${CATEGORY}/${PN}"
|
||||
einfo "due to the static linking nature of go."
|
||||
einfo "If this is not done, the packages compiled with the older"
|
||||
einfo "version of the compiler will not be updated until they are"
|
||||
einfo "updated individually, which could mean they will have"
|
||||
einfo "vulnerabilities."
|
||||
einfo "Run 'emerge @golang-rebuild' to rebuild all 'go' packages"
|
||||
einfo "See https://bugs.gentoo.org/752153 for more info"
|
||||
}
|
Binary file not shown.
@ -1,2 +1,3 @@
|
||||
DIST libbytesize-2.3.tar.gz 438198 BLAKE2B 583450b66781bbb16298507292ffe60012ccc296f0822784ead13bcf1ce3f9a9cf7c2341d5f64d3356fb78aefb3e6b0770bce64ebf85aa92d168277d35f9629c SHA512 23720b90f4dbf7880a640ec04e910c4c1f34637dd3621900772187cb2e1d04ec34d4900ce3c9b4083ac462b411d5a409a644f62ed76b2c57ef1f11432c58be8a
|
||||
DIST libbytesize-2.4.tar.gz 437416 BLAKE2B 4739b6ce5bf852112a5c662e3b5a29428df4a6b0fdd933293a1352e7f81f7ca3c274ed160ade38a705e9858bd2c37131a7409126d28d12ba0d47b64f88c78e31 SHA512 faa546823c95576516a5f4250ea51b381fe5ff6b9d09fc49346e65278e9be42fffd2566dcc24b4e0045cee15dcaead05c1fd1f5f51048c87c382298f7340e1d6
|
||||
DIST libbytesize-2.5.tar.gz 439194 BLAKE2B 8d2cd82cea1e95f3368eed5855abfbc89b410fe1d627f7cbe69974f0d1fc89b600c93ad242816a37c3585b8318fcce77ef0fe6ab349d10f34a8be4c69303e343 SHA512 730d9c84bfc7199424fa34de5037dd9187d60c1f32d82cedc3e395167bf39a98a3b7f20b15f154206e797144c11de05ae0f606e0af6a2157ed946f138a346ad6
|
||||
|
@ -0,0 +1,89 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{6..9} )
|
||||
|
||||
inherit autotools python-r1
|
||||
|
||||
DESCRIPTION="Tiny library providing a C \"class\" for working with arbitrary big sizes in bytes"
|
||||
HOMEPAGE="https://github.com/storaged-project/libbytesize"
|
||||
SRC_URI="https://github.com/storaged-project/libbytesize/releases/download/${PV}/${P}.tar.gz"
|
||||
LICENSE="LGPL-2+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
|
||||
IUSE="doc python test tools"
|
||||
|
||||
REQUIRED_USE="
|
||||
python? ( ${PYTHON_REQUIRED_USE} )
|
||||
tools? ( python )
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/gmp:0=
|
||||
dev-libs/mpfr:=
|
||||
dev-libs/libpcre2
|
||||
python? ( ${PYTHON_DEPS} )
|
||||
"
|
||||
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
BDEPEND="
|
||||
sys-devel/gettext
|
||||
doc? ( dev-util/gtk-doc )
|
||||
test? (
|
||||
dev-python/pocketlint[${PYTHON_USEDEP}]
|
||||
dev-python/polib[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
DOCS=( README.md )
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-2.4-no_Werror.patch"
|
||||
)
|
||||
|
||||
python_do() {
|
||||
if use python; then
|
||||
python_foreach_impl run_in_build_dir "$@"
|
||||
else
|
||||
"$@"
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myeconfargs=(
|
||||
$(use_with doc gtk-doc)
|
||||
$(use_with python python3)
|
||||
$(use_with tools)
|
||||
)
|
||||
local ECONF_SOURCE="${S}"
|
||||
python_do econf "${myeconfargs[@]}"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
python_do emake
|
||||
}
|
||||
|
||||
src_test() {
|
||||
python_do emake check
|
||||
}
|
||||
|
||||
install_helper() {
|
||||
emake DESTDIR="${D}" install
|
||||
use python && python_optimize
|
||||
}
|
||||
|
||||
src_install() {
|
||||
python_do install_helper
|
||||
einstalldocs
|
||||
find "${ED}" -name "*.la" -type f -delete || die
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST libfastjson-0.99.8.tar.gz 433819 BLAKE2B f988c01de8e7becc5a848825c18151fec2b80f81eb5b50e459b1a3bb535f5521fb63e9350eb133eb984f57f42c5f529220a0c9461eb4689e1421ad815c4c4d87 SHA512 1e7eb7eaae2c6ccb78b77ac883808e1d311b03bad083dc72ab7712765a2ed139accd762850d60f54c6fe0ad48c4385714818fd2c8ed76700ce3546e5aff1c823
|
||||
DIST libfastjson-0.99.9.tar.gz 436502 BLAKE2B 5ed542f373dee2e28c85f8b48e9d35c7727d7e565c691f90caed7a9ac1192814c6371e03bce18dd9765b4251e6a78b7e612eeb38872d2833cd72021d41fb889a SHA512 90505fba033179aa92f12ac5dbbb071f69f3491de5bbbbb46d553b08ac325448459c9e33ba22ef4f9db0bae4496cca60046eebf6325d70b045c1a0a9845b0d48
|
||||
|
@ -0,0 +1,40 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="6"
|
||||
|
||||
inherit autotools
|
||||
|
||||
DESCRIPTION="Fork of the json-c library, which is optimized for liblognorm processing"
|
||||
HOMEPAGE="https://www.rsyslog.com/tag/libfastjson/"
|
||||
SRC_URI="http://download.rsyslog.com/${PN}/${P}.tar.gz"
|
||||
LICENSE="MIT"
|
||||
SLOT="0/4.3.0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~sparc ~x86"
|
||||
IUSE="static-libs"
|
||||
|
||||
DEPEND=">=sys-devel/autoconf-archive-2015.02.04"
|
||||
RDEPEND=""
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myeconfargs=(
|
||||
--enable-compile-warnings=yes
|
||||
$(use_enable static-libs static)
|
||||
--disable-rdrand
|
||||
)
|
||||
|
||||
econf "${myeconfargs[@]}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local DOCS=( AUTHORS ChangeLog )
|
||||
default
|
||||
|
||||
find "${ED}"usr/lib* -name '*.la' -delete || die
|
||||
}
|
@ -0,0 +1,93 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="7"
|
||||
|
||||
PYTHON_COMPAT=( python3_{6..9} )
|
||||
|
||||
inherit python-any-r1 toolchain-funcs
|
||||
|
||||
DESCRIPTION="Apache Kafka C/C++ client library"
|
||||
HOMEPAGE="https://github.com/edenhill/librdkafka"
|
||||
|
||||
if [[ ${PV} == "9999" ]]; then
|
||||
EGIT_REPO_URI="https://github.com/edenhill/${PN}.git"
|
||||
|
||||
inherit git-r3
|
||||
else
|
||||
SRC_URI="https://github.com/edenhill/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
|
||||
fi
|
||||
|
||||
LICENSE="BSD-2"
|
||||
|
||||
# subslot = soname version
|
||||
SLOT="0/1"
|
||||
|
||||
IUSE="lz4 sasl ssl static-libs zstd"
|
||||
|
||||
LIB_DEPEND="
|
||||
lz4? ( app-arch/lz4:=[static-libs(+)] )
|
||||
sasl? ( dev-libs/cyrus-sasl:=[static-libs(+)] )
|
||||
ssl? ( dev-libs/openssl:0=[static-libs(+)] )
|
||||
zstd? ( app-arch/zstd:=[static-libs(+)] )
|
||||
sys-libs/zlib:=[static-libs(+)]
|
||||
"
|
||||
|
||||
BDEPEND="
|
||||
virtual/pkgconfig
|
||||
${PYTHON_DEPS}
|
||||
"
|
||||
|
||||
RDEPEND="!static-libs? ( ${LIB_DEPEND//\[static-libs(+)]} )"
|
||||
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
static-libs? ( ${LIB_DEPEND} )
|
||||
"
|
||||
|
||||
pkg_setup() {
|
||||
python-any-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
if [[ ${PV} != "9999" ]]; then
|
||||
sed -i \
|
||||
-e "s/^\(export RDKAFKA_GITVER=\).*/\1\"${PV}@release\"/" \
|
||||
tests/run-test.sh || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
tc-export AR CC CXX LD NM OBJDUMP PKG_CONFIG STRIP
|
||||
|
||||
local myeconf=(
|
||||
--no-cache
|
||||
--no-download
|
||||
--disable-debug-symbols
|
||||
$(use_enable lz4)
|
||||
$(use_enable sasl)
|
||||
$(usex static-libs '--enable-static' '')
|
||||
$(use_enable ssl)
|
||||
$(use_enable zstd)
|
||||
)
|
||||
|
||||
econf ${myeconf[@]}
|
||||
}
|
||||
|
||||
src_test() {
|
||||
emake -C tests run_local
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake -j1 \
|
||||
DESTDIR="${D}" \
|
||||
docdir="/usr/share/doc/${PF}" \
|
||||
install
|
||||
|
||||
if ! use static-libs; then
|
||||
find "${ED}" -type f \( -name "*.a" -o -name "*.la" \) -delete || die
|
||||
fi
|
||||
}
|
@ -1,3 +1,2 @@
|
||||
DIST wayland-1.18.0.tar.xz 453968 BLAKE2B ee5b3f9dff07fda85b4d64bc753aff28c4a012184eb3a4bae8e3be0fb74324f12e9ea4e3dc049e06a11c7302e3c6b1e53e49109c814381641568d92b5572eed9 SHA512 e30199e30c2bbd361ee695b4f3f7a4e264f10ed8f46f2c90762b5739fc578ae757dc39aa0258d8fbf0ed418553470bccd4b2730ed9705481cfccdab5de96a8fc
|
||||
DIST wayland-1.18.91.tar.xz 453500 BLAKE2B 6e234fa637bf4329fcf37c7372e3d02a50742812e2f61477ce302da4c2a1b9377874b0e4e2da899c726ede417081c4d459e40863169352825dd38a8fe0dcf267 SHA512 5ab770c87507e8248aa5197a253f27f3cca984bf1a69c52b438e9aaf512e6b0d841321f81c20643a49ef62eeb6c8b3a6391eadfee5c8822c3cf0d63bb0a8e0f8
|
||||
DIST wayland-1.18.92.tar.xz 456320 BLAKE2B bd88156773b5ca817544e0aa496101dc144723dc7f4602011ce1bc4fedbbb20081d99fc882866c0f572139cf4bf4dcf1e7b181af48653b2c67622af07c7ab650 SHA512 837afe1accc632c445868a85792e708daa5d7dc5942888c2fa0981cfb0dd34a3d37667407f1875f04aa5710a07089f3b620a6b78dd19030b477d8b25941e6305
|
||||
DIST wayland-1.19.0.tar.xz 456380 BLAKE2B 0f70bb02e890898c4763001884527067adb686abe9a2b9325badf1730d411d269c437037afc298eec8075eb1e3845f5b81b8ed3d702908388a54e7063cbea91a SHA512 d8a86f5e23e4a88e7c84b82fdb51eb350419086afe462ecb2f4d5c3ba9290ede310cbbcffd60215219ddccf5bad4adec21a5ebfbef6577200f66ac7a1b64a5ef
|
||||
|
@ -1,85 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
if [[ ${PV} = *9999* ]]; then
|
||||
EGIT_REPO_URI="https://gitlab.freedesktop.org/wayland/wayland.git"
|
||||
inherit git-r3
|
||||
else
|
||||
SRC_URI="https://wayland.freedesktop.org/releases/${P}.tar.xz"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
|
||||
fi
|
||||
inherit meson multilib-minimal
|
||||
|
||||
DESCRIPTION="Wayland protocol libraries"
|
||||
HOMEPAGE="https://wayland.freedesktop.org/ https://gitlab.freedesktop.org/wayland/wayland"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
IUSE="doc"
|
||||
|
||||
BDEPEND="
|
||||
~dev-util/wayland-scanner-${PV}[$MULTILIB_USEDEP]
|
||||
virtual/pkgconfig
|
||||
doc? (
|
||||
>=app-doc/doxygen-1.6[dot]
|
||||
app-text/xmlto
|
||||
>=media-gfx/graphviz-2.26.0
|
||||
)
|
||||
"
|
||||
DEPEND="
|
||||
>=dev-libs/expat-2.1.0-r3:=[${MULTILIB_USEDEP}]
|
||||
dev-libs/libxml2:=
|
||||
>=dev-libs/libffi-3.0.13-r1:=[${MULTILIB_USEDEP}]
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
meson_multilib() {
|
||||
if multilib_is_native_abi; then
|
||||
echo true
|
||||
else
|
||||
echo false
|
||||
fi
|
||||
}
|
||||
|
||||
meson_multilib_native_use() {
|
||||
if multilib_is_native_abi && use "$1"; then
|
||||
echo true
|
||||
else
|
||||
echo false
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
local emesonargs=(
|
||||
-Ddocumentation=$(meson_multilib_native_use doc)
|
||||
-Ddtd_validation=$(meson_multilib)
|
||||
-Dlibraries=true
|
||||
-Dscanner=false
|
||||
)
|
||||
meson_src_configure
|
||||
}
|
||||
|
||||
multilib_src_compile() {
|
||||
meson_src_compile
|
||||
}
|
||||
|
||||
multilib_src_test() {
|
||||
meson_src_test
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# We set it on purpose to only a short subdir name, as socket paths are
|
||||
# created in there, which are 108 byte limited. With this it hopefully
|
||||
# barely fits to the limit with /var/tmp/portage/$CAT/$PF/temp/x
|
||||
export XDG_RUNTIME_DIR="${T}"/x
|
||||
mkdir "${XDG_RUNTIME_DIR}" || die
|
||||
chmod 0700 "${XDG_RUNTIME_DIR}" || die
|
||||
|
||||
multilib-minimal_src_test
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
meson_src_install
|
||||
}
|
@ -1,44 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="5"
|
||||
inherit toolchain-funcs multilib-minimal
|
||||
|
||||
DESCRIPTION="Bit Operations Library for the Lua Programming Language"
|
||||
HOMEPAGE="http://bitop.luajit.org"
|
||||
SRC_URI="http://bitop.luajit.org/download/${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 arm ~arm64 ~hppa ~mips ppc ppc64 sparc x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND=">=dev-lang/lua-5.1.5-r2:0[${MULTILIB_USEDEP}]"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig"
|
||||
|
||||
src_prepare() {
|
||||
multilib_copy_sources
|
||||
}
|
||||
|
||||
multilib_src_compile()
|
||||
{
|
||||
emake CC="$(tc-getCC)" INCLUDES= CCOPT=
|
||||
}
|
||||
|
||||
multilib_src_test() {
|
||||
# tests use native lua interpreter
|
||||
multilib_is_native_abi && default
|
||||
}
|
||||
|
||||
multilib_src_install()
|
||||
{
|
||||
local instdir="$($(tc-getPKG_CONFIG) --variable INSTALL_CMOD lua)"
|
||||
exeinto "${instdir#${EPREFIX}}"
|
||||
doexe bit.so
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
dodoc README
|
||||
dohtml -r doc/.
|
||||
}
|
Binary file not shown.
@ -1,30 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
DESCRIPTION="Pretty output handler for Busted"
|
||||
HOMEPAGE="https://github.com/hishamhm/busted-htest"
|
||||
SRC_URI="https://github.com/hishamhm/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
|
||||
IUSE="luajit"
|
||||
|
||||
RDEPEND="
|
||||
luajit? ( dev-lang/luajit:2 )
|
||||
!luajit? ( >=dev-lang/lua-5.1:0 )
|
||||
dev-lua/busted
|
||||
"
|
||||
|
||||
BDEPEND="virtual/pkgconfig"
|
||||
|
||||
src_install() {
|
||||
insinto $($(tc-getPKG_CONFIG) --variable INSTALL_LMOD $(usex luajit 'luajit' 'lua'))
|
||||
doins src/busted/outputHandlers/htest.lua
|
||||
|
||||
einstalldocs
|
||||
}
|
@ -1,48 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
DESCRIPTION="Elegant Lua unit testing"
|
||||
HOMEPAGE="http://olivinelabs.com/busted/"
|
||||
SRC_URI="https://github.com/Olivine-Labs/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 arm arm64 ppc ppc64 x86"
|
||||
IUSE="test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-lang/lua-5.1:0=
|
||||
>=dev-lua/lua_cliargs-3.0
|
||||
>=dev-lua/luafilesystem-1.5.0
|
||||
>=dev-lua/luasystem-0.2.0
|
||||
>=dev-lua/dkjson-2.1.0
|
||||
>=dev-lua/say-1.3
|
||||
>=dev-lua/luassert-1.7.8
|
||||
>=dev-lua/lua-term-0.1_p1
|
||||
>=dev-lua/penlight-1.3.2
|
||||
>=dev-lua/mediator_lua-1.1.1_p0
|
||||
"
|
||||
BDEPEND="
|
||||
virtual/pkgconfig
|
||||
test? (
|
||||
${RDEPEND}
|
||||
>=dev-lua/busted-2.0.0
|
||||
)
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
src_test() {
|
||||
busted ./spec || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin bin/busted
|
||||
insinto "$($(tc-getPKG_CONFIG) --variable INSTALL_LMOD lua)"/${PN}
|
||||
doins -r busted/*
|
||||
dodoc *.md
|
||||
}
|
@ -1,27 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
DESCRIPTION="David Kolf's JSON module for Lua"
|
||||
HOMEPAGE="http://dkolf.de/src/dkjson-lua.fsl/"
|
||||
SRC_URI="http://dkolf.de/src/dkjson-lua.fsl/tarball/${P}.tar.gz?uuid=release_2_5 -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 arm arm64 ppc ppc64 x86"
|
||||
IUSE=""
|
||||
|
||||
COMMON_DEPEND=">=dev-lang/lua-5.1:0=
|
||||
!>=dev-lang/lua-5.4"
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
virtual/pkgconfig"
|
||||
RDEPEND="${COMMON_DEPEND}"
|
||||
|
||||
src_install() {
|
||||
insinto "$($(tc-getPKG_CONFIG) --variable INSTALL_LMOD lua)"
|
||||
doins dkjson.lua
|
||||
dodoc readme.txt
|
||||
}
|
@ -1,30 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
MY_PV="${PV/_p/-}"
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
DESCRIPTION="A simple and complete ini parser for Lua"
|
||||
HOMEPAGE="https://github.com/bartbes/inifile/"
|
||||
SRC_URI="https://github.com/bartbes/inifile/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
|
||||
IUSE="luajit"
|
||||
REQUIRED_USE="${LUA_REQUIRED_USE}"
|
||||
|
||||
RDEPEND="
|
||||
luajit? ( dev-lang/luajit:2 )
|
||||
!luajit? ( >=dev-lang/lua-5.1:0= )
|
||||
"
|
||||
|
||||
BDEPEND="virtual/pkgconfig"
|
||||
|
||||
src_install() {
|
||||
insinto "$($(tc-getPKG_CONFIG) --variable INSTALL_LMOD $(usex luajit 'luajit' 'lua'))"
|
||||
doins inifile.lua
|
||||
}
|
@ -1,59 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
DESCRIPTION="Lightweight, native, lazy evaluating multithreading library"
|
||||
HOMEPAGE="https://github.com/LuaLanes/lanes"
|
||||
SRC_URI="https://github.com/LuaLanes/lanes/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~arm ~arm64 ~x86"
|
||||
IUSE="luajit test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="
|
||||
luajit? ( dev-lang/luajit:2 )
|
||||
!luajit? ( dev-lang/lua:0 )
|
||||
"
|
||||
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
BDEPEND="
|
||||
virtual/pkgconfig
|
||||
test? ( ${RDEPEND} )
|
||||
"
|
||||
|
||||
HTML_DOCS=( "docs/." )
|
||||
|
||||
PATCHES=( "${FILESDIR}/${PN}-3.13.0-makefile.patch" )
|
||||
|
||||
src_compile() {
|
||||
local myemakeargs=(
|
||||
"CC=$(tc-getCC)"
|
||||
"LUA=$(usex luajit 'luajit' 'lua')"
|
||||
"LUA_FLAGS=-I$($(tc-getPKG_CONFIG) --variable $(usex luajit 'includedir' 'INSTALL_INC') $(usex luajit 'luajit' 'lua'))"
|
||||
"LUA_LIBS="
|
||||
"OPT_FLAGS=${CFLAGS}"
|
||||
)
|
||||
|
||||
emake "${myemakeargs[@]}"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
emake LUA=$(usex luajit 'luajit' 'lua') test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local myemakeargs=(
|
||||
"LUA_LIBDIR=${ED}/$($(tc-getPKG_CONFIG) --variable INSTALL_CMOD $(usex luajit 'luajit' 'lua'))"
|
||||
"LUA_SHAREDIR=${ED}/$($(tc-getPKG_CONFIG) --variable INSTALL_LMOD $(usex luajit 'luajit' 'lua'))"
|
||||
)
|
||||
|
||||
emake "${myemakeargs[@]}" install
|
||||
|
||||
einstalldocs
|
||||
}
|
@ -1,2 +1 @@
|
||||
DIST lpeg-1.0.1.tar.gz 71527 BLAKE2B 5f19d308572f2d7a5ff11d7aa33f437ec682994d0a396a322764cf12a4cb659c66ce6ffaf0c76f6a250a7d767b6545478dd3bb760150b9f88be41fac9dafde0d SHA512 7b43fbee7eff443000986684bc56bba6d2796a31cf860740746c70e155bdea1b62a46b93f97e2747e3ef0f63e965148778ac2985d0f2d83e1e37ec4ebbabf4aa
|
||||
DIST lpeg-1.0.2.tar.gz 71840 BLAKE2B e0d8fb4e9d17c9018f0b206cd3f7c9c0e21398c119600b5b0705c8df19e0956347bea795c7c3ded8e62e0c09802dd8eab931a5e3769fcacf44c35aa2b17fa8d6 SHA512 110527ddf9f8e5e8a80ef0ae8847c8ba8cd2597dba3bfe2865cba9af60daafbb885f21e74231952f5ab793d021e050b482066a821c6954d52090a5eae77e9814
|
||||
|
@ -1,37 +0,0 @@
|
||||
--- lpeg-0.12.1/makefile
|
||||
+++ lpeg-0.12.1/makefile
|
||||
@@ -1,7 +1,7 @@
|
||||
LIBNAME = lpeg
|
||||
LUADIR = ../lua/
|
||||
|
||||
-COPT = -O2
|
||||
+#COPT = -O2
|
||||
# COPT = -DLPEG_DEBUG -g
|
||||
|
||||
CWARNS = -Wall -Wextra -pedantic \
|
||||
@@ -22,21 +22,21 @@
|
||||
# -Wunreachable-code \
|
||||
|
||||
|
||||
-CFLAGS = $(CWARNS) $(COPT) -std=c99 -I$(LUADIR) -fPIC
|
||||
+CFLAGS += $(CWARNS) $(COPT) -std=c99 -I$(LUADIR) -fPIC
|
||||
CC = gcc
|
||||
|
||||
FILES = lpvm.o lpcap.o lptree.o lpcode.o lpprint.o
|
||||
|
||||
# For Linux
|
||||
linux:
|
||||
- make lpeg.so "DLLFLAGS = -shared -fPIC"
|
||||
+ $(MAKE) lpeg.so "DLLFLAGS = -shared -fPIC"
|
||||
|
||||
# For Mac OS
|
||||
macosx:
|
||||
- make lpeg.so "DLLFLAGS = -bundle -undefined dynamic_lookup"
|
||||
+ $(MAKE) lpeg.so "DLLFLAGS = -bundle -undefined dynamic_lookup"
|
||||
|
||||
lpeg.so: $(FILES)
|
||||
- env $(CC) $(DLLFLAGS) $(FILES) -o lpeg.so
|
||||
+ env $(CC) $(DLLFLAGS) $(LDFLAGS) $(FILES) -o lpeg.so
|
||||
|
||||
$(FILES): makefile
|
||||
|
@ -1,53 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit flag-o-matic toolchain-funcs
|
||||
|
||||
DESCRIPTION="Parsing Expression Grammars for Lua"
|
||||
HOMEPAGE="http://www.inf.puc-rio.br/~roberto/lpeg/"
|
||||
SRC_URI="http://www.inf.puc-rio.br/~roberto/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 arm arm64 ~hppa ~mips ppc ppc64 sparc x86"
|
||||
IUSE="debug doc luajit"
|
||||
|
||||
RDEPEND="
|
||||
!luajit? ( >=dev-lang/lua-5.1:0= )
|
||||
luajit? ( dev-lang/luajit:2= )"
|
||||
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
virtual/pkgconfig"
|
||||
|
||||
DOCS=( "HISTORY" )
|
||||
HTML_DOCS=( "lpeg.html" "re.html" )
|
||||
PATCHES=( "${FILESDIR}"/${PN}-0.12.1-makefile.patch )
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
use debug && append-cflags -DLPEG_DEBUG
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake CC="$(tc-getCC)" \
|
||||
LUADIR="$($(tc-getPKG_CONFIG) --variable includedir $(usex luajit 'luajit' 'lua'))"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
$(usex luajit 'luajit' 'lua') test.lua || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local instdir
|
||||
instdir="$($(tc-getPKG_CONFIG) --variable INSTALL_CMOD $(usex luajit 'luajit' 'lua'))"
|
||||
exeinto "${instdir#${EPREFIX}}"
|
||||
doexe lpeg.so
|
||||
instdir="$($(tc-getPKG_CONFIG) --variable INSTALL_LMOD $(usex luajit 'luajit' 'lua'))"
|
||||
insinto "${instdir#${EPREFIX}}"
|
||||
doins re.lua
|
||||
|
||||
use doc && einstalldocs
|
||||
}
|
@ -1,53 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit flag-o-matic toolchain-funcs
|
||||
|
||||
DESCRIPTION="Parsing Expression Grammars for Lua"
|
||||
HOMEPAGE="http://www.inf.puc-rio.br/~roberto/lpeg/"
|
||||
SRC_URI="http://www.inf.puc-rio.br/~roberto/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
|
||||
IUSE="debug doc luajit"
|
||||
|
||||
RDEPEND="
|
||||
!luajit? ( >=dev-lang/lua-5.1:0= )
|
||||
luajit? ( dev-lang/luajit:2= )"
|
||||
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
virtual/pkgconfig"
|
||||
|
||||
DOCS=( HISTORY )
|
||||
HTML_DOCS=( lpeg.html re.html )
|
||||
PATCHES=( "${FILESDIR}"/${PN}-1.0.2-makefile.patch )
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
use debug && append-cflags -DLPEG_DEBUG
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake CC="$(tc-getCC)" \
|
||||
LUADIR="$($(tc-getPKG_CONFIG) --variable includedir $(usex luajit 'luajit' 'lua'))"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
$(usex luajit 'luajit' 'lua') test.lua || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local instdir
|
||||
instdir="$($(tc-getPKG_CONFIG) --variable INSTALL_CMOD $(usex luajit 'luajit' 'lua'))"
|
||||
exeinto "${instdir#${EPREFIX}}"
|
||||
doexe lpeg.so
|
||||
instdir="$($(tc-getPKG_CONFIG) --variable INSTALL_LMOD $(usex luajit 'luajit' 'lua'))"
|
||||
insinto "${instdir#${EPREFIX}}"
|
||||
doins re.lua
|
||||
|
||||
use doc && einstalldocs
|
||||
}
|
@ -1,53 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
inherit toolchain-funcs
|
||||
|
||||
DESCRIPTION="Command line argument parser for the Lua Programming Language"
|
||||
HOMEPAGE="https://github.com/mpeterv/argparse"
|
||||
SRC_URI="https://github.com/mpeterv/argparse/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 arm arm64 ppc ppc64 x86"
|
||||
IUSE="doc luajit test"
|
||||
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-lang/lua-5.1:0=
|
||||
luajit? ( dev-lang/luajit:2 )"
|
||||
BDEPEND="
|
||||
virtual/pkgconfig
|
||||
doc? ( dev-python/sphinx )
|
||||
test? (
|
||||
${RDEPEND}
|
||||
dev-lua/busted
|
||||
)"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
S="${WORKDIR}/${PN//lua-/}-${PV}"
|
||||
|
||||
src_compile() {
|
||||
if use doc; then
|
||||
sphinx-build docsrc html || die
|
||||
rm -rf "${S}"/html/{.doctrees,_sources} || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
busted -o gtest --exclude-tags="unsafe" || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
use doc && local -a HTML_DOCS=( html/. )
|
||||
local -a DOCS=( README.md CHANGELOG.md )
|
||||
einstalldocs
|
||||
|
||||
local instdir
|
||||
instdir="$($(tc-getPKG_CONFIG) --variable INSTALL_LMOD $(usex luajit 'luajit' 'lua'))"
|
||||
|
||||
insinto "${instdir#${EPREFIX}}"
|
||||
doins src/argparse.lua
|
||||
}
|
@ -1,49 +0,0 @@
|
||||
# Copyright 2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
# Weird upstream version descisions...
|
||||
# Result tarball may be reused for future lua-compat53 package
|
||||
LUA_COMPAT_PN="lua-compat-5.3"
|
||||
LUA_COMPAT_PV="0.10"
|
||||
|
||||
DESCRIPTION="Backported Lua bit manipulation library"
|
||||
HOMEPAGE="https://github.com/keplerproject/lua-compat-5.3"
|
||||
SRC_URI="https://github.com/keplerproject/${LUA_COMPAT_PN}/archive/v${LUA_COMPAT_PV}.tar.gz -> lua-compat53-${LUA_COMPAT_PV}.tar.gz"
|
||||
|
||||
S="${WORKDIR}/${LUA_COMPAT_PN}-${LUA_COMPAT_PV}"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 arm arm64 x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="test"
|
||||
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
DEPEND="dev-lang/lua:0="
|
||||
RDEPEND="${DEPEND}"
|
||||
BDEPEND="virtual/pkgconfig"
|
||||
|
||||
src_compile() {
|
||||
# TODO maybe sometime there will be luarocks eclass...
|
||||
compile="$(tc-getCC) ${CFLAGS} ${LDFLAGS} -fPIC -I/usr/include -c lbitlib.c -o lbitlib.o -DLUA_COMPAT_BITLIB -Ic-api"
|
||||
einfo "${compile}"
|
||||
eval "${compile}" || die
|
||||
|
||||
link="$(tc-getCC) -shared ${LDFLAGS} -o bit32.so lbitlib.o"
|
||||
einfo "${link}"
|
||||
eval "${link}" || die
|
||||
}
|
||||
|
||||
src_test() {
|
||||
LUA_CPATH=./?.so lua tests/test-bit32.lua || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
exeinto $($(tc-getPKG_CONFIG) --variable INSTALL_CMOD lua)
|
||||
doexe bit32.so
|
||||
dodoc README.md
|
||||
}
|
@ -1,70 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
DESCRIPTION="A fast JSON encoding/parsing module for Lua"
|
||||
HOMEPAGE="https://www.kyne.com.au/~mark/software/lua-cjson.php https://github.com/openresty/lua-cjson"
|
||||
SRC_URI="https://github.com/openresty/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
|
||||
IUSE="+internal-fpconv luajit test +threads"
|
||||
RESTRICT="!test? ( test )"
|
||||
REQUIRED_USE="threads? ( internal-fpconv )"
|
||||
|
||||
RDEPEND="
|
||||
luajit? ( dev-lang/luajit:2 )
|
||||
!luajit? ( dev-lang/lua:0 )
|
||||
"
|
||||
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="test? ( dev-lang/perl )"
|
||||
|
||||
DOCS=( "manual.txt" "NEWS" "performance.txt" "README.md" "THANKS" )
|
||||
|
||||
PATCHES=( "${FILESDIR}/${PN}-2.1.0.8-sparse_array_test_fix.patch" )
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# Don't install tests
|
||||
sed -e '/cd tests/d' -i Makefile || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local myemakeargs=(
|
||||
"CC=$(tc-getCC)"
|
||||
"CFLAGS=${CFLAGS}"
|
||||
"LDFLAGS=${LDFLAGS}"
|
||||
"LUA_INCLUDE_DIR=$($(tc-getPKG_CONFIG) --variable $(usex luajit 'includedir' 'INSTALL_INC') $(usex luajit 'luajit' 'lua'))"
|
||||
)
|
||||
|
||||
emake "${myemakeargs[@]}"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
cd tests || die
|
||||
|
||||
ln -s "${S}"/cjson.so ./ || die
|
||||
ln -s "${S}"/lua/cjson ./ || die
|
||||
|
||||
./genutf8.pl || die
|
||||
./test.lua || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local myemakeargs=(
|
||||
"DESTDIR=${D}"
|
||||
"LUA_CMODULE_DIR=$($(tc-getPKG_CONFIG) --variable INSTALL_CMOD $(usex luajit 'luajit' 'lua'))"
|
||||
"LUA_MODULE_DIR=$($(tc-getPKG_CONFIG) --variable INSTALL_LMOD $(usex luajit 'luajit' 'lua'))"
|
||||
"PREFIX=${EPREFIX}/usr"
|
||||
)
|
||||
|
||||
emake "${myemakeargs[@]}" install install-extra
|
||||
|
||||
einstalldocs
|
||||
}
|
@ -1,99 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
EGIT_COMMIT_AUX="8d09895473b73e4fb72b7573615f69c36e1860a2"
|
||||
MY_PN_AUX="lua-auxiliar"
|
||||
MY_PN_COMPAT="lua-compat-5.3"
|
||||
MY_PV="${PV//_p/-}"
|
||||
MY_PV_COMPAT="0.10"
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
DESCRIPTION="OpenSSL binding for Lua"
|
||||
HOMEPAGE="https://github.com/zhaozg/lua-openssl"
|
||||
SRC_URI="
|
||||
https://github.com/zhaozg/${PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz
|
||||
https://github.com/zhaozg/${MY_PN_AUX}/archive/${EGIT_COMMIT_AUX}.tar.gz -> ${MY_PN_AUX}-${EGIT_COMMIT_AUX}.tar.gz
|
||||
https://github.com/keplerproject/${MY_PN_COMPAT}/archive/v${MY_PV_COMPAT}.tar.gz -> ${MY_PN_COMPAT}-${MY_PV_COMPAT}.tar.gz
|
||||
"
|
||||
S="${WORKDIR}/${PN}-${MY_PV}"
|
||||
|
||||
LICENSE="MIT openssl PHP-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
|
||||
IUSE="libressl luajit test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="
|
||||
!dev-lua/luaossl
|
||||
!dev-lua/luasec
|
||||
luajit? ( dev-lang/luajit:2 )
|
||||
!luajit? ( >=dev-lang/lua-5.1:0 )
|
||||
libressl? ( dev-libs/libressl:0= )
|
||||
!libressl? ( dev-libs/openssl:0=[-bindist] )
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="
|
||||
virtual/pkgconfig
|
||||
test? ( ${RDEPEND} )
|
||||
"
|
||||
|
||||
DOCS=( "README.md" "samples/." )
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# Allow override of LUA* variables
|
||||
sed -e '/LUA /s/:=/?=/g' -e '/LUA_VERSION/s/:=/?=/g' -i Makefile || die
|
||||
|
||||
# Prepare needed dependencies (source code files only)
|
||||
rm -r deps/{auxiliar,lua-compat} || die
|
||||
mv "${WORKDIR}/${MY_PN_AUX}-${EGIT_COMMIT_AUX}" deps/auxiliar || die
|
||||
mv "${WORKDIR}/${MY_PN_COMPAT}-${MY_PV_COMPAT}" deps/lua-compat || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local myemakeargs=(
|
||||
"AR=$(tc-getAR)"
|
||||
"CC=$(tc-getCC)"
|
||||
"LUA="
|
||||
"LUA_CFLAGS=${CFLAGS} -I$($(tc-getPKG_CONFIG) --variable includedir $(usex luajit 'luajit' 'lua'))"
|
||||
"LUA_LIBS=${LDFLAGS}"
|
||||
"LUA_VERSION=$($(tc-getPKG_CONFIG) --variable $(usex luajit 'abiver' 'V') $(usex luajit 'luajit' 'lua'))"
|
||||
"TARGET_SYS=${CTARGET:-${CHOST}}"
|
||||
)
|
||||
|
||||
emake "${myemakeargs[@]}"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
local myemakeargs=(
|
||||
"LUA=$(usex luajit 'luajit' 'lua')"
|
||||
"LUA_CFLAGS="
|
||||
"LUA_LIBS="
|
||||
"LUA_VERSION=$($(tc-getPKG_CONFIG) --variable $(usex luajit 'abiver' 'V') $(usex luajit 'luajit' 'lua'))"
|
||||
"TARGET_SYS=${CTARGET:-${CHOST}}"
|
||||
)
|
||||
|
||||
emake "${myemakeargs[@]}" test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local myemakeargs=(
|
||||
"LUA="
|
||||
"LUA_CFLAGS="
|
||||
"LUA_LIBDIR=${ED}/$($(tc-getPKG_CONFIG) --variable INSTALL_CMOD $(usex luajit 'luajit' 'lua'))"
|
||||
"LUA_LIBS="
|
||||
"LUA_VERSION=$($(tc-getPKG_CONFIG) --variable $(usex luajit 'abiver' 'V') $(usex luajit 'luajit' 'lua'))"
|
||||
"TARGET_SYS=${CTARGET:-${CHOST}}"
|
||||
)
|
||||
|
||||
emake "${myemakeargs[@]}" install
|
||||
|
||||
insinto "$($(tc-getPKG_CONFIG) --variable INSTALL_LMOD $(usex luajit 'luajit' 'lua'))"
|
||||
doins -r "lib/."
|
||||
|
||||
einstalldocs
|
||||
}
|
@ -1,40 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
# Yes, upstream used different version numbers.
|
||||
# The rockspec version number is 0.7, but the version associated with
|
||||
# the tarball is 0.07.
|
||||
MY_PV=0.07
|
||||
|
||||
DESCRIPTION="Terminal functions for Lua"
|
||||
HOMEPAGE="https://github.com/hoelzro/lua-term"
|
||||
SRC_URI="https://github.com/hoelzro/lua-term/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 arm arm64 ppc ppc64 x86"
|
||||
IUSE=""
|
||||
|
||||
BDEPEND="virtual/pkgconfig"
|
||||
RDEPEND=">=dev-lang/lua-5.1:0="
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
S="${WORKDIR}/${PN}-${MY_PV}"
|
||||
|
||||
src_compile() {
|
||||
echo "$(tc-getCC) ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} -fPIC -shared \
|
||||
-o core.so core.c"
|
||||
$(tc-getCC) ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} -fPIC -shared \
|
||||
-o core.so core.c || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
exeinto "$($(tc-getPKG_CONFIG) --variable INSTALL_CMOD lua)"/term
|
||||
doexe core.so
|
||||
insinto "$($(tc-getPKG_CONFIG) --variable INSTALL_LMOD lua)"
|
||||
doins -r term
|
||||
}
|
@ -1,70 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
DESCRIPTION="A UTF-8 support module for Lua and LuaJIT"
|
||||
HOMEPAGE="https://github.com/starwing/luautf8"
|
||||
SRC_URI="https://github.com/starwing/luautf8/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/${PN//-/}-${PV}"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 arm arm64 ppc ppc64 x86"
|
||||
IUSE="luajit test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="
|
||||
luajit? ( dev-lang/luajit:2 )
|
||||
!luajit? ( >=dev-lang/lua-5.1:0= )
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="virtual/pkgconfig"
|
||||
|
||||
src_compile() {
|
||||
local compiler=(
|
||||
"$(tc-getCC)"
|
||||
"${CFLAGS}"
|
||||
"-fPIC"
|
||||
"${LDFLAGS}"
|
||||
"-I/usr/include"
|
||||
"-c lutf8lib.c"
|
||||
"-o lutf8lib.o"
|
||||
)
|
||||
einfo "${compiler[@]}"
|
||||
${compiler[@]} || die
|
||||
|
||||
local linker=(
|
||||
"$(tc-getCC)"
|
||||
"-shared"
|
||||
"${LDFLAGS}"
|
||||
"-o lutf8lib.so"
|
||||
"lutf8lib.o"
|
||||
)
|
||||
einfo "${linker[@]}"
|
||||
${linker[@]} || die
|
||||
}
|
||||
|
||||
src_test() {
|
||||
local mytests=(
|
||||
"test.lua"
|
||||
"test_compat.lua"
|
||||
"test_pm.lua"
|
||||
)
|
||||
|
||||
for mytest in ${mytests[@]}; do
|
||||
LUA_CPATH="${S}/lutf8lib.so" $(usex luajit 'luajit' 'lua') ${mytest} || die
|
||||
done
|
||||
}
|
||||
|
||||
src_install() {
|
||||
exeinto "$($(tc-getPKG_CONFIG) --variable INSTALL_CMOD lua)"
|
||||
newexe "lutf8lib.so" "lua-utf8.so"
|
||||
|
||||
insinto "$($(tc-getPKG_CONFIG) --variable INSTALL_LMOD lua)"
|
||||
doins parseucd.lua
|
||||
|
||||
einstalldocs
|
||||
}
|
@ -1,28 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit cmake
|
||||
|
||||
DESCRIPTION="Lua bindings to zlib"
|
||||
HOMEPAGE="https://github.com/brimworks/lua-zlib"
|
||||
SRC_URI="https://github.com/brimworks/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 arm arm64 x86"
|
||||
|
||||
RDEPEND="dev-lang/lua:0
|
||||
sys-libs/zlib"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="virtual/pkgconfig"
|
||||
|
||||
src_configure() {
|
||||
local lua_version="$(pkg-config --modversion lua)"
|
||||
local mycmakeargs=(
|
||||
-DINSTALL_CMOD="$(pkg-config --variable INSTALL_CMOD lua)"
|
||||
-DUSE_LUA_VERSION="$(ver_cut 1-2 ${lua_version})"
|
||||
)
|
||||
cmake_src_configure
|
||||
}
|
@ -1,38 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
# Below is the upstream package version.
|
||||
# The final component of the version number has been mapped to the _px
|
||||
# component of the version number in portage so should be kept in sync.
|
||||
MY_PV="3.0-2"
|
||||
|
||||
DESCRIPTION="A command-line argument parser."
|
||||
HOMEPAGE="https://github.com/amireh/lua_cliargs"
|
||||
SRC_URI="https://github.com/amireh/${PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 arm arm64 ppc ppc64 x86"
|
||||
IUSE="doc"
|
||||
|
||||
BDEPEND="virtual/pkgconfig"
|
||||
DEPEND=">=dev-lang/lua-5.1:0="
|
||||
RDEPEND="${RDEPEND}"
|
||||
|
||||
S="${WORKDIR}/${PN}-${MY_PV}"
|
||||
|
||||
src_install() {
|
||||
insinto "$($(tc-getPKG_CONFIG) --variable INSTALL_LMOD lua)"
|
||||
doins -r src/cliargs.lua src/cliargs
|
||||
|
||||
if use doc; then
|
||||
local HTML_DOCS=( doc/. )
|
||||
dodoc -r examples
|
||||
fi
|
||||
|
||||
einstalldocs
|
||||
}
|
@ -1,2 +1 @@
|
||||
DIST luacheck-0.20.0.tar.gz 132693 BLAKE2B d485ef841c00241023a9cb9bd0e1f994da3b5e79dad01281e0203e1561f788f8d1e8db97910d3a82ab3daafb3dceef1fe2897beee9f16e71350fdff27eba7fe0 SHA512 08b1a64849b329e6ad71b1d7011fac0833de068641270adaa009e9a17139968ab73add3786a508a8787ce1fcfe1f028a35b5434221e4f1f62bea56833e0e65dd
|
||||
DIST luacheck-0.23.0.tar.gz 158201 BLAKE2B c0780143a335b1deb7725819dbdac03446742fd459eed5a6de0cf3de5576f3be5379ff7086348b8880eba70dd5f7a1e719e9a09fdcc70abc293e1636f575ad57 SHA512 d76e4b22f1e9d868a8531ad51fb98607e5bfb1fbbd55053105d9978ba6c0455de99202c53d4e199733ea997863b26527fb84e7e9717209fd588f1d02db9db028
|
||||
|
@ -1,49 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
inherit toolchain-funcs
|
||||
|
||||
DESCRIPTION="A tool for linting and static analysis of Lua code"
|
||||
HOMEPAGE="https://github.com/mpeterv/luacheck"
|
||||
SRC_URI="https://github.com/mpeterv/luacheck/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 arm ppc ppc64 x86"
|
||||
IUSE="doc luajit test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="
|
||||
dev-lua/luafilesystem[luajit(-)=]
|
||||
!luajit? ( >=dev-lang/lua-5.1:0= )
|
||||
luajit? ( dev-lang/luajit:2 )"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig
|
||||
doc? ( dev-python/sphinx )
|
||||
test? ( dev-lua/busted )"
|
||||
|
||||
DOCS=( CHANGELOG.md README.md )
|
||||
|
||||
src_compile() {
|
||||
if use doc; then
|
||||
sphinx-build docsrc html || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
busted -o gtest || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local instdir
|
||||
instdir="$($(tc-getPKG_CONFIG) --variable INSTALL_LMOD $(usex luajit 'luajit' 'lua'))"
|
||||
insinto "${instdir#${EPREFIX}}"
|
||||
doins -r src/luacheck
|
||||
|
||||
newbin bin/luacheck.lua luacheck
|
||||
|
||||
use doc && HTML_DOCS+=( html/. )
|
||||
|
||||
einstalldocs
|
||||
}
|
@ -1,56 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
inherit toolchain-funcs
|
||||
|
||||
DESCRIPTION="A tool for linting and static analysis of Lua code"
|
||||
HOMEPAGE="https://github.com/mpeterv/luacheck"
|
||||
SRC_URI="https://github.com/mpeterv/luacheck/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 arm ~arm64 ppc ppc64 x86"
|
||||
IUSE="doc luajit test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="
|
||||
dev-lua/lua-argparse[luajit(-)=]
|
||||
dev-lua/luafilesystem[luajit(-)=]
|
||||
dev-lua/lua-utf8[luajit(-)=]
|
||||
!luajit? ( >=dev-lang/lua-5.1:0= )
|
||||
luajit? ( dev-lang/luajit:2 )"
|
||||
BDEPEND="
|
||||
virtual/pkgconfig
|
||||
doc? ( dev-python/sphinx )
|
||||
test? (
|
||||
${RDEPEND}
|
||||
dev-lua/busted
|
||||
)"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
PATCHES=( "${FILESDIR}/${PN}-0.23.0-disable-measuring-performance-test.patch" )
|
||||
|
||||
src_compile() {
|
||||
if use doc; then
|
||||
sphinx-build docsrc html || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
busted -o gtest || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local instdir
|
||||
instdir="$($(tc-getPKG_CONFIG) --variable INSTALL_LMOD $(usex luajit 'luajit' 'lua'))"
|
||||
insinto "${instdir#${EPREFIX}}"
|
||||
doins -r src/luacheck
|
||||
|
||||
newbin bin/luacheck.lua luacheck
|
||||
|
||||
use doc && local HTML_DOCS=( html/. )
|
||||
|
||||
local -a DOCS=( CHANGELOG.md LICENSE README.md )
|
||||
einstalldocs
|
||||
}
|
@ -1,46 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
DESCRIPTION="A simple coverage analyzer for Lua scripts"
|
||||
HOMEPAGE="https://github.com/keplerproject/luacov"
|
||||
SRC_URI="https://github.com/keplerproject/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
|
||||
IUSE="luajit test"
|
||||
REQUIRED_USE="${LUA_REQUIRED_USE}"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="
|
||||
luajit? ( dev-lang/luajit:2 )
|
||||
!luajit? ( dev-lang/lua:0 )
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="
|
||||
virtual/pkgconfig
|
||||
test? (
|
||||
dev-lua/busted
|
||||
${RDEPEND}
|
||||
)
|
||||
"
|
||||
|
||||
HTML_DOCS=( "doc/." )
|
||||
|
||||
src_test() {
|
||||
busted --lua="$(usex luajit 'luajit' 'lua')" || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin src/bin/luacov
|
||||
|
||||
insinto "$($(tc-getPKG_CONFIG) --variable INSTALL_LMOD $(usex luajit 'luajit' 'lua'))"
|
||||
doins src/luacov.lua
|
||||
doins -r src/luacov
|
||||
|
||||
einstalldocs
|
||||
}
|
@ -1,65 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
DESCRIPTION="A database interface library for Lua"
|
||||
HOMEPAGE="https://github.com/mwild1/luadbi"
|
||||
SRC_URI="https://github.com/mwild1/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 arm arm64 x86"
|
||||
IUSE="mysql postgres +sqlite test"
|
||||
REQUIRED_USE="|| ( mysql postgres sqlite )"
|
||||
RESTRICT="test"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-lang/lua-5.1:0=
|
||||
mysql? ( dev-db/mysql-connector-c:0= )
|
||||
postgres? ( dev-db/postgresql:= )
|
||||
sqlite? ( dev-db/sqlite )
|
||||
"
|
||||
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
BDEPEND="virtual/pkgconfig"
|
||||
|
||||
PATCHES=( "${FILESDIR}/${PN}-0.7.2-mysql-8.patch" )
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# Respect users CFLAGS
|
||||
sed -e 's/-g //' -e 's/-O2 //g' -i Makefile || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
tc-export AR CC
|
||||
|
||||
local myemakeargs=(
|
||||
"LUA_INC=-I$($(tc-getPKG_CONFIG) --variable INSTALL_INC lua)/lua5.1"
|
||||
)
|
||||
|
||||
use mysql && emake ${myemakeargs} MYSQL_INC="-I$(mariadb_config --libs)" mysql
|
||||
use postgres && emake ${myemakeargs} PSQL_INC="-I$(pg_config --libdir)" psql
|
||||
use sqlite emake ${myemakeargs} SQLITE3_INC="-I/usr/include" sqlite
|
||||
}
|
||||
|
||||
src_test() {
|
||||
cd "${S}"/tests && lua run_tests.lua || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local myemakeargs=(
|
||||
DESTDIR="${ED}"
|
||||
LUA_CDIR="$($(tc-getPKG_CONFIG) --variable INSTALL_CMOD lua)"
|
||||
LUA_LDIR="$($(tc-getPKG_CONFIG) --variable INSTALL_LMOD lua)"
|
||||
)
|
||||
|
||||
use mysql && emake ${myemakeargs[@]} install_mysql
|
||||
use postgres && emake ${myemakeargs[@]} install_psql
|
||||
use sqlite && emake ${myemakeargs[@]} install_sqlite3
|
||||
}
|
@ -1,39 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="7"
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
DESCRIPTION="libevent bindings for Lua"
|
||||
HOMEPAGE="http://luaforge.net/projects/luaevent"
|
||||
SRC_URI="https://github.com/harningt/luaevent/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 arm arm64 x86"
|
||||
|
||||
RDEPEND="dev-lang/lua:0
|
||||
dev-libs/libevent:0="
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig"
|
||||
|
||||
src_prepare() {
|
||||
sed -i "s:^CFLAGS =:CFLAGS +=:" "${S}/Makefile" \
|
||||
|| die "sed failed"
|
||||
sed -i "s:^LDFLAGS =:LDFLAGS +=:" "${S}/Makefile" \
|
||||
|| die "sed failed"
|
||||
sed -i "/^LDFLAGS/a CC = $(tc-getCC)" "${S}/Makefile" \
|
||||
|| die "sed failed"
|
||||
sed -i "s:^LUA_INC_DIR ?=.*:LUA_INC_DIR ?= $(pkg-config --variable INSTALL_INC lua):" "${S}/Makefile" \
|
||||
|| die "sed failed"
|
||||
sed -i "s:^INSTALL_DIR_LUA ?=.*:INSTALL_DIR_LUA ?= $(pkg-config --variable INSTALL_LMOD lua):" "${S}/Makefile" \
|
||||
|| die "sed failed"
|
||||
sed -i "s:^INSTALL_DIR_BIN ?=.*:INSTALL_DIR_BIN ?= $(pkg-config --variable INSTALL_CMOD lua):" "${S}/Makefile" \
|
||||
|| die "sed failed"
|
||||
eapply_user
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
}
|
@ -1,46 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit multilib-minimal toolchain-funcs
|
||||
|
||||
DESCRIPTION="LuaExpat is a SAX XML parser based on the Expat library"
|
||||
HOMEPAGE="http://www.keplerproject.org/luaexpat/"
|
||||
SRC_URI="http://matthewwild.co.uk/projects/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 arm arm64 ~hppa ~mips ppc ppc64 sparc x86"
|
||||
|
||||
RDEPEND=">=dev-lang/lua-5.1.5-r2:0[${MULTILIB_USEDEP}]
|
||||
>=dev-libs/expat-2.1.0-r3[${MULTILIB_USEDEP}]"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="virtual/pkgconfig"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
sed -i -e 's:-g::' -e 's:-O2::' Makefile || die "sed failed"
|
||||
multilib_copy_sources
|
||||
}
|
||||
|
||||
multilib_src_compile() {
|
||||
emake \
|
||||
CFLAGS="${CFLAGS}" \
|
||||
LDFLAGS="${LDFLAGS}" \
|
||||
CC="$(tc-getCC)" \
|
||||
LUA_INC="-I$($(tc-getPKG_CONFIG) --variable INSTALL_INC lua)"
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
emake \
|
||||
DESTDIR="${D}" \
|
||||
LUA_LDIR="$($(tc-getPKG_CONFIG) --variable INSTALL_LMOD lua)" \
|
||||
LUA_CDIR="$($(tc-getPKG_CONFIG) --variable INSTALL_CMOD lua)" \
|
||||
LUA_INC="-I$($(tc-getPKG_CONFIG) --variable INSTALL_INC lua)" \
|
||||
install
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
dodoc -r README doc/*
|
||||
}
|
@ -1,49 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit multilib-minimal toolchain-funcs
|
||||
|
||||
DESCRIPTION="LuaExpat is a SAX XML parser based on the Expat library"
|
||||
HOMEPAGE="https://matthewwild.co.uk/projects/luaexpat/ https://github.com/tomasguisasola/luaexpat"
|
||||
SRC_URI="https://github.com/tomasguisasola/luaexpat/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
|
||||
|
||||
RDEPEND=">=dev-lang/lua-5.1.5-r2:0[${MULTILIB_USEDEP}]
|
||||
>=dev-libs/expat-2.1.0-r3[${MULTILIB_USEDEP}]"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="virtual/pkgconfig"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${P}_makefile.patch"
|
||||
"${FILESDIR}/${P}_getcurrentbytecount.patch"
|
||||
"${FILESDIR}/${P}_restore_functionality.patch"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
multilib_copy_sources
|
||||
}
|
||||
|
||||
multilib_src_compile() {
|
||||
emake \
|
||||
CFLAGS="${CFLAGS}" \
|
||||
LDFLAGS="${LDFLAGS}" \
|
||||
CC="$(tc-getCC)" \
|
||||
LUA_INC="$($(tc-getPKG_CONFIG) --variable INSTALL_INC lua)"
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
emake \
|
||||
LUA_DIR="${D}/$($(tc-getPKG_CONFIG) --variable INSTALL_LMOD lua)" \
|
||||
LUA_LIBDIR="${D}/$($(tc-getPKG_CONFIG) --variable INSTALL_CMOD lua)" \
|
||||
install
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
dodoc -r README.md doc/*
|
||||
}
|
@ -1,47 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
MY_PV=${PV//./_}
|
||||
|
||||
DESCRIPTION="File System Library for the Lua programming language"
|
||||
HOMEPAGE="https://keplerproject.github.io/luafilesystem/"
|
||||
SRC_URI="https://github.com/keplerproject/${PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/${PN}-${MY_PV}"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 arm arm64 ~hppa ~mips ppc ppc64 sparc x86"
|
||||
IUSE="luajit test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-lang/lua-5.1:0
|
||||
luajit? ( dev-lang/luajit:2 )
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="
|
||||
virtual/pkgconfig
|
||||
test? ( ${RDEPEND} )
|
||||
"
|
||||
|
||||
HTML_DOCS=( "doc/us/." )
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
cat > "config" <<-EOF
|
||||
CC=$(tc-getCC)
|
||||
CFLAGS=${CFLAGS} -I$($(tc-getPKG_CONFIG) --variable includedir $(usex luajit 'luajit' 'lua')) -fPIC
|
||||
DESTDIR=${ED}
|
||||
LIB_OPTION=${LDFLAGS} -shared
|
||||
LUA_LIBDIR=$($(tc-getPKG_CONFIG) --variable INSTALL_CMOD $(usex luajit 'luajit' 'lua'))
|
||||
EOF
|
||||
}
|
||||
|
||||
src_test() {
|
||||
LUA_CPATH="src/lfs.so" lua tests/test.lua || die
|
||||
}
|
@ -1,58 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
DESCRIPTION="A lua binding for the OpenLDAP client libraries"
|
||||
HOMEPAGE="https://github.com/lualdap/lualdap"
|
||||
SRC_URI="https://github.com/lualdap/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="luajit test"
|
||||
RESTRICT="test"
|
||||
|
||||
RDEPEND="
|
||||
luajit? ( dev-lang/luajit:2 )
|
||||
!luajit? ( dev-lang/lua:0 )
|
||||
net-nds/openldap
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="
|
||||
virtual/pkgconfig
|
||||
test? ( ${RDEPEND} )
|
||||
"
|
||||
|
||||
HTML_DOCS=( "doc/us/." )
|
||||
|
||||
src_compile() {
|
||||
local myemakeargs=(
|
||||
"CC=$(tc-getCC)"
|
||||
"LBER_LIBDIR=/usr/$(get_libdir)"
|
||||
"LDAP_LIBDIR=/usr/$(get_libdir)"
|
||||
"LUA_INCDIR=$($(tc-getPKG_CONFIG) --variable includedir $(usex luajit 'luajit' 'lua'))"
|
||||
)
|
||||
|
||||
emake "${myemakeargs[@]}"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
LUA_CPATH="${S}/src/?.so" $(usex luajit 'luajit' 'lua') tests/test.lua
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# Workaround, as 'make install' does not create this directory
|
||||
dodir "$($(tc-getPKG_CONFIG) --variable INSTALL_CMOD $(usex luajit 'luajit' 'lua'))"
|
||||
|
||||
local myemakeargs=(
|
||||
"DESTDIR=${ED}"
|
||||
"INST_LIBDIR=$($(tc-getPKG_CONFIG) --variable INSTALL_CMOD $(usex luajit 'luajit' 'lua'))"
|
||||
)
|
||||
|
||||
emake "${myemakeargs[@]}" install
|
||||
|
||||
einstalldocs
|
||||
}
|
@ -1,66 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
MY_P="${PN}-rel-${PV}"
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
DESCRIPTION="Most comprehensive OpenSSL module in the Lua universe"
|
||||
HOMEPAGE="https://github.com/wahern/luaossl"
|
||||
SRC_URI="https://github.com/wahern/${PN}/archive/rel-${PV}.tar.gz -> ${MY_P}.tar.gz"
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
|
||||
IUSE="examples luajit"
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/openssl:0[-bindist]
|
||||
!dev-lua/lua-openssl
|
||||
!dev-lua/luasec
|
||||
luajit? ( dev-lang/luajit:2 )
|
||||
!luajit? ( dev-lang/lua:0 )
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="virtual/pkgconfig"
|
||||
|
||||
DOCS=( "doc/." )
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# Remove Lua autodetection
|
||||
# Respect users CFLAGS
|
||||
sed -e '/LUAPATH :=/d' -e '/LUAPATH_FN =/d' -e '/HAVE_API_FN =/d' -e '/WITH_API_FN/d' -e 's/-O2//g' -i GNUmakefile || die
|
||||
|
||||
# Set LUA version
|
||||
LUA_VERSION=$($(tc-getPKG_CONFIG) --variable=$(usex luajit abiver V) $(usex luajit luajit lua))
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local myemakeargs=(
|
||||
"CC=$(tc-getCC)"
|
||||
"ALL_CPPFLAGS=${CPPFLAGS} -I$($(tc-getPKG_CONFIG) --variable includedir $(usex luajit 'luajit' 'lua'))"
|
||||
"libdir="
|
||||
)
|
||||
|
||||
emake "${myemakeargs[@]}" openssl${LUA_VERSION}
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local myemakeargs=(
|
||||
"DESTDIR=${D}"
|
||||
"lua${LUA_VERSION/./}cpath=$($(tc-getPKG_CONFIG) --variable INSTALL_CMOD $(usex luajit 'luajit' 'lua'))"
|
||||
"lua${LUA_VERSION/./}path=$($(tc-getPKG_CONFIG) --variable INSTALL_LMOD $(usex luajit 'luajit' 'lua'))"
|
||||
"prefix=${EPREFIX}/usr"
|
||||
)
|
||||
|
||||
emake "${myemakeargs[@]}" install${LUA_VERSION}
|
||||
|
||||
use examples && dodoc -r "examples/."
|
||||
|
||||
einstalldocs
|
||||
}
|
@ -1,43 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
DESCRIPTION="Bindings for POSIX APIs"
|
||||
HOMEPAGE="https://luaposix.github.io/luaposix/ https://github.com/luaposix/luaposix"
|
||||
SRC_URI="https://github.com/luaposix/luaposix/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
SLOT="0"
|
||||
LICENSE="MIT"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||||
|
||||
DEPEND="dev-lang/lua:0="
|
||||
RDEPEND="${DEPEND}
|
||||
dev-lua/lua-bit32"
|
||||
BDEPEND="virtual/pkgconfig"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
# Temporary fix for respect LDFLAGS (#739050)
|
||||
# Fixed in luke 0.2.1
|
||||
sed -i -e "s:c_module,libdirs:c_module,'\$LDFLAGS',libdirs:g" \
|
||||
build-aux/luke || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
./build-aux/luke package="${PN}" version="${PV}" \
|
||||
PREFIX="${ED}/usr" \
|
||||
INST_LIBDIR="${ED}/$($(tc-getPKG_CONFIG) --variable INSTALL_CMOD lua)" \
|
||||
INST_LUADIR="${ED}/$($(tc-getPKG_CONFIG) --variable INSTALL_LMOD lua)" \
|
||||
CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" CC="$(tc-getCC)" || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
./build-aux/luke install \
|
||||
PREFIX="${ED}/usr" \
|
||||
INST_LIBDIR="${ED}/$($(tc-getPKG_CONFIG) --variable INSTALL_CMOD lua)" \
|
||||
INST_LUADIR="${ED}/$($(tc-getPKG_CONFIG) --variable INSTALL_LMOD lua)" \
|
||||
|| die
|
||||
dodoc -r doc NEWS.md README.md
|
||||
}
|
@ -1,2 +1 @@
|
||||
DIST luarocks-3.3.1.tar.gz 241636 BLAKE2B fd34d7a233bbf1c5f224bd04886a7f1382d63ffc014c8b78ae7924fb799d66a32e048298deed103686771263885c85c9173c013d1bbb3bad6a48e9fd99fdaac0 SHA512 0a695ceb30ae575cbca52abd2aad9675e33a234c53c5d1e125442d874c21e0e3cf6157431f07085e4311f81833680366adfe5c626a66cb5880380b48899a116a
|
||||
DIST luarocks-3.5.0.tar.gz 244798 BLAKE2B 24ceead8953ad6d9eefbf471fd49e0bd82256cc00c201395770919a680873544db67f062a4af93ddd390985b0b74db55e37a95516287dfc1e077a25b67c9f264 SHA512 fda01b7149839adf7c0e1c05d0f1793e79575c5d378d96ee1e197828e9b9b6e89a635f8a26a5b71db5b48465ef74b219fac18ecdbd59962cbf9da613b05dd42a
|
||||
|
@ -1,36 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
DESCRIPTION="A deployment and management system for Lua modules"
|
||||
HOMEPAGE="http://www.luarocks.org"
|
||||
SRC_URI="http://luarocks.org/releases/${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~ppc ~ppc64 x86"
|
||||
IUSE="libressl"
|
||||
|
||||
DEPEND="dev-lang/lua:0="
|
||||
RDEPEND="${DEPEND}
|
||||
net-misc/curl
|
||||
!libressl? ( dev-libs/openssl:0 )
|
||||
libressl? ( dev-libs/libressl:0 )
|
||||
"
|
||||
BDEPEND="virtual/pkgconfig"
|
||||
|
||||
src_configure() {
|
||||
# econf doesn't work b/c it passes variables the custom configure can't
|
||||
# handle
|
||||
./configure \
|
||||
--prefix="${EPREFIX}/usr" \
|
||||
--with-lua-lib="${EPREFIX}/usr/$(get_libdir)" \
|
||||
--rocks-tree="${EPREFIX}/usr/$(get_libdir)/lua/luarocks" \
|
||||
|| die "configure failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
{ find "${D}" -type f -exec sed -i -e "s:${D}::g" {} \;; } || die "sed failed"
|
||||
}
|
@ -1,42 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit multilib toolchain-funcs
|
||||
|
||||
DESCRIPTION="Lua binding for OpenSSL library to provide TLS/SSL communication"
|
||||
HOMEPAGE="https://github.com/brunoos/luasec"
|
||||
SRC_URI="https://github.com/brunoos/luasec/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="amd64 arm arm64 x86"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
IUSE="libressl"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-lang/lua-5.1:0[deprecated]
|
||||
dev-lua/luasocket
|
||||
!libressl? ( dev-libs/openssl:0= )
|
||||
libressl? ( dev-libs/libressl:= )"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="virtual/pkgconfig"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
sed -i -e "s/-O2//" src/Makefile || die
|
||||
lua src/options.lua -g /usr/include/openssl/ssl.h > src/options.c || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake \
|
||||
CC="$(tc-getCC)" LD="$(tc-getCC)" LIB_PATH="" \
|
||||
linux
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake \
|
||||
LUAPATH="${D}/$(pkg-config --variable INSTALL_LMOD lua)" \
|
||||
LUACPATH="${D}/$(pkg-config --variable INSTALL_CMOD lua)" \
|
||||
install
|
||||
}
|
@ -1,49 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit multilib toolchain-funcs
|
||||
|
||||
DESCRIPTION="Lua binding for OpenSSL library to provide TLS/SSL communication"
|
||||
HOMEPAGE="https://github.com/brunoos/luasec"
|
||||
|
||||
if [[ ${PV} == *9999 ]] ; then
|
||||
EGIT_REPO_URI="https://github.com/brunoos/${PN}.git"
|
||||
inherit git-r3
|
||||
else
|
||||
SRC_URI="https://github.com/brunoos/luasec/archive/${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
|
||||
S=${WORKDIR}/${PN}-${P}
|
||||
fi
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
IUSE="libressl"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-lang/lua-5.1:0[deprecated]
|
||||
dev-lua/luasocket
|
||||
!libressl? ( dev-libs/openssl:0= ) libressl? ( dev-libs/libressl:= )"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
sed -i -e "s/-O2//" src/Makefile || die
|
||||
lua src/options.lua -g /usr/include/openssl/ssl.h > src/options.h || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake \
|
||||
CC="$(tc-getCC)" \
|
||||
LD="$(tc-getCC)" \
|
||||
linux
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake \
|
||||
LUAPATH="${D}/$(pkg-config --variable INSTALL_LMOD lua)" \
|
||||
LUACPATH="${D}/$(pkg-config --variable INSTALL_CMOD lua)" \
|
||||
install
|
||||
}
|
@ -1,2 +1 @@
|
||||
DIST luasocket-3.0_rc1.tar.gz 328598 BLAKE2B 9cc382d909cfa018edec237ac901220cccb0cf0e3a775b9cd8083487ace42a94dfd280f9423097f677f37ee9f85afcfff844250cd49c0f813b7c50c3adc532c5 SHA512 f6efce259aaacaa11472911471f8a13b118fe009b8953a82c6aa18b9ec829cd1293180904e56935cb130d36d267e3f27c91db2d78e03f7488f3e100571ed0540
|
||||
DIST luasocket-3.0_rc1_p20200328.tar.gz 335628 BLAKE2B 9e5d3e415337903b689705669b586c4481179a319b4e3428823c8f442d04f26db86bfeca66db7e58d157e31431c31e4f687403f7163b75f57d6f87cdb934717f SHA512 bdf7086a0504b0072b9cfd1266fc4ae89504053801722859a426f567fca00ed76f4c295c2a3a968e93f0036d9b792cf97561e9baa82c09ea23999cfd473227eb
|
||||
|
@ -1,31 +0,0 @@
|
||||
From 1f9ccb2b586c3a7e29db3c99a23ac1cee6907cf2 Mon Sep 17 00:00:00 2001
|
||||
From: Pierre Chapuis <catwell@archlinux.us>
|
||||
Date: Fri, 5 Jul 2013 18:00:29 +0200
|
||||
Subject: [PATCH] http: look for PROXY in _M, not as a global
|
||||
|
||||
---
|
||||
src/http.lua | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/src/http.lua b/src/http.lua
|
||||
index 5f70a374..f83dcc55 100644
|
||||
--- a/src/http.lua
|
||||
+++ b/src/http.lua
|
||||
@@ -186,7 +186,7 @@ end
|
||||
local function adjusturi(reqt)
|
||||
local u = reqt
|
||||
-- if there is a proxy, we need the full url. otherwise, just a part.
|
||||
- if not reqt.proxy and not PROXY then
|
||||
+ if not reqt.proxy and not _M.PROXY then
|
||||
u = {
|
||||
path = socket.try(reqt.path, "invalid path 'nil'"),
|
||||
params = reqt.params,
|
||||
@@ -198,7 +198,7 @@ local function adjusturi(reqt)
|
||||
end
|
||||
|
||||
local function adjustproxy(reqt)
|
||||
- local proxy = reqt.proxy or PROXY
|
||||
+ local proxy = reqt.proxy or _M.PROXY
|
||||
if proxy then
|
||||
proxy = url.parse(proxy)
|
||||
return proxy.host, proxy.port or 3128
|
@ -1,58 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit multilib multilib-minimal flag-o-matic toolchain-funcs
|
||||
|
||||
DESCRIPTION="Networking support library for the Lua language"
|
||||
HOMEPAGE="http://www.tecgraf.puc-rio.br/~diego/professional/luasocket/
|
||||
https://github.com/diegonehab/luasocket"
|
||||
SRC_URI="https://github.com/diegonehab/${PN}/archive/v${PV/_/-}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 arm arm64 ~hppa ~mips ppc ppc64 sparc x86"
|
||||
IUSE="debug"
|
||||
|
||||
RDEPEND=">=dev-lang/lua-5.1.5-r2:0[${MULTILIB_USEDEP}]"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="virtual/pkgconfig"
|
||||
|
||||
S=${WORKDIR}/${PN}-${PV/_/-}
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/proxy-fix.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
multilib_copy_sources
|
||||
}
|
||||
|
||||
multilib_src_compile() {
|
||||
emake \
|
||||
CC="$(tc-getCC) ${CFLAGS}" \
|
||||
LD="$(tc-getCC) ${LDFLAGS}"\
|
||||
$(usex debug DEBUG="DEBUG" "")
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
local luav=$($(tc-getPKG_CONFIG) --variable V lua)
|
||||
emake \
|
||||
DESTDIR="${D}" \
|
||||
LUAPREFIX_linux="${EPREFIX}/usr" \
|
||||
LUAV=${luav} \
|
||||
CDIR_linux=$(get_libdir)/lua/${luav} \
|
||||
install-unix
|
||||
insinto /usr/include/lua${luav}/luasocket
|
||||
doins src/*.h
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
dodoc NEW README
|
||||
docinto html
|
||||
dodoc -r doc/.
|
||||
}
|
@ -1,72 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
EGIT_COMMIT="5b18e475f38fcf28429b1cc4b17baee3b9793a62"
|
||||
|
||||
inherit flag-o-matic toolchain-funcs
|
||||
|
||||
DESCRIPTION="Networking support library for the Lua language"
|
||||
HOMEPAGE="
|
||||
http://www.tecgraf.puc-rio.br/~diego/professional/luasocket/
|
||||
https://github.com/diegonehab/luasocket
|
||||
"
|
||||
SRC_URI="https://github.com/diegonehab/${PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/${PN}-${EGIT_COMMIT}"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
|
||||
IUSE="luajit"
|
||||
RESTRICT="test"
|
||||
|
||||
RDEPEND="
|
||||
luajit? ( dev-lang/luajit:2 )
|
||||
!luajit? ( dev-lang/lua:0 )
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="virtual/pkgconfig"
|
||||
|
||||
HTML_DOCS="doc/."
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# Respect users CFLAGS
|
||||
sed -e 's/-O2 -ggdb3//g' -i src/makefile || die
|
||||
|
||||
# Workaround for 32-bit systems
|
||||
append-cflags -fno-stack-protector
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local myemakeargs=(
|
||||
"CC=$(tc-getCC)"
|
||||
"LD=$(tc-getCC)"
|
||||
"LDFLAGS_linux=-O -fpic -shared -o"
|
||||
"LUAINC_linux=$($(tc-getPKG_CONFIG) --variable includedir $(usex luajit 'luajit' 'lua'))"
|
||||
"LUAV=5.1"
|
||||
"MYCFLAGS=${CFLAGS}"
|
||||
"MYLDFLAGS=${LDFLAGS}"
|
||||
)
|
||||
|
||||
emake "${myemakeargs[@]}" all
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local myemakeargs=(
|
||||
"CDIR=$($(tc-getPKG_CONFIG) --variable INSTALL_CMOD $(usex luajit 'luajit' 'lua'))"
|
||||
"DESTDIR=${ED}"
|
||||
"LDIR=$($(tc-getPKG_CONFIG) --variable INSTALL_LMOD $(usex luajit 'luajit' 'lua'))"
|
||||
"LUAPREFIX_linux="
|
||||
)
|
||||
|
||||
emake "${myemakeargs[@]}" install
|
||||
emake "${myemakeargs[@]}" install-unix
|
||||
|
||||
insinto "$($(tc-getPKG_CONFIG) --variable includedir $(usex luajit 'luajit' 'lua'))/luasocket"
|
||||
doins src/*.h
|
||||
|
||||
einstalldocs
|
||||
}
|
@ -1,45 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
DESCRIPTION="Lua Assertions Extension"
|
||||
HOMEPAGE="http://olivinelabs.com/busted/"
|
||||
SRC_URI="https://github.com/Olivine-Labs/luassert/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 arm arm64 ppc ppc64 x86"
|
||||
IUSE="luajit test"
|
||||
RESTRICT="test" # Requires same version to be installed or busted will fail.
|
||||
|
||||
RDEPEND="
|
||||
>=dev-lua/say-1.3_p1[luajit(-)=]
|
||||
!luajit? ( >=dev-lang/lua-5.1:0= )
|
||||
luajit? ( dev-lang/luajit:2 )
|
||||
"
|
||||
|
||||
BDEPEND="
|
||||
virtual/pkgconfig
|
||||
test? (
|
||||
${RDEPEND}
|
||||
dev-lua/busted
|
||||
)
|
||||
"
|
||||
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
src_test() {
|
||||
busted -o gtest || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local instdir
|
||||
instdir="$($(tc-getPKG_CONFIG) --variable INSTALL_LMOD $(usex luajit 'luajit' 'lua'))"/${PN}
|
||||
insinto "${instdir#${EPREFIX}}"
|
||||
doins -r src/*
|
||||
local -a DOCS=( CONTRIBUTING.md LICENSE README.md )
|
||||
einstalldocs
|
||||
}
|
@ -1,2 +1 @@
|
||||
DIST luasystem-0.2.0_p0.tar.gz 8058 BLAKE2B fd29eaec7fe2f49e933932a436be75678400fc55a275e412379e05ab5b9cfe2036dfc9e61f960caa29d3c4ab1d439f9ede7ff3cbe14a61287270cc3707660636 SHA512 b8c7ba30470cbf100cc3f14df31729778cfb0aabebe4d27ce42c19581a2585f878d86a29a2f73fd1bef4e5861e2a604d3c396a73f131fa99ae14a17cba52c336
|
||||
DIST luasystem-0.2.1_p0.tar.gz 8162 BLAKE2B ad8a6009823ad8202ff3884a3167d0779405c2a6be460b7ef2939622eb4d0fc8edbc6b04aba5dec9dd5e4e38f11ae0dcd582b9c348d5b516aa411858d55c6d71 SHA512 9dc323d4d1914cfa4f278a49ef22e58569d5cd7e369fa17fa6006cd47f9d90c6dfd4404067ea2436aa46a27cfbdf91e4aa26e20b89aeeefdf2aa7252c51fb32b
|
||||
|
@ -1,33 +0,0 @@
|
||||
diff --git a/src/Makefile b/src/Makefile
|
||||
index 10fc31a..af5e4e4 100644
|
||||
--- a/src/Makefile
|
||||
+++ b/src/Makefile
|
||||
@@ -144,8 +144,8 @@ O_linux=o
|
||||
CC_linux=gcc
|
||||
DEF_linux=
|
||||
CFLAGS_linux= -I$(LUAINC) $(DEF) -Wall -Wshadow -Wextra \
|
||||
- -Wimplicit -O2 -ggdb3 -fpic -fvisibility=hidden
|
||||
-LDFLAGS_linux=-lrt -O -shared -fpic -o
|
||||
+ -Wimplicit -fpic -fvisibility=hidden
|
||||
+LDFLAGS_linux=-lrt -shared -fpic -o
|
||||
LD_linux=gcc
|
||||
|
||||
#------
|
||||
@@ -208,7 +208,7 @@ SOLIB=core.$(SO)
|
||||
#
|
||||
CC=$(CC_$(PLAT))
|
||||
DEF=$(DEF_$(PLAT))
|
||||
-CFLAGS=$(MYCFLAGS) $(CFLAGS_$(PLAT))
|
||||
+CFLAGS=$(CFLAGS_$(PLAT)) $(MYCFLAGS)
|
||||
LDFLAGS=$(MYLDFLAGS) $(LDFLAGS_$(PLAT))
|
||||
LD=$(LD_$(PLAT))
|
||||
LUAINC= $(LUAINC_$(PLAT))
|
||||
@@ -248,7 +248,7 @@ none:
|
||||
all: $(SOLIB)
|
||||
|
||||
$(SOLIB): $(OBJS)
|
||||
- $(LD) $(OBJS) $(LDFLAGS)$@
|
||||
+ $(LD) $(OBJS) $(LDFLAGS) $@
|
||||
|
||||
install: all
|
||||
$(INSTALL_DIR) $(INSTALL_TOP_LDIR)
|
@ -1,44 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
# The below is the upstream version number. The -x suffix should be kept
|
||||
# in sync with the _px suffix in the ebuild version.
|
||||
MY_PV="0.2.0-0"
|
||||
|
||||
DESCRIPTION="platform independent system calls for lua"
|
||||
HOMEPAGE="https://github.com/LuaDist2/luasystem"
|
||||
SRC_URI="https://github.com/LuaDist2/luasystem/archive/${MY_PV}.tar.gz ->
|
||||
${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 arm ppc ppc64 x86"
|
||||
IUSE=""
|
||||
|
||||
COMMON_DEPEND=">=dev-lang/lua-5.1:0="
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
virtual/pkgconfig"
|
||||
RDEPEND="${COMMON_DEPEND}"
|
||||
|
||||
S="${WORKDIR}/${PN}-${MY_PV}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}-fix-makefile.patch
|
||||
)
|
||||
|
||||
src_compile() {
|
||||
emake CC="$(tc-getCC)" MYCFLAGS="${CFLAGS}" \
|
||||
LD="$(tc-getCC)" MYLDFLAGS="${LDFLAGS}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto "$($(tc-getPKG_CONFIG) --variable INSTALL_LMOD lua)"
|
||||
doins -r system
|
||||
exeinto "$($(tc-getPKG_CONFIG) --variable INSTALL_CMOD lua)"/system
|
||||
doexe src/core.so
|
||||
dodoc README.md
|
||||
}
|
@ -1,56 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
# The below is the upstream version number. The -x suffix should be kept
|
||||
# in sync with the _px suffix in the ebuild version.
|
||||
MY_PV="0.2.1-0"
|
||||
|
||||
DESCRIPTION="platform independent system calls for lua"
|
||||
HOMEPAGE="https://github.com/LuaDist2/luasystem"
|
||||
SRC_URI="https://github.com/LuaDist2/luasystem/archive/${MY_PV}.tar.gz ->
|
||||
${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 arm arm64 ppc ppc64 x86"
|
||||
IUSE="luajit test"
|
||||
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
BDEPEND="
|
||||
virtual/pkgconfig
|
||||
test? (
|
||||
${RDEPEND}
|
||||
dev-lua/busted
|
||||
)"
|
||||
RDEPEND="
|
||||
!luajit? ( >=dev-lang/lua-5.1:0= )
|
||||
luajit? ( dev-lang/luajit:2 )"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
S="${WORKDIR}/${PN}-${MY_PV}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}-fix-makefile.patch
|
||||
)
|
||||
|
||||
src_test() {
|
||||
busted -o gtest || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake CC="$(tc-getCC)" MYCFLAGS="${CFLAGS}" \
|
||||
LD="$(tc-getCC)" MYLDFLAGS="${LDFLAGS}"
|
||||
}
|
||||
|
||||
src_install () {
|
||||
insinto "$($(tc-getPKG_CONFIG) --variable INSTALL_LMOD lua)"
|
||||
doins -r system
|
||||
exeinto "$($(tc-getPKG_CONFIG) --variable INSTALL_CMOD lua)"/system
|
||||
doexe src/core.so
|
||||
einstalldocs
|
||||
}
|
@ -1,32 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
# Below is the upstream version number. The"-0" suffix should be kept in
|
||||
# sync with the _p0 suffix of the ebuild version.
|
||||
MY_PV=1.1.2-0
|
||||
|
||||
DESCRIPTION="Event handling through channels"
|
||||
HOMEPAGE="http://olivinelabs.com/mediator_lua/",
|
||||
SRC_URI="https://github.com/Olivine-Labs/${PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 arm arm64 ppc ppc64 x86"
|
||||
IUSE=""
|
||||
|
||||
COMMON_DEPEND=">=dev-lang/lua-5.1:0="
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
virtual/pkgconfig"
|
||||
RDEPEND="${COMMON_DEPEND}"
|
||||
|
||||
S="${WORKDIR}/${PN}-${MY_PV}"
|
||||
|
||||
src_install() {
|
||||
insinto "$($(tc-getPKG_CONFIG) --variable INSTALL_LMOD lua)"
|
||||
doins src/mediator.lua
|
||||
dodoc README.md
|
||||
}
|
@ -1,2 +1 @@
|
||||
DIST penlight-1.7.0.tar.gz 384917 BLAKE2B 153660f5029509611265399aad8b92d82b266ac470414c06e9d7f01b37225834f98488f30f9bbdfdc3a6714edfe2edc0fccd0356ebb966d964be633bff38eb25 SHA512 edeb09307c9feb5da6bccd82216a6ad71db988c433245d72d28abb6c555004f77eebba556928b0912937b29ef93e065ad491368041e17730610813de8e595d7d
|
||||
DIST penlight-1.9.2.tar.gz 396248 BLAKE2B 2bbbece6e9855e8fc54f22f01e516cdf886782ec9a007a4ffac8ac980d7e0836cd19b8a7659ab1e05331e12b11bdb1c9c7df5e2f03c39965532c381298017035 SHA512 8df26e74f73ccf6dc73546640e1537b63e40357072855f9409e96b2ef8251c25b4653456d1237d5142573618af242e885490aa9750dffb387e4670ed9f3cfa91
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue