parent
789d34ca1a
commit
dea2061510
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,2 +1,3 @@
|
|||||||
DIST passwordsafe-1.13.0.tar.gz 15022877 BLAKE2B 353976c22365fc98c034eac339f067061ee659043ab8507bbec174483414619b8442ba4fd7671e888127b83e9865d21587529c7821bd706a55da951c300425d4 SHA512 eb8ae46e9f3e8287b2ad781ed6d6e13026096a35fadc1fd1da1116e5e6b65e16e76090d8e7d1c64be387229ccd1053dcc820acbe7ee97914e46c311ee8ff03b8
|
DIST passwordsafe-1.13.0.tar.gz 15022877 BLAKE2B 353976c22365fc98c034eac339f067061ee659043ab8507bbec174483414619b8442ba4fd7671e888127b83e9865d21587529c7821bd706a55da951c300425d4 SHA512 eb8ae46e9f3e8287b2ad781ed6d6e13026096a35fadc1fd1da1116e5e6b65e16e76090d8e7d1c64be387229ccd1053dcc820acbe7ee97914e46c311ee8ff03b8
|
||||||
DIST passwordsafe-1.14.0.tar.gz 15303935 BLAKE2B 977386e5c469772753173bd46f608e9fb77e462706fbe6bf80a18cf8e5f3b89cc7300f92298b2b45885dafbef323a0ba59d67ddcea20c229f4f9520a54800653 SHA512 958ab87ac6a9066a0359890facd509c1085646eddcefc33f89b934a9375df51bcbc78213298d165d354c64618c8fb753c2588e386e886fa4c1c478e0a27d3d27
|
DIST passwordsafe-1.14.0.tar.gz 15303935 BLAKE2B 977386e5c469772753173bd46f608e9fb77e462706fbe6bf80a18cf8e5f3b89cc7300f92298b2b45885dafbef323a0ba59d67ddcea20c229f4f9520a54800653 SHA512 958ab87ac6a9066a0359890facd509c1085646eddcefc33f89b934a9375df51bcbc78213298d165d354c64618c8fb753c2588e386e886fa4c1c478e0a27d3d27
|
||||||
|
DIST passwordsafe-1.15.0.tar.gz 15354159 BLAKE2B 699f80325884cba9bc6e5ffb33bea5c0b2c01f12ed7e4ea1226c4a64c761a8f20b8272e771261ca59aeeb49bfaa4ea83edc9af6c0aa9ae853e537b0f76f28aaa SHA512 803572afc479d608899e1166ef032a2a660fce122e03f89f59f8e9da9f7439e0eb1d602f77283200626f49d7e146e82edf8edee40060ff4cf6163e81bdf5f738
|
||||||
|
@ -0,0 +1,90 @@
|
|||||||
|
# Copyright 2021-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
WX_GTK_VER="3.0-gtk3"
|
||||||
|
|
||||||
|
inherit cmake desktop flag-o-matic optfeature wxwidgets xdg
|
||||||
|
|
||||||
|
MY_PV="${PV/_beta/BETA}"
|
||||||
|
DESCRIPTION="Password manager with wxGTK based frontend"
|
||||||
|
HOMEPAGE="https://pwsafe.org/ https://github.com/pwsafe/pwsafe/"
|
||||||
|
SRC_URI="https://github.com/pwsafe/pwsafe/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="Artistic-2"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE="qr test +xml yubikey"
|
||||||
|
RESTRICT="!test? ( test )"
|
||||||
|
|
||||||
|
DEPEND="
|
||||||
|
dev-libs/openssl:0=
|
||||||
|
net-misc/curl
|
||||||
|
sys-apps/file
|
||||||
|
sys-apps/util-linux
|
||||||
|
x11-libs/libXt
|
||||||
|
x11-libs/libXtst
|
||||||
|
x11-libs/wxGTK:${WX_GTK_VER}[X]
|
||||||
|
qr? ( media-gfx/qrencode )
|
||||||
|
xml? ( dev-libs/xerces-c )
|
||||||
|
yubikey? ( sys-auth/ykpers )"
|
||||||
|
RDEPEND="${DEPEND}"
|
||||||
|
BDEPEND="
|
||||||
|
app-arch/zip
|
||||||
|
sys-devel/gettext
|
||||||
|
test? ( dev-cpp/gtest )"
|
||||||
|
|
||||||
|
S="${WORKDIR}/pwsafe-${MY_PV}"
|
||||||
|
|
||||||
|
pkg_pretend() {
|
||||||
|
einfo "Checking for -std=c++11 support in compiler"
|
||||||
|
test-flags-CXX -std=c++11 > /dev/null || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
setup-wxwidgets
|
||||||
|
|
||||||
|
local mycmakeargs=(
|
||||||
|
-DNO_QR=$(usex !qr)
|
||||||
|
-DNO_GTEST=$(usex !test)
|
||||||
|
-DGTEST_BUILD=OFF
|
||||||
|
-DXML_XERCESC=$(usex xml)
|
||||||
|
-DNO_YUBI=$(usex !yubikey)
|
||||||
|
)
|
||||||
|
|
||||||
|
cmake_src_configure
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
pushd "${BUILD_DIR}" || die
|
||||||
|
|
||||||
|
dobin pwsafe
|
||||||
|
dobin cli/pwsafe-cli
|
||||||
|
dosym pwsafe /usr/bin/${PN}
|
||||||
|
dosym pwsafe-cli /usr/bin/${PN}-cli
|
||||||
|
|
||||||
|
insinto /usr/share/locale
|
||||||
|
doins -r src/ui/wxWidgets/I18N/mos/*
|
||||||
|
|
||||||
|
insinto /usr/share/${PN}/help
|
||||||
|
doins help/*.zip
|
||||||
|
|
||||||
|
popd || die
|
||||||
|
|
||||||
|
newman docs/pwsafe.1 ${PN}.1
|
||||||
|
|
||||||
|
dodoc README.md README.LINUX.* SECURITY.md docs/{ReleaseNotes.md,ChangeLog.txt}
|
||||||
|
|
||||||
|
insinto /usr/share/${PN}
|
||||||
|
doins -r xml
|
||||||
|
|
||||||
|
doicon -s 48 install/graphics/pwsafe.png
|
||||||
|
newmenu install/desktop/pwsafe.desktop ${PN}.desktop
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
xdg_desktop_database_update
|
||||||
|
xdg_icon_cache_update
|
||||||
|
optfeature "on-screen keyboard for password entry" x11-misc/xvkbd
|
||||||
|
}
|
Binary file not shown.
@ -1,2 +1,4 @@
|
|||||||
DIST lxd-4.0.9.tar.gz 9117078 BLAKE2B aa6689c1e958258484fba5c060765dd71d5406cb4375d3132cdc38633277e6c95322e8e3aed5e9dd251140c6868ec42470e797639dde4af42848e138f3b45ee2 SHA512 657949311753895f3941deaabae2d03092fc67490d2de78db48b296fdd3e9df4c5844467dd6913814426ca423a6ee1da9705bb1a2652ea99fe1356eb7da97ebb
|
DIST lxd-4.0.9.tar.gz 9117078 BLAKE2B aa6689c1e958258484fba5c060765dd71d5406cb4375d3132cdc38633277e6c95322e8e3aed5e9dd251140c6868ec42470e797639dde4af42848e138f3b45ee2 SHA512 657949311753895f3941deaabae2d03092fc67490d2de78db48b296fdd3e9df4c5844467dd6913814426ca423a6ee1da9705bb1a2652ea99fe1356eb7da97ebb
|
||||||
DIST lxd-4.0.9.tar.gz.asc 833 BLAKE2B 7cd0d3ab518d947ca3ea6dc804c6a59b592e4e568152c078fdd3c102420bcd94d2f0b2c335b8b4ecdb19dc3c9a10f665a1510903f395247da956717beaa172a3 SHA512 79a4111571ab43e79cf669e416ed50f3ccae0fbceb86d73757d23c778035e827f47643bc87ff6a2fc64b095345a3d53cbd0c4eb245c75364e907d7449f3a0886
|
DIST lxd-4.0.9.tar.gz.asc 833 BLAKE2B 7cd0d3ab518d947ca3ea6dc804c6a59b592e4e568152c078fdd3c102420bcd94d2f0b2c335b8b4ecdb19dc3c9a10f665a1510903f395247da956717beaa172a3 SHA512 79a4111571ab43e79cf669e416ed50f3ccae0fbceb86d73757d23c778035e827f47643bc87ff6a2fc64b095345a3d53cbd0c4eb245c75364e907d7449f3a0886
|
||||||
|
DIST lxd-5.0.0.tar.gz 17706199 BLAKE2B 5559bdd479e03b43407e58aa240a00dae488cbf799cec39cbe74b636c907d247341132a49b414fa573c5d5d366643d296522efb6d71c1c0f83cc8edc038f1432 SHA512 e74c14a2642ee4ea738629b1da9c4b416f3bdbb26a49c8c920eb0e5e0467236fd610276541af1d481d6b069093cb1c35c705008652ff2cd55d2d15e9b7433696
|
||||||
|
DIST lxd-5.0.0.tar.gz.asc 833 BLAKE2B 7e8fc6f6892294fb8a6384f5767cb74b0a4b941c39da3b097c2196b328fb4f0b1816c46adae0bb343022bd558e77612ab3d93884053c1db5f7c1067c13444fb5 SHA512 d3d583175437cee37b6d7d8d137ab1440dd6ac1c91200616fe68e5f38197f11ab2ed85f1aba06dfb0d32f88153defb2bb3f897601902e66fe0a5eff6042e57c0
|
||||||
|
@ -0,0 +1,180 @@
|
|||||||
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
inherit bash-completion-r1 go-module linux-info optfeature systemd verify-sig
|
||||||
|
|
||||||
|
DESCRIPTION="Fast, dense and secure container management"
|
||||||
|
HOMEPAGE="https://linuxcontainers.org/lxd/introduction/ https://github.com/lxc/lxd"
|
||||||
|
SRC_URI="https://linuxcontainers.org/downloads/lxd/${P}.tar.gz
|
||||||
|
verify-sig? ( https://linuxcontainers.org/downloads/lxd/${P}.tar.gz.asc )"
|
||||||
|
|
||||||
|
LICENSE="Apache-2.0"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||||
|
IUSE="apparmor ipv6 nls verify-sig"
|
||||||
|
|
||||||
|
DEPEND="acct-group/lxd
|
||||||
|
app-arch/xz-utils
|
||||||
|
>=app-containers/lxc-3.0.0[apparmor?,seccomp(+)]
|
||||||
|
dev-db/sqlite:3
|
||||||
|
dev-libs/dqlite
|
||||||
|
dev-libs/lzo
|
||||||
|
dev-libs/raft[lz4]
|
||||||
|
>=dev-util/xdelta-3.0[lzma(+)]
|
||||||
|
net-dns/dnsmasq[dhcp,ipv6(+)?]
|
||||||
|
sys-libs/libcap
|
||||||
|
virtual/udev"
|
||||||
|
RDEPEND="${DEPEND}
|
||||||
|
net-firewall/ebtables
|
||||||
|
net-firewall/iptables[ipv6(+)?]
|
||||||
|
sys-apps/iproute2[ipv6(+)?]
|
||||||
|
sys-fs/fuse:*
|
||||||
|
sys-fs/lxcfs
|
||||||
|
sys-fs/squashfs-tools[lzma]
|
||||||
|
virtual/acl"
|
||||||
|
BDEPEND="dev-lang/go
|
||||||
|
nls? ( sys-devel/gettext )
|
||||||
|
verify-sig? ( sec-keys/openpgp-keys-linuxcontainers )"
|
||||||
|
|
||||||
|
CONFIG_CHECK="
|
||||||
|
~CGROUPS
|
||||||
|
~IPC_NS
|
||||||
|
~NET_NS
|
||||||
|
~PID_NS
|
||||||
|
|
||||||
|
~SECCOMP
|
||||||
|
~USER_NS
|
||||||
|
~UTS_NS
|
||||||
|
|
||||||
|
~KVM
|
||||||
|
~MACVTAP
|
||||||
|
~VHOST_VSOCK
|
||||||
|
"
|
||||||
|
|
||||||
|
ERROR_IPC_NS="CONFIG_IPC_NS is required."
|
||||||
|
ERROR_NET_NS="CONFIG_NET_NS is required."
|
||||||
|
ERROR_PID_NS="CONFIG_PID_NS is required."
|
||||||
|
ERROR_SECCOMP="CONFIG_SECCOMP is required."
|
||||||
|
ERROR_UTS_NS="CONFIG_UTS_NS is required."
|
||||||
|
|
||||||
|
WARNING_KVM="CONFIG_KVM and CONFIG_KVM_AMD/-INTEL is required for virtual machines."
|
||||||
|
WARNING_MACVTAP="CONFIG_MACVTAP is required for virtual machines."
|
||||||
|
WARNING_VHOST_VSOCK="CONFIG_VHOST_VSOCK is required for virtual machines."
|
||||||
|
|
||||||
|
# Go magic.
|
||||||
|
QA_PREBUILT="/usr/bin/fuidshift
|
||||||
|
/usr/bin/lxc
|
||||||
|
/usr/bin/lxc-to-lxd
|
||||||
|
/usr/bin/lxd-agent
|
||||||
|
/usr/bin/lxd-benchmark
|
||||||
|
/usr/bin/lxd-migrate
|
||||||
|
/usr/sbin/lxd"
|
||||||
|
|
||||||
|
VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/linuxcontainers.asc
|
||||||
|
|
||||||
|
# The testsuite must be run as root.
|
||||||
|
# make: *** [Makefile:156: check] Error 1
|
||||||
|
RESTRICT="test"
|
||||||
|
|
||||||
|
GOPATH="${S}/_dist"
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
export GOPATH="${S}/_dist"
|
||||||
|
|
||||||
|
default
|
||||||
|
|
||||||
|
sed -i \
|
||||||
|
-e "s:\./configure:./configure --prefix=/usr --libdir=${EPREFIX}/usr/lib/lxd:g" \
|
||||||
|
-e "s:make:make ${MAKEOPTS}:g" \
|
||||||
|
Makefile || die
|
||||||
|
|
||||||
|
# Fix hardcoded ovmf file path, see bug 763180
|
||||||
|
sed -i \
|
||||||
|
-e "s:/usr/share/OVMF:/usr/share/edk2-ovmf:g" \
|
||||||
|
-e "s:OVMF_VARS.ms.fd:OVMF_VARS.secboot.fd:g" \
|
||||||
|
doc/environment.md \
|
||||||
|
lxd/apparmor/instance.go \
|
||||||
|
lxd/apparmor/instance_qemu.go \
|
||||||
|
lxd/instance/drivers/driver_qemu.go || die "Failed to fix hardcoded ovmf paths."
|
||||||
|
|
||||||
|
# Fix hardcoded virtfs-proxy-helper file path, see bug 798924
|
||||||
|
sed -i \
|
||||||
|
-e "s:/usr/lib/qemu/virtfs-proxy-helper:/usr/libexec/virtfs-proxy-helper:g" \
|
||||||
|
lxd/device/device_utils_disk.go || die "Failed to fix virtfs-proxy-helper path."
|
||||||
|
|
||||||
|
cp "${FILESDIR}"/lxd-4.0.9-r1.service "${T}"/lxd.service || die
|
||||||
|
if use apparmor; then
|
||||||
|
sed -i \
|
||||||
|
'/^EnvironmentFile=.*/a ExecStartPre=\/usr\/libexec\/lxc\/lxc-apparmor-load' \
|
||||||
|
"${T}"/lxd.service || die
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Disable -Werror's from go modules.
|
||||||
|
find "${S}" -name "cgo.go" -exec sed -i "s/ -Werror / /g" {} + || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() { :; }
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
export GOPATH="${S}/_dist"
|
||||||
|
export CGO_LDFLAGS_ALLOW="-Wl,-z,now"
|
||||||
|
|
||||||
|
for k in fuidshift lxd-benchmark lxc lxc-to-lxd; do
|
||||||
|
go install -v -x "${S}/${k}" || die "failed compiling ${k}"
|
||||||
|
done
|
||||||
|
|
||||||
|
go install -v -x -tags libsqlite3 ${S}/lxd || die "Failed to build the daemon"
|
||||||
|
|
||||||
|
# Needs to be built statically
|
||||||
|
CGO_ENABLED=0 go install -v -tags netgo "${S}"/lxd-migrate
|
||||||
|
CGO_ENABLED=0 go install -v -tags agent,netgo "${S}"/lxd-agent
|
||||||
|
|
||||||
|
use nls && emake build-mo
|
||||||
|
}
|
||||||
|
|
||||||
|
src_test() {
|
||||||
|
emake check
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
export GOPATH="${S}/_dist"
|
||||||
|
local bindir="_dist/bin"
|
||||||
|
|
||||||
|
dosbin ${bindir}/lxd
|
||||||
|
|
||||||
|
for l in fuidshift lxd-agent lxd-benchmark lxd-migrate lxc lxc-to-lxd; do
|
||||||
|
dobin ${bindir}/${l}
|
||||||
|
done
|
||||||
|
|
||||||
|
newbashcomp scripts/bash/lxd-client lxc
|
||||||
|
|
||||||
|
newconfd "${FILESDIR}"/lxd-4.0.0.confd lxd
|
||||||
|
newinitd "${FILESDIR}"/lxd-4.0.9.initd lxd
|
||||||
|
|
||||||
|
systemd_dounit "${T}"/lxd.service
|
||||||
|
systemd_newunit "${FILESDIR}"/lxd-containers-4.0.0.service lxd-containers.service
|
||||||
|
systemd_newunit "${FILESDIR}"/lxd-4.0.0.socket lxd.socket
|
||||||
|
|
||||||
|
dodoc AUTHORS
|
||||||
|
dodoc -r doc/*
|
||||||
|
use nls && domo po/*.mo
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
elog
|
||||||
|
elog "Consult https://wiki.gentoo.org/wiki/LXD for more information,"
|
||||||
|
elog "including a Quick Start."
|
||||||
|
elog "For virtual machine support, see:"
|
||||||
|
elog "https://wiki.gentoo.org/wiki/LXD#Virtual_machines"
|
||||||
|
elog
|
||||||
|
elog "Please run 'lxc-checkconfig' to see all optional kernel features."
|
||||||
|
elog
|
||||||
|
optfeature "virtual machine support" app-emulation/qemu[spice,usbredir,virtfs]
|
||||||
|
optfeature "btrfs storage backend" sys-fs/btrfs-progs
|
||||||
|
optfeature "lvm2 storage backend" sys-fs/lvm2
|
||||||
|
optfeature "zfs storage backend" sys-fs/zfs
|
||||||
|
elog
|
||||||
|
elog "Be sure to add your local user to the lxd group."
|
||||||
|
}
|
Binary file not shown.
Binary file not shown.
@ -1,2 +1,3 @@
|
|||||||
DIST spice-vdagent-0.19.0.tar.bz2 151356 BLAKE2B b7a99a7205d955b27edfe483746e3f267a6e0b7885c4b8146ba42d99b581cf4e1748b503a37a3d6b66623ef2515b42756f2e6a5a4775d56def7aa396bd0dfb4f SHA512 f5056dfe66df3ee8205549be22bbc8c17d2196c8448eda97f01659ff30c34d9929f330767d7fafec557dc5f7fb9b65eaf85973193b38df774042de9b72d6e60d
|
DIST spice-vdagent-0.19.0.tar.bz2 151356 BLAKE2B b7a99a7205d955b27edfe483746e3f267a6e0b7885c4b8146ba42d99b581cf4e1748b503a37a3d6b66623ef2515b42756f2e6a5a4775d56def7aa396bd0dfb4f SHA512 f5056dfe66df3ee8205549be22bbc8c17d2196c8448eda97f01659ff30c34d9929f330767d7fafec557dc5f7fb9b65eaf85973193b38df774042de9b72d6e60d
|
||||||
DIST spice-vdagent-0.21.0.tar.bz2 164103 BLAKE2B 298122b334f880ffb8d77d3a7d822b70debce56d62bc3004bbac37445f10236a47706d23501ee3f82520c45b65deec12c9578cf4a8b9ac138df8b1c0b8cdb784 SHA512 1ff1a89e75301b1c2c89f26ba4bce8d4df29bbff6387ade128ce847ca30162a2bc731c70c10a8d129518e64bbca6b8271fd11ff3e340899182a65a5295051bff
|
DIST spice-vdagent-0.21.0.tar.bz2 164103 BLAKE2B 298122b334f880ffb8d77d3a7d822b70debce56d62bc3004bbac37445f10236a47706d23501ee3f82520c45b65deec12c9578cf4a8b9ac138df8b1c0b8cdb784 SHA512 1ff1a89e75301b1c2c89f26ba4bce8d4df29bbff6387ade128ce847ca30162a2bc731c70c10a8d129518e64bbca6b8271fd11ff3e340899182a65a5295051bff
|
||||||
|
DIST spice-vdagent-0.22.1.tar.bz2 165560 BLAKE2B 4fd4318592d20d305d515c65d7491b90ac79bcc7f5bdfafd9df7858bdce24aa57c79f2121bbf9cbadec8e6297890f4b8598b9abcadcce5a9f39712b96deaa396 SHA512 5a4d2661145f33a0583880a128d925b15ca5aec05df83271c80f8baa0fcdd28fab0242301bc38443ccddf70fbdcfd76b5d30bb5a6b4b7c895c3cea0eb38bdf92
|
||||||
|
@ -0,0 +1,67 @@
|
|||||||
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
inherit linux-info tmpfiles udev
|
||||||
|
|
||||||
|
DESCRIPTION="SPICE VD Linux Guest Agent"
|
||||||
|
HOMEPAGE="https://www.spice-space.org/"
|
||||||
|
SRC_URI="https://www.spice-space.org/download/releases/${P}.tar.bz2"
|
||||||
|
|
||||||
|
LICENSE="LGPL-2.1"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE="gtk selinux systemd"
|
||||||
|
|
||||||
|
DEPEND="
|
||||||
|
dev-libs/glib:2
|
||||||
|
>=app-emulation/spice-protocol-0.14.0
|
||||||
|
media-libs/alsa-lib
|
||||||
|
sys-apps/dbus
|
||||||
|
x11-libs/libdrm
|
||||||
|
>=x11-libs/libpciaccess-0.10
|
||||||
|
x11-libs/libXfixes
|
||||||
|
x11-libs/libXrandr
|
||||||
|
x11-libs/libX11
|
||||||
|
x11-libs/libXinerama
|
||||||
|
gtk? ( x11-libs/gtk+:3 )
|
||||||
|
systemd? ( sys-apps/systemd )"
|
||||||
|
RDEPEND="${DEPEND}
|
||||||
|
selinux? ( sec-policy/selinux-vdagent )"
|
||||||
|
BDEPEND="virtual/pkgconfig"
|
||||||
|
|
||||||
|
CONFIG_CHECK="~INPUT_UINPUT ~VIRTIO_CONSOLE"
|
||||||
|
ERROR_INPUT_UINPUT="User level input support (INPUT_UINPUT) is required"
|
||||||
|
ERROR_VIRTIO_CONSOLE="VirtIO console/serial device support (VIRTIO_CONSOLE) is required"
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
local opt=()
|
||||||
|
if use systemd; then
|
||||||
|
opt+=( --with-session-info=systemd )
|
||||||
|
else
|
||||||
|
opt+=( --with-session-info=none )
|
||||||
|
fi
|
||||||
|
|
||||||
|
econf \
|
||||||
|
--with-init-script=systemd \
|
||||||
|
--localstatedir="${EPREFIX}"/var \
|
||||||
|
$(use_with gtk) \
|
||||||
|
"${opt[@]}"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
default
|
||||||
|
|
||||||
|
rmdir "${ED}"/var/run/spice-vdagentd || die
|
||||||
|
|
||||||
|
keepdir /var/log/spice-vdagentd
|
||||||
|
|
||||||
|
newinitd "${FILESDIR}/${PN}.initd-4" "${PN}"
|
||||||
|
newconfd "${FILESDIR}/${PN}.confd-2" "${PN}"
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
udev_reload
|
||||||
|
tmpfiles_process spice-vdagentd.conf
|
||||||
|
}
|
Binary file not shown.
@ -1 +1,2 @@
|
|||||||
|
DIST manpages-l10n-4.14.0.tar.bz2 102563001 BLAKE2B 500744ab21482e83e076543539dac58b16e2dfb1f4a0f38b9adfe933cc69a0d68534663e3bc07f053ad3580021b34150fe8a40e9ecd0d01b968f8570ca74b051 SHA512 335b7b34ed6135b5ceb53a75cee2f71198733df02ba8727d55863f2ceb4ae37c44636d78feca123f5d53ba07018af2ce51567c0605b242dcb441a0a56dcf9106
|
||||||
DIST manpages-l10n-v4.12.1.tar.bz2 90676890 BLAKE2B 7f261407007971063abc34f1154f5ab7d5a268dd21c76185f47cfbd73a1091950a3dc7bf0d4ad6bac56259fecbc1524b35b42316a1c2103f426ed936e203607d SHA512 42f5c61591959a0d804c215a9baddd6a182b30aedf5f6d6899f621cc8da9936fc10a1353aad5027eb4177f391f9708cc3018333256444433e937d37d8cdd3067
|
DIST manpages-l10n-v4.12.1.tar.bz2 90676890 BLAKE2B 7f261407007971063abc34f1154f5ab7d5a268dd21c76185f47cfbd73a1091950a3dc7bf0d4ad6bac56259fecbc1524b35b42316a1c2103f426ed936e203607d SHA512 42f5c61591959a0d804c215a9baddd6a182b30aedf5f6d6899f621cc8da9936fc10a1353aad5027eb4177f391f9708cc3018333256444433e937d37d8cdd3067
|
||||||
|
@ -0,0 +1,83 @@
|
|||||||
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
DESCRIPTION="A somewhat comprehensive collection of man page translations"
|
||||||
|
HOMEPAGE="https://manpages-l10n-team.pages.debian.net/manpages-l10n/"
|
||||||
|
SRC_URI="https://salsa.debian.org/manpages-l10n-team/${PN/-}/-/archive/${PV}/${P/-}.tar.bz2"
|
||||||
|
S="${WORKDIR}/${P/-}"
|
||||||
|
|
||||||
|
LICENSE="GPL-3+"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
|
||||||
|
MY_L10N=(cs da de el es fi fr hu id it mk nb nl pl pt-BR ro sr sv uk vi)
|
||||||
|
IUSE="${MY_L10N[@]/#/l10n_}"
|
||||||
|
REQUIRED_USE="|| ( ${MY_L10N[@]/#/l10n_} )"
|
||||||
|
|
||||||
|
RDEPEND="virtual/man
|
||||||
|
l10n_de? ( !app-i18n/man-pages-de )
|
||||||
|
l10n_fr? ( !app-i18n/man-pages-fr )
|
||||||
|
l10n_it? ( !app-i18n/man-pages-it )
|
||||||
|
l10n_nl? ( !app-i18n/man-pages-nl )
|
||||||
|
l10n_pl? ( !app-i18n/man-pages-pl )"
|
||||||
|
|
||||||
|
BDEPEND="app-text/po4a
|
||||||
|
dev-lang/perl"
|
||||||
|
|
||||||
|
DOCS=(AUTHORS.md CHANGES.md CONTRIBUTING.md README.md)
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
sed -i -e "/^SUBDIRS/s/=.*/= ${L10N//-/_}/" po/Makefile.{am,in} || die
|
||||||
|
|
||||||
|
# some packages have their own translations
|
||||||
|
local noinst_manpages=(
|
||||||
|
# app-arch/xz-utils
|
||||||
|
de/xz.1
|
||||||
|
de/xzdec.1
|
||||||
|
de/xzdiff.1
|
||||||
|
de/xzgrep.1
|
||||||
|
de/xzless.1
|
||||||
|
de/xzmore.1
|
||||||
|
# sys-apps/shadow
|
||||||
|
{cs,de,es,hu,nl,pl}/groups.1
|
||||||
|
de/su.1
|
||||||
|
# sys-apps/sysvinit
|
||||||
|
de/last.1
|
||||||
|
de/mesg.1
|
||||||
|
de/mountpoint.1
|
||||||
|
de/utmpdump.1
|
||||||
|
de/wall.1
|
||||||
|
fr/bootlogd.8
|
||||||
|
de/halt.8
|
||||||
|
{fr,pl}/killall5.8
|
||||||
|
de/runlevel.8
|
||||||
|
de/sulogin.8
|
||||||
|
# sys-process/procps
|
||||||
|
{de,fr,pl}/free.1
|
||||||
|
{de,fr}/pgrep.1
|
||||||
|
{de,fr}/pmap.1
|
||||||
|
{de,fr,pl}/ps.1
|
||||||
|
{de,fr}/pwdx.1
|
||||||
|
{de,fr}/tload.1
|
||||||
|
{de,fr,pl}/uptime.1
|
||||||
|
{de,fr}/sysctl.conf.5
|
||||||
|
{de,fr}/sysctl.8
|
||||||
|
{de,fr}/vmstat.8
|
||||||
|
# sys-process/psmisc
|
||||||
|
{de,nl,pl}/fuser.1
|
||||||
|
{de,pl}/killall.1
|
||||||
|
de/peekfd.1
|
||||||
|
de/prtstat.1
|
||||||
|
de/pslog.1
|
||||||
|
{de,pl}/pstree.1
|
||||||
|
)
|
||||||
|
printf '%s\n' "${noinst_manpages[@]}" \
|
||||||
|
| sed 's%^\(.*\)/\(.*\)\.\(.*\)$%po/\1/man\3/\2.\3.po%' | xargs rm
|
||||||
|
assert
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
econf --enable-compression=none
|
||||||
|
}
|
Binary file not shown.
Binary file not shown.
@ -1,91 +0,0 @@
|
|||||||
# Copyright 1999-2022 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=8
|
|
||||||
|
|
||||||
inherit rpm
|
|
||||||
|
|
||||||
BASE_PV=$(ver_cut 1-3)
|
|
||||||
MY_PV="${PV/_alpha/.alpha}"
|
|
||||||
MY_PV="${MY_PV/_beta/.beta}"
|
|
||||||
[[ ${PV} == *alpha* || ${PV} == *beta* ]] && PN_DEV="Dev"
|
|
||||||
|
|
||||||
DESCRIPTION="Translations for the Libreoffice suite"
|
|
||||||
HOMEPAGE="https://www.libreoffice.org"
|
|
||||||
BASE_SRC_URI_TESTING="https://download.documentfoundation.org/${PN/-l10n/}/testing/${BASE_PV}/rpm"
|
|
||||||
BASE_SRC_URI_STABLE="https://download.documentfoundation.org/${PN/-l10n/}/stable/${BASE_PV}/rpm"
|
|
||||||
|
|
||||||
LICENSE="|| ( LGPL-3 MPL-1.1 )"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~amd64-linux"
|
|
||||||
IUSE="offlinehelp"
|
|
||||||
|
|
||||||
#
|
|
||||||
# when changing the language lists, please be careful to preserve the spaces (bug 491728)
|
|
||||||
#
|
|
||||||
# "en:en-US" for mapping from Gentoo "en" to upstream "en-US" etc.
|
|
||||||
LANGUAGES_HELP=" am ar ast bg bn-IN bn bo bs ca-valencia ca cs da de dz el en-GB en:en-US en-ZA eo es et eu fi fr gl gu he hi hr hu id is it ja ka km ko lo lt lv mk nb ne nl nn om pl pt-BR pt ro ru si sid sk sl sq sv ta tg tr ug uk vi zh-CN zh-TW "
|
|
||||||
LANGUAGES="${LANGUAGES_HELP}af as be br brx ckb cy dgo dsb fa fur fy ga gd gug hsb kab kk kmr-Latn kn kok ks lb mai ml mn mni mr my nr nso oc or pa:pa-IN rw sa:sa-IN sat sd sr-Latn sr ss st sw-TZ szl te th tn ts tt uz ve vec xh zu "
|
|
||||||
|
|
||||||
for lang in ${LANGUAGES_HELP}; do
|
|
||||||
helppack="offlinehelp? ( ${BASE_SRC_URI_STABLE}/x86_64/LibreOffice${PN_DEV}_${BASE_PV}_Linux_x86-64_rpm_helppack_${lang#*:}.tar.gz -> LibreOffice_${MY_PV}_Linux_x86-64_rpm_helppack_${lang#*:}.tar.gz ${BASE_SRC_URI_TESTING}/x86_64/LibreOffice${PN_DEV}_${MY_PV}_Linux_x86-64_rpm_helppack_${lang#*:}.tar.gz -> LibreOffice_${MY_PV}_Linux_x86-64_rpm_helppack_${lang#*:}.tar.gz )"
|
|
||||||
SRC_URI+=" l10n_${lang%:*}? ( ${helppack} )"
|
|
||||||
done
|
|
||||||
for lang in ${LANGUAGES}; do
|
|
||||||
if [[ ${lang%:*} != en ]]; then
|
|
||||||
langpack="${BASE_SRC_URI_STABLE}/x86_64/LibreOffice${PN_DEV}_${BASE_PV}_Linux_x86-64_rpm_langpack_${lang#*:}.tar.gz -> LibreOffice_${MY_PV}_Linux_x86-64_rpm_langpack_${lang#*:}.tar.gz ${BASE_SRC_URI_TESTING}/x86_64/LibreOffice${PN_DEV}_${MY_PV}_Linux_x86-64_rpm_langpack_${lang#*:}.tar.gz -> LibreOffice_${MY_PV}_Linux_x86-64_rpm_langpack_${lang#*:}.tar.gz"
|
|
||||||
SRC_URI+=" l10n_${lang%:*}? ( ${langpack} )"
|
|
||||||
fi
|
|
||||||
IUSE+=" l10n_${lang%:*}"
|
|
||||||
done
|
|
||||||
unset lang helppack langpack
|
|
||||||
|
|
||||||
RDEPEND+="app-text/hunspell"
|
|
||||||
|
|
||||||
RESTRICT="strip"
|
|
||||||
|
|
||||||
S="${WORKDIR}"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
default
|
|
||||||
|
|
||||||
local lang dir rpmdir
|
|
||||||
|
|
||||||
# First remove dictionaries, we want to use system ones.
|
|
||||||
find "${S}" -name *dict*.rpm -delete || die "Failed to remove dictionaries"
|
|
||||||
|
|
||||||
for lang in ${LANGUAGES}; do
|
|
||||||
# break away if not enabled
|
|
||||||
use l10n_${lang%:*} || continue
|
|
||||||
|
|
||||||
dir=${lang#*:}
|
|
||||||
|
|
||||||
# for english we provide just helppack, as translation is always there
|
|
||||||
if [[ ${lang%:*} != en ]]; then
|
|
||||||
rpmdir="LibreOffice_${MY_PV}_Linux_x86-64_rpm_langpack_${dir}/RPMS/"
|
|
||||||
[[ -d ${rpmdir} ]] || die "Missing directory: ${rpmdir}"
|
|
||||||
rpm_unpack ./${rpmdir}/*.rpm
|
|
||||||
fi
|
|
||||||
if [[ "${LANGUAGES_HELP}" =~ " ${lang} " ]] && use offlinehelp; then
|
|
||||||
rpmdir="LibreOffice_${MY_PV}_Linux_x86-64_rpm_helppack_${dir}/RPMS/"
|
|
||||||
[[ -d ${rpmdir} ]] || die "Missing directory: ${rpmdir}"
|
|
||||||
rpm_unpack ./${rpmdir}/*.rpm
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() { :; }
|
|
||||||
src_compile() { :; }
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
local dir="${S}"/opt/${PN/-l10n/}$(ver_cut 1-2)/
|
|
||||||
# Condition required for people who do not install anything e.g. no l10n
|
|
||||||
# or just english with no offlinehelp.
|
|
||||||
if [[ -d "${dir}" ]] ; then
|
|
||||||
insinto /usr/$(get_libdir)/${PN/-l10n/}/
|
|
||||||
doins -r "${dir}"/*
|
|
||||||
fi
|
|
||||||
# remove extensions that are in l10n for some weird reason
|
|
||||||
rm -rf "${ED}"/usr/$(get_libdir)/${PN/-l10n/}/share/extensions/ || \
|
|
||||||
die "Failed to remove extensions"
|
|
||||||
}
|
|
@ -1,670 +0,0 @@
|
|||||||
# Copyright 1999-2022 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=8
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python3_{8..10} )
|
|
||||||
PYTHON_REQ_USE="threads(+),xml"
|
|
||||||
|
|
||||||
MY_PV="${PV/_alpha/.alpha}"
|
|
||||||
MY_PV="${MY_PV/_beta/.beta}"
|
|
||||||
# experimental ; release ; old
|
|
||||||
# Usually the tarballs are moved a lot so this should make everyone happy.
|
|
||||||
DEV_URI="
|
|
||||||
https://dev-builds.libreoffice.org/pre-releases/src
|
|
||||||
https://download.documentfoundation.org/libreoffice/src/${MY_PV:0:5}/
|
|
||||||
https://downloadarchive.documentfoundation.org/libreoffice/old/${MY_PV}/src
|
|
||||||
"
|
|
||||||
ADDONS_URI="https://dev-www.libreoffice.org/src/"
|
|
||||||
|
|
||||||
BRANDING="${PN}-branding-gentoo-0.8.tar.xz"
|
|
||||||
# PATCHSET="${P}-patchset-01.tar.xz"
|
|
||||||
|
|
||||||
[[ ${MY_PV} == *9999* ]] && inherit git-r3
|
|
||||||
inherit autotools bash-completion-r1 check-reqs flag-o-matic java-pkg-opt-2 multiprocessing python-single-r1 qmake-utils toolchain-funcs xdg-utils
|
|
||||||
|
|
||||||
DESCRIPTION="A full office productivity suite"
|
|
||||||
HOMEPAGE="https://www.libreoffice.org"
|
|
||||||
SRC_URI="branding? ( https://dev.gentoo.org/~dilfridge/distfiles/${BRANDING} )"
|
|
||||||
[[ -n ${PATCHSET} ]] && SRC_URI+=" https://dev.gentoo.org/~asturm/distfiles/${PATCHSET}"
|
|
||||||
|
|
||||||
# Split modules following git/tarballs; Core MUST be first!
|
|
||||||
# Help is used for the image generator
|
|
||||||
# Only release has the tarballs
|
|
||||||
if [[ ${MY_PV} != *9999* ]]; then
|
|
||||||
for i in ${DEV_URI}; do
|
|
||||||
SRC_URI+=" ${i}/${PN}-${MY_PV}.tar.xz"
|
|
||||||
SRC_URI+=" ${i}/${PN}-help-${MY_PV}.tar.xz"
|
|
||||||
done
|
|
||||||
unset i
|
|
||||||
fi
|
|
||||||
unset DEV_URI
|
|
||||||
|
|
||||||
# Really required addons
|
|
||||||
# These are bundles that can't be removed for now due to huge patchsets.
|
|
||||||
# If you want them gone, patches are welcome.
|
|
||||||
ADDONS_SRC=(
|
|
||||||
# not packaged in Gentoo, https://github.com/efficient/libcuckoo/
|
|
||||||
"${ADDONS_URI}/libcuckoo-93217f8d391718380c508a722ab9acd5e9081233.tar.gz"
|
|
||||||
# broken against latest upstream release, too many patches on top:
|
|
||||||
# https://github.com/tdf/libcmis/pull/43
|
|
||||||
"${ADDONS_URI}/libcmis-0.5.2.tar.xz"
|
|
||||||
# not packaged in Gentoo, https://www.netlib.org/fp/dtoa.c
|
|
||||||
"${ADDONS_URI}/dtoa-20180411.tgz"
|
|
||||||
# not packaged in Gentoo, https://skia.org/
|
|
||||||
"${ADDONS_URI}/skia-m97-a7230803d64ae9d44f4e1282444801119a3ae967.tar.xz"
|
|
||||||
"base? (
|
|
||||||
${ADDONS_URI}/commons-logging-1.2-src.tar.gz
|
|
||||||
${ADDONS_URI}/ba2930200c9f019c2d93a8c88c651a0f-flow-engine-0.9.4.zip
|
|
||||||
${ADDONS_URI}/d8bd5eed178db6e2b18eeed243f85aa8-flute-1.1.6.zip
|
|
||||||
${ADDONS_URI}/eeb2c7ddf0d302fba4bfc6e97eac9624-libbase-1.1.6.zip
|
|
||||||
${ADDONS_URI}/3bdf40c0d199af31923e900d082ca2dd-libfonts-1.1.6.zip
|
|
||||||
${ADDONS_URI}/3404ab6b1792ae5f16bbd603bd1e1d03-libformula-1.1.7.zip
|
|
||||||
${ADDONS_URI}/db60e4fde8dd6d6807523deb71ee34dc-liblayout-0.2.10.zip
|
|
||||||
${ADDONS_URI}/97b2d4dba862397f446b217e2b623e71-libloader-1.1.6.zip
|
|
||||||
${ADDONS_URI}/8ce2fcd72becf06c41f7201d15373ed9-librepository-1.1.6.zip
|
|
||||||
${ADDONS_URI}/f94d9870737518e3b597f9265f4e9803-libserializer-1.1.6.zip
|
|
||||||
${ADDONS_URI}/ace6ab49184e329db254e454a010f56d-libxml-1.1.7.zip
|
|
||||||
${ADDONS_URI}/39bb3fcea1514f1369fcfc87542390fd-sacjava-1.3.zip
|
|
||||||
)"
|
|
||||||
"java? ( ${ADDONS_URI}/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip )"
|
|
||||||
# no release for 8 years, should we package it?
|
|
||||||
"libreoffice_extensions_wiki-publisher? ( ${ADDONS_URI}/a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip )"
|
|
||||||
# Does not build with 1.6 rhino at all
|
|
||||||
"libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip )"
|
|
||||||
# requirement of rhino
|
|
||||||
"libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/35c94d2df8893241173de1d16b6034c0-swingExSrc.zip )"
|
|
||||||
# not packageable
|
|
||||||
"odk? ( http://download.go-oo.org/extern/185d60944ea767075d27247c3162b3bc-unowinreg.dll )"
|
|
||||||
)
|
|
||||||
SRC_URI+=" ${ADDONS_SRC[*]}"
|
|
||||||
|
|
||||||
unset ADDONS_URI
|
|
||||||
unset ADDONS_SRC
|
|
||||||
|
|
||||||
# Extensions that need extra work:
|
|
||||||
LO_EXTS="nlpsolver scripting-beanshell scripting-javascript wiki-publisher"
|
|
||||||
|
|
||||||
IUSE="accessibility base bluetooth +branding clang coinmp +cups custom-cflags +dbus debug eds firebird
|
|
||||||
googledrive gstreamer +gtk kde ldap +mariadb odk pdfimport postgres test vulkan
|
|
||||||
$(printf 'libreoffice_extensions_%s ' ${LO_EXTS})"
|
|
||||||
|
|
||||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}
|
|
||||||
base? ( firebird java )
|
|
||||||
bluetooth? ( dbus )
|
|
||||||
gtk? ( dbus )
|
|
||||||
libreoffice_extensions_nlpsolver? ( java )
|
|
||||||
libreoffice_extensions_scripting-beanshell? ( java )
|
|
||||||
libreoffice_extensions_scripting-javascript? ( java )
|
|
||||||
libreoffice_extensions_wiki-publisher? ( java )
|
|
||||||
"
|
|
||||||
|
|
||||||
RESTRICT="!test? ( test )"
|
|
||||||
|
|
||||||
LICENSE="|| ( LGPL-3 MPL-1.1 )"
|
|
||||||
SLOT="0"
|
|
||||||
|
|
||||||
[[ ${MY_PV} == *9999* ]] || \
|
|
||||||
KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86 ~amd64-linux"
|
|
||||||
|
|
||||||
COMMON_DEPEND="${PYTHON_DEPS}
|
|
||||||
app-arch/unzip
|
|
||||||
app-arch/zip
|
|
||||||
app-crypt/gpgme:=[cxx]
|
|
||||||
app-text/hunspell:=
|
|
||||||
>=app-text/libabw-0.1.0
|
|
||||||
>=app-text/libebook-0.1
|
|
||||||
app-text/libepubgen
|
|
||||||
>=app-text/libetonyek-0.1
|
|
||||||
app-text/libexttextcat
|
|
||||||
app-text/liblangtag
|
|
||||||
>=app-text/libmspub-0.1.0
|
|
||||||
>=app-text/libmwaw-0.3.1
|
|
||||||
>=app-text/libnumbertext-1.0.6
|
|
||||||
>=app-text/libodfgen-0.1.0
|
|
||||||
app-text/libqxp
|
|
||||||
app-text/libstaroffice
|
|
||||||
app-text/libwpd:0.10[tools]
|
|
||||||
app-text/libwpg:0.3
|
|
||||||
>=app-text/libwps-0.4
|
|
||||||
app-text/mythes
|
|
||||||
dev-cpp/abseil-cpp:=
|
|
||||||
>=dev-cpp/clucene-2.3.3.4-r2
|
|
||||||
>=dev-cpp/libcmis-0.5.2
|
|
||||||
dev-db/unixODBC
|
|
||||||
dev-lang/perl
|
|
||||||
>=dev-libs/boost-1.72.0:=[nls]
|
|
||||||
dev-libs/expat
|
|
||||||
dev-libs/hyphen
|
|
||||||
dev-libs/icu:=
|
|
||||||
dev-libs/libassuan
|
|
||||||
dev-libs/libgpg-error
|
|
||||||
>=dev-libs/liborcus-0.17.2:0/0.17
|
|
||||||
dev-libs/librevenge
|
|
||||||
dev-libs/libxml2
|
|
||||||
dev-libs/libxslt
|
|
||||||
dev-libs/nspr
|
|
||||||
dev-libs/nss
|
|
||||||
>=dev-libs/redland-1.0.16
|
|
||||||
>=dev-libs/xmlsec-1.2.28[nss]
|
|
||||||
>=games-engines/box2d-2.4.1:0
|
|
||||||
media-gfx/fontforge
|
|
||||||
media-gfx/graphite2
|
|
||||||
media-libs/fontconfig
|
|
||||||
>=media-libs/freetype-2.11.0-r1:2
|
|
||||||
>=media-libs/harfbuzz-0.9.42:=[graphite,icu]
|
|
||||||
media-libs/lcms:2
|
|
||||||
>=media-libs/libcdr-0.1.0
|
|
||||||
>=media-libs/libepoxy-1.3.1[X]
|
|
||||||
>=media-libs/libfreehand-0.1.0
|
|
||||||
media-libs/libpagemaker
|
|
||||||
>=media-libs/libpng-1.4:0=
|
|
||||||
>=media-libs/libvisio-0.1.0
|
|
||||||
media-libs/libzmf
|
|
||||||
media-libs/openjpeg:=
|
|
||||||
media-libs/zxing-cpp
|
|
||||||
>=net-libs/neon-0.31.1:=
|
|
||||||
net-misc/curl
|
|
||||||
sci-mathematics/lpsolve
|
|
||||||
sys-libs/zlib
|
|
||||||
virtual/jpeg:0
|
|
||||||
virtual/opengl
|
|
||||||
x11-libs/cairo[X]
|
|
||||||
x11-libs/libXinerama
|
|
||||||
x11-libs/libXrandr
|
|
||||||
x11-libs/libXrender
|
|
||||||
accessibility? (
|
|
||||||
$(python_gen_cond_dep 'dev-python/lxml[${PYTHON_USEDEP}]')
|
|
||||||
)
|
|
||||||
bluetooth? (
|
|
||||||
dev-libs/glib:2
|
|
||||||
net-wireless/bluez
|
|
||||||
)
|
|
||||||
coinmp? ( sci-libs/coinor-mp )
|
|
||||||
cups? ( net-print/cups )
|
|
||||||
dbus? ( sys-apps/dbus[X] )
|
|
||||||
eds? (
|
|
||||||
dev-libs/glib:2
|
|
||||||
gnome-base/dconf
|
|
||||||
gnome-extra/evolution-data-server
|
|
||||||
)
|
|
||||||
firebird? ( >=dev-db/firebird-3.0.2.32703.0-r1[server] )
|
|
||||||
gstreamer? (
|
|
||||||
media-libs/gstreamer:1.0
|
|
||||||
media-libs/gst-plugins-base:1.0
|
|
||||||
)
|
|
||||||
gtk? (
|
|
||||||
dev-libs/glib:2
|
|
||||||
dev-libs/gobject-introspection
|
|
||||||
gnome-base/dconf
|
|
||||||
media-libs/mesa[egl(+)]
|
|
||||||
x11-libs/gtk+:3[X]
|
|
||||||
x11-libs/pango
|
|
||||||
)
|
|
||||||
kde? (
|
|
||||||
dev-qt/qtcore:5
|
|
||||||
dev-qt/qtgui:5
|
|
||||||
dev-qt/qtwidgets:5
|
|
||||||
dev-qt/qtx11extras:5
|
|
||||||
kde-frameworks/kconfig:5
|
|
||||||
kde-frameworks/kcoreaddons:5
|
|
||||||
kde-frameworks/ki18n:5
|
|
||||||
kde-frameworks/kio:5
|
|
||||||
kde-frameworks/kwindowsystem:5
|
|
||||||
)
|
|
||||||
ldap? ( net-nds/openldap:= )
|
|
||||||
libreoffice_extensions_scripting-beanshell? ( dev-java/bsh )
|
|
||||||
libreoffice_extensions_scripting-javascript? ( >=dev-java/rhino-1.7.14:1.6 )
|
|
||||||
mariadb? ( dev-db/mariadb-connector-c:= )
|
|
||||||
!mariadb? ( dev-db/mysql-connector-c:= )
|
|
||||||
pdfimport? ( app-text/poppler:=[cxx] )
|
|
||||||
postgres? ( >=dev-db/postgresql-9.0:*[kerberos] )
|
|
||||||
"
|
|
||||||
# FIXME: cppunit should be moved to test conditional
|
|
||||||
# after everything upstream is under gbuild
|
|
||||||
# as dmake execute tests right away
|
|
||||||
# tests apparently also need google-carlito-fonts (not packaged)
|
|
||||||
DEPEND="${COMMON_DEPEND}
|
|
||||||
>=dev-libs/libatomic_ops-7.2d
|
|
||||||
dev-perl/Archive-Zip
|
|
||||||
>=dev-util/cppunit-1.14.0
|
|
||||||
>=dev-util/gperf-3.1
|
|
||||||
dev-util/mdds:1/2.0
|
|
||||||
media-libs/glm
|
|
||||||
sys-devel/ucpp
|
|
||||||
x11-base/xorg-proto
|
|
||||||
x11-libs/libXt
|
|
||||||
x11-libs/libXtst
|
|
||||||
java? (
|
|
||||||
dev-java/ant-core
|
|
||||||
|| (
|
|
||||||
dev-java/openjdk:11
|
|
||||||
dev-java/openjdk-bin:11
|
|
||||||
)
|
|
||||||
)
|
|
||||||
test? (
|
|
||||||
app-crypt/gnupg
|
|
||||||
dev-util/cppunit
|
|
||||||
media-fonts/dejavu
|
|
||||||
media-fonts/liberation-fonts
|
|
||||||
)
|
|
||||||
"
|
|
||||||
RDEPEND="${COMMON_DEPEND}
|
|
||||||
!app-office/libreoffice-bin
|
|
||||||
!app-office/libreoffice-bin-debug
|
|
||||||
media-fonts/liberation-fonts
|
|
||||||
|| ( x11-misc/xdg-utils kde-plasma/kde-cli-tools )
|
|
||||||
java? ( || (
|
|
||||||
dev-java/openjdk:11
|
|
||||||
dev-java/openjdk-jre-bin:11
|
|
||||||
>=virtual/jre-1.8
|
|
||||||
) )
|
|
||||||
kde? ( kde-frameworks/breeze-icons:* )
|
|
||||||
"
|
|
||||||
BDEPEND="
|
|
||||||
dev-util/intltool
|
|
||||||
sys-devel/bison
|
|
||||||
sys-devel/flex
|
|
||||||
sys-devel/gettext
|
|
||||||
virtual/pkgconfig
|
|
||||||
clang? (
|
|
||||||
|| (
|
|
||||||
(
|
|
||||||
sys-devel/clang:14
|
|
||||||
sys-devel/llvm:14
|
|
||||||
=sys-devel/lld-14* )
|
|
||||||
( sys-devel/clang:13
|
|
||||||
sys-devel/llvm:13
|
|
||||||
=sys-devel/lld-13* )
|
|
||||||
( sys-devel/clang:12
|
|
||||||
sys-devel/llvm:12
|
|
||||||
=sys-devel/lld-12* )
|
|
||||||
( sys-devel/clang:11
|
|
||||||
sys-devel/llvm:11
|
|
||||||
=sys-devel/lld-11* )
|
|
||||||
)
|
|
||||||
)
|
|
||||||
odk? ( >=app-doc/doxygen-1.8.4 )
|
|
||||||
"
|
|
||||||
if [[ ${MY_PV} != *9999* ]] && [[ ${PV} != *_* ]]; then
|
|
||||||
PDEPEND="=app-office/libreoffice-l10n-$(ver_cut 1-2)*"
|
|
||||||
else
|
|
||||||
# Translations are not reliable on live ebuilds
|
|
||||||
# rather force people to use english only.
|
|
||||||
PDEPEND="!app-office/libreoffice-l10n"
|
|
||||||
fi
|
|
||||||
|
|
||||||
PATCHES=(
|
|
||||||
# "${WORKDIR}"/${PATCHSET/.tar.xz/}
|
|
||||||
|
|
||||||
# not upstreamable stuff
|
|
||||||
"${FILESDIR}/${PN}-5.3.4.2-kioclient5.patch"
|
|
||||||
"${FILESDIR}/${PN}-6.1-nomancompress.patch"
|
|
||||||
"${FILESDIR}/${PN}-7.2.0.4-qt5detect.patch"
|
|
||||||
|
|
||||||
# TODO upstream
|
|
||||||
"${FILESDIR}/${PN}-7.2.6.2-poppler-22.03.0.patch" # by Archlinux
|
|
||||||
)
|
|
||||||
|
|
||||||
S="${WORKDIR}/${PN}-${MY_PV}"
|
|
||||||
|
|
||||||
_check_reqs() {
|
|
||||||
CHECKREQS_MEMORY="512M"
|
|
||||||
if is-flagq "-g*" && ! is-flagq "-g*0" ; then
|
|
||||||
CHECKREQS_DISK_BUILD="22G"
|
|
||||||
else
|
|
||||||
CHECKREQS_DISK_BUILD="6G"
|
|
||||||
fi
|
|
||||||
check-reqs_$1
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_pretend() {
|
|
||||||
if use x86; then
|
|
||||||
elog "Unfortunately for packaging reasons on x86, various Java-based wizards,"
|
|
||||||
elog "most notably Report Builder in LibreOffice Base, will not be available."
|
|
||||||
elog "See also: https://bugs.gentoo.org/785640"
|
|
||||||
else
|
|
||||||
use base ||
|
|
||||||
ewarn "If you plan to use Base application you must enable USE base."
|
|
||||||
use java ||
|
|
||||||
ewarn "Without USE java, several wizards are not going to be available."
|
|
||||||
fi
|
|
||||||
|
|
||||||
[[ ${MERGE_TYPE} != binary ]] && _check_reqs pkg_pretend
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
java-pkg-opt-2_pkg_setup
|
|
||||||
python-single-r1_pkg_setup
|
|
||||||
xdg_environment_reset
|
|
||||||
|
|
||||||
[[ ${MERGE_TYPE} != binary ]] && _check_reqs pkg_setup
|
|
||||||
}
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
default
|
|
||||||
|
|
||||||
if [[ ${MY_PV} = *9999* ]]; then
|
|
||||||
local base_uri branch mypv
|
|
||||||
base_uri="https://anongit.freedesktop.org/git"
|
|
||||||
branch="master"
|
|
||||||
mypv=${MY_PV/.9999}
|
|
||||||
[[ ${mypv} != ${MY_PV} ]] && branch="${PN}-${mypv/./-}"
|
|
||||||
git-r3_fetch "${base_uri}/${PN}/core" "refs/heads/${branch}"
|
|
||||||
git-r3_checkout "${base_uri}/${PN}/core"
|
|
||||||
LOCOREGIT_VERSION=${EGIT_VERSION}
|
|
||||||
|
|
||||||
git-r3_fetch "${base_uri}/${PN}/help" "refs/heads/master"
|
|
||||||
git-r3_checkout "${base_uri}/${PN}/help" "helpcontent2" # doesn't match on help
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
default
|
|
||||||
|
|
||||||
# sandbox violations on many systems, we don't need it. Bug #646406
|
|
||||||
sed -i \
|
|
||||||
-e "/KF5_CONFIG/s/kf5-config/no/" \
|
|
||||||
configure.ac || die "Failed to disable kf5-config"
|
|
||||||
|
|
||||||
AT_M4DIR="m4" eautoreconf
|
|
||||||
# hack in the autogen.sh
|
|
||||||
touch autogen.lastrun
|
|
||||||
|
|
||||||
# sed in the tests
|
|
||||||
sed -i \
|
|
||||||
-e "s#all : build unitcheck#all : build#g" \
|
|
||||||
solenv/gbuild/Module.mk || die
|
|
||||||
sed -i \
|
|
||||||
-e "s#check: dev-install subsequentcheck#check: unitcheck slowcheck dev-install subsequentcheck#g" \
|
|
||||||
-e "s#Makefile.gbuild all slowcheck#Makefile.gbuild all#g" \
|
|
||||||
Makefile.in || die
|
|
||||||
|
|
||||||
sed -i \
|
|
||||||
-e "s,/usr/share/bash-completion/completions,$(get_bashcompdir)," \
|
|
||||||
-e "s,\$INSTALLDIRNAME.sh,${PN}," \
|
|
||||||
bin/distro-install-desktop-integration || die
|
|
||||||
|
|
||||||
if use branding; then
|
|
||||||
# hack...
|
|
||||||
mv -v "${WORKDIR}/branding-intro.png" "icon-themes/colibre/brand/intro.png" || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Don't list pdfimport support in desktop when built with none, bug # 605464
|
|
||||||
if ! use pdfimport; then
|
|
||||||
sed -i \
|
|
||||||
-e ":MimeType: s:application/pdf;::" \
|
|
||||||
-e ":Keywords: s:pdf;::" \
|
|
||||||
sysui/desktop/menus/draw.desktop || die
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
# Set up Google API keys, see https://www.chromium.org/developers/how-tos/api-keys
|
|
||||||
# Note: these are for Gentoo use ONLY. For your own distribution, please get
|
|
||||||
# your own set of keys. Feel free to contact chromium@gentoo.org for more info.
|
|
||||||
local google_default_client_id="329227923882.apps.googleusercontent.com"
|
|
||||||
local google_default_client_secret="vgKG0NNv7GoDpbtoFNLxCUXu"
|
|
||||||
|
|
||||||
# Show flags set at the beginning
|
|
||||||
einfo "Preset CFLAGS: ${CFLAGS}"
|
|
||||||
einfo "Preset LDFLAGS: ${LDFLAGS}"
|
|
||||||
|
|
||||||
if use clang ; then
|
|
||||||
# Force clang
|
|
||||||
einfo "Enforcing the use of clang due to USE=clang ..."
|
|
||||||
AR=llvm-ar
|
|
||||||
CC=${CHOST}-clang
|
|
||||||
CXX=${CHOST}-clang++
|
|
||||||
NM=llvm-nm
|
|
||||||
RANLIB=llvm-ranlib
|
|
||||||
LDFLAGS+=" -fuse-ld=lld"
|
|
||||||
else
|
|
||||||
# Force gcc
|
|
||||||
einfo "Enforcing the use of gcc due to USE=-clang ..."
|
|
||||||
AR=gcc-ar
|
|
||||||
CC=${CHOST}-gcc
|
|
||||||
CXX=${CHOST}-g++
|
|
||||||
NM=gcc-nm
|
|
||||||
RANLIB=gcc-ranlib
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use custom-cflags ; then
|
|
||||||
elog "USE=custom-cflags has been selected. You are on your own to make sure that"
|
|
||||||
elog "the build succeeds. Good luck!"
|
|
||||||
else
|
|
||||||
strip-flags
|
|
||||||
fi
|
|
||||||
|
|
||||||
export LO_CLANG_CC=${CC}
|
|
||||||
export LO_CLANG_CXX=${CXX}
|
|
||||||
|
|
||||||
# Show flags set at the end
|
|
||||||
einfo " Used CFLAGS: ${CFLAGS}"
|
|
||||||
einfo " Used LDFLAGS: ${LDFLAGS}"
|
|
||||||
|
|
||||||
# Ensure we use correct toolchain
|
|
||||||
tc-export CC CXX LD AR NM OBJDUMP RANLIB PKG_CONFIG
|
|
||||||
|
|
||||||
if use vulkan && ! use clang ; then
|
|
||||||
ewarn "Building skia with gcc may lead to performance issues. Disable vulkan or enable clang."
|
|
||||||
fi
|
|
||||||
|
|
||||||
# optimization flags
|
|
||||||
export GMAKE_OPTIONS="${MAKEOPTS}"
|
|
||||||
# System python enablement:
|
|
||||||
export PYTHON_CFLAGS=$(python_get_CFLAGS)
|
|
||||||
export PYTHON_LIBS=$(python_get_LIBS)
|
|
||||||
|
|
||||||
use kde && export QT5DIR="$(qt5_get_bindir)/.."
|
|
||||||
|
|
||||||
local gentoo_buildid="Gentoo official package"
|
|
||||||
if [[ -n ${LOCOREGIT_VERSION} ]]; then
|
|
||||||
gentoo_buildid+=" (from git: ${LOCOREGIT_VERSION})"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# system headers/libs/...: enforce using system packages
|
|
||||||
# --disable-breakpad: requires not-yet-in-tree dev-utils/breakpad
|
|
||||||
# --enable-cairo: ensure that cairo is always required
|
|
||||||
# --enable-*-link: link to the library rather than just dlopen on runtime
|
|
||||||
# --enable-release-build: build the libreoffice as release
|
|
||||||
# --disable-fetch-external: prevent dowloading during compile phase
|
|
||||||
# --enable-extension-integration: enable any extension integration support
|
|
||||||
# --without-{fonts,myspell-dicts,ppsd}: prevent install of sys pkgs
|
|
||||||
# --disable-report-builder: too much java packages pulled in without pkgs
|
|
||||||
# --without-system-sane: just sane.h header that is used for scan in writer,
|
|
||||||
# not linked or anything else, worthless to depend on
|
|
||||||
# --disable-pdfium: not yet packaged
|
|
||||||
local myeconfargs=(
|
|
||||||
--with-system-dicts
|
|
||||||
--with-system-epoxy
|
|
||||||
--with-system-headers
|
|
||||||
--with-system-jars
|
|
||||||
--with-system-libs
|
|
||||||
--enable-build-opensymbol
|
|
||||||
--enable-cairo-canvas
|
|
||||||
--enable-largefile
|
|
||||||
--enable-mergelibs
|
|
||||||
--enable-python=system
|
|
||||||
--enable-randr
|
|
||||||
--enable-release-build
|
|
||||||
--disable-breakpad
|
|
||||||
--disable-bundle-mariadb
|
|
||||||
--disable-ccache
|
|
||||||
--disable-epm
|
|
||||||
--disable-fetch-external
|
|
||||||
--disable-gtk3-kde5
|
|
||||||
--disable-online-update
|
|
||||||
--disable-openssl
|
|
||||||
--disable-pdfium
|
|
||||||
--disable-qt6
|
|
||||||
--with-extra-buildid="${gentoo_buildid}"
|
|
||||||
--enable-extension-integration
|
|
||||||
--with-external-dict-dir="${EPREFIX}/usr/share/myspell"
|
|
||||||
--with-external-hyph-dir="${EPREFIX}/usr/share/myspell"
|
|
||||||
--with-external-thes-dir="${EPREFIX}/usr/share/myspell"
|
|
||||||
--with-external-tar="${DISTDIR}"
|
|
||||||
--with-lang=""
|
|
||||||
--with-parallelism=$(makeopts_jobs)
|
|
||||||
--with-system-abseil
|
|
||||||
--with-system-openjpeg
|
|
||||||
--with-system-ucpp
|
|
||||||
--with-tls=nss
|
|
||||||
--with-vendor="Gentoo Foundation"
|
|
||||||
--with-webdav="neon"
|
|
||||||
--with-x
|
|
||||||
--without-fonts
|
|
||||||
--without-myspell-dicts
|
|
||||||
--with-help="html"
|
|
||||||
--without-helppack-integration
|
|
||||||
--with-system-gpgmepp
|
|
||||||
--without-system-cuckoo
|
|
||||||
--without-system-jfreereport
|
|
||||||
--without-system-libcmis
|
|
||||||
--without-system-sane
|
|
||||||
$(use_enable base report-builder)
|
|
||||||
$(use_enable bluetooth sdremote-bluetooth)
|
|
||||||
$(use_enable coinmp)
|
|
||||||
$(use_enable cups)
|
|
||||||
$(use_enable dbus)
|
|
||||||
$(use_enable debug)
|
|
||||||
$(use_enable eds evolution2)
|
|
||||||
$(use_enable firebird firebird-sdbc)
|
|
||||||
$(use_enable gstreamer gstreamer-1-0)
|
|
||||||
$(use_enable gtk gtk3)
|
|
||||||
$(use_enable kde kf5)
|
|
||||||
$(use_enable kde qt5)
|
|
||||||
$(use_enable ldap)
|
|
||||||
$(use_enable odk)
|
|
||||||
$(use_enable pdfimport)
|
|
||||||
$(use_enable postgres postgresql-sdbc)
|
|
||||||
$(use_enable vulkan skia)
|
|
||||||
$(use_with accessibility lxml)
|
|
||||||
$(use_with coinmp system-coinmp)
|
|
||||||
$(use_with googledrive gdrive-client-id ${google_default_client_id})
|
|
||||||
$(use_with googledrive gdrive-client-secret ${google_default_client_secret})
|
|
||||||
$(use_with java)
|
|
||||||
$(use_with odk doxygen)
|
|
||||||
)
|
|
||||||
|
|
||||||
if use eds || use gtk; then
|
|
||||||
myeconfargs+=( --enable-dconf --enable-gio )
|
|
||||||
else
|
|
||||||
myeconfargs+=( --disable-dconf --disable-gio )
|
|
||||||
fi
|
|
||||||
|
|
||||||
# libreoffice extensions handling
|
|
||||||
for lo_xt in ${LO_EXTS}; do
|
|
||||||
if [[ "${lo_xt}" == "scripting-beanshell" || "${lo_xt}" == "scripting-javascript" ]]; then
|
|
||||||
myeconfargs+=( $(use_enable libreoffice_extensions_${lo_xt} ${lo_xt}) )
|
|
||||||
else
|
|
||||||
myeconfargs+=( $(use_enable libreoffice_extensions_${lo_xt} ext-${lo_xt}) )
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
if use java; then
|
|
||||||
# hsqldb: system one is too new
|
|
||||||
myeconfargs+=(
|
|
||||||
--without-junit
|
|
||||||
--without-system-hsqldb
|
|
||||||
--with-ant-home="${ANT_HOME}"
|
|
||||||
)
|
|
||||||
if has_version "dev-java/openjdk:11"; then
|
|
||||||
myeconfargs+=( --with-jdk-home="${EPREFIX}/usr/$(get_libdir)/openjdk-11" )
|
|
||||||
elif has_version "dev-java/openjdk-bin:11"; then
|
|
||||||
myeconfargs+=( --with-jdk-home="${EPREFIX}/opt/openjdk-bin-11" )
|
|
||||||
fi
|
|
||||||
|
|
||||||
use libreoffice_extensions_scripting-beanshell && \
|
|
||||||
myeconfargs+=( --with-beanshell-jar=$(java-pkg_getjar bsh bsh.jar) )
|
|
||||||
|
|
||||||
use libreoffice_extensions_scripting-javascript && \
|
|
||||||
myeconfargs+=( --with-rhino-jar=$(java-pkg_getjar rhino-1.6 rhino.jar) )
|
|
||||||
fi
|
|
||||||
|
|
||||||
is-flagq "-flto*" && myeconfargs+=( --enable-lto )
|
|
||||||
|
|
||||||
MARIADBCONFIG="$(type -p $(usex mariadb mariadb mysql)_config)" \
|
|
||||||
econf "${myeconfargs[@]}"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
# more and more LO stuff tries to use OpenGL, including tests during build
|
|
||||||
# bug 501508, bug 540624, bug 545974 and probably more
|
|
||||||
addpredict /dev/dri
|
|
||||||
addpredict /dev/ati
|
|
||||||
addpredict /dev/nvidiactl
|
|
||||||
|
|
||||||
default
|
|
||||||
}
|
|
||||||
|
|
||||||
src_test() {
|
|
||||||
make unitcheck || die
|
|
||||||
make slowcheck || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
# This is not Makefile so no buildserver
|
|
||||||
emake DESTDIR="${D}" distro-pack-install -o build -o check
|
|
||||||
|
|
||||||
# bug 593514
|
|
||||||
if use gtk; then
|
|
||||||
dosym libreoffice/program/liblibreofficekitgtk.so \
|
|
||||||
/usr/$(get_libdir)/liblibreofficekitgtk.so
|
|
||||||
fi
|
|
||||||
|
|
||||||
# bash completion aliases
|
|
||||||
bashcomp_alias \
|
|
||||||
libreoffice \
|
|
||||||
unopkg loimpress lobase localc lodraw lomath lowriter lofromtemplate loweb loffice
|
|
||||||
|
|
||||||
if use branding; then
|
|
||||||
insinto /usr/$(get_libdir)/${PN}/program
|
|
||||||
newins "${WORKDIR}/branding-sofficerc" sofficerc
|
|
||||||
dodir /etc/env.d
|
|
||||||
echo "CONFIG_PROTECT=/usr/$(get_libdir)/${PN}/program/sofficerc" > "${ED}"/etc/env.d/99${PN} || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
# bug 703474
|
|
||||||
insinto /usr/include
|
|
||||||
doins -r include/LibreOfficeKit
|
|
||||||
|
|
||||||
local lodir=/usr/$(get_libdir)/libreoffice
|
|
||||||
# patching this would break tests
|
|
||||||
cat <<-EOF > "${T}"/uno.py
|
|
||||||
import sys, os
|
|
||||||
sys.path.append('${EPREFIX}${lodir}/program')
|
|
||||||
os.putenv('URE_BOOTSTRAP', 'vnd.sun.star.pathname:${EPREFIX}${lodir}/program/fundamentalrc')
|
|
||||||
EOF
|
|
||||||
sed -e "/^import sys/d" -e "/^import os/d" \
|
|
||||||
-i "${D}"${lodir}/program/uno.py || die "cleanup dupl imports failed"
|
|
||||||
cat "${D}"${lodir}/program/uno.py >> "${T}"/uno.py || die
|
|
||||||
cp "${T}"/uno.py "${D}"${lodir}/program/uno.py || die
|
|
||||||
|
|
||||||
# more system pyuno mess
|
|
||||||
sed -e "/sOffice = \"\" # lets hope for the best/s:\"\":\"${EPREFIX}${lodir}/program\":" \
|
|
||||||
-i "${D}"${lodir}/program/officehelper.py || die
|
|
||||||
|
|
||||||
python_optimize "${D}"${lodir}/program
|
|
||||||
# link python bridge in site-packages, bug 667802
|
|
||||||
local py pyc loprogdir=/usr/$(get_libdir)/libreoffice/program
|
|
||||||
for py in uno.py unohelper.py officehelper.py; do
|
|
||||||
dosym -r ${loprogdir}/${py} $(python_get_sitedir)/${py}
|
|
||||||
while IFS="" read -d $'\0' -r pyc; do
|
|
||||||
pyc=${pyc//*\/}
|
|
||||||
dosym -r ${loprogdir}/__pycache__/${pyc} $(python_get_sitedir)/__pycache__/${pyc}
|
|
||||||
done < <(find "${D}"${lodir}/program -type f -name ${py/.py/*.pyc} -print0)
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
xdg_icon_cache_update
|
|
||||||
xdg_desktop_database_update
|
|
||||||
xdg_mimeinfo_database_update
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postrm() {
|
|
||||||
xdg_icon_cache_update
|
|
||||||
xdg_desktop_database_update
|
|
||||||
xdg_mimeinfo_database_update
|
|
||||||
}
|
|
@ -1 +1,2 @@
|
|||||||
DIST wps-office_11.1.0.10976.XA_amd64.deb 276985802 BLAKE2B f886577e0446d012de8f28866410a6aefad6ba0ba4c0388402bda40de81859f86f4d342055363ee96123af0be4a78c1867fce7b4118fc8447807e01ecec3cac5 SHA512 744a054b78c0b5742b5af86a1d058af982b5d673205d690bd393c29a35558f2fb45081c109a406dd87078a50a09b8f6242cb469e8b93824a6b9d93af84c6f128
|
DIST wps-office_11.1.0.10976.XA_amd64.deb 276985802 BLAKE2B f886577e0446d012de8f28866410a6aefad6ba0ba4c0388402bda40de81859f86f4d342055363ee96123af0be4a78c1867fce7b4118fc8447807e01ecec3cac5 SHA512 744a054b78c0b5742b5af86a1d058af982b5d673205d690bd393c29a35558f2fb45081c109a406dd87078a50a09b8f6242cb469e8b93824a6b9d93af84c6f128
|
||||||
|
DIST wps-office_11.1.0.11664.XA_amd64.deb 319591396 BLAKE2B 35e94cca54b964731edd4d7bc33d9dbd97f6f9f4502896edcb0cbc0ff21e49953c825c46dbc5b6230443c45d4914a5bf75027c1b98f56307c98ec9ad3d65f955 SHA512 0ea03b27246b796b80187bb252dce0446ae497fd1a9a18da3fd3c0e13531d56fca22157cf1d0e7542b77d3bce8cbdaa407ccebfbf1d7d1d9732e51369608ac36
|
||||||
|
@ -0,0 +1,94 @@
|
|||||||
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
inherit unpacker xdg
|
||||||
|
|
||||||
|
MY_PV="$(ver_cut 4)"
|
||||||
|
|
||||||
|
DESCRIPTION="WPS Office is an office productivity suite"
|
||||||
|
HOMEPAGE="https://www.wps.com/office/linux/"
|
||||||
|
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
|
||||||
|
SRC_URI="https://wdl1.pcfg.cache.wpscdn.com/wpsdl/wpsoffice/download/linux/${MY_PV}/${PN}_${PV}.XA_amd64.deb"
|
||||||
|
|
||||||
|
SLOT="0"
|
||||||
|
RESTRICT="bindist strip mirror" # mirror as explained at bug #547372
|
||||||
|
QA_PREBUILT="*"
|
||||||
|
LICENSE="WPS-EULA"
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
# Deps got from this (listed in order):
|
||||||
|
# rpm -qpR wps-office-10.1.0.5707-1.a21.x86_64.rpm
|
||||||
|
# ldd /opt/kingsoft/wps-office/office6/wps
|
||||||
|
# ldd /opt/kingsoft/wps-office/office6/wpp
|
||||||
|
RDEPEND="
|
||||||
|
app-arch/bzip2:0
|
||||||
|
app-arch/xz-utils
|
||||||
|
app-arch/lz4
|
||||||
|
dev-libs/atk
|
||||||
|
dev-libs/expat
|
||||||
|
dev-libs/glib:2
|
||||||
|
dev-libs/libbsd
|
||||||
|
|| ( dev-libs/libffi:0/7 dev-libs/libffi-compat:7 )
|
||||||
|
dev-libs/libgcrypt:0
|
||||||
|
dev-libs/libgpg-error
|
||||||
|
dev-libs/libpcre:3
|
||||||
|
dev-libs/nspr
|
||||||
|
dev-libs/nss
|
||||||
|
media-libs/fontconfig:1.0
|
||||||
|
media-libs/freetype:2
|
||||||
|
media-libs/flac
|
||||||
|
media-libs/libogg
|
||||||
|
media-libs/libsndfile
|
||||||
|
media-libs/libvorbis
|
||||||
|
media-libs/libpng:0
|
||||||
|
media-sound/pulseaudio
|
||||||
|
net-libs/libasyncns
|
||||||
|
net-print/cups
|
||||||
|
sys-apps/attr
|
||||||
|
sys-apps/util-linux
|
||||||
|
sys-apps/dbus
|
||||||
|
sys-apps/tcp-wrappers
|
||||||
|
sys-libs/libcap
|
||||||
|
sys-libs/zlib:0
|
||||||
|
x11-libs/cairo
|
||||||
|
x11-libs/gdk-pixbuf:2
|
||||||
|
x11-libs/gtk+:2
|
||||||
|
x11-libs/libICE
|
||||||
|
x11-libs/libSM
|
||||||
|
x11-libs/libX11
|
||||||
|
x11-libs/libXScrnSaver
|
||||||
|
x11-libs/libXau
|
||||||
|
x11-libs/libXcomposite
|
||||||
|
x11-libs/libXcursor
|
||||||
|
x11-libs/libXdmcp
|
||||||
|
x11-libs/libXext
|
||||||
|
x11-libs/libXrender
|
||||||
|
x11-libs/libXtst
|
||||||
|
x11-libs/libXv
|
||||||
|
x11-libs/libxcb
|
||||||
|
dev-libs/libxslt
|
||||||
|
x11-libs/pango
|
||||||
|
virtual/glu
|
||||||
|
"
|
||||||
|
DEPEND=""
|
||||||
|
BDEPEND=""
|
||||||
|
|
||||||
|
S="${WORKDIR}"
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
exeinto /usr/bin
|
||||||
|
exeopts -m0755
|
||||||
|
doexe "${S}"/usr/bin/*
|
||||||
|
|
||||||
|
insinto /usr/share
|
||||||
|
# Skip mime subdir to not get selected over rest of office suites
|
||||||
|
doins -r "${S}"/usr/share/{applications,desktop-directories,icons,templates}
|
||||||
|
|
||||||
|
insinto /opt/kingsoft/wps-office
|
||||||
|
doins -r "${S}"/opt/kingsoft/wps-office/{office6,templates}
|
||||||
|
|
||||||
|
fperms 0755 /opt/kingsoft/wps-office/office6/{et,wpp,wps,wpspdf}
|
||||||
|
}
|
Binary file not shown.
Binary file not shown.
@ -1,3 +1,2 @@
|
|||||||
DIST doctest-2.4.6.tar.gz 2277281 BLAKE2B e6835ad33522273a3151ccfa1e760a150e2f0ccc15fb739cb518d8c9b4258f4b1529537bb6f41b285660aa00f1791b30a7db14155d9f23ea54dd11bfdeb81ec3 SHA512 a5cccf085af946003140af688f071a6407d42fc685324a537e3b704ef9de0f2228bd06eabfd1df8da70dec001420dd0b2813e5e4320b5c1da450cb0aadd63788
|
DIST doctest-2.4.6.tar.gz 2277281 BLAKE2B e6835ad33522273a3151ccfa1e760a150e2f0ccc15fb739cb518d8c9b4258f4b1529537bb6f41b285660aa00f1791b30a7db14155d9f23ea54dd11bfdeb81ec3 SHA512 a5cccf085af946003140af688f071a6407d42fc685324a537e3b704ef9de0f2228bd06eabfd1df8da70dec001420dd0b2813e5e4320b5c1da450cb0aadd63788
|
||||||
DIST doctest-2.4.7.tar.gz 2281756 BLAKE2B 9e10a30ca20ab08c4b5e7bc65e6d89e7fde45da7e6ff8ecbf9e848c7c61a7864bc4fbb49b0b1d2d6eeab16da2b4a2d935d06a593dab9be1fdb400e8ab641af7e SHA512 bb2d410397700aa7be1161fcf26949524d4f7c333bb9ffe7d223dfd14e770d6eeff75336f27fe0c8051dcb6c403c6b3af506872f6ba207d2d86cc9e9d1d2bfbf
|
|
||||||
DIST doctest-2.4.8.tar.gz 2275833 BLAKE2B 334ed6fda624788adf07fb92a773f3fa69addfbff389e3669e58f66271536d42ff8d20e73e20a4f1d3eee59233d476e527680bb19dcae1d9a6d062e6feedfde5 SHA512 f9b40abfd756331f9b667f3c1e7dcf2652effacac70523834dd3946522f01459c095bdbad04651ad2ad155977e1395025f868ed4dcf5d5712aae9807afb5699c
|
DIST doctest-2.4.8.tar.gz 2275833 BLAKE2B 334ed6fda624788adf07fb92a773f3fa69addfbff389e3669e58f66271536d42ff8d20e73e20a4f1d3eee59233d476e527680bb19dcae1d9a6d062e6feedfde5 SHA512 f9b40abfd756331f9b667f3c1e7dcf2652effacac70523834dd3946522f01459c095bdbad04651ad2ad155977e1395025f868ed4dcf5d5712aae9807afb5699c
|
||||||
|
@ -1,23 +0,0 @@
|
|||||||
# Copyright 2021 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=8
|
|
||||||
|
|
||||||
inherit cmake
|
|
||||||
|
|
||||||
DESCRIPTION="The fastest feature-rich C++11/14/17/20 single-header testing framework"
|
|
||||||
HOMEPAGE="https://github.com/doctest/doctest"
|
|
||||||
SRC_URI="https://github.com/doctest/doctest/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="MIT"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
|
|
||||||
IUSE="test"
|
|
||||||
RESTRICT="!test? ( test )"
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
local mycmakeargs=(
|
|
||||||
-DDOCTEST_WITH_TESTS=$(usex test)
|
|
||||||
)
|
|
||||||
cmake_src_configure
|
|
||||||
}
|
|
@ -0,0 +1,56 @@
|
|||||||
|
This patch is derived from upstream commit ce13bc44b99c ("Fix move-only
|
||||||
|
types failing to decompose correctly (#634)").
|
||||||
|
|
||||||
|
Upstream-PR: https://github.com/doctest/doctest/pull/634
|
||||||
|
|
||||||
|
diff --git a/doctest/doctest.h b/doctest/doctest.h
|
||||||
|
index d25f526..31096ff 100644
|
||||||
|
--- a/doctest/doctest.h
|
||||||
|
+++ b/doctest/doctest.h
|
||||||
|
@@ -1320,7 +1320,7 @@ DOCTEST_CLANG_SUPPRESS_WARNING_WITH_PUSH("-Wunused-comparison")
|
||||||
|
assertType::Enum m_at;
|
||||||
|
|
||||||
|
explicit Expression_lhs(L&& in, assertType::Enum at)
|
||||||
|
- : lhs(doctest::detail::forward<L>(in))
|
||||||
|
+ : lhs(static_cast<L&&>(in))
|
||||||
|
, m_at(at) {}
|
||||||
|
|
||||||
|
DOCTEST_NOINLINE operator Result() {
|
||||||
|
@@ -1394,8 +1394,8 @@ DOCTEST_CLANG_SUPPRESS_WARNING_POP
|
||||||
|
// https://github.com/catchorg/Catch2/issues/870
|
||||||
|
// https://github.com/catchorg/Catch2/issues/565
|
||||||
|
template <typename L>
|
||||||
|
- Expression_lhs<const L> operator<<(const L &&operand) {
|
||||||
|
- return Expression_lhs<const L>(doctest::detail::forward<const L>(operand), m_at);
|
||||||
|
+ Expression_lhs<L> operator<<(L&& operand) {
|
||||||
|
+ return Expression_lhs<L>(static_cast<L&&>(operand), m_at);
|
||||||
|
}
|
||||||
|
|
||||||
|
template <typename L,typename enable_if<!doctest::detail::is_rvalue_reference<L>::value,void >::type* = nullptr>
|
||||||
|
diff --git a/doctest/parts/doctest_fwd.h b/doctest/parts/doctest_fwd.h
|
||||||
|
index b0d786f..ff9fed0 100644
|
||||||
|
--- a/doctest/parts/doctest_fwd.h
|
||||||
|
+++ b/doctest/parts/doctest_fwd.h
|
||||||
|
@@ -1317,7 +1317,7 @@ DOCTEST_CLANG_SUPPRESS_WARNING_WITH_PUSH("-Wunused-comparison")
|
||||||
|
assertType::Enum m_at;
|
||||||
|
|
||||||
|
explicit Expression_lhs(L&& in, assertType::Enum at)
|
||||||
|
- : lhs(doctest::detail::forward<L>(in))
|
||||||
|
+ : lhs(static_cast<L&&>(in))
|
||||||
|
, m_at(at) {}
|
||||||
|
|
||||||
|
DOCTEST_NOINLINE operator Result() {
|
||||||
|
@@ -1391,8 +1391,8 @@ DOCTEST_CLANG_SUPPRESS_WARNING_POP
|
||||||
|
// https://github.com/catchorg/Catch2/issues/870
|
||||||
|
// https://github.com/catchorg/Catch2/issues/565
|
||||||
|
template <typename L>
|
||||||
|
- Expression_lhs<const L> operator<<(const L &&operand) {
|
||||||
|
- return Expression_lhs<const L>(doctest::detail::forward<const L>(operand), m_at);
|
||||||
|
+ Expression_lhs<L> operator<<(L&& operand) {
|
||||||
|
+ return Expression_lhs<L>(static_cast<L&&>(operand), m_at);
|
||||||
|
}
|
||||||
|
|
||||||
|
template <typename L,typename enable_if<!doctest::detail::is_rvalue_reference<L>::value,void >::type* = nullptr>
|
||||||
|
--
|
||||||
|
2.35.1
|
||||||
|
|
Binary file not shown.
Binary file not shown.
@ -0,0 +1,98 @@
|
|||||||
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
JAVA_PKG_IUSE="source"
|
||||||
|
|
||||||
|
inherit java-pkg-2 java-pkg-simple
|
||||||
|
|
||||||
|
MY_A="apache-${PN}-${PV}-src"
|
||||||
|
MY_P="${MY_A/-servlet-api/}"
|
||||||
|
DESCRIPTION="Tomcat's Servlet API 5.0/JSP API 3.0/EL API 4.0 implementation"
|
||||||
|
HOMEPAGE="https://tomcat.apache.org/"
|
||||||
|
SRC_URI="mirror://apache/tomcat/tomcat-10/v${PV}/src/${MY_P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="Apache-2.0"
|
||||||
|
SLOT="5.0"
|
||||||
|
KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux ~x64-solaris ~x86-solaris"
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
DEPEND=">=virtual/jdk-1.8:*"
|
||||||
|
RDEPEND=">=virtual/jre-1.8:*"
|
||||||
|
|
||||||
|
S="${WORKDIR}/${MY_P}/"
|
||||||
|
|
||||||
|
JAVA_TEST_SRC_DIR="src/test"
|
||||||
|
|
||||||
|
SERVLET_API_JAR="servlet-api.jar"
|
||||||
|
SERVLET_API_SRC="src/main/servlet-api"
|
||||||
|
SERVLET_API_RESOURCES="src/resources/servlet-api"
|
||||||
|
EL_API_JAR="el-api.jar"
|
||||||
|
EL_API_SRC="src/main/el-api"
|
||||||
|
EL_API_RESOURCES="src/resources/el-api"
|
||||||
|
JSP_API_JAR="jsp-api.jar"
|
||||||
|
JSP_API_SRC="src/main/jsp-api"
|
||||||
|
JSP_API_RESOURCES="src/resources/jsp-api"
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
|
||||||
|
# The sources and also resources are mixed together so we first give it a structure to make it easier to compile and package
|
||||||
|
mkdir -p ${SERVLET_API_SRC} ${SERVLET_API_RESOURCES} \
|
||||||
|
${EL_API_SRC} ${EL_API_RESOURCES} \
|
||||||
|
${JSP_API_SRC}/jakarta/servlet ${JSP_API_RESOURCES} \
|
||||||
|
${JAVA_TEST_SRC_DIR} || die "Failed to create source directory"
|
||||||
|
|
||||||
|
pushd java || die "Failed to cd to java dir"
|
||||||
|
|
||||||
|
cp --parents -R jakarta/servlet "${S}/${SERVLET_API_SRC}/" || die "Failed to copy servlet-api sources"
|
||||||
|
mv "${S}/${SERVLET_API_SRC}/jakarta/servlet/jsp" "${S}/${JSP_API_SRC}/jakarta/servlet" || die "Failed to copy jsp-api sources"
|
||||||
|
cp --parents -R jakarta/el "${S}/${EL_API_SRC}/" || die "Failed to copy el-api sources"
|
||||||
|
|
||||||
|
popd
|
||||||
|
|
||||||
|
for file in $(find src -type f | grep -vE "\.java$"); do
|
||||||
|
target_dir=$(dirname $file | sed "s%src/main/%src/resources/%g")
|
||||||
|
mkdir -p ${target_dir} || die "Failed to create resource directory"
|
||||||
|
mv $file ${target_dir} || die "Failed to move resource file"
|
||||||
|
done
|
||||||
|
|
||||||
|
mv test/jakarta ${JAVA_TEST_SRC_DIR} || die "Failed to copy test sources"
|
||||||
|
|
||||||
|
java-pkg-2_src_prepare
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
JAVA_SRC_DIR="${SERVLET_API_SRC}"
|
||||||
|
JAVA_RESOURCE_DIRS="${SERVLET_API_RESOURCES}"
|
||||||
|
JAVA_JAR_FILENAME="${SERVLET_API_JAR}"
|
||||||
|
java-pkg-simple_src_compile
|
||||||
|
rm -fr target || die "Failed to remove compiled files"
|
||||||
|
|
||||||
|
JAVA_SRC_DIR="${EL_API_SRC}"
|
||||||
|
JAVA_RESOURCE_DIRS="${EL_API_RESOURCES}"
|
||||||
|
JAVA_JAR_FILENAME="${EL_API_JAR}"
|
||||||
|
java-pkg-simple_src_compile
|
||||||
|
rm -fr target || die "Failed to remove compiled files"
|
||||||
|
|
||||||
|
JAVA_SRC_DIR="${JSP_API_SRC}"
|
||||||
|
JAVA_RESOURCE_DIRS="${JSP_API_RESOURCES}"
|
||||||
|
JAVA_JAR_FILENAME="${JSP_API_JAR}"
|
||||||
|
JAVA_GENTOO_CLASSPATH_EXTRA="servlet-api.jar:el-api.jar"
|
||||||
|
java-pkg-simple_src_compile
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
JAVA_SRC_DIR="${SERVLET_API_SRC}"
|
||||||
|
JAVA_JAR_FILENAME="${SERVLET_API_JAR}"
|
||||||
|
java-pkg-simple_src_install
|
||||||
|
|
||||||
|
JAVA_SRC_DIR="${EL_API_SRC}"
|
||||||
|
JAVA_JAR_FILENAME="${EL_API_JAR}"
|
||||||
|
java-pkg-simple_src_install
|
||||||
|
|
||||||
|
JAVA_SRC_DIR="${JSP_API_SRC}"
|
||||||
|
JAVA_JAR_FILENAME="${JSP_API_JAR}"
|
||||||
|
java-pkg-simple_src_install
|
||||||
|
}
|
Binary file not shown.
Binary file not shown.
@ -0,0 +1,79 @@
|
|||||||
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
CMAKE_BUILD_TYPE="Release"
|
||||||
|
MY_PN="${PN/intel-/}"
|
||||||
|
MY_P="${MY_PN}-${PV}"
|
||||||
|
|
||||||
|
inherit cmake flag-o-matic
|
||||||
|
|
||||||
|
DESCRIPTION="Intel Graphics Compute Runtime for oneAPI Level Zero and OpenCL Driver"
|
||||||
|
HOMEPAGE="https://github.com/intel/compute-runtime"
|
||||||
|
SRC_URI="https://github.com/intel/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
S="${WORKDIR}/${MY_P}"
|
||||||
|
|
||||||
|
LICENSE="MIT"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
IUSE="+l0 +vaapi"
|
||||||
|
|
||||||
|
RDEPEND=">=media-libs/gmmlib-22.0.2:="
|
||||||
|
|
||||||
|
DEPEND="
|
||||||
|
${DEPEND}
|
||||||
|
dev-libs/intel-metrics-library:=
|
||||||
|
dev-libs/libnl:3
|
||||||
|
dev-libs/libxml2:2
|
||||||
|
>=dev-util/intel-graphics-compiler-1.0.11061-r1
|
||||||
|
>=dev-util/intel-graphics-system-controller-0.2.4:=
|
||||||
|
media-libs/mesa
|
||||||
|
>=virtual/opencl-3
|
||||||
|
l0? ( >=dev-libs/level-zero-1.7.15 )
|
||||||
|
vaapi? (
|
||||||
|
x11-libs/libdrm[video_cards_intel]
|
||||||
|
x11-libs/libva
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
BDEPEND="virtual/pkgconfig"
|
||||||
|
|
||||||
|
DOCS=( "README.md" "FAQ.md" )
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
|
||||||
|
# Remove '-Werror' from default
|
||||||
|
set -e '/Werror/d' -i CMakeLists.txt || die
|
||||||
|
|
||||||
|
cmake_src_prepare
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
# See https://github.com/intel/compute-runtime/issues/531
|
||||||
|
filter-flags -flto=* -flto
|
||||||
|
|
||||||
|
local mycmakeargs=(
|
||||||
|
-DCCACHE_ALLOWED="OFF"
|
||||||
|
-DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr"
|
||||||
|
-DCMAKE_INSTALL_LIBDIR="$(get_libdir)"
|
||||||
|
-DBUILD_WITH_L0="$(usex l0)"
|
||||||
|
-DDISABLE_LIBVA="$(usex !vaapi)"
|
||||||
|
-DNEO__METRICS_LIBRARY_INCLUDE_DIR="${ESYSROOT}/usr/include"
|
||||||
|
-DKHRONOS_GL_HEADERS_DIR="${ESYSROOT}/usr/include"
|
||||||
|
-DOCL_ICD_VENDORDIR="${EPREFIX}/etc/OpenCL/vendors"
|
||||||
|
-DSUPPORT_DG1="ON"
|
||||||
|
-Wno-dev
|
||||||
|
|
||||||
|
# See https://github.com/intel/intel-graphics-compiler/issues/204
|
||||||
|
# -DNEO_DISABLE_BUILTINS_COMPILATION="ON"
|
||||||
|
|
||||||
|
# If enabled, tests are automatically run during
|
||||||
|
# the compile phase and we cannot run them because
|
||||||
|
# they require permissions to access the hardware.
|
||||||
|
-DSKIP_UNIT_TESTS="1"
|
||||||
|
)
|
||||||
|
|
||||||
|
cmake_src_configure
|
||||||
|
}
|
@ -0,0 +1,69 @@
|
|||||||
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python3_{8..10} )
|
||||||
|
inherit cmake llvm llvm.org python-any-r1
|
||||||
|
|
||||||
|
DESCRIPTION="OpenCL C library"
|
||||||
|
HOMEPAGE="https://libclc.llvm.org/"
|
||||||
|
|
||||||
|
LICENSE="Apache-2.0-with-LLVM-exceptions || ( MIT BSD )"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE_VIDEO_CARDS="video_cards_nvidia video_cards_r600 video_cards_radeonsi"
|
||||||
|
IUSE="${IUSE_VIDEO_CARDS}"
|
||||||
|
REQUIRED_USE="|| ( ${IUSE_VIDEO_CARDS} )"
|
||||||
|
|
||||||
|
LLVM_MAX_SLOT=14
|
||||||
|
BDEPEND="
|
||||||
|
${PYTHON_DEPS}
|
||||||
|
|| (
|
||||||
|
sys-devel/clang:14
|
||||||
|
sys-devel/clang:13
|
||||||
|
sys-devel/clang:12
|
||||||
|
sys-devel/clang:11
|
||||||
|
sys-devel/clang:10
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
LLVM_COMPONENTS=( libclc )
|
||||||
|
llvm.org_set_globals
|
||||||
|
|
||||||
|
llvm_check_deps() {
|
||||||
|
has_version -b "sys-devel/clang:${LLVM_SLOT}"
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
# we do not need llvm_pkg_setup
|
||||||
|
python-any-r1_pkg_setup
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
local libclc_targets=()
|
||||||
|
|
||||||
|
use video_cards_nvidia && libclc_targets+=(
|
||||||
|
"nvptx--"
|
||||||
|
"nvptx64--"
|
||||||
|
"nvptx--nvidiacl"
|
||||||
|
"nvptx64--nvidiacl"
|
||||||
|
)
|
||||||
|
use video_cards_r600 && libclc_targets+=(
|
||||||
|
"r600--"
|
||||||
|
)
|
||||||
|
use video_cards_radeonsi && libclc_targets+=(
|
||||||
|
"amdgcn--"
|
||||||
|
"amdgcn-mesa-mesa3d"
|
||||||
|
"amdgcn--amdhsa"
|
||||||
|
)
|
||||||
|
# TODO: spirv
|
||||||
|
[[ ${#libclc_targets[@]} ]] || die "libclc target missing!"
|
||||||
|
|
||||||
|
libclc_targets=${libclc_targets[*]}
|
||||||
|
local mycmakeargs=(
|
||||||
|
-DLIBCLC_TARGETS_TO_BUILD="${libclc_targets// /;}"
|
||||||
|
-DLLVM_CONFIG="$(get_llvm_prefix "${LLVM_MAX_SLOT}")/bin/llvm-config"
|
||||||
|
)
|
||||||
|
cmake_src_configure
|
||||||
|
}
|
@ -1 +1,2 @@
|
|||||||
DIST libinput-1.20.1.tar.gz 983069 BLAKE2B 8e63e286c0c4284f4a61129d8b6394e7ca9f2018c6a2781a7fe4b7389120dcaf5c101ccfb4b0b869afc489999e954ce244213b5d206ff546d698068e738ac853 SHA512 91f6d6957b16d76807b376d4f81333ed16218fd37b090417d03a2e551d1f5b2c734d891d267bcdc4314cd698d7830f2f467389a9af58155e4e97a86002c8db78
|
DIST libinput-1.20.1.tar.gz 983069 BLAKE2B 8e63e286c0c4284f4a61129d8b6394e7ca9f2018c6a2781a7fe4b7389120dcaf5c101ccfb4b0b869afc489999e954ce244213b5d206ff546d698068e738ac853 SHA512 91f6d6957b16d76807b376d4f81333ed16218fd37b090417d03a2e551d1f5b2c734d891d267bcdc4314cd698d7830f2f467389a9af58155e4e97a86002c8db78
|
||||||
|
DIST libinput-1.21.0.tar.gz 988650 BLAKE2B 54c63beeff8dee93a52774220b45321d8a94261687b463319fbae9246331b532be7995a5b32c30425b9d0708b2ba69d4b4e83e8dc7ecebe6fb1237b723a266b6 SHA512 510273d68f2d4cfa61564a706b1f334f6bfca0d1c8faf0bb8aa656cf3fbd5e38d79d6fbaa01a20d38bc15777c9afc341e4ed08d35ef367ef3803ce788cbc4a0e
|
||||||
|
@ -0,0 +1,92 @@
|
|||||||
|
# Copyright 2014-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
PYTHON_COMPAT=( python3_{8..11} )
|
||||||
|
|
||||||
|
inherit meson python-any-r1 udev
|
||||||
|
|
||||||
|
DESCRIPTION="Library to handle input devices in Wayland"
|
||||||
|
HOMEPAGE="https://www.freedesktop.org/wiki/Software/libinput/ https://gitlab.freedesktop.org/libinput/libinput"
|
||||||
|
SRC_URI="https://gitlab.freedesktop.org/${PN}/${PN}/-/archive/${PV}/${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="MIT"
|
||||||
|
SLOT="0/10"
|
||||||
|
[[ "$(ver_cut 3)" -gt 900 ]] || \
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
|
||||||
|
IUSE="doc input_devices_wacom test"
|
||||||
|
RESTRICT="!test? ( test )"
|
||||||
|
|
||||||
|
BDEPEND="
|
||||||
|
virtual/pkgconfig
|
||||||
|
doc? (
|
||||||
|
$(python_gen_any_dep '
|
||||||
|
dev-python/commonmark[${PYTHON_USEDEP}]
|
||||||
|
dev-python/recommonmark[${PYTHON_USEDEP}]
|
||||||
|
dev-python/sphinx[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/sphinx_rtd_theme-0.2.4[${PYTHON_USEDEP}]
|
||||||
|
')
|
||||||
|
>=app-doc/doxygen-1.8.3
|
||||||
|
>=media-gfx/graphviz-2.38.0
|
||||||
|
)
|
||||||
|
"
|
||||||
|
# test? ( dev-util/valgrind )
|
||||||
|
RDEPEND="
|
||||||
|
input_devices_wacom? ( >=dev-libs/libwacom-0.27:= )
|
||||||
|
>=dev-libs/libevdev-1.9.902
|
||||||
|
>=sys-libs/mtdev-1.1
|
||||||
|
virtual/libudev:=
|
||||||
|
virtual/udev
|
||||||
|
"
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
test? ( >=dev-libs/check-0.9.10 )"
|
||||||
|
|
||||||
|
python_check_deps() {
|
||||||
|
has_version -b "dev-python/commonmark[${PYTHON_USEDEP}]" && \
|
||||||
|
has_version -b "dev-python/recommonmark[${PYTHON_USEDEP}]" && \
|
||||||
|
has_version -b "dev-python/sphinx[${PYTHON_USEDEP}]" && \
|
||||||
|
has_version -b ">=dev-python/sphinx_rtd_theme-0.2.4[${PYTHON_USEDEP}]"
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
use doc && python-any-r1_pkg_setup
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
sed "s@, '-Werror'@@" -i meson.build || die #744250
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
# gui can be built but will not be installed
|
||||||
|
local emesonargs=(
|
||||||
|
-Ddebug-gui=false
|
||||||
|
$(meson_use doc documentation)
|
||||||
|
$(meson_use input_devices_wacom libwacom)
|
||||||
|
$(meson_use test tests)
|
||||||
|
-Dudev-dir="${EPREFIX}$(get_udevdir)"
|
||||||
|
)
|
||||||
|
meson_src_configure
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
meson_src_install
|
||||||
|
if use doc ; then
|
||||||
|
docinto html
|
||||||
|
dodoc -r "${BUILD_DIR}"/Documentation/.
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
pkgname="dev-python/python-libevdev"
|
||||||
|
if [[ -z "${REPLACING_VERSIONS}" ]] && ! has_version "${pkgname}" ; then
|
||||||
|
einfo "${pkgname} must be installed to use the"
|
||||||
|
einfo "libinput measure and libinput replay tools."
|
||||||
|
fi
|
||||||
|
|
||||||
|
udev_reload
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postrm() {
|
||||||
|
udev_reload
|
||||||
|
}
|
@ -1 +1 @@
|
|||||||
DIST nwjs-v0.63.1-linux-x64.tar.gz 129907717 BLAKE2B 5ae74de12a2290f5cf8d320745e3c1f236ba9c4da3c9eaa3055fec2f305de96d91c39041a246b8301b956f769b47ac660a9d5387264e6715681140834207041f SHA512 58bf72b54fd8fe55c47b702e4ec361259d81b26e7e465e07c439e513517db725ed5cd881de844b0ff3bbe488b14b239181eeaa3e7f7f8fc05afcb7251b796210
|
DIST nwjs-v0.65.1-linux-x64.tar.gz 132698134 BLAKE2B c94ea5555e531a5bf7fe682cc7975a9bd77af82e313095e7a1ae20719be9b0441d2640ac10609d78bcbd53eb81a9fe895fedbee97a4465fed0ec57f0c7d3ccc0 SHA512 ff21c7b8b885e5ac55df0ad276b936ae8dc47793df612b6c9f9b5ca3e372d43bd8068b9135e5fb21a260d989f5a9f7faff36a3ffb77a4d241eb3d171ad2931dc
|
||||||
|
@ -1,2 +1,3 @@
|
|||||||
DIST yaz-3.0.53.tar.gz 2164681 BLAKE2B e42a97d63e031f14234258c7c44735a615ebc83774c1532d7e1b50f1f231dc933168e41a1b35a139ec193e694f6253336a666daad627a4aae9a0c7ffe34ca360 SHA512 537d54757e401c1b29ad2120209b2cd038f26ff7f43ffc3c1e22808e12a1580aedee3880478e951fd4b3057ca9af4a34afa2a64c0b8ffcbec24f76deb83ddc89
|
DIST yaz-3.0.53.tar.gz 2164681 BLAKE2B e42a97d63e031f14234258c7c44735a615ebc83774c1532d7e1b50f1f231dc933168e41a1b35a139ec193e694f6253336a666daad627a4aae9a0c7ffe34ca360 SHA512 537d54757e401c1b29ad2120209b2cd038f26ff7f43ffc3c1e22808e12a1580aedee3880478e951fd4b3057ca9af4a34afa2a64c0b8ffcbec24f76deb83ddc89
|
||||||
DIST yaz-5.31.0.tar.gz 2599598 BLAKE2B d56b3ccd3981d406bc09aeb7c9619e23f6c322cd80bf01db3a0621a40922dbbf32be34e69990eea0f8abbad84ed66d086d883db22693f3aab596c17001b4355b SHA512 93fe2320e474e3874704b9a899aed789e6128b5c626bb0c49bf650fd9ce0c107af4da6a13e5d1a56c98d018bfbb6cb918b53b6ce93e42bfeb8da0dfacbdb6667
|
DIST yaz-5.31.0.tar.gz 2599598 BLAKE2B d56b3ccd3981d406bc09aeb7c9619e23f6c322cd80bf01db3a0621a40922dbbf32be34e69990eea0f8abbad84ed66d086d883db22693f3aab596c17001b4355b SHA512 93fe2320e474e3874704b9a899aed789e6128b5c626bb0c49bf650fd9ce0c107af4da6a13e5d1a56c98d018bfbb6cb918b53b6ce93e42bfeb8da0dfacbdb6667
|
||||||
|
DIST yaz-5.32.0.tar.gz 2607933 BLAKE2B 9119b77a262ef2d6f0b1140425384575218a5b93cbe50a716bb254b07e2427eaad55de3c4590d0d6843af31b987b201fa733fdf010e463648a35b5600d055d5a SHA512 a4d40b5c20b1d4acab0e687235eda361fe0550c00396f6aa26d1965d2ecdd217433ba65160eda07fcc4c263d9e2e47b607e4b668412f81123b2904b9deece763
|
||||||
|
@ -1,11 +1,18 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||||
<pkgmetadata>
|
<pkgmetadata>
|
||||||
<!-- maintainer-needed -->
|
<maintainer type="person" proxied="yes">
|
||||||
<use>
|
<name>Thamognya Kodi</name>
|
||||||
<flag name="ziffy">Install ziffy, a promiscuous Z39.50 APDU sniffer</flag>
|
<email>contact@thamognya.com</email>
|
||||||
</use>
|
</maintainer>
|
||||||
<upstream>
|
<maintainer type="project" proxied="proxy">
|
||||||
<remote-id type="github">indexdata/yaz</remote-id>
|
<email>proxy-maint@gentoo.org</email>
|
||||||
</upstream>
|
<name>Proxy Maintainers</name>
|
||||||
|
</maintainer>
|
||||||
|
<upstream>
|
||||||
|
<remote-id type="github">indexdata/yaz</remote-id>
|
||||||
|
</upstream>
|
||||||
|
<use>
|
||||||
|
<flag name="ziffy">Install ziffy, a promiscuous Z39.50 APDU sniffer</flag>
|
||||||
|
</use>
|
||||||
</pkgmetadata>
|
</pkgmetadata>
|
||||||
|
@ -0,0 +1,67 @@
|
|||||||
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
inherit autotools
|
||||||
|
|
||||||
|
DESCRIPTION="C/C++ toolkit for Z39.50v3 clients and servers"
|
||||||
|
HOMEPAGE="http://www.indexdata.dk/yaz"
|
||||||
|
|
||||||
|
if [[ ${PV} == *9999 ]]; then
|
||||||
|
inherit git-r3
|
||||||
|
EGIT_REPO_URI="https://github.com/indexdata/yaz.git"
|
||||||
|
else
|
||||||
|
SRC_URI="http://ftp.indexdata.dk/pub/${PN}/${P}.tar.gz"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
|
||||||
|
fi
|
||||||
|
|
||||||
|
LICENSE="BSD GPL-2"
|
||||||
|
SLOT="0/5"
|
||||||
|
IUSE="gnutls tcpd ziffy"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
dev-libs/icu:=
|
||||||
|
dev-libs/libxml2
|
||||||
|
dev-libs/libxslt
|
||||||
|
sys-libs/readline:=
|
||||||
|
sys-libs/ncurses:=
|
||||||
|
virtual/libintl
|
||||||
|
!gnutls? ( dev-libs/openssl:0= )
|
||||||
|
gnutls? ( net-libs/gnutls:= )
|
||||||
|
tcpd? ( sys-apps/tcp-wrappers )
|
||||||
|
ziffy? ( net-libs/libpcap )
|
||||||
|
"
|
||||||
|
DEPEND="${RDEPEND}"
|
||||||
|
BDEPEND="
|
||||||
|
dev-lang/tcl:0
|
||||||
|
sys-devel/bison
|
||||||
|
>=sys-devel/libtool-2
|
||||||
|
virtual/pkgconfig
|
||||||
|
"
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
eautoreconf
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
econf \
|
||||||
|
--enable-shared \
|
||||||
|
$(use_with gnutls) \
|
||||||
|
$(use_enable tcpd tcpd /usr)
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
local docdir="/usr/share/doc/${PF}"
|
||||||
|
emake DESTDIR="${D}" docdir="${EPREFIX}/${docdir}" install
|
||||||
|
|
||||||
|
find "${D}" -name '*.la' -delete || die
|
||||||
|
|
||||||
|
dodir "${docdir}"/html
|
||||||
|
mv -f "${ED}"/${docdir}/*.{html,png} "${ED}"/${docdir}/html/ || die "Failed to move HTML docs"
|
||||||
|
mv -f "${ED}"/usr/share/doc/${PN}/common "${ED}"/${docdir}/html/ || die "Failed to move HTML docs"
|
||||||
|
rm -rf "${ED}"/usr/share/doc/${PN} || die
|
||||||
|
|
||||||
|
dodoc ChangeLog NEWS
|
||||||
|
}
|
Binary file not shown.
@ -0,0 +1,115 @@
|
|||||||
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python3_{8..10} )
|
||||||
|
inherit cmake llvm llvm.org python-any-r1
|
||||||
|
|
||||||
|
DESCRIPTION="OCaml bindings for LLVM"
|
||||||
|
HOMEPAGE="https://llvm.org/"
|
||||||
|
|
||||||
|
LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA"
|
||||||
|
SLOT="0/${PV}"
|
||||||
|
KEYWORDS="~amd64 ~arm ~x86"
|
||||||
|
IUSE="debug test"
|
||||||
|
RESTRICT="!test? ( test )"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
>=dev-lang/ocaml-4.00.0:0=
|
||||||
|
dev-ml/ocaml-ctypes:=
|
||||||
|
~sys-devel/llvm-${PV}:=[debug?]
|
||||||
|
!sys-devel/llvm[ocaml(-)]
|
||||||
|
"
|
||||||
|
|
||||||
|
DEPEND="
|
||||||
|
${RDEPEND}
|
||||||
|
"
|
||||||
|
BDEPEND="
|
||||||
|
${PYTHON_DEPS}
|
||||||
|
dev-lang/perl
|
||||||
|
dev-ml/findlib
|
||||||
|
>=dev-util/cmake-3.16
|
||||||
|
"
|
||||||
|
|
||||||
|
LLVM_COMPONENTS=( llvm cmake third-party )
|
||||||
|
LLVM_USE_TARGETS=llvm
|
||||||
|
llvm.org_set_globals
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
LLVM_MAX_SLOT=${PV%%.*} llvm_pkg_setup
|
||||||
|
python-any-r1_pkg_setup
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
local libdir=$(get_libdir)
|
||||||
|
local mycmakeargs=(
|
||||||
|
-DLLVM_LIBDIR_SUFFIX=${libdir#lib}
|
||||||
|
|
||||||
|
-DBUILD_SHARED_LIBS=OFF
|
||||||
|
-DLLVM_BUILD_LLVM_DYLIB=ON
|
||||||
|
-DLLVM_LINK_LLVM_DYLIB=ON
|
||||||
|
-DLLVM_OCAML_OUT_OF_TREE=ON
|
||||||
|
|
||||||
|
# cheap hack: LLVM combines both anyway, and the only difference
|
||||||
|
# is that the former list is explicitly verified at cmake time
|
||||||
|
-DLLVM_TARGETS_TO_BUILD=""
|
||||||
|
-DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD="${LLVM_TARGETS// /;}"
|
||||||
|
-DLLVM_BUILD_TESTS=$(usex test)
|
||||||
|
|
||||||
|
# disable various irrelevant deps and settings
|
||||||
|
-DLLVM_ENABLE_FFI=OFF
|
||||||
|
-DLLVM_ENABLE_TERMINFO=OFF
|
||||||
|
-DHAVE_HISTEDIT_H=NO
|
||||||
|
-DLLVM_ENABLE_ASSERTIONS=$(usex debug)
|
||||||
|
-DLLVM_ENABLE_EH=ON
|
||||||
|
-DLLVM_ENABLE_RTTI=ON
|
||||||
|
|
||||||
|
-DLLVM_HOST_TRIPLE="${CHOST}"
|
||||||
|
|
||||||
|
-DPython3_EXECUTABLE="${PYTHON}"
|
||||||
|
|
||||||
|
# disable go bindings
|
||||||
|
-DGO_EXECUTABLE=GO_EXECUTABLE-NOTFOUND
|
||||||
|
|
||||||
|
# TODO: ocamldoc
|
||||||
|
)
|
||||||
|
|
||||||
|
use test && mycmakeargs+=(
|
||||||
|
-DLLVM_LIT_ARGS="$(get_lit_flags)"
|
||||||
|
)
|
||||||
|
|
||||||
|
# LLVM_ENABLE_ASSERTIONS=NO does not guarantee this for us, #614844
|
||||||
|
# also: custom rules for OCaml do not work for CPPFLAGS
|
||||||
|
use debug || local -x CFLAGS="${CFLAGS} -DNDEBUG"
|
||||||
|
cmake_src_configure
|
||||||
|
|
||||||
|
local llvm_libdir=$(llvm-config --libdir)
|
||||||
|
# an ugly hack; TODO: figure out a way to pass -L to ocaml...
|
||||||
|
cd "${BUILD_DIR}/${libdir}" || die
|
||||||
|
ln -s "${llvm_libdir}"/*.so . || die
|
||||||
|
|
||||||
|
if use test; then
|
||||||
|
local llvm_bindir=$(llvm-config --bindir)
|
||||||
|
# Force using system-installed tools.
|
||||||
|
sed -i -e "/llvm_tools_dir/s@\".*\"@\"${llvm_bindir}\"@" \
|
||||||
|
"${BUILD_DIR}"/test/lit.site.cfg.py || die
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
cmake_build ocaml_all
|
||||||
|
}
|
||||||
|
|
||||||
|
src_test() {
|
||||||
|
# respect TMPDIR!
|
||||||
|
local -x LIT_PRESERVES_TMP=1
|
||||||
|
cmake_build check-llvm-bindings-ocaml
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
DESTDIR="${D}" \
|
||||||
|
cmake -P "${BUILD_DIR}"/bindings/ocaml/cmake_install.cmake || die
|
||||||
|
|
||||||
|
dodoc bindings/ocaml/README.txt
|
||||||
|
}
|
@ -1 +1,2 @@
|
|||||||
DIST react-1.2.1.tbz 39184 BLAKE2B 0ad5fd576c08292011e6543462295a11b77048f59aaaf34726c078c654fba4a9b7dd0bb6a6579fad04a6cd217b29f4efc15de9b7d9b208c593b481610534d9c8 SHA512 60f8788cc820e2be5303caedc80a377c8e5deab170d0eb9df71ff99d6fc57f31357824522f973c6e0d6b3979b58272e7f90b829474a494b94565279c53e8fbb1
|
DIST react-1.2.1.tbz 39184 BLAKE2B 0ad5fd576c08292011e6543462295a11b77048f59aaaf34726c078c654fba4a9b7dd0bb6a6579fad04a6cd217b29f4efc15de9b7d9b208c593b481610534d9c8 SHA512 60f8788cc820e2be5303caedc80a377c8e5deab170d0eb9df71ff99d6fc57f31357824522f973c6e0d6b3979b58272e7f90b829474a494b94565279c53e8fbb1
|
||||||
|
DIST react-1.2.2.tbz 40013 BLAKE2B 302f480cf2cc88fc8a97b262d41809ed4fe904d3ea4cdec8ba80a8bdc99b3ffc1c9f19cf853c3d40587a34ba7608734e60ede5b756479676af95f9470e1badac SHA512 18cdd544d484222ba02db6bd9351571516532e7a1c107b59bbe39193837298f5c745eab6754f8bc6ff125b387be7018c6d6e6ac99f91925a5e4f53af688522b1
|
||||||
|
@ -1,20 +1,23 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||||
<pkgmetadata>
|
<pkgmetadata>
|
||||||
<!-- maintainer-needed -->
|
<maintainer type="person" proxied="yes">
|
||||||
<longdescription lang="en">
|
<name>Thamognya Kodi</name>
|
||||||
React is an OCaml module for functional reactive programming (FRP). It
|
<email>contact@thamognya.com</email>
|
||||||
provides support to program with time varying values : applicative
|
</maintainer>
|
||||||
events and signals. React doesn't define any primitive event or
|
<maintainer type="project" proxied="proxy">
|
||||||
signal, this lets the client chooses the concrete timeline.
|
<email>proxy-maint@gentoo.org</email>
|
||||||
|
<name>Proxy Maintainers</name>
|
||||||
React is made of a single, independent, module and distributed under
|
</maintainer>
|
||||||
the new BSD license.
|
<longdescription lang="en">React is an OCaml module for functional reactive programming (FRP). It
|
||||||
|
provides support to program with time varying values : applicative
|
||||||
Given an absolute notion of time Rtime helps you to manage a timeline
|
events and signals. React doesn't define any primitive event or
|
||||||
and provides time stamp events, delayed events and delayed signals.
|
signal, this lets the client chooses the concrete timeline.
|
||||||
</longdescription>
|
React is made of a single, independent, module and distributed under
|
||||||
<upstream>
|
the new BSD license.
|
||||||
<remote-id type="github">dbuenzli/react</remote-id>
|
Given an absolute notion of time Rtime helps you to manage a timeline
|
||||||
</upstream>
|
and provides time stamp events, delayed events and delayed signals.</longdescription>
|
||||||
|
<upstream>
|
||||||
|
<remote-id type="github">dbuenzli/react</remote-id>
|
||||||
|
</upstream>
|
||||||
</pkgmetadata>
|
</pkgmetadata>
|
||||||
|
@ -0,0 +1,38 @@
|
|||||||
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
inherit opam
|
||||||
|
|
||||||
|
DESCRIPTION="OCaml module for functional reactive programming"
|
||||||
|
HOMEPAGE="http://erratique.ch/software/react https://github.com/dbuenzli/react"
|
||||||
|
|
||||||
|
if [[ ${PV} == *9999 ]]; then
|
||||||
|
inherit git-r3
|
||||||
|
EGIT_REPO_URI="https://github.com/dbuenzli/react.git"
|
||||||
|
else
|
||||||
|
SRC_URI="http://erratique.ch/software/react/releases/${P}.tbz"
|
||||||
|
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86"
|
||||||
|
fi
|
||||||
|
|
||||||
|
LICENSE="BSD"
|
||||||
|
SLOT="0/${PV}"
|
||||||
|
IUSE="test"
|
||||||
|
RESTRICT="!test? ( test )"
|
||||||
|
|
||||||
|
RDEPEND=""
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
dev-ml/findlib
|
||||||
|
>=dev-ml/topkg-0.9
|
||||||
|
"
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
ocaml pkg/pkg.ml build \
|
||||||
|
--tests $(usex test 'true' 'false') \
|
||||||
|
|| die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_test() {
|
||||||
|
ocaml pkg/pkg.ml test || die
|
||||||
|
}
|
Binary file not shown.
@ -0,0 +1,27 @@
|
|||||||
|
From 1eb2226aaf664d0be746753a32f82ee2e04c2f0b Mon Sep 17 00:00:00 2001
|
||||||
|
From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Hrn=C4=8Diar?= <thrnciar@redhat.com>
|
||||||
|
Date: Tue, 1 Mar 2022 15:31:54 +0100
|
||||||
|
Subject: [PATCH] Replace @asyncio.coroutine decorator with async def
|
||||||
|
|
||||||
|
In Python 3.11 @asyncio.coroutine decorator was removed and it should
|
||||||
|
be replaced with async def call.
|
||||||
|
|
||||||
|
Fixes: #280
|
||||||
|
---
|
||||||
|
tests/unit/test_cors_config.py | 3 +--
|
||||||
|
1 file changed, 1 insertion(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/tests/unit/test_cors_config.py b/tests/unit/test_cors_config.py
|
||||||
|
index 817410e..9fe1052 100644
|
||||||
|
--- a/tests/unit/test_cors_config.py
|
||||||
|
+++ b/tests/unit/test_cors_config.py
|
||||||
|
@@ -29,8 +29,7 @@ async def _handler(request):
|
||||||
|
|
||||||
|
class _View(web.View, CorsViewMixin):
|
||||||
|
|
||||||
|
- @asyncio.coroutine
|
||||||
|
- def get(self):
|
||||||
|
+ async def get(self):
|
||||||
|
return web.Response(text="Done")
|
||||||
|
|
||||||
|
|
@ -1,24 +0,0 @@
|
|||||||
# Copyright 1999-2022 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=7
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python3_{7..10} pypy3 )
|
|
||||||
|
|
||||||
inherit distutils-r1
|
|
||||||
|
|
||||||
DESCRIPTION="Fast, simple object-to-object and broadcast signaling"
|
|
||||||
HOMEPAGE="https://pythonhosted.org/blinker/ https://pypi.org/project/blinker/"
|
|
||||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="MIT"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~x64-macos"
|
|
||||||
IUSE="doc"
|
|
||||||
|
|
||||||
distutils_enable_tests nose
|
|
||||||
|
|
||||||
python_install_all() {
|
|
||||||
use doc && HTML_DOCS=( docs/html/. )
|
|
||||||
distutils-r1_python_install_all
|
|
||||||
}
|
|
@ -0,0 +1,47 @@
|
|||||||
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python3_{8..10} )
|
||||||
|
inherit llvm.org python-r1
|
||||||
|
|
||||||
|
DESCRIPTION="Python bindings for sys-devel/clang"
|
||||||
|
HOMEPAGE="https://llvm.org/"
|
||||||
|
|
||||||
|
LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
|
||||||
|
IUSE="test"
|
||||||
|
RESTRICT="!test? ( test )"
|
||||||
|
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||||
|
|
||||||
|
# The module is opening libclang.so directly, and doing some blasphemy
|
||||||
|
# on top of it.
|
||||||
|
DEPEND="
|
||||||
|
>=sys-devel/clang-${PV}:*
|
||||||
|
!sys-devel/llvm:0[clang(-),python(-)]
|
||||||
|
!sys-devel/clang:0[python(-)]
|
||||||
|
"
|
||||||
|
RDEPEND="
|
||||||
|
${DEPEND}
|
||||||
|
${PYTHON_DEPS}
|
||||||
|
"
|
||||||
|
BDEPEND="
|
||||||
|
${PYTHON_DEPS}
|
||||||
|
"
|
||||||
|
|
||||||
|
LLVM_COMPONENTS=( clang/bindings/python )
|
||||||
|
llvm.org_set_globals
|
||||||
|
|
||||||
|
python_test() {
|
||||||
|
"${EPYTHON}" -m unittest discover -v || die "Tests fail with ${EPYTHON}"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_test() {
|
||||||
|
python_foreach_impl python_test
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
python_foreach_impl python_domodule clang
|
||||||
|
}
|
@ -1,2 +1,3 @@
|
|||||||
DIST dask-2022.05.0.gh.tar.gz 8658529 BLAKE2B 0b09ef38137d9c395384549fd8a3b0218ad1761ccb1816f8fc4f4af7328215716603e3f41b8cc3bf7044ff42b72eee277147b3bd03da48467cccc88f239bb2bd SHA512 15605321143f354ffb9c890823f5751131d942cc16c523b2d00bdcc752ddc5243525f7cda138091604c8f2f9c5b4a309b1efc95f483b753673df98cc8a81ce81
|
DIST dask-2022.05.0.gh.tar.gz 8658529 BLAKE2B 0b09ef38137d9c395384549fd8a3b0218ad1761ccb1816f8fc4f4af7328215716603e3f41b8cc3bf7044ff42b72eee277147b3bd03da48467cccc88f239bb2bd SHA512 15605321143f354ffb9c890823f5751131d942cc16c523b2d00bdcc752ddc5243525f7cda138091604c8f2f9c5b4a309b1efc95f483b753673df98cc8a81ce81
|
||||||
DIST dask-2022.05.2.gh.tar.gz 8721528 BLAKE2B 42b83ca6fe58b014d3aa90cc99dc4b9b631d6b5bb3243a2a2bd1bcfc6f9ffe5d545b7bcc43edfd3299273e105f7355fbaa9490043a12a8c303773d0e08e63d8c SHA512 1d6ce8db1c83ac22f081beec8667f35acda48578263c637ee294934c729d16a7aca4259e0dde6fed6f2dc9924490589610fc3fc4225dfe07552b15b6af20d8d5
|
DIST dask-2022.05.2.gh.tar.gz 8721528 BLAKE2B 42b83ca6fe58b014d3aa90cc99dc4b9b631d6b5bb3243a2a2bd1bcfc6f9ffe5d545b7bcc43edfd3299273e105f7355fbaa9490043a12a8c303773d0e08e63d8c SHA512 1d6ce8db1c83ac22f081beec8667f35acda48578263c637ee294934c729d16a7aca4259e0dde6fed6f2dc9924490589610fc3fc4225dfe07552b15b6af20d8d5
|
||||||
|
DIST dask-2022.6.0.gh.tar.gz 8727952 BLAKE2B 060595de52ec64db83bf56d5b4c975ac22009fbe4efadd903ddafa80400e8b5706d60a47445b70f513a73cc915dc696b7ee17831f6c4aed4f55ca11bd8c4fcce SHA512 92619558dc8ed4808842cf45bad703443bfc38f2206fe15e65e5dc457040042eeefc9cd0fb16a8322c4a8972dd10b0b7250451d1883a148e2238f5bcb3f0555e
|
||||||
|
@ -0,0 +1,58 @@
|
|||||||
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
DISTUTILS_USE_PEP517=setuptools
|
||||||
|
PYTHON_COMPAT=( python3_{8..10} )
|
||||||
|
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
DESCRIPTION="Task scheduling and blocked algorithms for parallel processing"
|
||||||
|
HOMEPAGE="
|
||||||
|
https://www.dask.org/
|
||||||
|
https://github.com/dask/dask/
|
||||||
|
https://pypi.org/project/dask/
|
||||||
|
"
|
||||||
|
SRC_URI="
|
||||||
|
https://github.com/dask/dask/archive/${PV}.tar.gz -> ${P}.gh.tar.gz
|
||||||
|
"
|
||||||
|
|
||||||
|
LICENSE="BSD"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
>=dev-python/cloudpickle-0.2.2[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/fsspec-0.6.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/numpy-1.15.1[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/pandas-0.25.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/packaging-20.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/partd-0.3.10[${PYTHON_USEDEP}]
|
||||||
|
dev-python/psutil[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/pyyaml-5.3.1[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/toolz-0.8.2[${PYTHON_USEDEP}]
|
||||||
|
"
|
||||||
|
BDEPEND="
|
||||||
|
dev-python/toolz[${PYTHON_USEDEP}]
|
||||||
|
test? (
|
||||||
|
dev-python/moto[${PYTHON_USEDEP}]
|
||||||
|
dev-python/numexpr[${PYTHON_USEDEP}]
|
||||||
|
dev-python/pytest-rerunfailures[${PYTHON_USEDEP}]
|
||||||
|
dev-python/scipy[${PYTHON_USEDEP}]
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
distutils_enable_tests pytest
|
||||||
|
|
||||||
|
EPYTEST_DESELECT=(
|
||||||
|
# another test relying on -Werror
|
||||||
|
"dask/array/tests/test_overlap.py::test_map_overlap_no_depth[None]"
|
||||||
|
# TODO
|
||||||
|
dask/array/tests/test_reductions.py::test_mean_func_does_not_warn
|
||||||
|
dask/tests/test_config.py::test__get_paths
|
||||||
|
)
|
||||||
|
|
||||||
|
python_test() {
|
||||||
|
epytest -p no:flaky -m "not network"
|
||||||
|
}
|
@ -1 +1,2 @@
|
|||||||
DIST entrypoint2-1.0.tar.gz 15424 BLAKE2B 1270a35218cde90922fe8f675917545f4c43e5ec0effd632583cd0bd02200d6a453716787c222722cec633bcb108c1b8c26e284e9659e754d3bc6a77895a6042 SHA512 6580dbf19482af95cbccad61b6f6dc73c068ac78d166e2cea4fae54243921e577316d38e204ad5983f0f52d898d67a10f4c90332d4eeaff1ea713bfc82c70890
|
DIST entrypoint2-1.0.tar.gz 15424 BLAKE2B 1270a35218cde90922fe8f675917545f4c43e5ec0effd632583cd0bd02200d6a453716787c222722cec633bcb108c1b8c26e284e9659e754d3bc6a77895a6042 SHA512 6580dbf19482af95cbccad61b6f6dc73c068ac78d166e2cea4fae54243921e577316d38e204ad5983f0f52d898d67a10f4c90332d4eeaff1ea713bfc82c70890
|
||||||
|
DIST entrypoint2-1.1.gh.tar.gz 15480 BLAKE2B e9a834b863e624971266b78fed75ce2621511f7529f88e4950803c8978a1e27e81585751c25eab82aa1507b6abf8500b11e6ab7ec80052ccd31bec16bf3ed790 SHA512 807b8a53cc5c3e88de971c624dc69b3d526637d84856a0a67fdf2d15c51224cb5c48a7614eaa1942783ce2e954791a86f5ae6eb4dbf1a6e7928161e2cc8f293d
|
||||||
|
@ -0,0 +1,28 @@
|
|||||||
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
DISTUTILS_USE_PEP517=setuptools
|
||||||
|
PYTHON_COMPAT=( python3_{8..11} )
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
DESCRIPTION="Easy to use command-line interface for python modules"
|
||||||
|
HOMEPAGE="https://github.com/ponty/entrypoint2"
|
||||||
|
SRC_URI="
|
||||||
|
https://github.com/ponty/entrypoint2/archive/${PV}.tar.gz
|
||||||
|
-> ${P}.gh.tar.gz
|
||||||
|
"
|
||||||
|
|
||||||
|
LICENSE="BSD-2"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||||
|
|
||||||
|
BDEPEND="
|
||||||
|
test? (
|
||||||
|
dev-python/easyprocess[${PYTHON_USEDEP}]
|
||||||
|
dev-python/path-py[${PYTHON_USEDEP}]
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
distutils_enable_tests pytest
|
@ -0,0 +1,42 @@
|
|||||||
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
DISTUTILS_USE_PEP517=setuptools
|
||||||
|
PYTHON_COMPAT=( python3_{8..10} )
|
||||||
|
|
||||||
|
inherit distutils-r1 llvm.org
|
||||||
|
|
||||||
|
DESCRIPTION="A stand-alone install of the LLVM suite testing tool"
|
||||||
|
HOMEPAGE="https://llvm.org/"
|
||||||
|
|
||||||
|
LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||||
|
IUSE="test"
|
||||||
|
RESTRICT="!test? ( test )"
|
||||||
|
|
||||||
|
# Tests require 'FileCheck' and 'not' utilities (from llvm)
|
||||||
|
BDEPEND="
|
||||||
|
test? (
|
||||||
|
dev-python/psutil[${PYTHON_USEDEP}]
|
||||||
|
sys-devel/llvm
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
LLVM_COMPONENTS=( llvm/utils/lit )
|
||||||
|
llvm.org_set_globals
|
||||||
|
|
||||||
|
# TODO: move the manpage generation here (from sys-devel/llvm)
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
cd "${WORKDIR}" || die
|
||||||
|
distutils-r1_src_prepare
|
||||||
|
}
|
||||||
|
|
||||||
|
python_test() {
|
||||||
|
local -x LIT_PRESERVES_TMP=1
|
||||||
|
local litflags=$(get_lit_flags)
|
||||||
|
./lit.py ${litflags//;/ } tests || die
|
||||||
|
}
|
@ -0,0 +1,23 @@
|
|||||||
|
See https://github.com/FFY00/meson-python/blob/main/mesonpy/__init__.py#L452.
|
||||||
|
|
||||||
|
(Also: https://github.com/FFY00/meson-python/issues/54)
|
||||||
|
--- a/mesonpy/__init__.py
|
||||||
|
+++ b/mesonpy/__init__.py
|
||||||
|
@@ -452,7 +452,7 @@ class Project():
|
||||||
|
f'--native-file={os.fspath(self._meson_native_file)}',
|
||||||
|
# TODO: Allow configuring these arguments
|
||||||
|
'-Ddebug=false',
|
||||||
|
- '-Dstrip=true',
|
||||||
|
+ '-Dstrip=false',
|
||||||
|
'-Doptimization=2',
|
||||||
|
*setup_args,
|
||||||
|
)
|
||||||
|
@@ -464,7 +464,7 @@ class Project():
|
||||||
|
|
||||||
|
@functools.lru_cache(maxsize=None)
|
||||||
|
def build(self) -> None:
|
||||||
|
- self._meson('compile')
|
||||||
|
+ self._meson('compile', '--verbose')
|
||||||
|
self._meson('install', '--destdir', os.fspath(self._install_dir))
|
||||||
|
|
||||||
|
@classmethod
|
@ -0,0 +1,110 @@
|
|||||||
|
https://github.com/FFY00/meson-python/commit/678a586427088a58dfac15bb3fe89b3d7ff0178e
|
||||||
|
https://github.com/FFY00/meson-python/commit/c01645aa3617ccd424ef3ec052d13ac25e7df433
|
||||||
|
|
||||||
|
From 678a586427088a58dfac15bb3fe89b3d7ff0178e Mon Sep 17 00:00:00 2001
|
||||||
|
From: =?UTF-8?q?Filipe=20La=C3=ADns?= <lains@riseup.net>
|
||||||
|
Date: Thu, 9 Jun 2022 20:24:32 +0100
|
||||||
|
Subject: [PATCH] mesonpy: replace pep621 dependency with pyproject-metadata
|
||||||
|
MIME-Version: 1.0
|
||||||
|
Content-Type: text/plain; charset=UTF-8
|
||||||
|
Content-Transfer-Encoding: 8bit
|
||||||
|
|
||||||
|
Fixes #33
|
||||||
|
|
||||||
|
Signed-off-by: Filipe Laíns <lains@riseup.net>
|
||||||
|
--- a/mesonpy/__init__.py
|
||||||
|
+++ b/mesonpy/__init__.py
|
||||||
|
@@ -46,7 +46,7 @@
|
||||||
|
|
||||||
|
|
||||||
|
if typing.TYPE_CHECKING: # pragma: no cover
|
||||||
|
- import pep621 as _pep621 # noqa: F401
|
||||||
|
+ import pyproject_metadata # noqa: F401
|
||||||
|
import wheel.wheelfile # noqa: F401
|
||||||
|
|
||||||
|
|
||||||
|
@@ -353,7 +353,7 @@ class Project():
|
||||||
|
_ALLOWED_DYNAMIC_FIELDS: ClassVar[List[str]] = [
|
||||||
|
'version',
|
||||||
|
]
|
||||||
|
- _metadata: Optional[_pep621.StandardMetadata]
|
||||||
|
+ _metadata: Optional[pyproject_metadata.StandardMetadata]
|
||||||
|
|
||||||
|
def __init__(
|
||||||
|
self,
|
||||||
|
@@ -372,11 +372,11 @@ def __init__(
|
||||||
|
self._pep621 = 'project' in self._config
|
||||||
|
if self.pep621:
|
||||||
|
try:
|
||||||
|
- import pep621 # noqa: F811
|
||||||
|
+ import pyproject_metadata # noqa: F811
|
||||||
|
except ModuleNotFoundError: # pragma: no cover
|
||||||
|
self._metadata = None
|
||||||
|
else:
|
||||||
|
- self._metadata = pep621.StandardMetadata.from_pyproject(self._config, self._source_dir)
|
||||||
|
+ self._metadata = pyproject_metadata.StandardMetadata.from_pyproject(self._config, self._source_dir)
|
||||||
|
else:
|
||||||
|
print(
|
||||||
|
'{yellow}{bold}! Using Meson to generate the project metadata '
|
||||||
|
@@ -550,8 +550,8 @@ def metadata(self) -> bytes: # noqa: C901
|
||||||
|
Name: {self.name}
|
||||||
|
Version: {self.version}
|
||||||
|
''').strip().encode()
|
||||||
|
- # re-import pep621 to raise ModuleNotFoundError if it is really missing
|
||||||
|
- import pep621 # noqa: F401, F811
|
||||||
|
+ # re-import pyproject_metadata to raise ModuleNotFoundError if it is really missing
|
||||||
|
+ import pyproject_metadata # noqa: F401, F811
|
||||||
|
assert self._metadata
|
||||||
|
# use self.version as the version may be dynamic -- fetched from Meson
|
||||||
|
core_metadata = self._metadata.as_rfc822()
|
||||||
|
--- a/pyproject.toml
|
||||||
|
+++ b/pyproject.toml
|
||||||
|
@@ -4,7 +4,7 @@ backend-path = ['.']
|
||||||
|
requires = [
|
||||||
|
'meson>=0.62.0',
|
||||||
|
'ninja',
|
||||||
|
- 'pep621>=0.3.0',
|
||||||
|
+ 'pyproject-metadata>=0.5.0',
|
||||||
|
'tomli>=1.0.0',
|
||||||
|
'typing-extensions>=3.7.4; python_version<"3.8"',
|
||||||
|
]
|
||||||
|
@@ -29,7 +29,7 @@ dependencies = [
|
||||||
|
'colorama; os_name == "nt"',
|
||||||
|
'meson>=0.60.0',
|
||||||
|
'ninja',
|
||||||
|
- 'pep621>=0.3.0', # not a hard dependency, only needed for projects that use PEP 621 metadata
|
||||||
|
+ 'pyproject-metadata>=0.5.0', # not a hard dependency, only needed for projects that use PEP 621 metadata
|
||||||
|
'tomli>=1.0.0',
|
||||||
|
'typing-extensions>=3.7.4; python_version<"3.8"',
|
||||||
|
]
|
||||||
|
@@ -41,7 +41,6 @@ test = [
|
||||||
|
'pytest-mock',
|
||||||
|
'GitPython',
|
||||||
|
'auditwheel',
|
||||||
|
- 'pep621 >= 0.4.0',
|
||||||
|
]
|
||||||
|
docs = [
|
||||||
|
'furo>=2021.08.31',
|
||||||
|
|
||||||
|
From c01645aa3617ccd424ef3ec052d13ac25e7df433 Mon Sep 17 00:00:00 2001
|
||||||
|
From: =?UTF-8?q?Filipe=20La=C3=ADns?= <lains@riseup.net>
|
||||||
|
Date: Thu, 9 Jun 2022 20:27:49 +0100
|
||||||
|
Subject: [PATCH] mesonpy: update code to pyproject-metadata 0.5.0
|
||||||
|
MIME-Version: 1.0
|
||||||
|
Content-Type: text/plain; charset=UTF-8
|
||||||
|
Content-Transfer-Encoding: 8bit
|
||||||
|
|
||||||
|
Signed-off-by: Filipe Laíns <lains@riseup.net>
|
||||||
|
--- a/mesonpy/__init__.py
|
||||||
|
+++ b/mesonpy/__init__.py
|
||||||
|
@@ -424,9 +424,6 @@ def __init__(
|
||||||
|
# set version if dynamic (this fetches it from Meson)
|
||||||
|
if self._metadata and 'version' in self._metadata.dynamic:
|
||||||
|
self._metadata.version = self.version
|
||||||
|
- # version is no longer dynamic
|
||||||
|
- # XXX: Should this be automatically handled by pep621/pyproject-metadata?
|
||||||
|
- self._metadata.dynamic.remove('version')
|
||||||
|
|
||||||
|
def _proc(self, *args: str) -> None:
|
||||||
|
print('{cyan}{bold}+ {}{reset}'.format(' '.join(args), **_STYLES))
|
||||||
|
|
@ -0,0 +1,41 @@
|
|||||||
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
DISTUTILS_USE_PEP517=setuptools
|
||||||
|
PYTHON_COMPAT=( python3_{8..11} )
|
||||||
|
|
||||||
|
DOCS_BUILDER="mkdocs"
|
||||||
|
DOCS_DEPEND="
|
||||||
|
dev-python/mkdocs-material-extensions
|
||||||
|
dev-python/mkdocs-minify-plugin
|
||||||
|
dev-python/mkdocs-redirects
|
||||||
|
"
|
||||||
|
|
||||||
|
inherit distutils-r1 docs
|
||||||
|
|
||||||
|
DESCRIPTION="A Material Design theme for MkDocs"
|
||||||
|
HOMEPAGE="
|
||||||
|
https://github.com/squidfunk/mkdocs-material/
|
||||||
|
https://pypi.org/project/mkdocs-material/
|
||||||
|
"
|
||||||
|
SRC_URI="
|
||||||
|
https://github.com/squidfunk/${PN}/archive/${PV}.tar.gz
|
||||||
|
-> ${P}.gh.tar.gz
|
||||||
|
"
|
||||||
|
|
||||||
|
LICENSE="MIT"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~riscv ~x86"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
>=dev-python/jinja-2.11.1[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/markdown-3.2[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/mkdocs-1.3.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/pygments-2.12[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/pymdown-extensions-9.4[${PYTHON_USEDEP}]
|
||||||
|
"
|
||||||
|
|
||||||
|
# mkdocs-material-extensions depends on mkdocs-material creating a circular dep
|
||||||
|
PDEPEND=">=dev-python/mkdocs-material-extensions-1.0.3[${PYTHON_USEDEP}]"
|
@ -1 +1,2 @@
|
|||||||
DIST owslib-0.25.0.tar.gz 936550 BLAKE2B 9cb34a6c7c93dc89a466c13351d457c9372d405055fa3f6cec9c05c231e76762168c6813085523037b3a6439100500c46c1044569bd2bb598c3e2e63757d8b86 SHA512 058108cf77197ce24793608869d56bf0467230f5f231ac9ba48445f2e02d07ea1e26be03ad6967504a1e625008ae2768ed2a663f3b7a49dcea410ee4a8b40cec
|
DIST owslib-0.25.0.tar.gz 936550 BLAKE2B 9cb34a6c7c93dc89a466c13351d457c9372d405055fa3f6cec9c05c231e76762168c6813085523037b3a6439100500c46c1044569bd2bb598c3e2e63757d8b86 SHA512 058108cf77197ce24793608869d56bf0467230f5f231ac9ba48445f2e02d07ea1e26be03ad6967504a1e625008ae2768ed2a663f3b7a49dcea410ee4a8b40cec
|
||||||
|
DIST owslib-0.26.0.gh.tar.gz 948463 BLAKE2B 2cbdad2d8e9bc4b8a7e2db58dc75a7c053bde0b2cc772a01f230db044909615b96e62b08bb93233df153686a180a5e93af1bda6ea79b8565efacccfa18fcf4da SHA512 27362c47eae87dc6318d505dd1b0987de36d140d2d0fd5d7a5195470de39d73807fbcafa142366f6981cc36453c262a41133c6c68baf45a97d0fdaae5a0ebf4b
|
||||||
|
@ -0,0 +1,42 @@
|
|||||||
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python3_{8..10} )
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
DESCRIPTION="Library for client programming with Open Geospatial Consortium web service"
|
||||||
|
HOMEPAGE="https://geopython.github.io/OWSLib/"
|
||||||
|
SRC_URI="
|
||||||
|
https://github.com/geopython/${PN}/archive/${PV}.tar.gz
|
||||||
|
-> ${P}.gh.tar.gz
|
||||||
|
"
|
||||||
|
S="${WORKDIR}/OWSLib-${PV}"
|
||||||
|
|
||||||
|
LICENSE="BSD"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
RESTRICT="test"
|
||||||
|
PROPERTIES="test_network"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
dev-python/lxml[${PYTHON_USEDEP}]
|
||||||
|
dev-python/pyproj[${PYTHON_USEDEP}]
|
||||||
|
dev-python/python-dateutil[${PYTHON_USEDEP}]
|
||||||
|
dev-python/pytz[${PYTHON_USEDEP}]
|
||||||
|
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||||
|
dev-python/requests[${PYTHON_USEDEP}]
|
||||||
|
"
|
||||||
|
BDEPEND="test? ( dev-python/pillow[${PYTHON_USEDEP}] )"
|
||||||
|
|
||||||
|
EPYTEST_DESELECT=(
|
||||||
|
tests/test_ogcapi_features_pygeoapi.py::test_ogcapi_features_pygeoapi
|
||||||
|
)
|
||||||
|
|
||||||
|
distutils_enable_tests pytest
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
sed -e '/addopts/d' -i tox.ini || die
|
||||||
|
distutils-r1_src_prepare
|
||||||
|
}
|
@ -1 +0,0 @@
|
|||||||
DIST pep621-0.4.0.gh.tar.gz 12772 BLAKE2B d2b725e8d36e4ea29d544b63a8d4ab3a155f9822b3087406460bf24982eeb7b6860c724cbbc885bc27d4a4cb9c0f1208a2dde074988984fe76a5ccce1d71812e SHA512 e48ba90ffd6c6bb548438a6372b614ccc5188e1523a32b876e47b4fd6e9e1eafb94509cb40c4e7dadd03d221c38d67b83fe202a6367b72af1afaa0ac1506bd43
|
|
@ -1,31 +0,0 @@
|
|||||||
https://github.com/FFY00/python-pep621/commit/1691b64e51d47afb084742958d69755e21b0767e
|
|
||||||
|
|
||||||
From: =?UTF-8?q?Filipe=20La=C3=ADns?= <lains@riseup.net>
|
|
||||||
Date: Wed, 26 Jan 2022 15:49:32 +0000
|
|
||||||
Subject: [PATCH] tests: fix tests for new pypa/packaging version
|
|
||||||
MIME-Version: 1.0
|
|
||||||
Content-Type: text/plain; charset=UTF-8
|
|
||||||
Content-Transfer-Encoding: 8bit
|
|
||||||
|
|
||||||
Signed-off-by: Filipe Laíns <lains@riseup.net>
|
|
||||||
--- a/tests/test_standard_metadata.py
|
|
||||||
+++ b/tests/test_standard_metadata.py
|
|
||||||
@@ -231,7 +231,7 @@
|
|
||||||
(
|
|
||||||
'Field `project.dependencies` contains an invalid PEP 508 requirement '
|
|
||||||
'string `definitely not a valid PEP 508 requirement!` '
|
|
||||||
- '(`Parse error at "\'not a va\'": Expected stringEnd`)'
|
|
||||||
+ '(`Parse error at "\'not a va\'": Expected string_end`)'
|
|
||||||
),
|
|
||||||
),
|
|
||||||
# optional-dependencies
|
|
||||||
@@ -284,7 +284,7 @@
|
|
||||||
(
|
|
||||||
'Field `project.optional-dependencies.test` contains an invalid '
|
|
||||||
'PEP 508 requirement string `definitely not a valid PEP 508 requirement!` '
|
|
||||||
- '(`Parse error at "\'not a va\'": Expected stringEnd`)'
|
|
||||||
+ '(`Parse error at "\'not a va\'": Expected string_end`)'
|
|
||||||
),
|
|
||||||
),
|
|
||||||
# requires-python
|
|
||||||
|
|
@ -1 +1,2 @@
|
|||||||
DIST pycurl-7.44.1.tar.gz 227562 BLAKE2B 7dcbde563140f28382768b89b95422f873d5396a1f050dfcd3686d87b0ca2c3f3871281ed87b1dfbe7e4268728c2ec3ba7a76e7d7ef57754af5c185bf2a6fbe8 SHA512 e251db332791de07364695b5fd59b3a290486eabbde8be9914b5edeefa8702b4dd9ab678739ad765f76ededeb7192444fefe2a076d3977f454259dfd06731059
|
DIST pycurl-7.44.1.tar.gz 227562 BLAKE2B 7dcbde563140f28382768b89b95422f873d5396a1f050dfcd3686d87b0ca2c3f3871281ed87b1dfbe7e4268728c2ec3ba7a76e7d7ef57754af5c185bf2a6fbe8 SHA512 e251db332791de07364695b5fd59b3a290486eabbde8be9914b5edeefa8702b4dd9ab678739ad765f76ededeb7192444fefe2a076d3977f454259dfd06731059
|
||||||
|
DIST pycurl-7.45.1.tar.gz 233879 BLAKE2B 8a6fe72f00cfd172b4f5e257f4526c4115047aa911d7fb3802d3bf105ac70dc866b27fa4878aae9f92229a5dd5108a2b5e1c9acfe93e1a94dac60d9405c5d5e6 SHA512 05639d484aac6d6688677589e391975158c5ef778456a47df575ad13fb8bd0db67ff8f5a39bdd99d82a67926aca421c01e687eec9d4fd87f32822b492b429635
|
||||||
|
@ -0,0 +1,93 @@
|
|||||||
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
DISTUTILS_USE_PEP517=setuptools
|
||||||
|
PYTHON_COMPAT=( python3_{8..11} )
|
||||||
|
|
||||||
|
inherit distutils-r1 toolchain-funcs
|
||||||
|
|
||||||
|
DESCRIPTION="Python bindings for curl/libcurl"
|
||||||
|
HOMEPAGE="
|
||||||
|
http://pycurl.io/
|
||||||
|
https://github.com/pycurl/pycurl/
|
||||||
|
https://pypi.org/project/pycurl/
|
||||||
|
"
|
||||||
|
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="LGPL-2.1"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
|
||||||
|
IUSE="curl_ssl_gnutls curl_ssl_nss +curl_ssl_openssl examples ssl"
|
||||||
|
|
||||||
|
# Depend on a curl with curl_ssl_* USE flags.
|
||||||
|
# libcurl must not be using an ssl backend we do not support.
|
||||||
|
# If the libcurl ssl backend changes pycurl should be recompiled.
|
||||||
|
# If curl uses gnutls, depend on at least gnutls 2.11.0 so that pycurl
|
||||||
|
# does not need to initialize gcrypt threading and we do not need to
|
||||||
|
# explicitly link to libgcrypt.
|
||||||
|
DEPEND="
|
||||||
|
>=net-misc/curl-7.25.0-r1:=[ssl=]
|
||||||
|
ssl? (
|
||||||
|
net-misc/curl[curl_ssl_gnutls(-)=,curl_ssl_nss(-)=,curl_ssl_openssl(-)=,-curl_ssl_axtls(-),-curl_ssl_cyassl(-)]
|
||||||
|
curl_ssl_gnutls? ( >=net-libs/gnutls-2.11.0:= )
|
||||||
|
curl_ssl_openssl? ( dev-libs/openssl:= )
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
${DEPEND}
|
||||||
|
"
|
||||||
|
BDEPEND="
|
||||||
|
test? (
|
||||||
|
>=dev-python/bottle-0.12.7[${PYTHON_USEDEP}]
|
||||||
|
dev-python/flaky[${PYTHON_USEDEP}]
|
||||||
|
net-misc/curl[curl_ssl_gnutls(-)=,curl_ssl_nss(-)=,curl_ssl_openssl(-)=,-curl_ssl_axtls(-),-curl_ssl_cyassl(-),http2]
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}/7.44-fix-tests.patch"
|
||||||
|
)
|
||||||
|
|
||||||
|
distutils_enable_tests pytest
|
||||||
|
|
||||||
|
python_prepare_all() {
|
||||||
|
# docs installed into the wrong directory
|
||||||
|
sed -e "/setup_args\['data_files'\] = /d" -i setup.py || die
|
||||||
|
# TODO
|
||||||
|
sed -e 's:test_socks5_gssapi_nec_setopt:_&:' \
|
||||||
|
-i tests/option_constants_test.py || die
|
||||||
|
|
||||||
|
distutils-r1_python_prepare_all
|
||||||
|
}
|
||||||
|
|
||||||
|
python_configure_all() {
|
||||||
|
# Override faulty detection in setup.py, bug #510974.
|
||||||
|
export PYCURL_SSL_LIBRARY=${CURL_SSL}
|
||||||
|
}
|
||||||
|
|
||||||
|
src_test() {
|
||||||
|
emake -C tests/fake-curl/libcurl CC="$(tc-getCC)"
|
||||||
|
|
||||||
|
distutils-r1_src_test
|
||||||
|
}
|
||||||
|
|
||||||
|
python_test() {
|
||||||
|
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
|
||||||
|
local EPYTEST_DESELECT=(
|
||||||
|
# refcounting tests are unreliable
|
||||||
|
tests/memory_mgmt_test.py::MemoryMgmtTest::test_readdata_refcounting
|
||||||
|
tests/memory_mgmt_test.py::MemoryMgmtTest::test_writedata_refcounting
|
||||||
|
tests/memory_mgmt_test.py::MemoryMgmtTest::test_writeheader_refcounting
|
||||||
|
)
|
||||||
|
|
||||||
|
epytest -p flaky tests
|
||||||
|
}
|
||||||
|
|
||||||
|
python_install_all() {
|
||||||
|
local HTML_DOCS=( doc/. )
|
||||||
|
use examples && dodoc -r examples
|
||||||
|
distutils-r1_python_install_all
|
||||||
|
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue