Adding curaengine and companion libs
This commit is contained in:
parent
a2701e98ac
commit
894391a8e5
7
dev-libs/libarcus/Manifest
Normal file
7
dev-libs/libarcus/Manifest
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
DIST libarcus-3.4.1.tar.gz 29699 BLAKE2B 73f132ff9d908468f1d67c54b7430ac84c0aebb5dd12282dc894b877a91da3f9822e4db8bf16cb53f313396598d3890be9e06e50737b0a50edfc84543285f251 SHA512 63ed8d8da389641b91ed955624c04ca5488f98d3ef409c4a94ad1962155d6aedd8d61ca0231543cfe4e92ae10beb00001f957eb48f74b0c21447a1bd9b66d85d
|
||||||
|
DIST libarcus-3.6.0.tar.gz 29469 BLAKE2B c032dd51631b10c04e69dac4425c8a5d180cf8c983b896330b2dcd5d479467d6a2e94827ef8accad25399167457e5ae9e96f1a363c986be33de8255c3e80b1fb SHA512 1bc50a08cbec61edefd78f3c347cca08f6bc40a308472bf6788c2c8962b03ea81b32357be18a3c34847c121eb52ee6836da22cea65b1a8f64b7c924bda290430
|
||||||
|
DIST libarcus-4.3.0.tar.gz 30540 BLAKE2B 58937764d9eec4a235bcc26aa85ab1f1418ae2c576c24759fee5155c7690a3a5feee1946cbae8e7836fd4eccdb0f673167aeda46c3dae124101cfb03510697e8 SHA512 b3893e3c422de85a6968443a6f26149e9dee9f15038c11c219693b9aa8d5174d908421e33c8e3ce4e4ecab8c5077da217b44a9ec6bb4b351ff67b7f2d42cc890
|
||||||
|
EBUILD libarcus-3.4.1.ebuild 1085 BLAKE2B 9d15a9454356b09eb8f05a4548bf49ee8d9ce710d47ec89baf5d11cfbc8b1c9dcc2db503e491f3558eb9da4e5456e823a51fbf7aec33d7ef68b6906d572d5d99 SHA512 95709735d9f791bb344442964ca877d480060ea8fe13c82941a30fbcdc84da2ab9c055570f37f6dd757c5347dd1451759558c73f8a02f7fd22215cd5c9f54a77
|
||||||
|
EBUILD libarcus-3.6.0.ebuild 1082 BLAKE2B 733d32a831ac633bf7c16381686b9dadee78308180dece9d442e6c1b52a0ac650c6c074331d7e3cce7c7fcca028aa1f534adec2947ed9abef06164442c94c71b SHA512 5b73e47eed0860fe6fea6be6c442a5e1129bebca414dee7f053ba896cc920a53f059947da785324d00e0c01d9ecfd2cc9b5b89c0b12428b4945e14b9941d9419
|
||||||
|
EBUILD libarcus-4.3.0.ebuild 1084 BLAKE2B e8c7eb9aa724b20edf8992d7dbc6784b6ccd6112dcdc741e50be86970f1cd735a0625a91c27339895cfd5d4f65ddcde7acf3f8e876f25925a80b882c1aa60369 SHA512 d7dcf7707e8218418e2dde8db36ff31ecb98e6a281649bcdfdeaa85d3771fe3973d71efc10fa3b246c251a6faf62d9df92f12b96736b93bb388517713129733c
|
||||||
|
MISC metadata.xml 860 BLAKE2B 9375bca572d46d985fbbf11b222728cdaba22c2fde64e1b4a057d2920b9845bf442bb35ce0b2b1e78fc949cd687604f9f89d5b5665e3cee7afe5b69f09f5ed2b SHA512 9dbfeff3c641642edfd27fbbd27d2ef5810833e4cb3ae5b949c1a20c27377ac70364010fc9fbc759f456e93f294af62f3c08c59bb0585a3ca01f5cd157b3b33e
|
42
dev-libs/libarcus/libarcus-3.4.1.ebuild
Normal file
42
dev-libs/libarcus/libarcus-3.4.1.ebuild
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
# Copyright 1999-2018 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=6
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python3_{5,6} )
|
||||||
|
|
||||||
|
inherit cmake-utils python-single-r1
|
||||||
|
|
||||||
|
MY_PN="libArcus"
|
||||||
|
|
||||||
|
DESCRIPTION="This library facilitates communication between Cura and its backend"
|
||||||
|
HOMEPAGE="https://github.com/Ultimaker/libArcus"
|
||||||
|
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="examples python static-libs"
|
||||||
|
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
||||||
|
|
||||||
|
RDEPEND="${PYTHON_DEPS}
|
||||||
|
dev-python/sip[${PYTHON_USEDEP}]
|
||||||
|
dev-libs/protobuf
|
||||||
|
python? ( dev-python/protobuf-python[${PYTHON_USEDEP}] )"
|
||||||
|
DEPEND="${RDEPEND}"
|
||||||
|
|
||||||
|
S="${WORKDIR}/${MY_PN}-${PV}"
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
use python && python-single-r1_pkg_setup
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
local mycmakeargs=(
|
||||||
|
-DBUILD_PYTHON=$(usex python ON OFF)
|
||||||
|
-DBUILD_EXAMPLES=$(usex examples ON OFF)
|
||||||
|
-DBUILD_STATIC=$(usex static-libs ON OFF)
|
||||||
|
)
|
||||||
|
use python && mycmakeargs+=( -DPYTHON_SITE_PACKAGES_DIR="$(python_get_sitedir)" )
|
||||||
|
cmake-utils_src_configure
|
||||||
|
}
|
42
dev-libs/libarcus/libarcus-3.6.0.ebuild
Normal file
42
dev-libs/libarcus/libarcus-3.6.0.ebuild
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
# Copyright 1999-2018 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=6
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python3_{5,6} )
|
||||||
|
|
||||||
|
inherit cmake-utils python-single-r1
|
||||||
|
|
||||||
|
MY_PN="libArcus"
|
||||||
|
|
||||||
|
DESCRIPTION="This library facilitates communication between Cura and its backend"
|
||||||
|
HOMEPAGE="https://github.com/Ultimaker/libArcus"
|
||||||
|
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="examples python static-libs"
|
||||||
|
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
||||||
|
|
||||||
|
RDEPEND="${PYTHON_DEPS}
|
||||||
|
dev-python/sip[${PYTHON_USEDEP}]
|
||||||
|
dev-libs/protobuf
|
||||||
|
python? ( dev-python/protobuf-python[${PYTHON_USEDEP}] )"
|
||||||
|
DEPEND="${RDEPEND}"
|
||||||
|
|
||||||
|
S="${WORKDIR}/${MY_PN}-${PV}"
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
use python && python-single-r1_pkg_setup
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
local mycmakeargs=(
|
||||||
|
-DBUILD_PYTHON=$(usex python ON OFF)
|
||||||
|
-DBUILD_EXAMPLES=$(usex examples ON OFF)
|
||||||
|
-DBUILD_STATIC=$(usex static-libs ON OFF)
|
||||||
|
)
|
||||||
|
use python && mycmakeargs+=( -DPYTHON_SITE_PACKAGES_DIR="$(python_get_sitedir)" )
|
||||||
|
cmake-utils_src_configure
|
||||||
|
}
|
42
dev-libs/libarcus/libarcus-4.3.0.ebuild
Normal file
42
dev-libs/libarcus/libarcus-4.3.0.ebuild
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
# Copyright 1999-2018 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=6
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python3_{5,6,7} )
|
||||||
|
|
||||||
|
inherit cmake-utils python-single-r1
|
||||||
|
|
||||||
|
MY_PN="libArcus"
|
||||||
|
|
||||||
|
DESCRIPTION="This library facilitates communication between Cura and its backend"
|
||||||
|
HOMEPAGE="https://github.com/Ultimaker/libArcus"
|
||||||
|
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="examples python static-libs"
|
||||||
|
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
||||||
|
|
||||||
|
RDEPEND="${PYTHON_DEPS}
|
||||||
|
dev-python/sip[${PYTHON_USEDEP}]
|
||||||
|
dev-libs/protobuf
|
||||||
|
python? ( dev-python/protobuf-python[${PYTHON_USEDEP}] )"
|
||||||
|
DEPEND="${RDEPEND}"
|
||||||
|
|
||||||
|
S="${WORKDIR}/${MY_PN}-${PV}"
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
use python && python-single-r1_pkg_setup
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
local mycmakeargs=(
|
||||||
|
-DBUILD_PYTHON=$(usex python ON OFF)
|
||||||
|
-DBUILD_EXAMPLES=$(usex examples ON OFF)
|
||||||
|
-DBUILD_STATIC=$(usex static-libs ON OFF)
|
||||||
|
)
|
||||||
|
use python && mycmakeargs+=( -DPYTHON_SITE_PACKAGES_DIR="$(python_get_sitedir)" )
|
||||||
|
cmake-utils_src_configure
|
||||||
|
}
|
30
dev-libs/libarcus/metadata.xml
Normal file
30
dev-libs/libarcus/metadata.xml
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
<?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>
|
||||||
|
<maintainer type="person">
|
||||||
|
<email>alexxy@gentoo.org</email>
|
||||||
|
<name>Alexey Shvetsov</name>
|
||||||
|
</maintainer>
|
||||||
|
<maintainer type="project">
|
||||||
|
<email>proxy-maint@gentoo.org</email>
|
||||||
|
<name>Proxy Maintainers</name>
|
||||||
|
</maintainer>
|
||||||
|
<maintainer type="person">
|
||||||
|
<email>mathy@vanvoorden.be</email>
|
||||||
|
<name>Mathy Vanvoorden</name>
|
||||||
|
</maintainer>
|
||||||
|
<maintainer type="person">
|
||||||
|
<email>perlovka@gmail.com</email>
|
||||||
|
<name>Michael Perlov</name>
|
||||||
|
</maintainer>
|
||||||
|
<slots>
|
||||||
|
<subslots>soname major version number</subslots>
|
||||||
|
</slots>
|
||||||
|
<upstream>
|
||||||
|
<remote-id type="github">Ultimaker/libArcus</remote-id>
|
||||||
|
</upstream>
|
||||||
|
</pkgmetadata>
|
@ -1,3 +0,0 @@
|
|||||||
DIST nss-3.41.tar.gz 23319563 SHA512 b5a43fe86ded664002fd714c493d9222a64539cd6139b64720625d1742fec5100712cbe401c90c79196e9cbad9ec07d9b4f0f517ce34e4b207beaa3e01c9e114
|
|
||||||
DIST nss-cacert-class1-class3.patch 22950 SHA512 a5aa740bf110a3f0262e3f1ef2fc739ac2b44f042e220039d48aee8e97cd764d5c10718220364f4098aba955882bd02cadb5481512388971a8290312f88a7df0
|
|
||||||
DIST nss-pem-20160329.tar.xz 27732 SHA512 5834b06e4c64205447573d4f4c8989e20986ae67ee00eebce3817eb73794a6355a404143ba1c676ec302ceefaf9df103cb879b1d4ff14ba4e3790dbee3e40eb2
|
|
@ -1,371 +0,0 @@
|
|||||||
# Copyright 1999-2018 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=7
|
|
||||||
|
|
||||||
inherit eutils flag-o-matic multilib toolchain-funcs multilib-minimal
|
|
||||||
|
|
||||||
NSPR_VER="4.16"
|
|
||||||
RTM_NAME="NSS_${PV//./_}_RTM"
|
|
||||||
# Rev of https://git.fedorahosted.org/cgit/nss-pem.git
|
|
||||||
PEM_GIT_REV="429b0222759d8ad8e6dcd29e62875ae3efd69116"
|
|
||||||
PEM_P="${PN}-pem-20160329"
|
|
||||||
|
|
||||||
DESCRIPTION="Mozilla's Network Security Services library that implements PKI support"
|
|
||||||
HOMEPAGE="http://www.mozilla.org/projects/security/pki/nss/"
|
|
||||||
SRC_URI="https://archive.mozilla.org/pub/security/nss/releases/${RTM_NAME}/src/${P}.tar.gz
|
|
||||||
cacert? ( https://dev.gentoo.org/~axs/distfiles/${PN}-cacert-class1-class3.patch )
|
|
||||||
nss-pem? ( https://dev.gentoo.org/~polynomial-c/${PEM_P}.tar.xz )"
|
|
||||||
|
|
||||||
LICENSE="|| ( MPL-2.0 GPL-2 LGPL-2.1 )"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
|
|
||||||
IUSE="cacert +nss-pem utils"
|
|
||||||
CDEPEND=">=dev-db/sqlite-3.8.2[${MULTILIB_USEDEP}]
|
|
||||||
>=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}]"
|
|
||||||
DEPEND=">=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]
|
|
||||||
>=dev-libs/nspr-${NSPR_VER}[${MULTILIB_USEDEP}]
|
|
||||||
${CDEPEND}"
|
|
||||||
RDEPEND=">=dev-libs/nspr-${NSPR_VER}[${MULTILIB_USEDEP}]
|
|
||||||
${CDEPEND}
|
|
||||||
"
|
|
||||||
|
|
||||||
RESTRICT="test"
|
|
||||||
|
|
||||||
S="${WORKDIR}/${P}/${PN}"
|
|
||||||
|
|
||||||
MULTILIB_CHOST_TOOLS=(
|
|
||||||
/usr/bin/nss-config
|
|
||||||
)
|
|
||||||
|
|
||||||
PATCHES=(
|
|
||||||
# Custom changes for gentoo
|
|
||||||
"${FILESDIR}/${PN}-3.32-gentoo-fixups.patch"
|
|
||||||
"${FILESDIR}/${PN}-3.21-gentoo-fixup-warnings.patch"
|
|
||||||
"${FILESDIR}/${PN}-3.23-hppa-byte_order.patch"
|
|
||||||
)
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
unpack ${A}
|
|
||||||
if use nss-pem ; then
|
|
||||||
mv "${PN}"/lib/ckfw/pem/ "${S}"/lib/ckfw/ || die
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
if use nss-pem ; then
|
|
||||||
PATCHES+=(
|
|
||||||
"${FILESDIR}/${PN}-3.21-enable-pem.patch"
|
|
||||||
)
|
|
||||||
fi
|
|
||||||
if use cacert ; then #521462
|
|
||||||
PATCHES+=(
|
|
||||||
"${DISTDIR}/${PN}-cacert-class1-class3.patch"
|
|
||||||
)
|
|
||||||
fi
|
|
||||||
|
|
||||||
default
|
|
||||||
|
|
||||||
pushd coreconf >/dev/null || die
|
|
||||||
# hack nspr paths
|
|
||||||
echo 'INCLUDES += -I$(DIST)/include/dbm' \
|
|
||||||
>> headers.mk || die "failed to append include"
|
|
||||||
|
|
||||||
# modify install path
|
|
||||||
sed -e '/CORE_DEPTH/s:SOURCE_PREFIX.*$:SOURCE_PREFIX = $(CORE_DEPTH)/dist:' \
|
|
||||||
-i source.mk || die
|
|
||||||
|
|
||||||
# Respect LDFLAGS
|
|
||||||
sed -i -e 's/\$(MKSHLIB) -o/\$(MKSHLIB) \$(LDFLAGS) -o/g' rules.mk
|
|
||||||
popd >/dev/null || die
|
|
||||||
|
|
||||||
# Fix pkgconfig file for Prefix
|
|
||||||
sed -i -e "/^PREFIX =/s:= /usr:= ${EPREFIX}/usr:" \
|
|
||||||
config/Makefile || die
|
|
||||||
|
|
||||||
# use host shlibsign if need be #436216
|
|
||||||
if tc-is-cross-compiler ; then
|
|
||||||
sed -i \
|
|
||||||
-e 's:"${2}"/shlibsign:shlibsign:' \
|
|
||||||
cmd/shlibsign/sign.sh || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
# dirty hack
|
|
||||||
sed -i -e "/CRYPTOLIB/s:\$(SOFTOKEN_LIB_DIR):../freebl/\$(OBJDIR):" \
|
|
||||||
lib/ssl/config.mk || die
|
|
||||||
sed -i -e "/CRYPTOLIB/s:\$(SOFTOKEN_LIB_DIR):../../lib/freebl/\$(OBJDIR):" \
|
|
||||||
cmd/platlibs.mk || die
|
|
||||||
|
|
||||||
multilib_copy_sources
|
|
||||||
|
|
||||||
strip-flags
|
|
||||||
}
|
|
||||||
|
|
||||||
multilib_src_configure() {
|
|
||||||
# Ensure we stay multilib aware
|
|
||||||
sed -i -e "/@libdir@/ s:lib64:$(get_libdir):" config/Makefile || die
|
|
||||||
}
|
|
||||||
|
|
||||||
nssarch() {
|
|
||||||
# Most of the arches are the same as $ARCH
|
|
||||||
local t=${1:-${CHOST}}
|
|
||||||
case ${t} in
|
|
||||||
aarch64*)echo "aarch64";;
|
|
||||||
hppa*) echo "parisc";;
|
|
||||||
i?86*) echo "i686";;
|
|
||||||
x86_64*) echo "x86_64";;
|
|
||||||
*) tc-arch ${t};;
|
|
||||||
esac
|
|
||||||
}
|
|
||||||
|
|
||||||
nssbits() {
|
|
||||||
local cc cppflags="${1}CPPFLAGS" cflags="${1}CFLAGS"
|
|
||||||
if [[ ${1} == BUILD_ ]]; then
|
|
||||||
cc=$(tc-getBUILD_CC)
|
|
||||||
else
|
|
||||||
cc=$(tc-getCC)
|
|
||||||
fi
|
|
||||||
echo > "${T}"/test.c || die
|
|
||||||
${cc} ${!cppflags} ${!cflags} -c "${T}"/test.c -o "${T}/${1}test.o" || die
|
|
||||||
case $(file "${T}/${1}test.o") in
|
|
||||||
*32-bit*x86-64*) echo USE_X32=1;;
|
|
||||||
*64-bit*|*ppc64*|*x86_64*) echo USE_64=1;;
|
|
||||||
*32-bit*|*ppc*|*i386*) ;;
|
|
||||||
*) die "Failed to detect whether ${cc} builds 64bits or 32bits, disable distcc if you're using it, please";;
|
|
||||||
esac
|
|
||||||
}
|
|
||||||
|
|
||||||
multilib_src_compile() {
|
|
||||||
# use ABI to determine bit'ness, or fallback if unset
|
|
||||||
local buildbits mybits
|
|
||||||
case "${ABI}" in
|
|
||||||
n32) mybits="USE_N32=1";;
|
|
||||||
x32) mybits="USE_X32=1";;
|
|
||||||
s390x|*64) mybits="USE_64=1";;
|
|
||||||
${DEFAULT_ABI})
|
|
||||||
einfo "Running compilation test to determine bit'ness"
|
|
||||||
mybits=$(nssbits)
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
# bitness of host may differ from target
|
|
||||||
if tc-is-cross-compiler; then
|
|
||||||
buildbits=$(nssbits BUILD_)
|
|
||||||
fi
|
|
||||||
|
|
||||||
local makeargs=(
|
|
||||||
CC="$(tc-getCC)"
|
|
||||||
CCC="$(tc-getCXX)"
|
|
||||||
AR="$(tc-getAR) rc \$@"
|
|
||||||
RANLIB="$(tc-getRANLIB)"
|
|
||||||
OPTIMIZER=
|
|
||||||
${mybits}
|
|
||||||
)
|
|
||||||
|
|
||||||
# Take care of nspr settings #436216
|
|
||||||
local myCPPFLAGS="${CPPFLAGS} $($(tc-getPKG_CONFIG) nspr --cflags)"
|
|
||||||
unset NSPR_INCLUDE_DIR
|
|
||||||
|
|
||||||
# Do not let `uname` be used.
|
|
||||||
if use kernel_linux ; then
|
|
||||||
makeargs+=(
|
|
||||||
OS_TARGET=Linux
|
|
||||||
OS_RELEASE=2.6
|
|
||||||
OS_TEST="$(nssarch)"
|
|
||||||
)
|
|
||||||
fi
|
|
||||||
|
|
||||||
export NSS_ENABLE_WERROR=0 #567158
|
|
||||||
export BUILD_OPT=1
|
|
||||||
export NSS_USE_SYSTEM_SQLITE=1
|
|
||||||
export NSDISTMODE=copy
|
|
||||||
export NSS_ENABLE_ECC=1
|
|
||||||
export FREEBL_NO_DEPEND=1
|
|
||||||
export ASFLAGS=""
|
|
||||||
|
|
||||||
local d
|
|
||||||
|
|
||||||
# Build the host tools first.
|
|
||||||
LDFLAGS="${BUILD_LDFLAGS}" \
|
|
||||||
XCFLAGS="${BUILD_CFLAGS}" \
|
|
||||||
NSPR_LIB_DIR="${T}/fakedir" \
|
|
||||||
emake -j1 -C coreconf \
|
|
||||||
CC="$(tc-getBUILD_CC)" \
|
|
||||||
${buildbits:-${mybits}}
|
|
||||||
makeargs+=( NSINSTALL="${PWD}/$(find -type f -name nsinstall)" )
|
|
||||||
|
|
||||||
# Then build the target tools.
|
|
||||||
for d in . lib/dbm ; do
|
|
||||||
CPPFLAGS="${myCPPFLAGS}" \
|
|
||||||
XCFLAGS="${CFLAGS} ${CPPFLAGS}" \
|
|
||||||
NSPR_LIB_DIR="${T}/fakedir" \
|
|
||||||
emake -j1 "${makeargs[@]}" -C ${d}
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
# Altering these 3 libraries breaks the CHK verification.
|
|
||||||
# All of the following cause it to break:
|
|
||||||
# - stripping
|
|
||||||
# - prelink
|
|
||||||
# - ELF signing
|
|
||||||
# http://www.mozilla.org/projects/security/pki/nss/tech-notes/tn6.html
|
|
||||||
# Either we have to NOT strip them, or we have to forcibly resign after
|
|
||||||
# stripping.
|
|
||||||
#local_libdir="$(get_libdir)"
|
|
||||||
#export STRIP_MASK="
|
|
||||||
# */${local_libdir}/libfreebl3.so*
|
|
||||||
# */${local_libdir}/libnssdbm3.so*
|
|
||||||
# */${local_libdir}/libsoftokn3.so*"
|
|
||||||
|
|
||||||
export NSS_CHK_SIGN_LIBS="freebl3 nssdbm3 softokn3"
|
|
||||||
|
|
||||||
generate_chk() {
|
|
||||||
local shlibsign="$1"
|
|
||||||
local libdir="$2"
|
|
||||||
einfo "Resigning core NSS libraries for FIPS validation"
|
|
||||||
shift 2
|
|
||||||
local i
|
|
||||||
for i in ${NSS_CHK_SIGN_LIBS} ; do
|
|
||||||
local libname=lib${i}.so
|
|
||||||
local chkname=lib${i}.chk
|
|
||||||
"${shlibsign}" \
|
|
||||||
-i "${libdir}"/${libname} \
|
|
||||||
-o "${libdir}"/${chkname}.tmp \
|
|
||||||
&& mv -f \
|
|
||||||
"${libdir}"/${chkname}.tmp \
|
|
||||||
"${libdir}"/${chkname} \
|
|
||||||
|| die "Failed to sign ${libname}"
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
cleanup_chk() {
|
|
||||||
local libdir="$1"
|
|
||||||
shift 1
|
|
||||||
local i
|
|
||||||
for i in ${NSS_CHK_SIGN_LIBS} ; do
|
|
||||||
local libfname="${libdir}/lib${i}.so"
|
|
||||||
# If the major version has changed, then we have old chk files.
|
|
||||||
[ ! -f "${libfname}" -a -f "${libfname}.chk" ] \
|
|
||||||
&& rm -f "${libfname}.chk"
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
multilib_src_install() {
|
|
||||||
pushd dist >/dev/null || die
|
|
||||||
|
|
||||||
dodir /usr/$(get_libdir)
|
|
||||||
cp -L */lib/*$(get_libname) "${ED%/}"/usr/$(get_libdir) || die "copying shared libs failed"
|
|
||||||
local i
|
|
||||||
for i in crmf freebl nssb nssckfw ; do
|
|
||||||
cp -L */lib/lib${i}.a "${ED%/}"/usr/$(get_libdir) || die "copying libs failed"
|
|
||||||
done
|
|
||||||
|
|
||||||
# Install nss-config and pkgconfig file
|
|
||||||
dodir /usr/bin
|
|
||||||
cp -L */bin/nss-config "${ED%/}"/usr/bin || die
|
|
||||||
dodir /usr/$(get_libdir)/pkgconfig
|
|
||||||
cp -L */lib/pkgconfig/nss.pc "${ED%/}"/usr/$(get_libdir)/pkgconfig || die
|
|
||||||
|
|
||||||
# create an nss-softokn.pc from nss.pc for libfreebl and some private headers
|
|
||||||
# bug 517266
|
|
||||||
sed -e 's#Libs:#Libs: -lfreebl#' \
|
|
||||||
-e 's#Cflags:#Cflags: -I${includedir}/private#' \
|
|
||||||
*/lib/pkgconfig/nss.pc >"${ED%/}"/usr/$(get_libdir)/pkgconfig/nss-softokn.pc \
|
|
||||||
|| die "could not create nss-softokn.pc"
|
|
||||||
|
|
||||||
# all the include files
|
|
||||||
insinto /usr/include/nss
|
|
||||||
doins public/nss/*.{h,api}
|
|
||||||
insinto /usr/include/nss/private
|
|
||||||
doins private/nss/{blapi,alghmac}.h
|
|
||||||
|
|
||||||
popd >/dev/null || die
|
|
||||||
|
|
||||||
local f nssutils
|
|
||||||
# Always enabled because we need it for chk generation.
|
|
||||||
nssutils=( shlibsign )
|
|
||||||
|
|
||||||
if multilib_is_native_abi ; then
|
|
||||||
if use utils; then
|
|
||||||
# The tests we do not need to install.
|
|
||||||
#nssutils_test="bltest crmftest dbtest dertimetest
|
|
||||||
#fipstest remtest sdrtest"
|
|
||||||
# checkcert utils has been removed in nss-3.22:
|
|
||||||
# https://bugzilla.mozilla.org/show_bug.cgi?id=1187545
|
|
||||||
# https://hg.mozilla.org/projects/nss/rev/df1729d37870
|
|
||||||
# certcgi has been removed in nss-3.36:
|
|
||||||
# https://bugzilla.mozilla.org/show_bug.cgi?id=1426602
|
|
||||||
nssutils+=(
|
|
||||||
addbuiltin
|
|
||||||
atob
|
|
||||||
baddbdir
|
|
||||||
btoa
|
|
||||||
certutil
|
|
||||||
cmsutil
|
|
||||||
conflict
|
|
||||||
crlutil
|
|
||||||
derdump
|
|
||||||
digest
|
|
||||||
makepqg
|
|
||||||
mangle
|
|
||||||
modutil
|
|
||||||
multinit
|
|
||||||
nonspr10
|
|
||||||
ocspclnt
|
|
||||||
oidcalc
|
|
||||||
p7content
|
|
||||||
p7env
|
|
||||||
p7sign
|
|
||||||
p7verify
|
|
||||||
pk11mode
|
|
||||||
pk12util
|
|
||||||
pp
|
|
||||||
rsaperf
|
|
||||||
selfserv
|
|
||||||
signtool
|
|
||||||
signver
|
|
||||||
ssltap
|
|
||||||
strsclnt
|
|
||||||
symkeyutil
|
|
||||||
tstclnt
|
|
||||||
vfychain
|
|
||||||
vfyserv
|
|
||||||
)
|
|
||||||
# install man-pages for utils (bug #516810)
|
|
||||||
doman doc/nroff/*.1
|
|
||||||
fi
|
|
||||||
pushd dist/*/bin >/dev/null || die
|
|
||||||
for f in ${nssutils[@]}; do
|
|
||||||
dobin ${f}
|
|
||||||
done
|
|
||||||
popd >/dev/null || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Prelink breaks the CHK files. We don't have any reliable way to run
|
|
||||||
# shlibsign after prelink.
|
|
||||||
dodir /etc/prelink.conf.d
|
|
||||||
printf -- "-b ${EPREFIX}/usr/$(get_libdir)/lib%s.so\n" ${NSS_CHK_SIGN_LIBS} \
|
|
||||||
> "${ED%/}"/etc/prelink.conf.d/nss.conf
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
multilib_pkg_postinst() {
|
|
||||||
# We must re-sign the libraries AFTER they are stripped.
|
|
||||||
local shlibsign="${EROOT}/usr/bin/shlibsign"
|
|
||||||
# See if we can execute it (cross-compiling & such). #436216
|
|
||||||
"${shlibsign}" -h >&/dev/null
|
|
||||||
if [[ $? -gt 1 ]] ; then
|
|
||||||
shlibsign="shlibsign"
|
|
||||||
fi
|
|
||||||
generate_chk "${shlibsign}" "${EROOT}"/usr/$(get_libdir)
|
|
||||||
}
|
|
||||||
|
|
||||||
multilib_foreach_abi multilib_pkg_postinst
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postrm() {
|
|
||||||
multilib_pkg_postrm() {
|
|
||||||
cleanup_chk "${EROOT}"/usr/$(get_libdir)
|
|
||||||
}
|
|
||||||
|
|
||||||
multilib_foreach_abi multilib_pkg_postrm
|
|
||||||
}
|
|
7
media-gfx/curaengine/Manifest
Normal file
7
media-gfx/curaengine/Manifest
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
DIST curaengine-3.4.1.tar.gz 949312 BLAKE2B 4902575c40002ab49e3ef13c94c8531b6975ff62e58012dc48744e2d27e9d1767e8f7768250179a374ed24da5a5e2085e9c194068ad6ffb98fff0595a314f7b0 SHA512 51c75e299ef7728101a4c61aa033c9b07112b0955d2ec72ba6173684513ed3c503a744fab487efe2c19da01eb97bd1297b5b8724b4f767639c8e82eefcdd01be
|
||||||
|
DIST curaengine-3.6.0.tar.gz 1390109 BLAKE2B a0a6b8016bb5fa2f772634a671fc391df45875fc36cdf100f00ce34b9d5495f32986c473b1ba4c184cb77e50a64e2648c5d4f31053790182e657b0c981e1412c SHA512 340dad4c697fb0d7b633091715a904ae7df8973626e217ae2528d0121723c07a6cf0bbc740b9ad9980f3b288fa690c9c3ee43d90914264855dace007bbb334c8
|
||||||
|
DIST curaengine-4.3.0.tar.gz 1656780 BLAKE2B 9b93e3f294a8a67c2cd4f2d4462a4047e6860e0c391e7ff550b24c498faa82fd2af4fd044845f00f93fb01d38ca3fa1511bfe65a7456b5a6e0b919821be5ab8f SHA512 60ca0ce586c0cf5f1516f803b2a05a20299ef8193f065acd6e11a0054903189225f9c60be1b536ffe5a9a22652097acd3a4aae2833920a468071b78f213f7572
|
||||||
|
EBUILD curaengine-3.4.1.ebuild 875 BLAKE2B 943c5d77bb91f833a42005edff60824935bc9cc0d6707035ee5ab2fe29d8d631c51fc7678b96dbebf468ea2e5bbb9cfb233999ffaadcf9f196ec824ba2f3d83f SHA512 4ec5e4cb05f236ff9052ecf6455967d05ae668002d255af0d8435960080882ec687de6d7547074d4fee1fd435a04796a26dc4bcdd595ad5748e8d3b0c052f39e
|
||||||
|
EBUILD curaengine-3.6.0.ebuild 875 BLAKE2B 943c5d77bb91f833a42005edff60824935bc9cc0d6707035ee5ab2fe29d8d631c51fc7678b96dbebf468ea2e5bbb9cfb233999ffaadcf9f196ec824ba2f3d83f SHA512 4ec5e4cb05f236ff9052ecf6455967d05ae668002d255af0d8435960080882ec687de6d7547074d4fee1fd435a04796a26dc4bcdd595ad5748e8d3b0c052f39e
|
||||||
|
EBUILD curaengine-4.3.0.ebuild 875 BLAKE2B 943c5d77bb91f833a42005edff60824935bc9cc0d6707035ee5ab2fe29d8d631c51fc7678b96dbebf468ea2e5bbb9cfb233999ffaadcf9f196ec824ba2f3d83f SHA512 4ec5e4cb05f236ff9052ecf6455967d05ae668002d255af0d8435960080882ec687de6d7547074d4fee1fd435a04796a26dc4bcdd595ad5748e8d3b0c052f39e
|
||||||
|
MISC metadata.xml 862 BLAKE2B 233eef15a865c598451d8a6100a8dc99f4c9a4c4ae4f8692a473ad2b8de5c2bc5216052b2bbf698e98f1c7f8156512084beaebc6148b9bc333d5c09d9bfda3ba SHA512 92e4cf75b949ac201537780bc5acf295720da8a342f6d882e2ca3b36aaa5691a3df31e6cf79e44b25f88d2f1177a1b6227165cbe8b9da8762b35560927239382
|
43
media-gfx/curaengine/curaengine-3.4.1.ebuild
Normal file
43
media-gfx/curaengine/curaengine-3.4.1.ebuild
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
# Copyright 1999-2018 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=6
|
||||||
|
|
||||||
|
inherit cmake-utils
|
||||||
|
|
||||||
|
MY_PN="CuraEngine"
|
||||||
|
|
||||||
|
DESCRIPTION="A 3D model slicing engine for 3D printing"
|
||||||
|
HOMEPAGE="https://github.com/Ultimaker/CuraEngine"
|
||||||
|
SRC_URI="https://github.com/Ultimaker/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="AGPL-3"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE="doc test"
|
||||||
|
|
||||||
|
RDEPEND="${PYTHON_DEPS}
|
||||||
|
~dev-libs/libarcus-${PV}:*
|
||||||
|
dev-libs/protobuf
|
||||||
|
dev-libs/stb"
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
doc? ( app-doc/doxygen )"
|
||||||
|
|
||||||
|
DOCS=( README.md )
|
||||||
|
|
||||||
|
S="${WORKDIR}/${MY_PN}-${PV}"
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
local mycmakeargs=( "-DBUILD_TESTS=$(usex test ON OFF)" )
|
||||||
|
cmake-utils_src_configure
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
cmake-utils_src_make
|
||||||
|
if use doc; then
|
||||||
|
doxygen
|
||||||
|
mv docs/html . || die
|
||||||
|
find html -name '*.md5' -or -name '*.map' -delete || die
|
||||||
|
DOCS+=( html )
|
||||||
|
fi
|
||||||
|
}
|
43
media-gfx/curaengine/curaengine-3.6.0.ebuild
Normal file
43
media-gfx/curaengine/curaengine-3.6.0.ebuild
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
# Copyright 1999-2018 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=6
|
||||||
|
|
||||||
|
inherit cmake-utils
|
||||||
|
|
||||||
|
MY_PN="CuraEngine"
|
||||||
|
|
||||||
|
DESCRIPTION="A 3D model slicing engine for 3D printing"
|
||||||
|
HOMEPAGE="https://github.com/Ultimaker/CuraEngine"
|
||||||
|
SRC_URI="https://github.com/Ultimaker/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="AGPL-3"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE="doc test"
|
||||||
|
|
||||||
|
RDEPEND="${PYTHON_DEPS}
|
||||||
|
~dev-libs/libarcus-${PV}:*
|
||||||
|
dev-libs/protobuf
|
||||||
|
dev-libs/stb"
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
doc? ( app-doc/doxygen )"
|
||||||
|
|
||||||
|
DOCS=( README.md )
|
||||||
|
|
||||||
|
S="${WORKDIR}/${MY_PN}-${PV}"
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
local mycmakeargs=( "-DBUILD_TESTS=$(usex test ON OFF)" )
|
||||||
|
cmake-utils_src_configure
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
cmake-utils_src_make
|
||||||
|
if use doc; then
|
||||||
|
doxygen
|
||||||
|
mv docs/html . || die
|
||||||
|
find html -name '*.md5' -or -name '*.map' -delete || die
|
||||||
|
DOCS+=( html )
|
||||||
|
fi
|
||||||
|
}
|
43
media-gfx/curaengine/curaengine-4.3.0.ebuild
Normal file
43
media-gfx/curaengine/curaengine-4.3.0.ebuild
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
# Copyright 1999-2018 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=6
|
||||||
|
|
||||||
|
inherit cmake-utils
|
||||||
|
|
||||||
|
MY_PN="CuraEngine"
|
||||||
|
|
||||||
|
DESCRIPTION="A 3D model slicing engine for 3D printing"
|
||||||
|
HOMEPAGE="https://github.com/Ultimaker/CuraEngine"
|
||||||
|
SRC_URI="https://github.com/Ultimaker/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="AGPL-3"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE="doc test"
|
||||||
|
|
||||||
|
RDEPEND="${PYTHON_DEPS}
|
||||||
|
~dev-libs/libarcus-${PV}:*
|
||||||
|
dev-libs/protobuf
|
||||||
|
dev-libs/stb"
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
doc? ( app-doc/doxygen )"
|
||||||
|
|
||||||
|
DOCS=( README.md )
|
||||||
|
|
||||||
|
S="${WORKDIR}/${MY_PN}-${PV}"
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
local mycmakeargs=( "-DBUILD_TESTS=$(usex test ON OFF)" )
|
||||||
|
cmake-utils_src_configure
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
cmake-utils_src_make
|
||||||
|
if use doc; then
|
||||||
|
doxygen
|
||||||
|
mv docs/html . || die
|
||||||
|
find html -name '*.md5' -or -name '*.map' -delete || die
|
||||||
|
DOCS+=( html )
|
||||||
|
fi
|
||||||
|
}
|
30
media-gfx/curaengine/metadata.xml
Normal file
30
media-gfx/curaengine/metadata.xml
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
<?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>
|
||||||
|
<maintainer type="person">
|
||||||
|
<email>alexxy@gentoo.org</email>
|
||||||
|
<name>Alexey Shvetsov</name>
|
||||||
|
</maintainer>
|
||||||
|
<maintainer type="project">
|
||||||
|
<email>proxy-maint@gentoo.org</email>
|
||||||
|
<name>Proxy Maintainers</name>
|
||||||
|
</maintainer>
|
||||||
|
<maintainer type="person">
|
||||||
|
<email>mathy@vanvoorden.be</email>
|
||||||
|
<name>Mathy Vanvoorden</name>
|
||||||
|
</maintainer>
|
||||||
|
<maintainer type="person">
|
||||||
|
<email>perlovka@gmail.com</email>
|
||||||
|
<name>Michael Perlov</name>
|
||||||
|
</maintainer>
|
||||||
|
<slots>
|
||||||
|
<subslots>soname major version number</subslots>
|
||||||
|
</slots>
|
||||||
|
<upstream>
|
||||||
|
<remote-id type="github">Ultimaker/CuraEngine</remote-id>
|
||||||
|
</upstream>
|
||||||
|
</pkgmetadata>
|
Loading…
x
Reference in New Issue
Block a user