Sync with portage [Tue Dec 1 10:23:21 MSK 2020].

akrasnyh 1818
Calculate Linux 3 years ago
parent 5063a1a796
commit bd52d9af91

Binary file not shown.

Binary file not shown.

@ -0,0 +1,8 @@
# Copyright 2019-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit acct-group
ACCT_GROUP_ID=365

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>lordvan@gentoo.org</email>
<name>Thomas Raschbacher</name>
</maintainer>
</pkgmetadata>

@ -0,0 +1,8 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit acct-group
ACCT_GROUP_ID=500 # matches acct-user/gatling

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM 'http://www.gentoo.org/dtd/metadata.dtd'>
<pkgmetadata>
<maintainer type="person">
<email>sping@gentoo.org</email>
<name>Sebastian Pipping</name>
</maintainer>
</pkgmetadata>

Binary file not shown.

@ -0,0 +1,11 @@
# Copyright 2019-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit acct-user
ACCT_USER_ID=365
ACCT_USER_GROUPS=( "${PN}" )
acct-user_add_deps

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>lordvan@gentoo.org</email>
<name>Thomas Raschbacher</name>
</maintainer>
</pkgmetadata>

@ -0,0 +1,12 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit acct-user
ACCT_USER_GROUPS=( gatling )
ACCT_USER_HOME=/var/www/localhost
ACCT_USER_ID=500 # matches acct-group/gatling
acct-user_add_deps

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM 'http://www.gentoo.org/dtd/metadata.dtd'>
<pkgmetadata>
<maintainer type="person">
<email>sping@gentoo.org</email>
<name>Sebastian Pipping</name>
</maintainer>
</pkgmetadata>

Binary file not shown.

@ -1,4 +1 @@
DIST cdist-5.1.3.tar.gz 915245 BLAKE2B 5fce58f6fcbd48852e1c0c5568b72c360e74fd49b5321e2aedfdc8e48fd090cbdd7bab87a94e76d087f04f5a706bf2c7b1bebdc5a80867e26d8cc6e28afdeab3 SHA512 8330a5af80dfc07da722675ae1d402ebae4ba0aada451a02d782365d68d1d43a643609f3326f5ed793d2902838ee29071c0255c9d8a9d38c1e8a7c92a24cef46
DIST cdist-6.0.0.tar.gz 934813 BLAKE2B 3cb18ebb3059fc9a37beb1567c691e1d34a9cde5d49081e8798b5ba86ea8da3b6c964d2c8bea7bf2f04f986b0b4a8766c8ea53ce48fb4bc024264e72efec1fcb SHA512 e846060f3020d6281d41e97b9cc33250cd1d4ae0d110a2792fc2447af110fef91199fc0382d5a1e501f487fda42f703957ff5a39cf28061338609a600290d792
DIST cdist-6.5.4.tar.gz 898002 BLAKE2B b4565cd8112ce1bff6ac74625a5920886a708fec827f70c3a3a2df156408761badebff4e161900cd09685bfbbb4954927c9771f6516c54a510b582ebec075e76 SHA512 3f1405e1b28d7568ef3ae543d59e760b2dc1fc8004be031550ba52d3aa2d8911cef4325865fb9ed5df053ec1609a076bb31a520b100bad5811f0de9cd73f416e
DIST cdist-6.5.6.tar.gz 950790 BLAKE2B f13927009eb8c0172ecc0d59c1eb90fccd17542beed21033f17cec0746f6a41d5f9b39103942ffadf5a45251f49d97bc10ac82ff94bd5cd05d86c48f5d4f839f SHA512 b62a62feca742be233af9602b9216408c68cc66f114d9e581619f564359ccddc23a54257f16d70105476b76f6ba19ecd8937253f01dc479f806609e11fde8741
DIST cdist-6.9.2.tar.gz 1358442 BLAKE2B c734e25e4ce32fcc1f8aef105d56e12a11906a9a031ce399d48a5f3c62ef05153e8fad231e8e2316fc860b66a10bc29a9ee42077947b00acc8ea7010ff41a0fe SHA512 7ff8274b1ac5fd4abac691991ab89613e39fd4170bd7580c1519b9a5ea7dac9ab933fd00a5b72306cc5c2307f4d24745cdd77ec9c21c02b3595796b8639019b1

@ -1,24 +0,0 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python{3_6,3_7} )
inherit distutils-r1
DESCRIPTION="A usable configuration management system"
HOMEPAGE="https://www.nico.schottelius.org/software/cdist/"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc"
python_install_all() {
use doc && HTML_DOCS=( docs/dist/html/*.html docs/dist/html/man{1,7}/*.html )
distutils-r1_python_install_all
doman docs/dist/man/man1/*.1 docs/dist/man/man7/*.7
}

@ -1,24 +0,0 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python{3_6,3_7} )
inherit distutils-r1
DESCRIPTION="A usable configuration management system"
HOMEPAGE="https://www.nico.schottelius.org/software/cdist/"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc"
python_install_all() {
use doc && local HTML_DOCS=( docs/dist/html/*.html docs/dist/html/man{1,7}/*.html )
distutils-r1_python_install_all
doman docs/dist/man/man1/*.1 docs/dist/man/man7/*.7
}

@ -1,25 +0,0 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python{3_6,3_7,3_8} )
DISTUTILS_USE_SETUPTOOLS=no
inherit distutils-r1
DESCRIPTION="A usable configuration management system"
HOMEPAGE="https://www.cdi.st/ https://code.ungleich.ch/ungleich-public/cdist"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc"
python_install_all() {
use doc && local HTML_DOCS=( docs/dist/html/*.html docs/dist/html/man{1,7}/*.html )
distutils-r1_python_install_all
doman docs/dist/man/man1/*.1 docs/dist/man/man7/*.7
}

@ -1,25 +0,0 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python{3_6,3_7,3_8} )
DISTUTILS_USE_SETUPTOOLS=no
inherit distutils-r1
DESCRIPTION="A usable configuration management system"
HOMEPAGE="https://www.cdi.st/ https://code.ungleich.ch/ungleich-public/cdist"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc"
python_install_all() {
use doc && local HTML_DOCS=( docs/dist/html/*.html docs/dist/html/man{1,7}/*.html )
distutils-r1_python_install_all
doman docs/dist/man/man1/*.1 docs/dist/man/man7/*.7
}

@ -0,0 +1,29 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{6..9} )
DISTUTILS_USE_SETUPTOOLS=no
inherit distutils-r1
DESCRIPTION="A usable configuration management system"
HOMEPAGE="https://www.cdi.st/ https://code.ungleich.ch/ungleich-public/cdist"
SRC_URI="https://code.ungleich.ch/ungleich-public/cdist/-/archive/${PV}/cdist-${PV}.tar.gz"
LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~amd64 ~x86"
distutils_enable_sphinx docs/src dev-python/sphinx_rtd_theme
distutils_enable_tests unittest
# only required for py3.6 compatibility
PATCHES=( "${FILESDIR}"/${P}-tests.patch )
python_prepare_all() {
echo "VERSION='${PV}'" > cdist/version.py || die
distutils-r1_python_prepare_all
}

@ -0,0 +1,44 @@
--- a/cdist/preos.py
+++ b/cdist/preos.py
@@ -7,7 +7,7 @@ import cdist
import logging
import cdist.argparse
import cdist.configuration
-import cdist.exec.util as util
+from cdist.exec import util
_PREOS_CALL = "commandline"
--- a/cdist/exec/local.py
+++ b/cdist/exec/local.py
@@ -34,7 +34,7 @@ import datetime
import cdist
import cdist.message
from cdist import core
-import cdist.exec.util as util
+from cdist.exec import util
CONF_SUBDIRS_LINKED = ["explorer", "files", "manifest", "type", ]
--- a/cdist/exec/remote.py
+++ b/cdist/exec/remote.py
@@ -27,7 +27,7 @@ import logging
import multiprocessing
import cdist
-import cdist.exec.util as util
+from cdist.exec import util
import cdist.util.ipaddr as ipaddr
from cdist.mputil import mp_pool_run
--- a/cdist/info.py
+++ b/cdist/info.py
@@ -22,7 +22,7 @@
import cdist
import cdist.configuration
import cdist.core
-import cdist.exec.util as util
+from cdist.exec import util
import os
import glob
import fnmatch

@ -1,2 +1,2 @@
DIST sudo-1.9.3p1.tar.gz 3958071 BLAKE2B b681c120faa5dc7f25e27c1be423d68cea70f63dcdfea2183fd386a34dec0376555453399d3f8886c66c6507343648d40b59a058710432154061b210df2a704c SHA512 3ad13fd03e5b371fd6bf7909731ffc11431d2182a744b654f7e5d4b810e47955d49bc78f551afe13ec56acbce694139c33a15bc022cea41b17af5496b8b7f89f
DIST sudo-1.9.4rc2.tar.gz 3990607 BLAKE2B 46318341a7b14dda0f3765343fa4c0fd026ed6f127da8dc205adc1f2103ce444854114ca6c571801d267a31aa92802bdd2351d09f847949765b55df84cbe8b1b SHA512 0f16a73139c9a80352f8be3ed696116f05c0e36930998b4dbe9a452933b2b784cf49d6a5486a49f25d4244ae6a71d49880d200c5c7f3fce2a8ff857b9ee96cf7
DIST sudo-1.9.4.tar.gz 3992062 BLAKE2B 65eb8f78eb34ca7009ea0752a1acbfcb4e06ddd7083301736ac1bac7019c1a45cf2c34f69ac5b86fa4ac01310e209f236840712ad4998b692ddf774b9d1bf60d SHA512 682b4d303147193149509b734b64f8541e00ccc1c41468928dff307f9d52f2b1aae005deee1ef5ac389cd3dc506368dba8a78c0392ea1434dd78cf7ef8a08408

Binary file not shown.

@ -1,2 +1 @@
DIST acme-tiny-4.0.4.tar.gz 12667 BLAKE2B 6177d639a2d65080f84ca93400405c01ef18cb3c8d18ef5e7e57af1eede9d6f1e105ca7f6f89014e79c5cb1d865d3c81f590abdb37e8caa6b9699ea20064f698 SHA512 e66befe8262b3396e5e55ea01fc47c668c527868832d2ccdc2786156ec52e698fd20cb6fa4fe861d97947d64f4b6c751be9c79bf546eaac34978c53b9e6f85e4
DIST acme-tiny-4.1.0.tar.gz 12776 BLAKE2B 7efd9d1399ec3bbd98180511c9f36fbf6f9a96a0d4e0e72b9d4c85d16246118eaaad25bc26ba42f746fd4b60b498ceca5307e279d788157237ac6ad153848501 SHA512 31d69a5031c019acbc23b3f06041eae8e261766396d4a7420fd70a71cfa16de953bea4c0c2ad0c6a6e793ed61ab5331f40145352ffce69f4f062f35dd0db7519

@ -1,48 +0,0 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python{3_6,3_7} )
inherit distutils-r1
if [[ ${PV} == 9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/diafygi/${PN}.git"
KEYWORDS="amd64"
else
SRC_URI="https://github.com/diafygi/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="amd64 ~x86"
fi
DESCRIPTION="A tiny, auditable script for Let's Encrypt's ACME Protocol"
HOMEPAGE="https://github.com/diafygi/acme-tiny"
LICENSE="MIT"
SLOT="0"
IUSE=""
DEPEND="dev-python/setuptools_scm[${PYTHON_USEDEP}]"
RDEPEND="dev-libs/openssl:0"
pkg_setup() {
if [[ ${PV} != 9999 ]]; then
export SETUPTOOLS_SCM_PRETEND_VERSION="${PV}"
fi
}
src_prepare() {
sed -i 's|#!/usr/bin/sh|#!/bin/sh|g' README.md || die
distutils-r1_src_prepare
}
pkg_postinst() {
for v in ${REPLACING_VERSIONS}; do
if ver_test "$v" "-lt" "4.0.3" || ver_test "$v" "-ge" "9999"; then
einfo "The --account-email flag has been changed to --contact and"
einfo "has different syntax."
einfo "Please update your scripts accordingly"
fi
done
}

@ -11,7 +11,7 @@ if [[ ${PV} == 9999 ]]; then
EGIT_REPO_URI="https://github.com/diafygi/${PN}.git"
else
SRC_URI="https://github.com/diafygi/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~x86"
KEYWORDS="amd64 x86"
fi
DESCRIPTION="A tiny, auditable script for Let's Encrypt's ACME Protocol"

@ -3,7 +3,7 @@
EAPI=7
PYTHON_COMPAT=( python{3_6,3_7,3_8,3_8} )
PYTHON_COMPAT=( python{3_6,3_7,3_8,3_9} )
inherit distutils-r1
if [[ ${PV} == 9999 ]]; then

Binary file not shown.

@ -0,0 +1,41 @@
From 9cf7c9dcd012656df949d06f2986b57db3a72bdc Mon Sep 17 00:00:00 2001
From: "Azamat H. Hackimov" <azamat.hackimov@gmail.com>
Date: Tue, 9 Jun 2020 01:25:04 +0300
Subject: [PATCH] Fix compilation with GCC 10
Fixed compilation with -fno-common, which enabled in GCC 10 by default.
See https://bugs.gentoo.org/706762.
---
include/hex.h | 2 +-
src/hexcurse.c | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/include/hex.h b/include/hex.h
index 57845c0..845bac0 100644
--- a/include/hex.h
+++ b/include/hex.h
@@ -126,7 +126,7 @@ extern bool color_enabled;
#define max(a,b) ((a) >(b) ? (a) : (b))
#endif
-FILE *fpIN; /* global file ptr */
+extern FILE *fpIN; /* global file ptr */
/* function prototypes */
diff --git a/src/hexcurse.c b/src/hexcurse.c
index e723ddc..3c167b6 100644
--- a/src/hexcurse.c
+++ b/src/hexcurse.c
@@ -27,6 +27,8 @@
/*#define DEBUG_LLIST*/
/*#define DEBUG_GOTO*/
+FILE *fpIN;
+
int BASE, MAXY, resize = 0;
int MIN_ADDR_LENGTH;
hexList *head; /* linked list struct */
--
2.26.2

@ -1,7 +1,8 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
EAPI=7
inherit autotools
DESCRIPTION="ncurses based hex editor"
@ -12,23 +13,17 @@ LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
RDEPEND="
>=sys-libs/ncurses-5.2:0=
"
DEPEND="
${RDEPEND}
"
RDEPEND=">=sys-libs/ncurses-5.2:0="
DEPEND="${RDEPEND}"
PATCHES=(
"${FILESDIR}"/${PN}-1.60.0-Werror.patch
"${FILESDIR}"/${PN}-1.60.0-tinfo.patch
"${FILESDIR}"/${P}-Werror.patch
"${FILESDIR}"/${P}-tinfo.patch
"${FILESDIR}"/${P}-gcc10.patch
)
src_prepare() {
default
rm README.Irix || die
eautoreconf
}
src_install() {
emake install DESTDIR="${D}"
dodoc AUTHORS ChangeLog NEWS README
}

@ -1,2 +1,3 @@
DIST mousepad-0.4.2.tar.bz2 696014 BLAKE2B 2591f177b59147e01502329939365c5f18031f3dc9100baa29cb1da04afbff26cc91cc612ea1e5ebbc2d15754375da6afbd4ae9d96399f41cf06191d7d8d7082 SHA512 f3266018ce61683dc62b6866649f3674cc363ea652de04d3f087341c61cf24fb5eb730411948e354d085792f88b59e3dba7e7712715d92711f750b33d8bfb69a
DIST mousepad-0.4.90.tar.bz2 808320 BLAKE2B 5a639001663d24a9d0ae126f672adb5d3a72825893e0f0d90e263596f214d76f973e0743248efee8562dc04afb09c0519ed649ca5d36b9221569490e289d687f SHA512 e839584782b09ee9d485ca4dcf05e22afb459cba269b3a15fe2dc0e3f3240bc15b1a8d7db92160b735d97d7293e67b0484b50ac3e72946b499dc65ac1097390b
DIST mousepad-0.5.0.tar.bz2 810533 BLAKE2B c98fe38d65923fca2a5f2a769ad8fd0c92f77c6aff2c658e2ecd3bc3081988cb10b5dd49ba36020fe05c6f172e08f6efb825eb2c38b630dbcc6fd4d639313e15 SHA512 06cab143a3a0f98ad2aeecb0c7f034b8dede355de09632217da27dfb0675909c6cb284b227644c9ab3513a67fb23594ee63f0112ade69830d46559a8e7d65842

@ -0,0 +1,35 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit gnome2-utils xdg-utils
DESCRIPTION="GTK+-based editor for the Xfce Desktop Environment"
HOMEPAGE="https://git.xfce.org/apps/mousepad/about/"
SRC_URI="https://archive.xfce.org/src/apps/${PN}/${PV%.*}/${P}.tar.bz2"
LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
RDEPEND=">=dev-libs/glib-2.45.8:2=
>=xfce-base/xfconf-4.12:=
>=x11-libs/gtk+-3.20:3=
x11-libs/gtksourceview:3.0="
DEPEND="${RDEPEND}
dev-lang/perl
dev-util/intltool
sys-devel/gettext
virtual/pkgconfig"
pkg_postinst() {
gnome2_schemas_update
xdg_desktop_database_update
xdg_icon_cache_update
}
pkg_postrm() {
gnome2_schemas_update
xdg_desktop_database_update
xdg_icon_cache_update
}

Binary file not shown.

@ -12,7 +12,7 @@ SRC_URI="https://github.com/mgorny/eselect-repository/archive/v${PV}.tar.gz -> $
LICENSE="BSD-2"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc x86"
KEYWORDS="~alpha amd64 arm arm64 ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc x86 ~x64-macos"
IUSE=""
REQUIRED_USE=${PYTHON_REQUIRED_USE}

Binary file not shown.

@ -22,8 +22,8 @@ S="${WORKDIR}/${MY_P}"
src_prepare() {
sed \
-e "s:DESTINATION cmake:DESTINATION share/cmake/${MY_PN}:g" \
-e "s:DESTINATION lib:DESTINATION $(get_libdir):g" \
-e "s:DESTINATION cmake:DESTINATION $(get_libdir)/cmake/${PN/-/}:g" \
-i CMakeLists.txt || die
cmake_src_prepare
default

Binary file not shown.

@ -0,0 +1,126 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
# TODO: multiple ABI?
LUA_COMPAT=( lua5-1 )
PYTHON_COMPAT=( python3_8 )
inherit flag-o-matic cmake lua-single python-single-r1
DESCRIPTION="Crazy Eddie's GUI System"
HOMEPAGE="http://www.cegui.org.uk/"
SRC_URI="mirror://sourceforge/crayzedsgui/${P}.tar.bz2"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="bidi debug devil doc freeimage expat irrlicht lua ogre opengl pcre python static-libs tinyxml truetype xerces-c +xml zip"
REQUIRED_USE="|| ( expat tinyxml xerces-c xml )
lua? ( ${LUA_REQUIRED_USE} )
python? ( ${PYTHON_REQUIRED_USE} )" # bug 362223
# gles broken
# gles? ( media-libs/mesa[gles1] )
# directfb broken
# directfb? ( dev-libs/DirectFB )
RDEPEND="
dev-libs/boost:=
virtual/libiconv
bidi? ( dev-libs/fribidi )
devil? ( media-libs/devil )
expat? ( dev-libs/expat )
freeimage? ( media-libs/freeimage )
irrlicht? ( dev-games/irrlicht )
lua? (
${LUA_DEPS}
dev-lua/toluapp[${LUA_SINGLE_USEDEP}]
)
ogre? ( >=dev-games/ogre-1.7:= )
opengl? (
virtual/opengl
virtual/glu
media-libs/glew:=
)
pcre? ( dev-libs/libpcre )
python? (
${PYTHON_DEPS}
$(python_gen_cond_dep '
dev-libs/boost:=[python,${PYTHON_MULTI_USEDEP}]
')
)
tinyxml? ( dev-libs/tinyxml )
truetype? ( media-libs/freetype:2 )
xerces-c? ( dev-libs/xerces-c )
xml? ( dev-libs/libxml2:2 )
zip? ( sys-libs/zlib[minizip] )"
DEPEND="${RDEPEND}
${PYTHON_DEPS}
opengl? ( media-libs/glm )"
BDEPEND="
virtual/pkgconfig
doc? ( app-doc/doxygen )
"
PATCHES=(
"${FILESDIR}"/${P}-icu-59.patch
"${FILESDIR}"/${P}-python3.patch
"${FILESDIR}"/${P}-musl.patch
)
pkg_setup() {
use lua && lua-single_pkg_setup
use python && python-single-r1_pkg_setup
}
src_configure() {
# http://www.cegui.org.uk/mantis/view.php?id=991
append-ldflags $(no-as-needed)
local mycmakeargs=(
-DCEGUI_BUILD_IMAGECODEC_CORONA=OFF
-DCEGUI_BUILD_IMAGECODEC_DEVIL=$(usex devil)
-DCEGUI_BUILD_IMAGECODEC_FREEIMAGE=$(usex freeimage)
-DCEGUI_BUILD_IMAGECODEC_PVR=OFF
-DCEGUI_BUILD_IMAGECODEC_SILLY=OFF
-DCEGUI_BUILD_IMAGECODEC_STB=ON
-DCEGUI_BUILD_IMAGECODEC_TGA=ON
-DCEGUI_BUILD_LUA_GENERATOR=$(usex lua)
-DCEGUI_BUILD_LUA_MODULE=$(usex lua)
-DCEGUI_BUILD_PYTHON_MODULES=$(usex python)
-DCEGUI_BUILD_RENDERER_DIRECTFB=OFF
-DCEGUI_BUILD_RENDERER_IRRLICHT=$(usex irrlicht)
-DCEGUI_BUILD_RENDERER_NULL=ON
-DCEGUI_BUILD_RENDERER_OGRE=$(usex ogre)
-DCEGUI_BUILD_RENDERER_OPENGL=$(usex opengl)
-DCEGUI_BUILD_RENDERER_OPENGL3=$(usex opengl)
-DCEGUI_BUILD_RENDERER_OPENGLES=OFF
-DCEGUI_BUILD_STATIC_CONFIGURATION=$(usex static-libs)
-DCEGUI_BUILD_TESTS=OFF
-DCEGUI_BUILD_XMLPARSER_EXPAT=$(usex expat)
-DCEGUI_BUILD_XMLPARSER_LIBXML2=$(usex xml)
-DCEGUI_BUILD_XMLPARSER_RAPIDXML=OFF
-DCEGUI_BUILD_XMLPARSER_TINYXML=$(usex tinyxml)
-DCEGUI_BUILD_XMLPARSER_XERCES=$(usex xerces-c)
-DCEGUI_HAS_FREETYPE=$(usex truetype)
-DCEGUI_HAS_MINIZIP_RESOURCE_PROVIDER=$(usex zip)
-DCEGUI_HAS_PCRE_REGEX=$(usex pcre)
-DCEGUI_SAMPLES_ENABLED=OFF
-DCEGUI_USE_FRIBIDI=$(usex bidi)
-DCEGUI_USE_MINIBIDI=OFF
)
cmake_src_configure
}
src_compile() {
cmake_src_compile all $(usex doc html "")
}
src_install() {
cmake_src_install
docinto html
use doc && dodoc -r "${BUILD_DIR}"/doc/doxygen/html/*
}

Binary file not shown.

@ -0,0 +1,197 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit autotools multilib multilib-minimal portability toolchain-funcs
DESCRIPTION="A powerful light-weight programming language designed for extending applications"
HOMEPAGE="http://www.lua.org/"
TEST_PV="5.4.1"
TEST_P="${PN}-${TEST_PV}-tests"
SRC_URI="
http://www.lua.org/ftp/${P}.tar.gz
test? ( https://www.lua.org/tests/${TEST_P}.tar.gz )"
LICENSE="MIT"
SLOT="5.4"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~ppc-aix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
IUSE="+deprecated readline static test test-complete"
COMMON_DEPEND="
app-eselect/eselect-lua
readline? ( sys-libs/readline:0= )
!dev-lang/lua:0"
DEPEND="${COMMON_DEPEND}"
RDEPEND="${COMMON_DEPEND}"
BDEPEND="sys-devel/libtool"
RESTRICT="!test? ( test )"
MULTILIB_WRAPPED_HEADERS=(
/usr/include/lua${SLOT}/luaconf.h
)
PATCHES=(
"${FILESDIR}"/lua-5.4-makefiles.patch
)
src_prepare() {
default
# use glibtool on Darwin (versus Apple libtool)
if [[ ${CHOST} == *-darwin* ]] ; then
sed -i -e '/LIBTOOL = /s:/libtool:/glibtool:' \
Makefile src/Makefile || die
fi
# correct lua versioning
sed -i -e 's/\(LIB_VERSION = \)6:1:1/\10:0:0/' src/Makefile || die
sed -i -e 's:\(/README\)\("\):\1.gz\2:g' doc/readme.html || die
# Using dynamic linked lua is not recommended for performance
# reasons. http://article.gmane.org/gmane.comp.lang.lua.general/18519
# Mainly, this is of concern if your arch is poor with GPRs, like x86
# Note that this only affects the interpreter binary (named lua), not the lua
# compiler (built statically) nor the lua libraries (both shared and static
# are installed)
if use static ; then
sed -i -e 's:\(-export-dynamic\):-static \1:' src/Makefile || die
fi
# upstream does not use libtool, but we do (see bug #336167)
cp "${FILESDIR}/configure.in" "${S}/configure.ac" || die
eautoreconf
# custom Makefiles
multilib_copy_sources
}
multilib_src_configure() {
sed -i \
-e 's:\(define LUA_ROOT\s*\).*:\1"'${EPREFIX}'/usr/":' \
-e "s:\(define LUA_CDIR\s*LUA_ROOT \"\)lib:\1$(get_libdir):" \
src/luaconf.h \
|| die "failed patching luaconf.h"
econf
}
multilib_src_compile() {
tc-export CC
# what to link to liblua
liblibs="-lm"
liblibs="${liblibs} $(dlopen_lib)"
# what to link to the executables
mylibs=
use readline && mylibs="-lreadline"
cd src
local myCFLAGS=""
use deprecated && myCFLAGS="-DLUA_COMPAT_5_3"
use readline && myCFLAGS="-DLUA_USE_READLINE"
case "${CHOST}" in
*-mingw*) : ;;
*) myCFLAGS+=" -DLUA_USE_LINUX" ;;
esac
emake CC="${CC}" CFLAGS="${myCFLAGS} ${CFLAGS}" \
SYSLDFLAGS="${LDFLAGS}" \
RPATH="${EPREFIX}/usr/$(get_libdir)/" \
LUA_LIBS="${mylibs}" \
LIB_LIBS="${liblibs}" \
V=$(ver_cut 1-2) \
gentoo_all
}
multilib_src_install() {
emake INSTALL_TOP="${ED}/usr" INSTALL_LIB="${ED}/usr/$(get_libdir)" \
V=${SLOT} gentoo_install
case $SLOT in
0)
LIBNAME="lua"
INCLUDEDIR_SUFFIX=''
;;
*) LIBNAME="lua${SLOT}"
INCLUDEDIR_SUFFIX="/lua${SLOT}"
;;
esac
# We want packages to find our things...
# A slotted Lua uses different directories for headers & names for
# libraries, and pkgconfig should reflect that.
local PATCH_PV=$(ver_cut 1-2)
cp "${FILESDIR}/lua.pc" "${WORKDIR}" || die
sed -r -i \
-e "/^INSTALL_INC=/s,(/include)$,\1/lua${SLOT}," \
-e "s:^prefix= :prefix= ${EPREFIX}:" \
-e "s:^V=.*:V= ${PATCH_PV}:" \
-e "s:^R=.*:R= ${PV}:" \
-e "s:/,lib,:/$(get_libdir):g" \
-e "/^Libs:/s:( )(-llua)($| ):\1-l${LIBNAME}\3:" \
-e "/^includedir=/s:include$:include${INCLUDEDIR_SUFFIX}:" \
"${WORKDIR}/lua.pc" || die
insinto "/usr/$(get_libdir)/pkgconfig"
newins "${WORKDIR}/lua.pc" "lua${SLOT}.pc"
# Copy Debian's symlink support:
# https://salsa.debian.org/lua-team/lua5.3/blob/master/debian/rules#L19
# FreeBSD calls the pkgconfig 'lua-5.3.pc'
# Older systems called it 'lua53.pc'
dosym "lua${SLOT}.pc" "/usr/$(get_libdir)/pkgconfig/lua-${SLOT}.pc"
dosym "lua${SLOT}.pc" "/usr/$(get_libdir)/pkgconfig/lua${SLOT/.}.pc"
}
multilib_src_install_all() {
DOCS="README"
HTML_DOCS="doc/*.html doc/*.png doc/*.css doc/*.gif"
einstalldocs
newman doc/lua.1 lua${SLOT}.1
newman doc/luac.1 luac${SLOT}.1
}
# Makefile contains a dummy target that doesn't do tests
# but causes issues with slotted lua (bug #510360)
src_test() {
debug-print-function ${FUNCNAME} "$@"
cd "${WORKDIR}/lua-${TEST_PV}-tests" || die
# https://www.lua.org/tests/
# There are two sets:
# basic
# complete.
#
# The basic subset is selected by passing -e'_U=true'
# The complete set is noted to contain tests that may consume too much memory or have non-portable tests.
# attrib.lua for example needs some multilib customization (have to compile the stuff in libs/ for each ABI)
TEST_OPTS="$(usex test-complete '' '-e_U=true')"
TEST_MARKER="${T}/test.failed"
rm -f "${TEST_MARKER}"
# If we are failing, set the marker file, and only check it after done all ABIs
abi_src_test() {
debug-print-function ${FUNCNAME} "$@"
TEST_LOG="${T}/test.${MULTIBUILD_ID}.log"
eval "${BUILD_DIR}"/src/lua${SLOT} ${TEST_OPTS} all.lua 2>&1 | tee "${TEST_LOG}" || die
grep -sq -e "final OK" "${TEST_LOG}" || echo "FAIL ${MULTIBUILD_ID}" >>"${TEST_MARKER}"
return 0
}
multilib_foreach_abi abi_src_test
if [ -e "${TEST_MARKER}" ]; then
cat "${TEST_MARKER}"
die "Tests failed"
fi
}
pkg_postinst() {
if has_version "app-editor/emacs"; then
if ! has_version "app-emacs/emacs-mode"; then
einfo "Install app-emacs/lua-mode for lua support for emacs"
fi
fi
}

@ -4,3 +4,4 @@ DIST MoarVM-2020.07.tar.gz 5329508 BLAKE2B a761234baf88bfb5d8bc87e621822cd4cc1c1
DIST MoarVM-2020.08.tar.gz 5333410 BLAKE2B 4590576148d26c96eda390c9b66966b10205616b1920d6a7e259fa055240a5627fceb00399942eee512278dfd23cec90c5a1e79ee3f94cdad89e526b83c2888f SHA512 610ac56df2cd0da7b284e967fb2f626fa10583f66ef06d8c4368048883bea0627b5029c56e64fd7281e6e70c3f63ac26dcfa463d2145be83433a8e76226fcb3b
DIST MoarVM-2020.09.tar.gz 5361349 BLAKE2B 4846f7b44a238f6f2b40e829999c4939cb6cd6988ff11ae68dd2381db3144f2c7b7ec37dd71fa6749b4a0147e20224a801342e3ea8bf03dbd758012723468861 SHA512 3859e96e6861dc7bf3f64708db33bb9a761b7a7bc3a05655424d6c27010cf6f01e73066e26bff7256f58ed4044f9aee2f186c886a419c3d6aff23f75102f6c48
DIST MoarVM-2020.10.tar.gz 5362845 BLAKE2B 1486fbbe5407aaf010a2b929458750989820e62d9baadcf66ae97df55c93914639bc988ffe30055fee0a0b0f88f73d9de8d253e138b6d594581160d976831280 SHA512 5251d564909313ca7a660d462370e899d415cbd0b493da189abde952d80992c3e04525b2d8ae5066c9c4ea2c99860e38f9a8beaee4ea0d53d9b32973104fa7d3
DIST MoarVM-2020.11.tar.gz 5402860 BLAKE2B f29ec4a8f4979fd65adb24cbfbbed586b69d47dd1176770e1e0e46a8bc35ef90146bae468fd6e088cd19201ba7e43d43d486d569970a81a695d6b642f57c2417 SHA512 c3ffe128db43316f93ad19f2804cd963cd2613dc46ffd29b099a165f122f6e7fdf28ce0b6c226a31f44abaeca72468f6774c39ceac3cea992596e8ce042ae7a5

@ -0,0 +1,62 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit flag-o-matic
MY_PN="MoarVM"
if [[ ${PV} == "9999" ]]; then
EGIT_REPO_URI="https://github.com/${MY_PN}/${MY_PN}.git"
inherit git-r3
KEYWORDS=""
S="${WORKDIR}/${P}"
else
SRC_URI="http://moarvm.org/releases/${MY_PN}-${PV}.tar.gz"
KEYWORDS="~amd64 ~x86"
S="${WORKDIR}/${MY_PN}-${PV}"
fi
DESCRIPTION="A 6model-based VM for NQP and Rakudo Perl 6"
HOMEPAGE="http://moarvm.org"
LICENSE="Artistic-2"
SLOT="0"
IUSE="asan clang debug doc +jit optimize static-libs ubsan"
RDEPEND="dev-libs/libatomic_ops
>=dev-libs/libuv-1.26
dev-lang/lua:=
dev-libs/libffi"
DEPEND="${RDEPEND}
clang? ( >=sys-devel/clang-3.1 )
dev-lang/perl"
DOCS=( CREDITS README.markdown )
# Tests are conducted via nqp
RESTRICT=test
src_configure() {
MAKEOPTS+=" NOISY=1"
use doc && DOCS+=( docs/* )
local prefix="${EPREFIX}/usr"
local libdir="${EPREFIX}/usr/$(get_libdir)"
einfo "--prefix '${prefix}'"
einfo "--libdir '${libdir}'"
local myconfigargs=(
"--prefix" "${prefix}"
"--has-libuv"
"--has-libatomic_ops"
"--has-libffi"
"--libdir" "${libdir}"
"--compiler" "$(usex clang clang gcc)"
"$(usex asan --asan)"
"$(usex debug --debug --no-debug)"
"$(usex optimize --optimize= --no-optimize)"
"$(usex static-libs --static)"
"$(usex ubsan --ubsan)"
)
perl Configure.pl "${myconfigargs[@]}" moarshared || die
}

@ -4,3 +4,4 @@ DIST nqp-2020.07.tar.gz 3949070 BLAKE2B 194cd52dabe307dab41bec8508a28d00f05c043c
DIST nqp-2020.08.tar.gz 3951313 BLAKE2B 0eda6b50268cd4faf49a7311e4d94d9846e223072a54d0ce5c4b2095abe47645924ce6a256edafd6301380ca99b8268a97551cbc6013210e9058713d5a8b1321 SHA512 6acc8d4b443b67a2731d30b4ed81c3ff654189dc51c463d7e4f30ca1a2ac4791b3393238b6370f8bc915278ecdb1bbc403427eb2292b41717ec7d01605a3de4b
DIST nqp-2020.09.tar.gz 3951646 BLAKE2B 9ec1d121f9dc276ad52ea22d43fb24fefeda009f648b64f330669d7f9aaaef599522cca708b3671f982969cba0a1346cc078c55c98247545408b3a929899edd1 SHA512 dcebf63ea062c0fec95d701b1f20c492c845060599f4524fa87758ce5f8e52f6eae9a409c31b238783285f30a497acffd97242dc2ca7fbe4b8dd20291104b261
DIST nqp-2020.10.tar.gz 3954398 BLAKE2B 5c44a20c3696bb596bd1d3088fba8db8c63ce6e612f00c2d24456dc7d908b12a214b4bde7e4e79505c39f6237a6f91578de47778185fa6cc3b6287c90e6c370e SHA512 279715fa0b2012852cc31b9e7898092510a1ba76005576a3ffe38f9dc8e9c002a4161be8f0b66e38c501e656a8124a320dbf2c90c89f53e57d0950e1baa1ea2b
DIST nqp-2020.11.tar.gz 3954688 BLAKE2B d273c78c8f2083908b2815dc10787fec31404eb13c1e64253e7e5ae896d27a3755cf5c8045d47c4f465178568731e0d74951db6e45d103cf3ee18470124e97e0 SHA512 51b5e7f9d290bca7ada24cf9c12c61608be92269fc848976cada49f7445694e0f26929b5f9e90a9153eb379f0d74a6bb8068cd5ebf383d4501f75535b70e7605

@ -0,0 +1,160 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit java-pkg-opt-2 multibuild
if [[ ${PV} == "9999" ]]; then
EGIT_REPO_URI="https://github.com/perl6/${PN}.git"
inherit git-r3
KEYWORDS=""
else
SRC_URI="https://github.com/perl6/${PN}/releases/download/${PV}/${P}.tar.gz"
KEYWORDS="~amd64 ~x86"
fi
DESCRIPTION="Not Quite Perl, a Perl 6 bootstrapping compiler"
HOMEPAGE="https://rakudo.org"
LICENSE="Artistic-2"
SLOT="0"
IUSE="doc clang java +moar test"
RESTRICT="!test? ( test )"
REQUIRED_USE="|| ( java moar )"
CDEPEND="java? (
dev-java/asm:4
dev-java/jline:0
dev-java/jna:4
)
moar? ( ~dev-lang/moarvm-${PV}[clang=] )"
RDEPEND="${CDEPEND}
java? ( >=virtual/jre-1.8 )"
DEPEND="${CDEPEND}"
BDEPEND="${CDEPEND}
clang? ( sys-devel/clang )
java? ( >=virtual/jdk-1.8 )
dev-lang/perl"
pkg_pretend() {
if has_version dev-lang/rakudo || has_version dev-lang/nqp; then
ewarn "NQP is known to fail compilation/installation with Rakudo and/or NQP"
ewarn "already being installed. So if it fails, try uninstalling both"
ewarn "dev-lang/nqp and dev-lang/rakudo, then do a new installation."
ewarn "(see Bug #584394)"
fi
}
java_prepare() {
# Don't clean stage0 jars.
einfo "Cleaning upstream jars"
java-pkg_clean 3rdparty/
# Don't use jars we just deleted.
sed -i -r 's/(:3rdparty[^:]*)+/:${THIRDPARTY_JARS}/g' \
src/vm/jvm/runners/nqp-j || die
}
src_prepare() {
MULTIBUILD_VARIANTS=()
use moar && MULTIBUILD_VARIANTS+=( moar )
use java && MULTIBUILD_VARIANTS+=( jvm )
multibuild_copy_sources
# This will pull in conditional java_prepare
default
}
nqp_configure() {
pushd "${BUILD_DIR}" > /dev/null || die
local myconfargs=(
"--backend=${MULTIBUILD_VARIANT}"
"--prefix=${EPREFIX}/usr" )
perl Configure.pl "${myconfargs[@]}" || die
popd || die
}
nqp_compile() {
if [[ "${MULTIBUILD_VARIANT}" = jvm ]]; then
emake -j1 \
-C "${BUILD_DIR}" \
THIRDPARTY_JARS=$(java-pkg_getjars --with-dependencies asm-4,jline,jna-4) \
JAVAC="$(java-pkg_get-javac) $(java-pkg_javac-args)"
elif [[ "${MULTIBUILD_VARIANT}" = moar ]]; then
emake -j1 \
-C "${BUILD_DIR}"
fi
}
nqp_test() {
emake -j1 \
-C "${BUILD_DIR}" \
test
}
nqp_install() {
# This is the actual reason we need multibuild.eclass.
# We need to distinguish the install procedure for MoarVM and JVM backends.
case "${MULTIBUILD_VARIANT}" in
moar)
emake \
DESTDIR="${ED}" \
-C "${BUILD_DIR}" \
install
;;
jvm)
pushd "${BUILD_DIR}" > /dev/null || die
# Set JAVA_PKG_JARDEST early.
java-pkg_init_paths_
# Upstream sets the classpath to this location. Perhaps it's
# used to locate the additional libraries?
java-pkg_addcp "${JAVA_PKG_JARDEST}"
insinto "${JAVA_PKG_JARDEST}"
local jar
for jar in *.jar; do
if has ${jar} ${PN}.jar ${PN}-runtime.jar; then
# jars for NQP itself.
java-pkg_dojar ${jar}
else
# jars used by NQP.
doins ${jar}
fi
done
# Upstream uses -Xbootclasspath/a, which is faster due to lack
# of verification, but gjl isn't flexible enough yet. :(
java-pkg_dolauncher ${PN}-j --main ${PN}
dosym ${PN}-j /usr/bin/${PN}
dobin tools/jvm/eval-client.pl
popd > /dev/null || die
;;
*)
die "Unknown MULTIBUILD_VARIANT ${MULTIBUILD_VARIANT}."
;;
esac
}
src_configure() {
multibuild_foreach_variant nqp_configure
}
src_compile() {
multibuild_foreach_variant nqp_compile
}
src_test() {
multibuild_foreach_variant nqp_test
}
src_install() {
multibuild_foreach_variant nqp_install
dodoc CREDITS README.pod
use doc && dodoc -r docs/*
}

@ -4,3 +4,4 @@ DIST rakudo-2020.07.tar.gz 4729727 BLAKE2B 131d4aaee21c7e38fb8f2c3091336597a4cb5
DIST rakudo-2020.08.1.tar.gz 4740608 BLAKE2B be1b1f755690493483ba001407a89de69d64d0959d99bd28cdc4cbbacbcc56e884aa6244b2046c0ff6f6c4374b8edc86016c3c6b9719926a71eb5640092d16d1 SHA512 0142a5df29d4bd1c5a0e8cd37d59242b552dc523966293293fb643f4ce65a004457d81f76823db15bec1508a12c631eec324623cb3b8d60bc14d55b626959b11
DIST rakudo-2020.09.tar.gz 4743378 BLAKE2B 4ccac6fa59ca80868e7525eabc05d358da9265a87aced24af2c25fae6c0e386aae18c5f44d9d3dd6db377f155b481e003c91c6e51bb6a89ee9a380e749e0c847 SHA512 c838b7a42670a99860184464b22b1cb3c9a27988eb6e982f4367df883afe06608199bf363164965c1199027eeed880f237771c1e8580a80e585f1fd67d0c0574
DIST rakudo-2020.10.tar.gz 4755030 BLAKE2B 869f6dc6569093f7ad39d9c250d6564b6311cdefda2950784e54263bed6faca4b8653a9578b19f52819eb8e9f24e1f5f831468bf4620d885d4bb26944e22e8f4 SHA512 fcd00ac782ca28243ca2c6ceb45ff99322952086749aea01ccdfb5ae8c525cb6304fe5d20e7905a9808b1b7a1a96d7c4406847b10c0e4ea8b5fd7d053870f46a
DIST rakudo-2020.11.tar.gz 5678270 BLAKE2B 314da91b516d509fcfcfff16e46444243083bdeb21294bc33a2996f1883317b663cc3442cbb6090c8339c5607b4e64a4c8c3c9f2fa5d728bd5c6513d6ef20bcf SHA512 d6c0f7849570b82611db311445f6b60000ecf1c0773d1bb5f4da0d27a9e0d443149ab72f954da2e75a8323d9be9c31f655dee1183a8ca714d89c63baa6e2489e

@ -0,0 +1,73 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit java-pkg-opt-2
DESCRIPTION="A compiler for the Perl 6 programming language"
HOMEPAGE="https://rakudo.org"
if [[ ${PV} == "9999" ]]; then
EGIT_REPO_URI="https://github.com/rakudo/${PN}.git"
inherit git-r3
KEYWORDS=""
else
SRC_URI="https://rakudo.org/dl/${PN}/${P}.tar.gz"
KEYWORDS="~amd64 ~x86"
fi
LICENSE="Artistic-2"
SLOT="0"
# TODO: add USE="javascript" once that's usable in nqp
IUSE="clang java +moar test"
RESTRICT="!test? ( test )"
REQUIRED_USE="|| ( java moar )"
CDEPEND="~dev-lang/nqp-${PV}:${SLOT}=[java?,moar?,clang=]"
RDEPEND="${CDEPEND}
java? ( >=virtual/jre-1.7 )"
DEPEND="${CDEPEND}
clang? ( sys-devel/clang )
java? ( >=virtual/jdk-1.7 )
>=dev-lang/perl-5.10"
pkg_pretend() {
if has_version dev-lang/rakudo; then
ewarn "Rakudo is known to fail compilation/installation with Rakudo"
ewarn "already being installed. So if it fails, try unmerging dev-lang/rakudo,"
ewarn "then do a new installation."
ewarn "(see Bug #584394)"
fi
}
src_configure() {
local backends
use moar && backends+="moar,"
use java && backends+="jvm"
local myargs=(
"--prefix=/usr"
"--sysroot=/"
"--sdkroot=/"
"--backends=${backends}"
)
perl Configure.pl "${myargs[@]}" || die
if use java; then
NQP=$(java-pkg_getjars --with-dependencies nqp)
fi
}
src_compile() {
emake DESTDIR="${D}" NQP_JARS="${NQP}" BLD_NQP_JARS="${NQP}"
}
src_install() {
emake DESTDIR="${D}" NQP_JARS="${NQP}" BLD_NQP_JARS="${NQP}" install
}
src_test() {
RAKUDO_PRECOMP_PREFIX=$(mktemp -d) default
}

Binary file not shown.

@ -177,7 +177,7 @@ src_configure() {
$(meson_use gstreamer)
$(meson_use harfbuzz)
$(meson_use hyphen)
$(meson_use lua_targets_luajit elua)
$(meson_use lua_single_target_luajit elua)
$(meson_use nls)
$(meson_use physics)
$(meson_use pulseaudio)

@ -1,2 +1,2 @@
DIST libarcus-4.6.1.tar.gz 31938 BLAKE2B c1da0181e07f297549df92ed23848343f0dadf94af7ce64ff2661e5c09c68768d47180aff505f2a225af2d49e493b8511ac9560a9b51a4eef98d6da82566b093 SHA512 3c56133fee2eb152f0557a1860d1d298b44a021a53247687ce938949c49e1999c3e2287552e67ff65a58bf6aecbd82c8412da394f83a9981bfa68d29e9501250
DIST libarcus-4.7.0.tar.gz 31944 BLAKE2B 93cd7e8dab674b1e145c0fd15bcc8901982e9c26f82fa5b6b9582568701b70edeb1a589e1e1c94f9e14100d08b12580e58aa1724917b88f9c099f12ca47e4e57 SHA512 5eb8e84ff8e87966fc3ff1d71ec69f8fece493e25e022f7f1ba7ef218e75b5be86cededc28faf57634b09617990f62247e6cd6f373f940cf145ee6d8e8635374
DIST libarcus-4.8.0.tar.gz 31906 BLAKE2B 677fafa3875834c7602bc85b7246f50ed0dc49e886814c4562ce41a1a7baecfb4fb0bac42aada5339fe73cbd3fc5ac3b28076bf72a1e24591a947d747c6eb794 SHA512 44db9b48ab6be08c30f2121d68197a7347eaf3ee255649969a773afbe45ec2433e2cc082aa72f6d40dad7ea28345da858471fff9a129365a4e848df8c8c07689

@ -0,0 +1,30 @@
--- a/src/Socket_p.h
+++ b/src/Socket_p.h
@@ -128,9 +128,6 @@
static const int keep_alive_rate = 500; //Number of milliseconds between sending keepalive packets
- // This value determines when protobuf should warn about very large messages.
- static const int message_size_warning = 400 * 1048576;
-
// This value determines when protobuf should error out because the message is too large.
// Due to the way Protobuf is implemented, messages large than 512MiB will cause issues.
static const int message_size_maximum = 500 * 1048576;
@@ -362,7 +359,7 @@
return;
}
- uint32_t message_size = message->ByteSize();
+ uint32_t message_size = message->ByteSizeLong();
if(platform_socket.writeUInt32(message_size) == -1)
{
error(ErrorCode::SendFailedError, "Could not send message size");
@@ -548,7 +545,7 @@
google::protobuf::io::ArrayInputStream array(wire_message->data, wire_message->size);
google::protobuf::io::CodedInputStream stream(&array);
- stream.SetTotalBytesLimit(message_size_maximum, message_size_warning);
+ stream.SetTotalBytesLimit(message_size_maximum);
if(!message->ParseFromCodedStream(&stream))
{
error(ErrorCode::ParseFailedError, "Failed to parse message:" + std::string(wire_message->data));

@ -15,7 +15,7 @@ SRC_URI="https://github.com/Ultimaker/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.
LICENSE="LGPL-3"
SLOT="0/3"
KEYWORDS="~amd64 ~x86"
KEYWORDS="~amd64 ~arm64 ~x86"
IUSE="examples +python static-libs"
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
@ -29,18 +29,18 @@ DEPEND="${RDEPEND}"
S="${WORKDIR}/${MY_PN}-${PV}"
PATCHES=(
"${FILESDIR}"/${P}-deprecated-protobuf-calls.patch
)
pkg_setup() {
use python && python-single-r1_pkg_setup
}
src_prepare() {
default
# Find SIP for current python version, not the latest installed
sed -i "s/find_package(Python3 3.4 REQUIRED/find_package(Python3 ${EPYTHON##python} EXACT REQUIRED/g" \
CMakeLists.txt || die
sed -i "s/find_package(Python3 3.4 REQUIRED/find_package(Python3 ${EPYTHON##python} EXACT REQUIRED/g" \
cmake/FindSIP.cmake || die
CMakeLists.txt cmake/FindSIP.cmake || die
cmake_src_prepare
}

@ -1,2 +1,2 @@
DIST libcharon-4.6.1.tar.gz 145486 BLAKE2B 43a3bcddf128da9305711757b707394b5b0c23da27e27c3615d521e0af79683b2a525fefa7ae877581b56dae4c1dd7036c3189c17f8f86c92492b46e129a22b3 SHA512 43f7606529a933067bcb82a16e95d76f713a7847535887968c2933131d3197ec6127376e10c7d5f1debd218fc902962329fe22d4f9229b434a804daff94122cc
DIST libcharon-4.7.0.tar.gz 151221 BLAKE2B af9fe83e07303e1ff296b878c9745a329531a9957ad16a9b39b36e53f3f2275f850806b6d1a51638013c7148f3ee68b92489a67629a6026056a8c4ed3f2338b1 SHA512 690ce086bf8bba3eee2ce087d02ce00c23a7ac4079b0a2961c05cf75d461b0d5dee0c1f86ed769b50f1cd9ef83d8570a54f4fac628e0c19a5a593138292bc64c
DIST libcharon-4.8.0.tar.gz 151223 BLAKE2B fe4d2901908367569b45c466d31ac6e290979a8bd39c84f9c3ceb3ed91e9d9f1a789703fa5006706e21d77bd46b3185571df3f6157c7722e3e35244d27e0231c SHA512 33d3e9aa4e356fbf1d41555cfe2a5470d8f02b1d4f59d83e1ba89236b5e4489a93bdf24fad6f9bd2b0f843c053c485a082f5ee57437862ac40522aa61280b19c

@ -1,36 +0,0 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{6,7,8} )
inherit cmake python-single-r1
MY_PN="libCharon"
DESCRIPTION="This library facilitates communication between Cura and its backend"
HOMEPAGE="https://github.com/Ultimaker/libCharon"
SRC_URI="https://github.com/Ultimaker/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="LGPL-3"
SLOT="0/3"
KEYWORDS="~amd64 ~x86"
IUSE=""
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
RDEPEND="${PYTHON_DEPS}"
S="${WORKDIR}/${MY_PN}-${PV}"
src_prepare() {
# Use current python version, not the latest installed
sed -i "s/find_package(Python3 3.4 REQUIRED/find_package(Python3 ${EPYTHON##python} EXACT REQUIRED/g" \
CMakeLists.txt || die
cmake_src_prepare
}
src_install() {
cmake_src_install
python_optimize "${D}/usr/$(get_libdir)"
}

@ -0,0 +1,73 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{6..9} )
inherit cmake python-single-r1
MY_PN="libCharon"
DESCRIPTION="This library facilitates communication between Cura and its backend"
HOMEPAGE="https://github.com/Ultimaker/libCharon"
SRC_URI="https://github.com/Ultimaker/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="LGPL-3"
SLOT="0/3"
KEYWORDS="~amd64 ~arm64 ~x86"
IUSE="+client +dbus test"
RESTRICT="!test? ( test )"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
RDEPEND="
${PYTHON_DEPS}
dbus? (
acct-group/ultimaker
acct-user/ultimaker
sys-apps/dbus
)"
DEPEND="${PYTHON_DEPS}
test? (
$(python_gen_cond_dep 'dev-python/pytest[${PYTHON_MULTI_USEDEP}]')
)"
S="${WORKDIR}/${MY_PN}-${PV}"
src_prepare() {
# use current python version, not the latest installed
# fix python install location
sed -i \
-e "s:find_package(Python3 3.4 REQUIRED:find_package(Python3 ${EPYTHON##python} EXACT REQUIRED:g" \
-e "s:lib\${LIB_SUFFIX}/python\${Python3_VERSION_MAJOR}\.\${Python3_VERSION_MINOR}/site-packages:$(python_get_sitedir):g" \
CMakeLists.txt || die
sed -i -e "s:/usr/lib/python3/dist-packages/Charon/Service/main.py:$(python_get_sitedir)/Charon/Service/main.py:g" service/charon.service || die
cmake_src_prepare
}
src_configure() {
local mycmakeargs=(
-DINSTALL_CLIENT=$(usex client ON OFF)
-DINSTALL_SERVICE=$(usex dbus ON OFF)
-DPython3_EXECUTABLE="${PYTHON}"
)
cmake_src_configure
}
src_install() {
cmake_src_install
python_optimize "${D}/usr/$(get_libdir)"
}
pkg_postinst() {
if use dbus ; then
elog "To start the Charon File Metadata service at boot, add it to the default runlevel with:"
elog " systemctl enable charon"
fi
}

@ -0,0 +1 @@
DIST libnest2d-0.4.tar.gz 365065 BLAKE2B 74a4aef18be22d24e4e73288dd3e330b2f5baa3b2c705683c22767dfb0394a7b332bad957321f57ec7eaaf4740cff9ca1ed86f9d552be65df1b2af76ceba61e9 SHA512 fadce18986b844eed13a581f84055df909a17407a0980deb6c7c24248a969a537a8840650bcfc673e61973810ce9a008acb599e3b8e00c9bff6b566ca41cd62c

@ -0,0 +1,122 @@
From 2e91be2679b5efa0773292d9d0a2ae72255bb271 Mon Sep 17 00:00:00 2001
From: Ghostkeeper <rubend@tutanota.com>
Date: Tue, 6 Oct 2020 16:13:15 +0200
Subject: [PATCH 1/3] Allow for an item to be a disallowed area
Disallowed areas have slightly different behaviour from fixed items: Other items won't get packed closely around them. Implementation of that pending.
Contributes to issue CURA-7754.
---
include/libnest2d/nester.hpp | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/include/libnest2d/nester.hpp b/include/libnest2d/nester.hpp
index 2f207d5..932a060 100644
--- a/include/libnest2d/nester.hpp
+++ b/include/libnest2d/nester.hpp
@@ -71,6 +71,15 @@ class _Item {
int binid_{BIN_ID_UNSET}, priority_{0};
bool fixed_{false};
+ /**
+ * \brief If this is a fixed area, indicates whether it is a disallowed area
+ * or a previously placed item.
+ *
+ * If this is a disallowed area, other objects will not get packed close
+ * together with this item. It only blocks other items in its area.
+ */
+ bool disallowed_{false};
+
public:
/// The type of the shape which was handed over as the template argument.
@@ -129,11 +138,18 @@ class _Item {
sh_(sl::create<RawShape>(std::move(contour), std::move(holes))) {}
inline bool isFixed() const noexcept { return fixed_; }
+ inline bool isDisallowedArea() const noexcept { return disallowed_; }
inline void markAsFixedInBin(int binid)
{
fixed_ = binid >= 0;
binid_ = binid;
}
+ inline void markAsDisallowedAreaInBin(int binid)
+ {
+ fixed_ = binid >= 0;
+ binid_ = binid;
+ disallowed_ = true;
+ }
inline void binId(int idx) { binid_ = idx; }
inline int binId() const noexcept { return binid_; }
From ff61049e59d3151462bca7ff2e2268c2b32731e7 Mon Sep 17 00:00:00 2001
From: Ghostkeeper <rubend@tutanota.com>
Date: Tue, 6 Oct 2020 16:14:36 +0200
Subject: [PATCH 2/3] Allow unsetting of being a disallowed area
If you set the bin to -1 or set the item to be a simple fixed item afterwards, it'll no longer be a disallowed area.
Contributes to issue CURA-7754.
---
include/libnest2d/nester.hpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/include/libnest2d/nester.hpp b/include/libnest2d/nester.hpp
index 932a060..54761a6 100644
--- a/include/libnest2d/nester.hpp
+++ b/include/libnest2d/nester.hpp
@@ -143,12 +143,13 @@ class _Item {
{
fixed_ = binid >= 0;
binid_ = binid;
+ disallowed_ = false;
}
inline void markAsDisallowedAreaInBin(int binid)
{
fixed_ = binid >= 0;
binid_ = binid;
- disallowed_ = true;
+ disallowed_ = fixed_;
}
inline void binId(int idx) { binid_ = idx; }
From 31391fd173249ad9b906390058e13b09238fadc8 Mon Sep 17 00:00:00 2001
From: Ghostkeeper <rubend@tutanota.com>
Date: Thu, 8 Oct 2020 11:06:58 +0200
Subject: [PATCH 3/3] Align items to their starting position if all placed
items are disallowed
We shouldn't align items to disallowed areas. So place them in the starting position according to the alignment property.
Lot of work to investigate. But very little code changes!
Contributes to issue CURA-7754.
---
include/libnest2d/placers/nfpplacer.hpp | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/include/libnest2d/placers/nfpplacer.hpp b/include/libnest2d/placers/nfpplacer.hpp
index 96a8cff..b0ebb15 100644
--- a/include/libnest2d/placers/nfpplacer.hpp
+++ b/include/libnest2d/placers/nfpplacer.hpp
@@ -101,7 +101,7 @@ struct NfpPConfig {
* alignment with the candidate item or do anything else.
*
* \param remaining A container with the remaining items waiting to be
- * placed. You can use some features about the remaining items to alter to
+ * placed. You can use some features about the remaining items to alter the
* score of the current placement. If you know that you have to leave place
* for other items as well, that might influence your decision about where
* the current candidate should be placed. E.g. imagine three big circles
@@ -735,7 +735,8 @@ class _NofitPolyPlacer: public PlacerBoilerplate<_NofitPolyPlacer<RawShape, TBin
remlist.insert(remlist.end(), remaining.from, remaining.to);
}
- if(items_.empty()) {
+ if(std::all_of(items_.begin(), items_.end(),
+ [](const Item& item) { return item.isDisallowedArea(); })) {
setInitialPosition(item);
best_overfit = overfit(item.transformedShape(), bin_);
can_pack = best_overfit <= 0;

@ -0,0 +1,39 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit cmake
DESCRIPTION="Library and framework for the 2D bin packaging problem"
HOMEPAGE="https://github.com/tamasmeszaros/libnest2d"
SRC_URI="https://github.com/tamasmeszaros/libnest2d/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="LGPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="examples static-libs test"
RESTRICT="!test? ( test )"
RDEPEND="
dev-cpp/eigen:3
dev-libs/boost
dev-libs/clipper
sci-libs/nlopt
"
DEPEND="${RDEPEND}
test? ( >=dev-cpp/catch-2.9.1 )
"
PATCHES=( "${FILESDIR}"/${P}-add-disallowed-areas.patch )
src_configure() {
local mycmakeargs=(
-DBUILD_SHARED_LIBS=ON
-DLIBNEST2D_BUILD_EXAMPLES=$(usex examples)
-DLIBNEST2D_HEADER_ONLY=$(usex static-libs OFF ON)
-DLIBNEST2D_BUILD_UNITTESTS=$(usex test)
)
cmake_src_configure
}

@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>3dprint@gentoo.org</email>
<name>Gentoo 3D Printer Project</name>
</maintainer>
<longdescription>
Libnest2D is a library and framework for the 2D bin packaging problem. Inspired from the SVGNest Javascript
library the project is built from scratch in C++11. The library is written with a policy that it should be
usable out of the box with a very simple interface but has to be customizable to the very core as well. The
algorithms are defined in a header only fashion with templated geometry types. These geometries can have custom
or already existing implementation to avoid copying or having unnecessary dependencies.
A default backend is provided if the user of the library just wants to use it out of the box without additional
integration. This backend is reasonably fast and robust, being built on top of boost geometry and the
polyclipping library. Usage of this default backend implies the dependency on these packages but its header only
as well.
</longdescription>
<upstream>
<remote-id type="github">tamasmeszaros/libnest2d</remote-id>
</upstream>
</pkgmetadata>

@ -1,2 +1,2 @@
DIST libsavitar-4.6.1.tar.gz 98202 BLAKE2B 8025d11316fb777a037c01fb9411a6368e5e7a1b64c4a695a114ff94c1a2802d4eaeb6c8512e14db74ddbbffabd2bc98f93f61adfc2cbdc7ef329d30b105bd4b SHA512 49a0f2e98bc26d84b638d6eb44f9fd93811d92ad398f3c85b1abf2cca3172667315b907d30807eb70b497bd652d95cd443c8cc4daa68c8852787ef46fda47cc2
DIST libsavitar-4.7.0.tar.gz 99070 BLAKE2B 3e27624a62568b8d45ddf8fde60a0377faa81eb9e031e32e935d992304b7249d4f3fa7d9bc45b370882e203368a90ad48347faa600f339d096c67432e23d8ddc SHA512 bd19d3ee8be570791bf4f3d5be5eb44d5bba3181a693633d5703ba91c78d3725dbe051c888ec60cea057790a561beeb98b96c41e6584f630f2410bdb97e0cb4d
DIST libsavitar-4.8.0.tar.gz 99030 BLAKE2B a1c1e252aa942114a1d7112d2e661b5e63403502642826c6b92c408c8eabd3d9fb12b44dc286f9a0dce3d42f473adae2441d357f237c903c8a0df936c41f9f37 SHA512 65d31986b120c9e717b10d0bac420f2582d9f1b44051d88f89475408d1f7997e144001c61f180eac554de33f1f8c1ec9555a6c23bdd797315624f57030f7ec8c

@ -1,60 +0,0 @@
diff -urN libSavitar-4.2.0_old/CMakeLists.txt libSavitar-4.2.0/CMakeLists.txt
--- libSavitar-4.2.0_old/CMakeLists.txt 2019-07-30 09:03:53.000000000 +0300
+++ libSavitar-4.2.0/CMakeLists.txt 2019-08-04 17:23:27.099395645 +0300
@@ -15,7 +15,7 @@
find_package(Threads QUIET)
endif()
-add_subdirectory(pugixml)
+find_package(pugixml REQUIRED)
if(BUILD_PYTHON)
list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
diff -urN libSavitar-4.2.0_old/src/MeshData.cpp libSavitar-4.2.0/src/MeshData.cpp
--- libSavitar-4.2.0_old/src/MeshData.cpp 2019-07-30 09:03:53.000000000 +0300
+++ libSavitar-4.2.0/src/MeshData.cpp 2019-08-04 17:23:59.891051757 +0300
@@ -17,7 +17,7 @@
*/
#include "MeshData.h"
-#include "../pugixml/src/pugixml.hpp"
+#include <pugixml.hpp>
#include <cstring>
#include <iostream>
#include <stdexcept> //For std::runtime_error.
diff -urN libSavitar-4.2.0_old/src/Scene.cpp libSavitar-4.2.0/src/Scene.cpp
--- libSavitar-4.2.0_old/src/Scene.cpp 2019-07-30 09:03:53.000000000 +0300
+++ libSavitar-4.2.0/src/Scene.cpp 2019-08-04 17:24:10.425265944 +0300
@@ -17,7 +17,7 @@
*/
#include "Scene.h"
-#include "../pugixml/src/pugixml.hpp"
+#include <pugixml.hpp>
#include <iostream>
#include <string>
using namespace Savitar;
diff -urN libSavitar-4.2.0_old/src/SceneNode.cpp libSavitar-4.2.0/src/SceneNode.cpp
--- libSavitar-4.2.0_old/src/SceneNode.cpp 2019-07-30 09:03:53.000000000 +0300
+++ libSavitar-4.2.0/src/SceneNode.cpp 2019-08-04 17:24:31.617696840 +0300
@@ -18,7 +18,7 @@
#include "SceneNode.h"
#include "Namespace.h"
-#include "../pugixml/src/pugixml.hpp"
+#include <pugixml.hpp>
#include <iostream>
using namespace Savitar;
diff -urN libSavitar-4.2.0_old/src/ThreeMFParser.h libSavitar-4.2.0/src/ThreeMFParser.h
--- libSavitar-4.2.0_old/src/ThreeMFParser.h 2019-07-30 09:03:53.000000000 +0300
+++ libSavitar-4.2.0/src/ThreeMFParser.h 2019-08-04 17:24:53.996151843 +0300
@@ -21,7 +21,7 @@
#include "SavitarExport.h"
#include "SceneNode.h"
-#include "../pugixml/src/pugixml.hpp"
+#include <pugixml.hpp>
#include <string>
namespace Savitar

@ -1,53 +0,0 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{6,7,8} )
inherit cmake python-single-r1
MY_PN="libSavitar"
DESCRIPTION="C++ implementation of 3mf loading with SIP python bindings"
HOMEPAGE="https://github.com/Ultimaker/libSavitar"
SRC_URI="https://github.com/Ultimaker/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="LGPL-3"
SLOT="0/3"
KEYWORDS="~amd64 ~x86"
IUSE="+python static-libs"
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
RDEPEND="${PYTHON_DEPS}
dev-libs/pugixml
$(python_gen_cond_dep '
dev-python/sip[${PYTHON_MULTI_USEDEP}]
')"
DEPEND="${RDEPEND}"
S="${WORKDIR}/${MY_PN}-${PV}"
PATCHES=( "${FILESDIR}"/${PN}-4.6.1-remove-packaged-pugixml.patch )
pkg_setup() {
use python && python-single-r1_pkg_setup
}
src_prepare() {
# Find SIP for current python version, not the latest installed
sed -i "s/find_package(Python3 3.4 REQUIRED/find_package(Python3 ${EPYTHON##python} EXACT REQUIRED/g" \
CMakeLists.txt || die
sed -i "s/find_package(Python3 3.4 REQUIRED/find_package(Python3 ${EPYTHON##python} EXACT REQUIRED/g" \
cmake/FindSIP.cmake || die
cmake_src_prepare
}
src_configure() {
local mycmakeargs=(
-DBUILD_PYTHON=$(usex python ON OFF)
-DBUILD_STATIC=$(usex static-libs ON OFF)
)
cmake_src_configure
}

@ -0,0 +1,76 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{6..8} )
inherit cmake python-single-r1
MY_PN="libSavitar"
DESCRIPTION="C++ implementation of 3mf loading with SIP python bindings"
HOMEPAGE="https://github.com/Ultimaker/libSavitar"
SRC_URI="https://github.com/Ultimaker/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="LGPL-3"
SLOT="0/3"
KEYWORDS="~amd64 ~arm64 ~x86"
IUSE="+python static-libs test"
RESTRICT="!test? ( test )"
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
RDEPEND="${PYTHON_DEPS}
dev-libs/pugixml
$(python_gen_cond_dep '
dev-python/sip[${PYTHON_MULTI_USEDEP}]
')"
DEPEND="${RDEPEND}
test? (
dev-cpp/gtest
dev-cpp/tbb
)"
S="${WORKDIR}/${MY_PN}-${PV}"
BUILD_DIR="${S}/build"
PATCHES=( "${FILESDIR}/${PN}-4.7.0-use-system-pugixml.patch" )
pkg_setup() {
use python && python-single-r1_pkg_setup
}
src_prepare() {
# remove bundled pugixml
rm -r "${S}"/pugixml || die
find "${S}"/src -type f -name '*.cpp' -o -name '*.h' | xargs sed -i \
-e 's "../pugixml/src/pugixml.hpp" <pugixml.hpp> g' || die
if use test; then
find "${S}"/tests -type f -name '*.cpp' -o -name '*.h' | xargs sed -i \
-e 's "../pugixml/src/pugixml.hpp" <pugixml.hpp> g' || die
fi
# find SIP for current python version, not the latest installed
sed -i -e "s/find_package(Python3 3.4 REQUIRED/find_package(Python3 ${EPYTHON##python} EXACT REQUIRED/g" \
CMakeLists.txt cmake/FindSIP.cmake || die
cmake_src_prepare
}
src_configure() {
local mycmakeargs=(
-DBUILD_PYTHON=$(usex python ON OFF)
-DBUILD_STATIC=$(usex static-libs ON OFF)
-DBUILD_TESTS=$(usex test ON OFF)
)
cmake_src_configure
}
src_test() {
cmake_src_test
}

@ -1 +1,2 @@
DIST stb-20200205.tar.gz 1375616 BLAKE2B 11acfb4b1938e75c388b426e4b568c2976566259469716514d0ac8c97ab23d45f51fed1dcf458ca8f07e51d88d90708b33d66d545ed1aa09cd96fea46b9eb738 SHA512 31f945de8b642a359363c81e67f09b71aa663eacd68f5ec602eed40987f2d953943871af3b408d1e948a9e5c953098fca34b9e971fdeed92b734bb0c79c79a42
DIST stb-20200713.tar.gz 1378579 BLAKE2B 13f2deecdc20c95fe3dfd1820346e9c8d1046004082a4b6044934efa7e20270b253953fb8e2d9eecf2a263ea342b740d87807e50da48178c0eb4c7028bd27488 SHA512 a9ba80d19dae4e527171bb02e1caa4d3eb0704cdf7f8fef1a7a09e6b05c65b829b0aa580f469f158a39bf13018289f40c1680ab5c22bfa5e932bff94eced475d

@ -0,0 +1,34 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
# There are no official releases
CHECKSUM="b42009b3b9d4ca35bc703f5310eedc74f584be58"
DESCRIPTION="single-file public domain (or MIT licensed) libraries for C/C++"
HOMEPAGE="https://github.com/nothings/stb"
SRC_URI="https://github.com/nothings/stb/archive/${CHECKSUM}.tar.gz -> ${P}.tar.gz"
LICENSE="|| ( MIT Unlicense )"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~x86"
IUSE=""
S="${WORKDIR}/${PN}-${CHECKSUM}"
BDEPEND=""
RDEPEND=""
src_prepare() {
default
# Move the header files in a folder so they don't pollute the include dir
mkdir stb || die
mv *.h stb/ || die
}
src_install() {
doheader -r stb
}

Binary file not shown.

@ -16,7 +16,7 @@ SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
RDEPEND="
>=dev-lua/busted-2.0.0-r100[${LUA_USEDEP}]
dev-lua/busted[${LUA_USEDEP}]
${LUA_DEPS}
"

@ -19,15 +19,15 @@ REQUIRED_USE="${LUA_REQUIRED_USE}"
RESTRICT="!test? ( test )"
RDEPEND="
>=dev-lua/lua_cliargs-3.0_p2-r100[${LUA_USEDEP}]
>=dev-lua/luafilesystem-1.8.0-r100[${LUA_USEDEP}]
>=dev-lua/luasystem-0.2.1_p0-r100[${LUA_USEDEP}]
>=dev-lua/dkjson-2.5-r100[${LUA_USEDEP}]
>=dev-lua/say-1.3_p1-r100[${LUA_USEDEP}]
>=dev-lua/luassert-1.8.0-r100[${LUA_USEDEP}]
>=dev-lua/lua-term-0.7-r100[${LUA_USEDEP}]
>=dev-lua/penlight-1.7.0-r100[${LUA_USEDEP}]
>=dev-lua/mediator_lua-1.1.2_p0-r100[${LUA_USEDEP}]
dev-lua/lua_cliargs[${LUA_USEDEP}]
dev-lua/luafilesystem[${LUA_USEDEP}]
dev-lua/luasystem[${LUA_USEDEP}]
dev-lua/dkjson[${LUA_USEDEP}]
dev-lua/say[${LUA_USEDEP}]
dev-lua/luassert[${LUA_USEDEP}]
dev-lua/lua-term[${LUA_USEDEP}]
dev-lua/penlight[${LUA_USEDEP}]
dev-lua/mediator_lua[${LUA_USEDEP}]
${LUA_DEPS}
"
@ -36,7 +36,7 @@ DEPEND="${RDEPEND}"
BDEPEND="
virtual/pkgconfig
test? (
>=dev-lua/busted-2.0.0-r100
dev-lua/busted
${RDEPEND}
)
"

@ -0,0 +1 @@
DIST inifile-1.0.tar.gz 2611 BLAKE2B cdda6d9b2de45b4bec4695029018e37fe22a993afe5a54df4f4c519457d00267338de5aa3379a72dc7ab962260cd39f49674c2685799e4ad5544fed938c1080b SHA512 d0a9aa825cd5cf4a3b0b562853f3593141f537388c3e3a4334317b2536aa2dd695bdea37058d3d907aad10162bb71ef5b324c769e65cbd18e4526e37275cb970

@ -0,0 +1,30 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
LUA_COMPAT=( lua5-{1..3} luajit )
MY_PV="${PV/_p/-}"
inherit lua
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"
REQUIRED_USE="${LUA_REQUIRED_USE}"
RDEPEND="${LUA_DEPS}"
BDEPEND="virtual/pkgconfig"
lua_src_install() {
insinto $(lua_get_lmod_dir)
doins inifile.lua
}
src_install() {
lua_foreach_impl lua_src_install
}

@ -0,0 +1,30 @@
# 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:= )
"
BDEPEND="virtual/pkgconfig"
src_install() {
insinto "$($(tc-getPKG_CONFIG) --variable INSTALL_LMOD $(usex luajit 'luajit' 'lua'))"
doins inifile.lua
}

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>conikost@gentoo.org</email>
<name>Conrad Kostecki</name>
</maintainer>
<upstream>
<remote-id type="github">bartbes/inifile</remote-id>
</upstream>
</pkgmetadata>

@ -1 +1,2 @@
DIST lanes-3.10.0.tar.gz 231359 BLAKE2B beb1972a9b37097947fc673a644330fe8b66c826bc09967526b96d8e28838939516ee3ad4640fb8e5dca7061227c2844d55270c48f26416c7a7bd3613a83e648 SHA512 4a49f560623e291a8344ffef69f4f26fd422d21d3926d73dfee9c9ae9ebd4973e5ae2d307dfd42c5a3bf101bfcc277df54f0a46d89390c83483208e36d4e5d9b
DIST lanes-3.13.0.tar.gz 247978 BLAKE2B e330f3648e865b8b7c1b77061b6a8210f46e1db650066736afe62040dbb20c7e31e0037b420fded8fb0931cc2ac59687e2039fb31f43c1bdf0cae8cd3c031307 SHA512 bb509181757fa2b4f07a55962015b35ca6bb867b18ec89dd655f333babe2e12f56479fa85bc98e0dacf5bec2a523265bbc3a978396dc332dc1fdda4df760b2e5

@ -0,0 +1,93 @@
--- lanes-3.13.0.old/Makefile 2018-11-30 13:28:50.000000000 +0100
+++ lanes-3.13.0/Makefile 2020-11-30 21:28:36.769384766 +0100
@@ -33,7 +33,7 @@
# Autodetect LUA
#
-LUA=$(word 1,$(shell which lua5.1$(_LUAEXT)) $(shell which lua51$(_LUAEXT)) lua$(_LUAEXT))
+LUA ?= $(word 1,$(shell which lua5.1$(_LUAEXT)) $(shell which lua51$(_LUAEXT)) lua$(_LUAEXT))
_TARGET_SO=$(_TARGET_DIR)/core.$(_SO)
--- lanes-3.13.0.old/src/Makefile 2018-11-30 13:28:50.000000000 +0100
+++ lanes-3.13.0/src/Makefile 2020-11-30 21:40:06.399382894 +0100
@@ -15,7 +15,7 @@
#
LIBFLAG=-shared
-OPT_FLAGS=-O2
+OPT_FLAGS ?=
# -O0 -g
_SO=so
@@ -38,50 +38,8 @@
LUA_LIBS:="$(LUA_DEV)/lua5.1.dll" -lgcc
LIBFLAG=-shared -Wl,-Map,lanes.map
else
- # Autodetect LUA_FLAGS and/or LUA_LIBS
- #
- ifneq "$(shell which pkg-config)" ""
- ifeq "$(shell pkg-config --exists luajit && echo 1)" "1"
- LUA_FLAGS:=$(shell pkg-config --cflags luajit)
- LUA_LIBS:=$(shell pkg-config --libs luajit)
- #
- # Debian: -I/usr/include/luajit-2.0
- # -lluajit-5.1
- else
- ifeq "$(shell pkg-config --exists lua5.1 && echo 1)" "1"
- LUA_FLAGS:=$(shell pkg-config --cflags lua5.1)
- LUA_LIBS:=$(shell pkg-config --libs lua5.1)
- #
- # Ubuntu: -I/usr/include/lua5.1
- # -llua5.1
- else
- ifeq "$(shell pkg-config --exists lua && echo 1)" "1"
- LUA_FLAGS:=$(shell pkg-config --cflags lua)
- LUA_LIBS:=$(shell pkg-config --libs lua)
- #
- # OS X fink with pkg-config:
- # -I/sw/include
- # -L/sw/lib -llua -lm
- else
- $(warning *** 'pkg-config' existed but did not know of 'lua[5.1]' - Good luck!)
- LUA_FLAGS:=
- LUA_LIBS:=-llua
- endif
- endif
- endif
- else
- # No 'pkg-config'; try defaults
- #
- ifeq "$(shell uname -s)" "Darwin"
- $(warning *** Assuming 'fink' at default path)
- LUA_FLAGS:=-I/sw/include
- LUA_LIBS:=-L/sw/lib -llua
- else
- $(warning *** Assuming an arbitrary Lua installation; try installing 'pkg-config')
- LUA_FLAGS:=
- LUA_LIBS:=-llua
- endif
- endif
+ LUA_FLAGS ?= $(shell pkg-config --cflags lua)
+ LUA_LIBS ?= $(shell pkg-config --libs lua)
endif
ifeq "$(shell uname -s)" "Darwin"
@@ -92,7 +50,7 @@
LIBFLAG = -bundle -undefined dynamic_lookup
endif
- CFLAGS=-Wall -Werror $(OPT_FLAGS) $(LUA_FLAGS)
+ CFLAGS=-Wall $(OPT_FLAGS) $(LUA_FLAGS)
LIBS=$(LUA_LIBS)
endif
@@ -125,7 +83,7 @@
#
$(MODULE_DIR)/core.$(_SO): $(OBJ)
mkdir -p $(MODULE_DIR)
- $(CC) $(LIBFLAG) $^ $(LIBS) $(LUA_LIBS) -o $@
+ $(CC) $(LDFLAGS) $(LIBFLAG) $^ $(LIBS) $(LUA_LIBS) -o $@
clean:
-rm -rf $(MODULE)/core.$(_SO) *.o *.map

@ -0,0 +1,87 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
LUA_COMPAT=( lua5-{1..3} luajit )
inherit lua 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="test"
REQUIRED_USE="${LUA_REQUIRED_USE}"
RESTRICT="!test? ( test )"
RDEPEND="${LUA_DEPS}"
DEPEND="${RDEPEND}"
BDEPEND="
virtual/pkgconfig
test? ( ${RDEPEND} )
"
HTML_DOCS=( "docs/." )
PATCHES=( "${FILESDIR}/${PN}-3.13.0-makefile.patch" )
src_prepare() {
default
lua_copy_sources
}
lua_src_compile() {
pushd "${BUILD_DIR}" || die
local myemakeargs=(
"CC=$(tc-getCC)"
"LUA=${ELUA}"
"LUA_FLAGS=$(lua_get_CFLAGS)"
"LUA_LIBS="
"OPT_FLAGS=${CFLAGS}"
)
emake "${myemakeargs[@]}"
popd
}
src_compile() {
lua_foreach_impl lua_src_compile
}
lua_src_test() {
pushd "${BUILD_DIR}" || die
emake LUA="${ELUA}" test
popd
}
src_test() {
lua_foreach_impl lua_src_test
}
lua_src_install() {
pushd "${BUILD_DIR}" || die
local myemakeargs=(
"LUA_LIBDIR=${ED}/$(lua_get_cmod_dir)"
"LUA_SHAREDIR=${ED}/$(lua_get_lmod_dir)"
)
emake "${myemakeargs[@]}" install
popd
}
src_install() {
lua_foreach_impl lua_src_install
einstalldocs
}

@ -0,0 +1,59 @@
# Copyright 1999-2020 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
}

@ -5,6 +5,10 @@
<email>williamh@gentoo.org</email>
<name>William Hubbs</name>
</maintainer>
<maintainer type="person">
<email>conikost@gentoo.org</email>
<name>Conrad Kostecki</name>
</maintainer>
<upstream>
<remote-id type="github">LuaLanes/lanes</remote-id>
</upstream>

@ -25,7 +25,7 @@ BDEPEND="
virtual/pkgconfig
doc? ( dev-python/sphinx )
test? (
>=dev-lua/busted-2.0.0-r100[${LUA_USEDEP}]
dev-lua/busted[${LUA_USEDEP}]
${RDEPEND}
)
"

@ -18,9 +18,9 @@ IUSE="doc test"
RESTRICT="!test? ( test )"
RDEPEND="
>=dev-lua/lua-argparse-0.6.0-r100[${LUA_USEDEP}]
>=dev-lua/lua-utf8-0.1.3-r100[${LUA_USEDEP}]
>=dev-lua/luafilesystem-1.8.0-r100[${LUA_USEDEP}]
dev-lua/lua-argparse[${LUA_USEDEP}]
dev-lua/lua-utf8[${LUA_USEDEP}]
dev-lua/luafilesystem[${LUA_USEDEP}]
"
DEPEND="${RDEPEND}"

@ -33,7 +33,7 @@ DEPEND="${RDEPEND}"
BDEPEND="
virtual/pkgconfig
test? (
>=dev-lua/busted-2.0.0-r100[${LUA_USEDEP}]
dev-lua/busted[${LUA_USEDEP}]
dev-lua/luarocks
)
"

@ -36,6 +36,15 @@ BDEPEND="
)
"
src_prepare() {
default
# If 'dev-lang/lua' is a new, fresh installation, no 'LUA_LIBDIR' exists,
# as no compiled modules are installed on a new, fresh installation,
# so this check must be disabled, otherwise 'configure' will fail.
sed -e '/LUA_LIBDIR is not a valid directory/d' -i configure || die
}
src_configure() {
local myeconfargs=(
"--prefix=${EPREFIX}/usr"

@ -19,7 +19,7 @@ IUSE="libressl"
REQUIRED_USE="${LUA_REQUIRED_USE}"
RDEPEND="
>=dev-lua/luasocket-3.0_rc1_p20200328-r100[${LUA_USEDEP}]
dev-lua/luasocket[${LUA_USEDEP}]
libressl? ( dev-libs/libressl:= )
!libressl? ( dev-libs/openssl:0= )
${LUA_DEPS}

@ -19,14 +19,14 @@ REQUIRED_USE="${LUA_REQUIRED_USE}"
RESTRICT="!test? ( test )"
RDEPEND="
>=dev-lua/say-1.3_p1-r100[${LUA_USEDEP}]
dev-lua/say[${LUA_USEDEP}]
${LUA_DEPS}
"
BDEPEND="
virtual/pkgconfig
test? (
>=dev-lua/busted-2.0.0-r100[${LUA_USEDEP}]
dev-lua/busted[${LUA_USEDEP}]
${RDEPEND}
)
"

@ -24,7 +24,7 @@ DEPEND="${RDEPEND}"
BDEPEND="
virtual/pkgconfig
test? (
>=dev-lua/busted-2.0.0-r100[${LUA_USEDEP}]
dev-lua/busted[${LUA_USEDEP}]
${RDEPEND}
)
"

@ -24,7 +24,7 @@ RDEPEND="${LUA_DEPS}"
BDEPEND="
virtual/pkgconfig
test? (
>=dev-lua/busted-2.0.0-r100[${LUA_USEDEP}]
dev-lua/busted[${LUA_USEDEP}]
${RDEPEND}
)
"

@ -23,7 +23,7 @@ RESTRICT="!test? ( test )"
DEPEND="${LUA_DEPS}"
RDEPEND="
>=dev-lua/luafilesystem-1.8.0-r100
dev-lua/luafilesystem[${LUA_USEDEP}]
${DEPEND}
"

@ -24,7 +24,7 @@ RDEPEND="${LUA_DEPS}"
BDEPEND="
virtual/pkgconfig
test? ( >=dev-lua/busted-2.0.0-r100[${LUA_USEDEP}] )
test? ( dev-lua/busted[${LUA_USEDEP}] )
${RDEPEND}
"

@ -25,4 +25,4 @@ S="${WORKDIR}/${PN}-${COMMIT_ID}"
PATCHES=(
"${FILESDIR}"/${PN}-1.0.93_p20190513-fix-multilib.patch
)
CMAKE_REMOVE_MODULES_LIST="dist.cmake lua.cmake FindLua.cmake"
CMAKE_REMOVE_MODULES_LIST="dist lua FindLua"

@ -30,7 +30,7 @@ PATCHES=(
"${FILESDIR}"/${PN}-1.0.93_p20190513-fix-multilib.patch
"${FILESDIR}"/${PN}-1.0.93_p20190513-lua-version.patch
)
CMAKE_REMOVE_MODULES_LIST="dist.cmake lua.cmake FindLua.cmake"
CMAKE_REMOVE_MODULES_LIST="dist lua FindLua"
src_configure() {
local mycmakeargs=(

Binary file not shown.

@ -1 +1,2 @@
DIST PyGithub-1.53.gh.tar.gz 3026570 BLAKE2B 7204c5934b94d5629b38e841a9c9011ea561ca8aa8d3d169915975fb02fe8db059fcb521d11bbb2350a806457d98abbfe36a19c4e5f633c82cdf06b8b7203c6d SHA512 f98d013d5fdf31ee59405c52edb35942ca5a3d2c1ff9653c71f03871bb28d0c247412bfc2593991026ddb989e1a33dfe91d19b4ebb1e89386b54493d51071768
DIST PyGithub-1.54.gh.tar.gz 3117061 BLAKE2B d180b9c0192ad22b84cb17ff6c9a7c4ad4d490c149549515727a0f1ab4e572461d461cdcd4138a0d9f03f26b0a689579bd7ec875896330a3c43e5cfb45411dc7 SHA512 c716df1f6dc64ea6bc56db82b0f0263dc0ec29994ea9fa967c22a0eee07c4ccd206f14168e36df7d913cfa387ecca703cd2331cd549bd42ebbec0e33ecd15c44

@ -0,0 +1,28 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{6..9} )
inherit distutils-r1
DESCRIPTION="Python library to access the Github API v3"
HOMEPAGE="https://github.com/PyGithub/PyGithub/"
# Use github since pypi is missing test data
SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz"
LICENSE="LGPL-3+"
SLOT="0"
KEYWORDS="~amd64 ~x86"
RDEPEND="dev-python/deprecated[${PYTHON_USEDEP}]
dev-python/pyjwt[${PYTHON_USEDEP}]
>=dev-python/requests-2.14.0[${PYTHON_USEDEP}]
dev-python/six[${PYTHON_USEDEP}]"
BDEPEND="
test? (
dev-python/cryptography[${PYTHON_USEDEP}]
>=dev-python/httpretty-0.9.6[${PYTHON_USEDEP}]
)"
distutils_enable_tests pytest

@ -13,7 +13,7 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="|| ( MIT Apache-2.0 )"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 ~riscv sparc x86 ~x64-macos"
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ppc ppc64 ~riscv sparc x86 ~x64-macos"
DOCS=( README.rst )

@ -12,7 +12,7 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 hppa ~ia64 ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 hppa ~ia64 ~ppc64 sparc ~x86 ~amd64-linux ~x86-linux"
RDEPEND="
dev-python/attrs[${PYTHON_USEDEP}]

@ -46,6 +46,20 @@ RDEPEND+=${DEPEND}
DOCS=( AUTHORS.rst CONTRIBUTING.rst README.rst )
src_prepare() {
default
# work around availability macros not supported in GCC (yet)
if [[ ${CHOST} == *-darwin ]] ; then
local darwinok=0
if [[ ${CHOST##*-darwin} -ge 16 ]] ; then
darwinok=1
fi
sed -i -e 's/__builtin_available(macOS 10\.12, \*)/'"${darwinok}"'/' \
src/_cffi_src/openssl/src/osrandom_engine.c
fi
}
python_test() {
local -x PYTHONPATH=${PYTHONPATH}:${WORKDIR}/${VEC_P}
pytest -vv -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" ||

@ -13,7 +13,7 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 sparc x86"
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ppc ppc64 sparc x86"
IUSE=""
RDEPEND=""

@ -1 +1,2 @@
DIST jsonpickle-1.4.1.tar.gz 104564 BLAKE2B a3ad6f9c712f39153186b6ccdef515581012ad4ba1251dcb094074f2093eb4b158b9357bdf2e8668073cb21dc3bf6dd2fc3a0058c8597252c558a797432068b9 SHA512 ed6bf3472c59ba907a973c5c6f05de13dbfc75eef103796b8f8a63d388f769527f22667ca8761092d1649ff2caf5a73de0593e370df3e7fcabe06e73b265da35
DIST jsonpickle-1.4.2.tar.gz 104745 BLAKE2B af12141c867cd3dbecace5b7bc637b554c51c245d4f584c4d94e73e694b74f66fc59a65a62b7a0af361a7a8010b9398a9b04ee838c4f76c168b21dba6f2c9542 SHA512 a6da661a69daefbc9393a4a4c88aa1da1b8bd687b6eeaed3d833ce1683bd1fa9d7943fdeecfe927e0492945ee2910b6f2d5e53ddb2b928b21f7b099ab79d45e9

@ -0,0 +1,52 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{7..9} )
DISTUTILS_USE_SETUPTOOLS=bdepend
inherit distutils-r1
DESCRIPTION="Python library for serializing any arbitrary object graph into JSON"
HOMEPAGE="https://github.com/jsonpickle/jsonpickle/ https://pypi.org/project/jsonpickle/"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux"
IUSE="doc test"
RESTRICT="!test? ( test )"
# There are optional json backends serializer/deserializers in addition to those selected here
# jsonlib, yajl.
RDEPEND="
dev-python/simplejson[${PYTHON_USEDEP}]
dev-python/feedparser[${PYTHON_USEDEP}]
dev-python/ujson[${PYTHON_USEDEP}]
$(python_gen_cond_dep '
dev-python/importlib_metadata[${PYTHON_USEDEP}]
' python3_{6,7})
"
# toml via setuptools_scm[toml]
BDEPEND="
dev-python/setuptools_scm[${PYTHON_USEDEP}]
dev-python/toml[${PYTHON_USEDEP}]"
distutils_enable_sphinx "docs/source"
distutils_enable_tests pytest
python_prepare_all() {
# too many dependencies
rm tests/pandas_test.py || die
sed -e '/pandas/ d' -i tests/runtests.py || die
# broken with gmpy
rm tests/ecdsa_test.py || die
sed -i -e 's:--flake8 --black --cov --cov-append::' pytest.ini || die
distutils-r1_python_prepare_all
}
python_test() {
pytest -vv tests || die "Tests failed with ${EPYTHON}"
}

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save