parent
ed8beef857
commit
7c19b60957
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,2 +1,2 @@
|
||||
DIST Bitwarden-1.27.1-amd64.deb 58099834 BLAKE2B 285d737cd38c60966778657537efa1d5e53edd46fbf25721631d6d8b50b097093ee5ba41a475c3c9aec6ddbffae48cadb0d8a994c9f6ec88cf005af1bf5c1cdc SHA512 92a6a5d3d64a17ddf2b742d9328adf27566da466c9c4d22fff910eb9dabeda77f65fad07424e6abc8c4cace04c365ada84588d05270a5cf615eda36a5741e81c
|
||||
DIST Bitwarden-1.28.2-amd64.deb 58190436 BLAKE2B e95575fa944b8f71559d2cd058deb35ce5648ca76a36169faaed05812057e6a5be086c1a583d256e915d81494faf098a61a66fd93e8fd30c53a3eb9372add813 SHA512 7538565c55638d7d416a3a03f4f579b5cc5cc23d11b8f1b637616c3860415f81066e2e344752c5cbe445ffe0523854cff3a06b589b03185f0b58872a81f7073b
|
||||
DIST Bitwarden-1.28.3-amd64.deb 58747514 BLAKE2B 5d62084e89df9ac1b2f3b487d8594f5cd5e9fd411b46d95bc0310f27e772d4f7185507610c204f345f24defd5f87c954381c14427d4a7b69d51737b71cc61474 SHA512 7d061ae18a11c733a72fbb0e657c5f14d04054ae97720c3920d9641c880aea2de5638b908719a1fb4d8c23f32b49697cfa7994732441135007cdf2572bf41cfb
|
||||
|
Binary file not shown.
@ -0,0 +1,125 @@
|
||||
# Copyright 2020-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
CRATES="
|
||||
aho-corasick-0.7.18
|
||||
ansi_term-0.11.0
|
||||
approx-0.5.0
|
||||
arrayvec-0.5.2
|
||||
assert_cmd-2.0.2
|
||||
atty-0.2.14
|
||||
autocfg-0.1.7
|
||||
autocfg-1.0.1
|
||||
bitflags-1.3.2
|
||||
bstr-0.2.17
|
||||
cfg-if-1.0.0
|
||||
clap-2.33.3
|
||||
cloudabi-0.0.3
|
||||
colored-2.0.0
|
||||
console-0.15.0
|
||||
csv-1.1.6
|
||||
csv-core-0.1.10
|
||||
difflib-0.4.0
|
||||
doc-comment-0.3.3
|
||||
either-1.6.1
|
||||
encode_unicode-0.3.6
|
||||
float-cmp-0.9.0
|
||||
fuchsia-cprng-0.1.1
|
||||
getrandom-0.2.3
|
||||
hermit-abi-0.1.19
|
||||
indicatif-0.16.2
|
||||
itertools-0.10.1
|
||||
itoa-0.4.8
|
||||
lazy_static-1.4.0
|
||||
libc-0.2.104
|
||||
memchr-2.4.1
|
||||
normalize-line-endings-0.3.0
|
||||
num-0.2.1
|
||||
num-bigint-0.2.6
|
||||
num-complex-0.2.4
|
||||
num-integer-0.1.44
|
||||
num-iter-0.1.42
|
||||
num-rational-0.2.4
|
||||
num-traits-0.2.14
|
||||
number_prefix-0.4.0
|
||||
once_cell-1.8.0
|
||||
ppv-lite86-0.2.14
|
||||
predicates-2.0.3
|
||||
predicates-core-1.0.2
|
||||
predicates-tree-1.0.4
|
||||
proc-macro2-1.0.30
|
||||
quote-1.0.10
|
||||
rand-0.6.5
|
||||
rand-0.8.4
|
||||
rand_chacha-0.1.1
|
||||
rand_chacha-0.3.1
|
||||
rand_core-0.3.1
|
||||
rand_core-0.4.2
|
||||
rand_core-0.6.3
|
||||
rand_hc-0.1.0
|
||||
rand_hc-0.3.1
|
||||
rand_isaac-0.1.1
|
||||
rand_jitter-0.1.4
|
||||
rand_os-0.1.3
|
||||
rand_pcg-0.1.2
|
||||
rand_xorshift-0.1.1
|
||||
rdrand-0.4.0
|
||||
redox_syscall-0.2.10
|
||||
regex-1.5.4
|
||||
regex-automata-0.1.10
|
||||
regex-syntax-0.6.25
|
||||
remove_dir_all-0.5.3
|
||||
rust_decimal-1.16.0
|
||||
ryu-1.0.5
|
||||
serde-1.0.130
|
||||
serde_derive-1.0.130
|
||||
serde_json-1.0.68
|
||||
shell-words-1.0.0
|
||||
statistical-1.0.0
|
||||
strsim-0.8.0
|
||||
syn-1.0.80
|
||||
tempfile-3.2.0
|
||||
term_size-0.3.2
|
||||
terminal_size-0.1.17
|
||||
termtree-0.2.1
|
||||
textwrap-0.11.0
|
||||
unicode-width-0.1.9
|
||||
unicode-xid-0.2.2
|
||||
vec_map-0.8.2
|
||||
wait-timeout-0.2.0
|
||||
wasi-0.10.2+wasi-snapshot-preview1
|
||||
winapi-0.3.9
|
||||
winapi-i686-pc-windows-gnu-0.4.0
|
||||
winapi-x86_64-pc-windows-gnu-0.4.0
|
||||
"
|
||||
|
||||
inherit bash-completion-r1 cargo
|
||||
|
||||
DESCRIPTION="A command-line benchmarking tool (runs other benchmarks)"
|
||||
HOMEPAGE="https://github.com/sharkdp/hyperfine"
|
||||
SRC_URI="https://github.com/sharkdp/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
|
||||
$(cargo_crate_uris ${CRATES})"
|
||||
|
||||
LICENSE="Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD-2 Boost-1.0 ISC MIT MPL-2.0 Unlicense"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 ~ppc64"
|
||||
|
||||
QA_FLAGS_IGNORED="usr/bin/${PN}"
|
||||
|
||||
src_install() {
|
||||
local build_dir="$(dirname $(find target/ -name ${PN}.bash -print -quit))"
|
||||
|
||||
newbashcomp "${build_dir}/${PN}.bash" "${PN}"
|
||||
|
||||
insinto /usr/share/zsh/site-functions
|
||||
doins "${build_dir}/_${PN}"
|
||||
|
||||
insinto /usr/share/fish/vendor_completions.d
|
||||
doins "${build_dir}/${PN}.fish"
|
||||
|
||||
cargo_src_install
|
||||
doman doc/hyperfine.1
|
||||
einstalldocs
|
||||
}
|
Binary file not shown.
Binary file not shown.
@ -1,24 +0,0 @@
|
||||
From 4dc53a4c320af0894bd600c77d4432c414cdee16 Mon Sep 17 00:00:00 2001
|
||||
From: Sebastian Pipping <sebastian@pipping.org>
|
||||
Date: Sat, 8 Aug 2015 00:05:20 +0200
|
||||
Subject: [PATCH] Do not have target "build" call target "test"
|
||||
|
||||
---
|
||||
build.xml | 1 -
|
||||
1 file changed, 1 deletion(-)
|
||||
|
||||
diff --git a/build.xml b/build.xml
|
||||
index f34934f..da5272a 100644
|
||||
--- a/build.xml
|
||||
+++ b/build.xml
|
||||
@@ -504,7 +504,6 @@
|
||||
</copy>
|
||||
</contrib:then>
|
||||
</contrib:if>
|
||||
- <antcall target="test" />
|
||||
</target>
|
||||
|
||||
<target name="build-exe-launcher"
|
||||
--
|
||||
2.5.0
|
||||
|
Binary file not shown.
@ -0,0 +1,578 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PLOCALES="ar ast bg ca cs da de el en en_US eo es fa fi fr he hi hr hu it ja ko lt ml nb_NO nl or pa pl pt_BR pt_PT rm ro ru si sk sl sr_RS@cyrillic sr_RS@latin sv ta te th tr uk wa zh_CN zh_TW"
|
||||
PLOCALE_BACKUP="en"
|
||||
|
||||
inherit autotools eapi7-ver estack eutils flag-o-matic gnome2-utils multilib multilib-minimal pax-utils plocale toolchain-funcs virtualx xdg-utils
|
||||
|
||||
MY_PN="${PN%%-*}"
|
||||
MY_P="${MY_PN}-${PV}"
|
||||
|
||||
if [[ ${PV} == "9999" ]] ; then
|
||||
EGIT_REPO_URI="https://source.winehq.org/git/wine.git"
|
||||
EGIT_BRANCH="master"
|
||||
inherit git-r3
|
||||
SRC_URI=""
|
||||
else
|
||||
MAJOR_V=$(ver_cut 1)
|
||||
SRC_URI="https://dl.winehq.org/wine/source/${MAJOR_V}.0/${MY_P}.tar.xz"
|
||||
KEYWORDS="-* ~amd64 ~x86"
|
||||
fi
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
GWP_V="20200523"
|
||||
PATCHDIR="${WORKDIR}/gentoo-wine-patches"
|
||||
|
||||
DESCRIPTION="Free implementation of Windows(tm) on Unix, without external patchsets"
|
||||
HOMEPAGE="https://www.winehq.org/"
|
||||
SRC_URI="${SRC_URI}
|
||||
https://dev.gentoo.org/~sarnex/distfiles/wine/gentoo-wine-patches-${GWP_V}.tar.xz
|
||||
"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="${PV}"
|
||||
IUSE="+abi_x86_32 +abi_x86_64 +alsa capi cups custom-cflags dos elibc_glibc +faudio +fontconfig +gecko gphoto2 gsm gssapi gstreamer +jpeg kerberos kernel_FreeBSD +lcms ldap mingw +mono mp3 netapi nls odbc openal opencl +opengl osmesa oss +perl pcap +png prelink pulseaudio +realtime +run-exes samba scanner sdl selinux +ssl test +threads +truetype udev +udisks +unwind usb v4l vkd3d vulkan +X +xcomposite xinerama +xml"
|
||||
REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 )
|
||||
X? ( truetype )
|
||||
elibc_glibc? ( threads )
|
||||
osmesa? ( opengl )
|
||||
test? ( abi_x86_32 )
|
||||
vkd3d? ( vulkan )" # osmesa-opengl #286560 # X-truetype #551124
|
||||
|
||||
# FIXME: the test suite is unsuitable for us; many tests require net access
|
||||
# or fail due to Xvfb's opengl limitations.
|
||||
RESTRICT="test"
|
||||
|
||||
COMMON_DEPEND="
|
||||
X? (
|
||||
x11-libs/libXcursor[${MULTILIB_USEDEP}]
|
||||
x11-libs/libXext[${MULTILIB_USEDEP}]
|
||||
x11-libs/libXfixes[${MULTILIB_USEDEP}]
|
||||
x11-libs/libXrandr[${MULTILIB_USEDEP}]
|
||||
x11-libs/libXi[${MULTILIB_USEDEP}]
|
||||
x11-libs/libXxf86vm[${MULTILIB_USEDEP}]
|
||||
)
|
||||
alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] )
|
||||
capi? ( net-libs/libcapi[${MULTILIB_USEDEP}] )
|
||||
cups? ( net-print/cups:=[${MULTILIB_USEDEP}] )
|
||||
faudio? ( app-emulation/faudio:=[${MULTILIB_USEDEP}] )
|
||||
fontconfig? ( media-libs/fontconfig:=[${MULTILIB_USEDEP}] )
|
||||
gphoto2? ( media-libs/libgphoto2:=[${MULTILIB_USEDEP}] )
|
||||
gsm? ( media-sound/gsm:=[${MULTILIB_USEDEP}] )
|
||||
gssapi? ( virtual/krb5[${MULTILIB_USEDEP}] )
|
||||
gstreamer? (
|
||||
media-libs/gstreamer:1.0[${MULTILIB_USEDEP}]
|
||||
media-plugins/gst-plugins-meta:1.0[${MULTILIB_USEDEP}]
|
||||
)
|
||||
jpeg? ( virtual/jpeg:0=[${MULTILIB_USEDEP}] )
|
||||
kerberos? ( virtual/krb5[${MULTILIB_USEDEP}] )
|
||||
lcms? ( media-libs/lcms:2=[${MULTILIB_USEDEP}] )
|
||||
ldap? ( net-nds/openldap:=[${MULTILIB_USEDEP}] )
|
||||
mp3? ( >=media-sound/mpg123-1.5.0[${MULTILIB_USEDEP}] )
|
||||
netapi? ( net-fs/samba[netapi(+),${MULTILIB_USEDEP}] )
|
||||
nls? ( sys-devel/gettext[${MULTILIB_USEDEP}] )
|
||||
odbc? ( dev-db/unixODBC:=[${MULTILIB_USEDEP}] )
|
||||
openal? ( media-libs/openal:=[${MULTILIB_USEDEP}] )
|
||||
opencl? ( virtual/opencl[${MULTILIB_USEDEP}] )
|
||||
opengl? (
|
||||
virtual/glu[${MULTILIB_USEDEP}]
|
||||
virtual/opengl[${MULTILIB_USEDEP}]
|
||||
)
|
||||
osmesa? ( >=media-libs/mesa-13[osmesa,${MULTILIB_USEDEP}] )
|
||||
pcap? ( net-libs/libpcap[${MULTILIB_USEDEP}] )
|
||||
png? ( media-libs/libpng:0=[${MULTILIB_USEDEP}] )
|
||||
pulseaudio? ( media-sound/pulseaudio[${MULTILIB_USEDEP}] )
|
||||
scanner? ( media-gfx/sane-backends:=[${MULTILIB_USEDEP}] )
|
||||
sdl? ( media-libs/libsdl2:=[haptic,joystick,${MULTILIB_USEDEP}] )
|
||||
ssl? ( net-libs/gnutls:=[${MULTILIB_USEDEP}] )
|
||||
truetype? ( >=media-libs/freetype-2.0.0[${MULTILIB_USEDEP}] )
|
||||
udev? ( virtual/libudev:=[${MULTILIB_USEDEP}] )
|
||||
udisks? ( sys-apps/dbus[${MULTILIB_USEDEP}] )
|
||||
unwind? ( sys-libs/libunwind[${MULTILIB_USEDEP}] )
|
||||
usb? ( virtual/libusb:1[${MULTILIB_USEDEP}] )
|
||||
v4l? ( media-libs/libv4l[${MULTILIB_USEDEP}] )
|
||||
vkd3d? ( >=app-emulation/vkd3d-1.2[${MULTILIB_USEDEP}] )
|
||||
vulkan? ( media-libs/vulkan-loader[${MULTILIB_USEDEP}] )
|
||||
xcomposite? ( x11-libs/libXcomposite[${MULTILIB_USEDEP}] )
|
||||
xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] )
|
||||
xml? (
|
||||
dev-libs/libxml2[${MULTILIB_USEDEP}]
|
||||
dev-libs/libxslt[${MULTILIB_USEDEP}]
|
||||
)"
|
||||
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
app-emulation/wine-desktop-common
|
||||
>app-eselect/eselect-wine-0.3
|
||||
!app-emulation/wine:0
|
||||
dos? ( >=games-emulation/dosbox-0.74_p20160629 )
|
||||
gecko? ( app-emulation/wine-gecko:2.47.2[abi_x86_32?,abi_x86_64?] )
|
||||
mono? ( app-emulation/wine-mono:5.1.1 )
|
||||
perl? (
|
||||
dev-lang/perl
|
||||
dev-perl/XML-Simple
|
||||
)
|
||||
pulseaudio? (
|
||||
realtime? ( sys-auth/rtkit )
|
||||
)
|
||||
samba? ( >=net-fs/samba-3.0.25[winbind] )
|
||||
selinux? ( sec-policy/selinux-wine )
|
||||
udisks? ( sys-fs/udisks:2 )"
|
||||
|
||||
# tools/make_requests requires perl
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
sys-devel/flex
|
||||
>=sys-kernel/linux-headers-2.6
|
||||
virtual/pkgconfig
|
||||
virtual/yacc
|
||||
X? ( x11-base/xorg-proto )
|
||||
prelink? ( sys-devel/prelink )
|
||||
xinerama? ( x11-base/xorg-proto )"
|
||||
|
||||
# These use a non-standard "Wine" category, which is provided by
|
||||
# /etc/xdg/applications-merged/wine.menu
|
||||
QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop
|
||||
usr/share/applications/wine-notepad.desktop
|
||||
usr/share/applications/wine-uninstaller.desktop
|
||||
usr/share/applications/wine-winecfg.desktop"
|
||||
|
||||
PATCHES=(
|
||||
"${PATCHDIR}/patches/${MY_PN}-5.0-winegcc.patch" #260726
|
||||
"${PATCHDIR}/patches/${MY_PN}-4.7-multilib-portage.patch" #395615
|
||||
"${PATCHDIR}/patches/${MY_PN}-2.0-multislot-apploader.patch" #310611
|
||||
"${PATCHDIR}/patches/${MY_PN}-5.9-Revert-makedep-Install-also-generated-typelib-for-in.patch"
|
||||
)
|
||||
PATCHES_BIN=()
|
||||
|
||||
# https://bugs.gentoo.org/show_bug.cgi?id=635222
|
||||
if [[ ${#PATCHES_BIN[@]} -ge 1 ]] || [[ ${PV} == 9999 ]]; then
|
||||
DEPEND+=" dev-util/patchbin"
|
||||
fi
|
||||
|
||||
wine_compiler_check() {
|
||||
[[ ${MERGE_TYPE} = "binary" ]] && return 0
|
||||
|
||||
# GCC-specific bugs
|
||||
if tc-is-gcc; then
|
||||
# bug #549768
|
||||
if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then
|
||||
ebegin "Checking for gcc-5 ms_abi compiler bug"
|
||||
$(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die
|
||||
# Run in subshell to prevent "Aborted" message
|
||||
( "${T}"/pr66838 || false ) >/dev/null 2>&1
|
||||
if ! eend $?; then
|
||||
eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0"
|
||||
eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild,"
|
||||
eerror "or use gcc-config to select a different compiler version."
|
||||
eerror "See https://bugs.gentoo.org/549768"
|
||||
eerror
|
||||
return 1
|
||||
fi
|
||||
fi
|
||||
# bug #574044
|
||||
if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then
|
||||
ebegin "Checking for gcc-5-3 stack realignment compiler bug"
|
||||
# Compile in subshell to prevent "Aborted" message
|
||||
( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1
|
||||
if ! eend $?; then
|
||||
eerror "Wine cannot be built with this version of gcc-5.3"
|
||||
eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild,"
|
||||
eerror "or use gcc-config to select a different compiler version."
|
||||
eerror "See https://bugs.gentoo.org/574044"
|
||||
eerror
|
||||
return 1
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
# Ensure compiler support
|
||||
if use abi_x86_64; then
|
||||
ebegin "Checking for 64-bit compiler with builtin_ms_va_list support"
|
||||
# Compile in subshell to prevent "Aborted" message
|
||||
( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1)
|
||||
if ! eend $?; then
|
||||
eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine"
|
||||
eerror
|
||||
eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine"
|
||||
eerror
|
||||
return 1
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
wine_build_environment_check() {
|
||||
[[ ${MERGE_TYPE} = "binary" ]] && return 0
|
||||
|
||||
if use abi_x86_64; then
|
||||
if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then
|
||||
eerror "You need gcc-4.4+ to compile 64-bit wine"
|
||||
die
|
||||
elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then
|
||||
eerror "You need clang-3.8+ to compile 64-bit wine"
|
||||
die
|
||||
fi
|
||||
fi
|
||||
if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then
|
||||
ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by"
|
||||
ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in"
|
||||
ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4"
|
||||
fi
|
||||
if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then
|
||||
if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then
|
||||
ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work"
|
||||
ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine."
|
||||
ewarn "See package.env in man 5 portage for more information on how to do this."
|
||||
ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details"
|
||||
fi
|
||||
fi
|
||||
|
||||
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then
|
||||
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
|
||||
eerror "See https://bugs.gentoo.org/487864 for more details."
|
||||
eerror
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
wine_env_vcs_vars() {
|
||||
local pn_live_var="${PN//[-+]/_}_LIVE_COMMIT"
|
||||
local pn_live_val="${pn_live_var}"
|
||||
eval pn_live_val='$'${pn_live_val}
|
||||
if [[ ! -z ${EGIT_COMMIT} ]]; then
|
||||
eerror "Commits must now be specified using the environmental variables"
|
||||
eerror "EGIT_OVERRIDE_COMMIT_WINE"
|
||||
eerror
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_pretend() {
|
||||
wine_build_environment_check || die
|
||||
|
||||
# Verify OSS support
|
||||
if use oss && ! use kernel_FreeBSD; then
|
||||
if ! has_version ">=media-sound/oss-4"; then
|
||||
eerror "You cannot build wine with USE=oss without having support from a"
|
||||
eerror "FreeBSD kernel or >=media-sound/oss-4 (only available through external repos)"
|
||||
eerror
|
||||
die
|
||||
fi
|
||||
fi
|
||||
|
||||
if use mingw && use abi_x86_32 && ! has_version "cross-i686-w64-mingw32/gcc"; then
|
||||
eerror
|
||||
eerror "USE=\"mingw\" is currently experimental, and requires the"
|
||||
eerror "'cross-i686-w64-mingw32' compiler and its runtime for 32-bit builds."
|
||||
eerror
|
||||
eerror "These can be installed by using 'sys-devel/crossdev':"
|
||||
eerror
|
||||
eerror "crossdev --target i686-w64-mingw32"
|
||||
eerror
|
||||
eerror "For more information on setting up MinGW, see: https://wiki.gentoo.org/wiki/Mingw"
|
||||
eerror
|
||||
die "MinGW build was enabled, but no compiler to support it was found."
|
||||
fi
|
||||
|
||||
if use mingw && use abi_x86_64 && ! has_version "cross-x86_64-w64-mingw32/gcc"; then
|
||||
eerror
|
||||
eerror "USE=\"mingw\" is currently experimental, and requires the"
|
||||
eerror "'cross-x86_64-w64-mingw32' compiler and its runtime for 64-bit builds."
|
||||
eerror
|
||||
eerror "These can be installed by using 'sys-devel/crossdev':"
|
||||
eerror
|
||||
eerror "crossdev --target x86_64-w64-mingw32"
|
||||
eerror
|
||||
eerror "For more information on setting up MinGW, see: https://wiki.gentoo.org/wiki/Mingw"
|
||||
eerror
|
||||
die "MinGW build was enabled, but no compiler to support it was found."
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
wine_build_environment_check || die
|
||||
wine_env_vcs_vars || die
|
||||
|
||||
WINE_VARIANT="${PN#wine}-${PV}"
|
||||
WINE_VARIANT="${WINE_VARIANT#-}"
|
||||
|
||||
MY_PREFIX="${EPREFIX}/usr/lib/wine-${WINE_VARIANT}"
|
||||
MY_DATAROOTDIR="${EPREFIX}/usr/share/wine-${WINE_VARIANT}"
|
||||
MY_DATADIR="${MY_DATAROOTDIR}"
|
||||
MY_DOCDIR="${EPREFIX}/usr/share/doc/${PF}"
|
||||
MY_INCLUDEDIR="${EPREFIX}/usr/include/wine-${WINE_VARIANT}"
|
||||
MY_LIBEXECDIR="${EPREFIX}/usr/libexec/wine-${WINE_VARIANT}"
|
||||
MY_LOCALSTATEDIR="${EPREFIX}/var/wine-${WINE_VARIANT}"
|
||||
MY_MANDIR="${MY_DATADIR}/man"
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
if [[ ${PV} == "9999" ]] ; then
|
||||
EGIT_CHECKOUT_DIR="${S}" git-r3_src_unpack
|
||||
fi
|
||||
|
||||
default
|
||||
|
||||
plocale_find_changes "${S}/po" "" ".po"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
|
||||
eapply_bin(){
|
||||
local patch
|
||||
for patch in ${PATCHES_BIN[@]}; do
|
||||
patchbin --nogit < "${patch}" || die
|
||||
done
|
||||
}
|
||||
|
||||
local md5="$(md5sum server/protocol.def)"
|
||||
|
||||
default
|
||||
eapply_bin
|
||||
eautoreconf
|
||||
|
||||
# Modification of the server protocol requires regenerating the server requests
|
||||
if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
|
||||
einfo "server/protocol.def was patched; running tools/make_requests"
|
||||
tools/make_requests || die #432348
|
||||
fi
|
||||
sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
|
||||
if ! use run-exes; then
|
||||
sed -i '/^MimeType/d' loader/wine.desktop || die #117785
|
||||
fi
|
||||
|
||||
# Edit wine.desktop to work for specific variant
|
||||
sed -e "/^Exec=/s/wine /wine-${WINE_VARIANT} /" -i loader/wine.desktop || die
|
||||
|
||||
# hi-res default icon, #472990, https://bugs.winehq.org/show_bug.cgi?id=24652
|
||||
cp "${PATCHDIR}/files/oic_winlogo.ico" dlls/user32/resources/ || die
|
||||
|
||||
plocale_get_locales > po/LINGUAS || die # otherwise wine doesn't respect LINGUAS
|
||||
|
||||
# Fix manpage generation for locales #469418 and abi_x86_64 #617864
|
||||
|
||||
# Duplicate manpages input files for wine64
|
||||
local f
|
||||
for f in loader/*.man.in; do
|
||||
cp ${f} ${f/wine/wine64} || die
|
||||
done
|
||||
# Add wine64 manpages to Makefile
|
||||
if use abi_x86_64; then
|
||||
sed -i "/wine.man.in/i \
|
||||
\\\twine64.man.in \\\\" loader/Makefile.in || die
|
||||
sed -i -E 's/(.*wine)(.*\.UTF-8\.man\.in.*)/&\
|
||||
\164\2/' loader/Makefile.in || die
|
||||
fi
|
||||
|
||||
rm_man_file(){
|
||||
local file="${1}"
|
||||
loc=${2}
|
||||
sed -i "/${loc}\.UTF-8\.man\.in/d" "${file}" || die
|
||||
}
|
||||
|
||||
while read f; do
|
||||
plocale_for_each_disabled_locale rm_man_file "${f}"
|
||||
done < <(find -name "Makefile.in" -exec grep -q "UTF-8.man.in" "{}" \; -print)
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
wine_compiler_check || die
|
||||
|
||||
export LDCONFIG=/bin/true
|
||||
use custom-cflags || strip-flags
|
||||
if use mingw; then
|
||||
export CROSSCFLAGS="${CFLAGS}"
|
||||
fi
|
||||
|
||||
multilib-minimal_src_configure
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
local myconf=(
|
||||
--prefix="${MY_PREFIX}"
|
||||
--datarootdir="${MY_DATAROOTDIR}"
|
||||
--datadir="${MY_DATADIR}"
|
||||
--docdir="${MY_DOCDIR}"
|
||||
--includedir="${MY_INCLUDEDIR}"
|
||||
--libdir="${EPREFIX}/usr/$(get_libdir)/wine-${WINE_VARIANT}"
|
||||
--libexecdir="${MY_LIBEXECDIR}"
|
||||
--localstatedir="${MY_LOCALSTATEDIR}"
|
||||
--mandir="${MY_MANDIR}"
|
||||
--sysconfdir="${EPREFIX}/etc/wine"
|
||||
$(use_with alsa)
|
||||
$(use_with capi)
|
||||
$(use_with lcms cms)
|
||||
$(use_with cups)
|
||||
$(use_with udisks dbus)
|
||||
$(use_with faudio)
|
||||
$(use_with fontconfig)
|
||||
$(use_with ssl gnutls)
|
||||
$(use_enable gecko mshtml)
|
||||
$(use_with gphoto2 gphoto)
|
||||
$(use_with gsm)
|
||||
$(use_with gssapi)
|
||||
$(use_with gstreamer)
|
||||
--without-hal
|
||||
$(use_with jpeg)
|
||||
$(use_with kerberos krb5)
|
||||
$(use_with ldap)
|
||||
# TODO: Will bug 685172 still need special handling?
|
||||
$(use_with mingw)
|
||||
$(use_enable mono mscoree)
|
||||
$(use_with mp3 mpg123)
|
||||
$(use_with netapi)
|
||||
$(use_with nls gettext)
|
||||
$(use_with openal)
|
||||
$(use_with opencl)
|
||||
$(use_with opengl)
|
||||
$(use_with osmesa)
|
||||
$(use_with oss)
|
||||
$(use_with pcap)
|
||||
$(use_with png)
|
||||
$(use_with pulseaudio pulse)
|
||||
$(use_with threads pthread)
|
||||
$(use_with scanner sane)
|
||||
$(use_with sdl)
|
||||
$(use_enable test tests)
|
||||
$(use_with truetype freetype)
|
||||
$(use_with udev)
|
||||
$(use_with unwind)
|
||||
$(use_with usb)
|
||||
$(use_with v4l v4l2)
|
||||
$(use_with vkd3d)
|
||||
$(use_with vulkan)
|
||||
$(use_with X x)
|
||||
$(use_with X xfixes)
|
||||
$(use_with xcomposite)
|
||||
$(use_with xinerama)
|
||||
$(use_with xml)
|
||||
$(use_with xml xslt)
|
||||
)
|
||||
|
||||
local PKG_CONFIG
|
||||
# Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038
|
||||
tc-export PKG_CONFIG
|
||||
|
||||
if use amd64; then
|
||||
if [[ ${ABI} == amd64 ]]; then
|
||||
myconf+=( --enable-win64 )
|
||||
else
|
||||
myconf+=( --disable-win64 )
|
||||
fi
|
||||
|
||||
# Note: using --with-wine64 results in problems with multilib.eclass
|
||||
# CC/LD hackery. We're using separate tools instead.
|
||||
fi
|
||||
|
||||
ECONF_SOURCE=${S} \
|
||||
econf "${myconf[@]}"
|
||||
emake depend
|
||||
}
|
||||
|
||||
multilib_src_test() {
|
||||
# FIXME: win32-only; wine64 tests fail with "could not find the Wine loader"
|
||||
if [[ ${ABI} == x86 ]]; then
|
||||
if [[ $(id -u) == 0 ]]; then
|
||||
ewarn "Skipping tests since they cannot be run under the root user."
|
||||
ewarn "To run the test ${MY_PN} suite, add userpriv to FEATURES in make.conf"
|
||||
return
|
||||
fi
|
||||
|
||||
WINEPREFIX="${T}/.wine-${ABI}" \
|
||||
virtx emake test
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
local DOCS=( ANNOUNCE AUTHORS README )
|
||||
add_locale_docs() {
|
||||
local locale_doc="documentation/README.$1"
|
||||
[[ ! -e ${locale_doc} ]] || DOCS+=( ${locale_doc} )
|
||||
}
|
||||
plocale_for_each_locale add_locale_docs
|
||||
|
||||
einstalldocs
|
||||
find "${ED}" -name *.la -delete || die
|
||||
|
||||
if ! use perl ; then # winedump calls function_grep.pl, and winemaker is a perl script
|
||||
rm "${D%/}${MY_PREFIX}"/bin/{wine{dump,maker},function_grep.pl} \
|
||||
"${D%/}${MY_MANDIR}"/man1/wine{dump,maker}.1 || die
|
||||
fi
|
||||
|
||||
# Remove wineconsole if neither backend is installed #551124
|
||||
if ! use X; then
|
||||
rm "${D%/}${MY_PREFIX}"/bin/wineconsole* || die
|
||||
rm "${D%/}${MY_MANDIR}"/man1/wineconsole* || die
|
||||
|
||||
if ! use mingw; then
|
||||
rm_wineconsole() {
|
||||
rm "${D%/}/usr/$(get_libdir)/wine-${WINE_VARIANT}"/wine/{,fakedlls/}wineconsole.exe* || die
|
||||
}
|
||||
else
|
||||
rm_wineconsole() {
|
||||
rm "${D%/}/usr/$(get_libdir)/wine-${WINE_VARIANT}"/wine/wineconsole.exe* || die
|
||||
}
|
||||
fi
|
||||
|
||||
multilib_foreach_abi rm_wineconsole
|
||||
fi
|
||||
|
||||
use abi_x86_32 && pax-mark psmr "${D%/}${MY_PREFIX}"/bin/wine{,-preloader} #255055
|
||||
use abi_x86_64 && pax-mark psmr "${D%/}${MY_PREFIX}"/bin/wine64{,-preloader}
|
||||
|
||||
# Avoid double prefix from dosym and make_wrapper
|
||||
MY_PREFIX=${MY_PREFIX#${EPREFIX}}
|
||||
|
||||
if use abi_x86_64 && ! use abi_x86_32; then
|
||||
dosym wine64 "${MY_PREFIX}"/bin/wine # 404331
|
||||
dosym wine64-preloader "${MY_PREFIX}"/bin/wine-preloader
|
||||
fi
|
||||
|
||||
# Failglob for binloops, shouldn't be necessary, but including to stay safe
|
||||
eshopts_push -s failglob #615218
|
||||
# Make wrappers for binaries for handling multiple variants
|
||||
# Note: wrappers instead of symlinks because some are shell which use basename
|
||||
local b
|
||||
for b in "${ED%/}${MY_PREFIX}"/bin/*; do
|
||||
make_wrapper "${b##*/}-${WINE_VARIANT}" "${MY_PREFIX}/bin/${b##*/}"
|
||||
done
|
||||
eshopts_pop
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
eselect wine register ${P}
|
||||
if [[ ${PN} == "wine-vanilla" ]]; then
|
||||
eselect wine register --vanilla ${P} || die
|
||||
fi
|
||||
|
||||
eselect wine update --all --if-unset || die
|
||||
|
||||
xdg_desktop_database_update
|
||||
|
||||
if ! use gecko; then
|
||||
ewarn "Without Wine Gecko, wine prefixes will not have a default"
|
||||
ewarn "implementation of iexplore. Many older windows applications"
|
||||
ewarn "rely upon the existence of an iexplore implementation, so"
|
||||
ewarn "you will likely need to install an external one, like via winetricks"
|
||||
fi
|
||||
if ! use mono; then
|
||||
ewarn "Without Wine Mono, wine prefixes will not have a default"
|
||||
ewarn "implementation of .NET. Many windows applications rely upon"
|
||||
ewarn "the existence of a .NET implementation, so you will likely need"
|
||||
ewarn "to install an external one, like via winetricks"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_prerm() {
|
||||
eselect wine deregister ${P}
|
||||
if [[ ${PN} == "wine-vanilla" ]]; then
|
||||
eselect wine deregister --vanilla ${P} || die
|
||||
fi
|
||||
|
||||
eselect wine update --all --if-unset || die
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
xdg_desktop_database_update
|
||||
}
|
Binary file not shown.
@ -1 +1,2 @@
|
||||
DIST asciinema-2.0.2.tar.gz 50058 BLAKE2B db04e21f41b76a7b2be1ca119b2c0a2ff29c9e525c35180d2506722b12c7d139087d0a102bd984cecd7d69e2da0ce8ac0f4bc83c631bc1373fecc8de2d29f107 SHA512 27ae831494c2532270940c3e0fedc87ebbdc1e9d8d24c37d1b63d3f74d9722d38e867fa1b46656249e5b0a84ed7ed32bb21da65f06e9c6a8b787aebdce2068f3
|
||||
DIST asciinema-2.1.0.tar.gz 82022 BLAKE2B 2f7c68caef228a6cb98f3503212edc393bd8f7a3653a369b0509d45a6e19b8373630fac88498a771c0eaa2a322a95ab816b268660b8b2384d1ec25c617b06a5a SHA512 df77ccea13e06e9c5feda22be2366aa702acf510fdc6cbc9a09b20d67ae43a47214891fbb5ef080ff9af9c3ee2f450694c306ee1dbdbdef3f9862dc6dee60750
|
||||
|
@ -0,0 +1,24 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Command line recorder for asciinema.org service"
|
||||
HOMEPAGE="https://asciinema.org/ https://pypi.org/project/asciinema/"
|
||||
SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc64 ~x86"
|
||||
|
||||
PATCHES=( "${FILESDIR}/${P}-setuptools.patch" )
|
||||
|
||||
distutils_enable_tests nose
|
||||
|
||||
python_prepare_all() {
|
||||
distutils-r1_python_prepare_all
|
||||
sed -i -e "s|data_files=\[('share/doc/asciinema|&-${PVR}|" setup.py || die
|
||||
}
|
@ -0,0 +1,23 @@
|
||||
From 014b1fead4c0130e14c99f54ed521d5d0535365a Mon Sep 17 00:00:00 2001
|
||||
From: Michael Palimaka <kensington@gentoo.org>
|
||||
Date: Tue, 26 Oct 2021 19:13:33 +1100
|
||||
Subject: [PATCH] setup.cfg: fix deprecated key usage
|
||||
|
||||
---
|
||||
setup.cfg | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/setup.cfg b/setup.cfg
|
||||
index bbd4d8d..17afd12 100644
|
||||
--- a/setup.cfg
|
||||
+++ b/setup.cfg
|
||||
@@ -1,5 +1,5 @@
|
||||
[metadata]
|
||||
-description-file = README.md
|
||||
+description_file = README.md
|
||||
license_file = LICENSE
|
||||
|
||||
[pycodestyle]
|
||||
--
|
||||
2.32.0
|
||||
|
Binary file not shown.
@ -0,0 +1,78 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit desktop qmake-utils xdg
|
||||
|
||||
MY_PV="${PV/_/}"
|
||||
DESCRIPTION="Free cross-platform LaTeX editor (fork from texmakerX)"
|
||||
HOMEPAGE="https://www.texstudio.org https://github.com/texstudio-org/texstudio"
|
||||
SRC_URI="https://github.com/texstudio-org/texstudio/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/${PN}-${MY_PV}"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
|
||||
IUSE="video"
|
||||
|
||||
DEPEND="
|
||||
app-text/hunspell:=
|
||||
app-text/poppler:=[qt5]
|
||||
>=dev-libs/quazip-0.7.3-r1:0=
|
||||
dev-qt/designer:5
|
||||
dev-qt/qtcore:5
|
||||
dev-qt/qtconcurrent:5
|
||||
dev-qt/qtdeclarative:5
|
||||
dev-qt/qtgui:5
|
||||
dev-qt/qtnetwork:5
|
||||
dev-qt/qtprintsupport:5
|
||||
dev-qt/qtsingleapplication[qt5(+),X]
|
||||
dev-qt/qtsvg:5
|
||||
dev-qt/qttest:5
|
||||
dev-qt/qtwidgets:5
|
||||
dev-qt/qtxml:5
|
||||
sys-libs/zlib
|
||||
x11-libs/libX11
|
||||
x11-libs/libXext
|
||||
video? ( >=media-libs/phonon-4.11.0 )
|
||||
"
|
||||
RDEPEND="
|
||||
${DEPEND}
|
||||
app-text/ghostscript-gpl
|
||||
app-text/psutils
|
||||
media-libs/netpbm
|
||||
virtual/latex-base
|
||||
"
|
||||
BDEPEND="virtual/pkgconfig"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-3.0.5-quazip1.patch" # TODO: upstream
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
xdg_src_prepare
|
||||
|
||||
# TODO: find hunspell quazip utilities/poppler-data qtsingleapplication -delete || die
|
||||
rm -r src/quazip || die
|
||||
|
||||
if use video; then
|
||||
sed "/^PHONON/s:$:true:g" -i ${PN}.pro || die
|
||||
fi
|
||||
|
||||
sed -e "/qtsingleapplication.pri/s/.*/CONFIG += qtsingleapplication/" \
|
||||
-i ${PN}.pro || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
eqmake5 USE_SYSTEM_HUNSPELL=1 USE_SYSTEM_QUAZIP=1
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local i
|
||||
for i in 16x16 22x22 32x32 48x48 64x64 128x128; do
|
||||
newicon -s ${i} utilities/${PN}${i}.png ${PN}.png
|
||||
done
|
||||
|
||||
emake DESTDIR="${D}" INSTALL_ROOT="${ED}" install
|
||||
}
|
Binary file not shown.
@ -1 +1,2 @@
|
||||
DIST gson-2.8.8-sources.tar.gz 393941 BLAKE2B ebdd1088a069eea58e5ea4e2eddea0d42064c53f7284778b1b7217c8bc7abeb7e14350e19d838af1d94f78c5c38aca6de0f37674b022f0e528ed65eef803c3f1 SHA512 f90ad679c99c5e9a6ee9e397e59ab1d7d94a9c82366902b808addc40ebbab101fdba7fc83e4666c4f35e52d8b127e6f901e65072a7de210496466074dcd043c5
|
||||
DIST gson-parent-2.8.7.tar.gz 391617 BLAKE2B 2c0fa3927d44c4a5c961518955dfbe6fee60dd61026002d0152d25d6f22dd4ac08b4323256af1053d0f17ef5d9f2a2a3ee86cedebd52a112d258e8c8c37e545d SHA512 044032b24ec1198d054807ccbfd91301307992b6e7d03a2e8578be79a2cdb28ba0ba57a954f11ad43022ec696c1522d242ed6b1045f831c9a370e0621e674fe0
|
||||
|
@ -0,0 +1,56 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# Skeleton command:
|
||||
# java-ebuilder --generate-ebuild --workdir . --pom gson/pom.xml --download-uri https://github.com/google/gson/archive/gson-parent-2.8.8.tar.gz --slot 2.6 --keywords "~amd64 ~ppc64 ~x86" --ebuild gson-2.8.8.ebuild
|
||||
|
||||
EAPI=7
|
||||
|
||||
JAVA_PKG_IUSE="doc source test"
|
||||
MAVEN_ID="com.google.code.gson:gson:2.8.8"
|
||||
JAVA_TESTING_FRAMEWORKS="junit-4"
|
||||
|
||||
inherit java-pkg-2 java-pkg-simple
|
||||
|
||||
DESCRIPTION="Gson JSON library"
|
||||
HOMEPAGE="https://github.com/google/gson/gson"
|
||||
SRC_URI="https://github.com/google/${PN}/archive/${PN}-parent-${PV}.tar.gz -> ${P}-sources.tar.gz"
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="2.6"
|
||||
KEYWORDS="~amd64 ~ppc64 ~x86"
|
||||
|
||||
# Compile dependencies
|
||||
# POM: ${PN}/pom.xml
|
||||
# test? com.github.wvengen:proguard-maven-plugin:2.4.0 -> !!!groupId-not-found!!!
|
||||
# test? junit:junit:4.13.2 -> >=dev-java/junit-4.13.2:4
|
||||
|
||||
DEPEND="
|
||||
>=virtual/jdk-1.8:*
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
>=virtual/jre-1.8:*
|
||||
"
|
||||
|
||||
S="${WORKDIR}/${PN}-${PN}-parent-${PV}/${PN}"
|
||||
|
||||
JAVA_SRC_DIR=(
|
||||
"src/main/java"
|
||||
"src/main/java-templates"
|
||||
)
|
||||
|
||||
JAVA_TEST_GENTOO_CLASSPATH="junit-4"
|
||||
JAVA_TEST_SRC_DIR="src/test/java"
|
||||
JAVA_TEST_RESOURCE_DIRS=(
|
||||
"src/test/resources"
|
||||
)
|
||||
|
||||
JAVA_TEST_EXCLUDES=(
|
||||
# requires the test class to be obfuscated using proguard which we do not have atm
|
||||
"com.google.gson.functional.EnumWithObfuscatedTest"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
sed -i "s/\${project.version}/${PV}/g" src/main/java-templates/com/google/gson/internal/GsonBuildConfig.java || die "Failed to set version"
|
||||
}
|
Binary file not shown.
Binary file not shown.
@ -1,3 +1,5 @@
|
||||
DIST Botan-2.17.3.tar.xz 5937596 BLAKE2B 605e71c959889b459bc26f17d310a33f26c9a51fe00db91db407ac5b96c9ff57bef67a401f71826e83e0d4eda2289c22685957289e6bb357f3693a1bce60f44d SHA512 ead0f144dfb9eca66d0e81e376d0d49f4b0b6bc1599f8cf52299e1753645b5b20100efa004ef5f9571f7bea88958f35db38367fc26f2603890f8f199cc890dbc
|
||||
DIST Botan-2.18.1.tar.xz 5953936 BLAKE2B 82f6a9563377542d059901adec0fc17a41b0184cf59af76084babec2591830314a4d7f8d3308eb393c4910c9b0e6c056625765f0d95b435f47dc94cf4b83b128 SHA512 2f11d1ab703d977a2d64504d2a2489ce56109a2a6c46c0dc7c8db428470ce511bcc0160f70baedad29237abd5e1622f2c155ea58c4dec4d3ae57ee7b350415c3
|
||||
DIST Botan-2.18.1.tar.xz.asc 488 BLAKE2B d7e6f18ba969b1fffe5aec27ec28839bb6eefac438b0971bb24293a9a1dc104d4355feaae4f8749ea9ea9a729e9f0c0368782c60c2f1aaed58620624248d09d2 SHA512 0cb24d544e31f347e649661d28fedaad4352cd5096ad41e1513c7915138981c7c099e4ee6025893ed829a65082aaded738a94018a8e0bc079f4f0fb63bbec262
|
||||
DIST Botan-2.18.2.tar.xz 5996928 BLAKE2B 5c5ac1e8e2de16a012aa5716138f4c2d2b8178f0a811993e5e297aa5ae9e7f6d5a4f182d50566f5848a4f93a88bcec622291a15370c4c017361ca65d3bb189bf SHA512 ccf9286ee891fb201065a0a6a991ce78ef7f5dd0caf04010527cd524b824ea470e5ce302853c1839e999a1b3dafb2e82eb298036a37d11f0cf3df5fa09529d9c
|
||||
DIST Botan-2.18.2.tar.xz.asc 488 BLAKE2B 03744e95f52031295162b63dc34d7e0fd9a6b01ae751a809eed5f24c46017fca253c8d42c88b568566f393f0e6dd55d488ef56223d164941386690e2accdf296 SHA512 6764bcdb52a3a28672bcf22f8c364c926511a7b7c9bc227ba15f1e4b2feb9b371a9a4bd9bb1ee43e85faacbef4df5ce39a158357b4ce3706a00f4220bea8d926
|
||||
|
@ -0,0 +1,165 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/botan.asc
|
||||
inherit python-r1 toolchain-funcs verify-sig
|
||||
|
||||
MY_P="Botan-${PV}"
|
||||
DESCRIPTION="C++ crypto library"
|
||||
HOMEPAGE="https://botan.randombit.net/"
|
||||
SRC_URI="https://botan.randombit.net/releases/${MY_P}.tar.xz"
|
||||
SRC_URI+=" verify-sig? ( https://botan.randombit.net/releases/${MY_P}.tar.xz.asc )"
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
LICENSE="BSD-2"
|
||||
SLOT="2/$(ver_cut 1-2)" # soname version
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~ppc-macos"
|
||||
IUSE="bindist doc boost bzip2 lzma python ssl static-libs sqlite zlib"
|
||||
|
||||
CPU_USE=(
|
||||
cpu_flags_arm_{aes,neon}
|
||||
cpu_flags_ppc_altivec
|
||||
cpu_flags_x86_{aes,avx2,popcnt,rdrand,sse2,ssse3,sse4_1,sse4_2}
|
||||
)
|
||||
|
||||
IUSE+=" ${CPU_USE[@]}"
|
||||
|
||||
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
||||
|
||||
# NOTE: Boost is needed at runtime too for the CLI tool.
|
||||
DEPEND="
|
||||
boost? ( >=dev-libs/boost-1.48:= )
|
||||
bzip2? ( >=app-arch/bzip2-1.0.5:= )
|
||||
lzma? ( app-arch/xz-utils:= )
|
||||
python? ( ${PYTHON_DEPS} )
|
||||
ssl? ( dev-libs/openssl:0=[bindist(-)=] )
|
||||
sqlite? ( dev-db/sqlite:3= )
|
||||
zlib? ( >=sys-libs/zlib-1.2.3:= )
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
BDEPEND="
|
||||
${PYTHON_DEPS}
|
||||
$(python_gen_any_dep '
|
||||
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
|
||||
')
|
||||
verify-sig? ( app-crypt/openpgp-keys-botan )
|
||||
"
|
||||
|
||||
# NOTE: Considering patching Botan?
|
||||
# Please see upstream's guidance:
|
||||
# https://botan.randombit.net/handbook/packaging.html#minimize-distribution-patches
|
||||
|
||||
python_check_deps() {
|
||||
if use doc ; then
|
||||
has_version -b "dev-python/sphinx[${PYTHON_USEDEP}]" || return 1
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
python_setup
|
||||
|
||||
local disable_modules=(
|
||||
$(usev !boost 'boost')
|
||||
$(usev bindist 'ecdsa')
|
||||
)
|
||||
|
||||
if [[ -z "${DISABLE_MODULES}" ]] ; then
|
||||
elog "Disabling module(s): ${disable_modules[@]}"
|
||||
fi
|
||||
|
||||
local chostarch="${CHOST%%-*}"
|
||||
|
||||
# Arch specific wrangling
|
||||
local myos=
|
||||
case ${CHOST} in
|
||||
*-darwin*)
|
||||
myos=darwin
|
||||
;;
|
||||
|
||||
*)
|
||||
myos=linux
|
||||
|
||||
if [[ ${CHOST} == *hppa* ]] ; then
|
||||
chostarch=parisc
|
||||
elif [[ ${PROFILE_ARCH} == "sparc64" ]] ; then
|
||||
chostarch="sparc32-v9"
|
||||
fi
|
||||
;;
|
||||
|
||||
esac
|
||||
|
||||
local pythonvers=()
|
||||
if use python ; then
|
||||
_append() {
|
||||
pythonvers+=( ${EPYTHON/python/} )
|
||||
}
|
||||
|
||||
python_foreach_impl _append
|
||||
fi
|
||||
|
||||
local myargs=(
|
||||
# Intrinsics
|
||||
# TODO: x86 RDSEED (new CPU_FLAGS_X86?)
|
||||
# TODO: POWER Crypto (new CPU_FLAGS_PPC?)
|
||||
$(usev !cpu_flags_arm_aes '--disable-armv8crypto')
|
||||
$(usev !cpu_flags_arm_neon '--disable-neon')
|
||||
$(usev !cpu_flags_ppc_altivec '--disable-altivec')
|
||||
$(usev !cpu_flags_x86_aes '--disable-aes-ni')
|
||||
$(usev !cpu_flags_x86_avx2 '--disable-avx2')
|
||||
$(usev !cpu_flags_x86_popcnt '--disable-bmi2')
|
||||
$(usev !cpu_flags_x86_rdrand '--disable-rdrand')
|
||||
$(usev !cpu_flags_x86_sse2 '--disable-sse2')
|
||||
$(usev !cpu_flags_x86_ssse3 '--disable-ssse3')
|
||||
$(usev !cpu_flags_x86_sse4_1 '--disable-sse4.1')
|
||||
$(usev !cpu_flags_x86_sse4_2 '--disable-sse4.2')
|
||||
|
||||
$(usev hppa '--without-stack-protector')
|
||||
|
||||
$(use_with boost)
|
||||
$(use_with bzip2)
|
||||
$(use_with doc documentation)
|
||||
$(use_with doc sphinx)
|
||||
$(use_with lzma)
|
||||
$(use_enable static-libs static-library)
|
||||
$(use_with ssl openssl)
|
||||
$(use_with sqlite sqlite3)
|
||||
$(use_with zlib)
|
||||
|
||||
--cpu=${chostarch}
|
||||
--docdir=share/doc
|
||||
--disable-modules=$( IFS=","; echo "${disable_modules[*]}" )
|
||||
--distribution-info="Gentoo ${PVR}"
|
||||
--libdir=$(get_libdir)
|
||||
|
||||
# Don't install Python bindings automatically
|
||||
# (do it manually later in the right place)
|
||||
# https://bugs.gentoo.org/723096
|
||||
--no-install-python-module
|
||||
|
||||
--os=${myos}
|
||||
--prefix="${EPREFIX}/usr"
|
||||
--with-endian="$(tc-endian)"
|
||||
--with-python-version=$( IFS=","; echo "${pythonvers[*]}" )
|
||||
--without-doxygen
|
||||
)
|
||||
|
||||
tc-export CC CXX AR
|
||||
|
||||
${EPYTHON} configure.py "${myargs[@]}" || die "configure.py failed with ${EPYTHON}"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
LD_LIBRARY_PATH="${S}" ./botan-test || die "Validation tests failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
# Manually install the Python bindings (bug #723096)
|
||||
if use python ; then
|
||||
python_foreach_impl python_domodule src/python/botan2.py
|
||||
fi
|
||||
}
|
Binary file not shown.
Binary file not shown.
@ -1,2 +1,3 @@
|
||||
DIST aesara-rel-2.2.2.tar.gz 8174668 BLAKE2B c95347e8b74f6600c3570177f86b7ebd7511899ed0ceb24a2d79a03a44ee498a8062b92fb79867f59b609f66315704ee92e28e12a5ab600d54d0d35ef799b66b SHA512 d5f62e42c36100b2fd25eba492590eb306b1394aa01bf2e90d43e84ac67701e5b756be6bc08d0e6b82fb1f37689dbbba1d7ef67c8525555a700a634d742056bb
|
||||
DIST aesara-rel-2.2.3.tar.gz 8179701 BLAKE2B 53ef58d6f0ab33e7efe3d0eaa2b55153a2ab29c958b48f52f814fecf7f5fa65424465470cde0ebb8d2ef1ced6968fd01217d9f7bd61acc8843cde1a9c0a94cbe SHA512 21414230c0be2c31e08fd371ee69c3bb7098b2134a5aec006abeca00a333e025fcbfd10ebdcbf54d243e1bc8c45f301a2c3443531ba5eaf0fe3a1ac5645ae4f5
|
||||
DIST aesara-rel-2.2.4.tar.gz 8180599 BLAKE2B 2b5e6ce0b0cbf0405d312f5b7c842057f05378c240c4dd36818c1b9d1b57667494c2472537e039ab16fac702a30a692bba5c8d5fc8801eb0c7e492d7f8e059b3 SHA512 3e0fe0cfa37f3b597ab94778dca60368aedbf9df79b4bb79812a190d77743addd1ddf5f234bf62c2dd744054204f03b84b358d0c58c27c28829b8fbe919bd151
|
||||
|
@ -0,0 +1 @@
|
||||
DIST aiopylgtv-0.4.1.tar.gz 23165 BLAKE2B a41406ae0456f44cfd0e233e2ccd86b2815646fd9677cebcaa5427f5c4aa9e1a5221e69b98d25f52ef38acc16c5a3c8f051ef70d8e1c508d555da90e8e05899a SHA512 86182ab5936714cfbbea05eeb1369321b12b687a562350e5f77617c55e613855457a9ca67dc84fd20db50d42b66a4f69bd495676813b45107fbe20ccd63210ae
|
@ -0,0 +1,23 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Python library to control webOS-based LG TV devices"
|
||||
HOMEPAGE="https://github.com/bendavid/aiopylgtv"
|
||||
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm"
|
||||
RESTRICT="test" # No tests.
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/numpy-1.17.0[${PYTHON_USEDEP}]
|
||||
dev-python/sqlitedict[${PYTHON_USEDEP}]
|
||||
>=dev-python/websockets-8.1[${PYTHON_USEDEP}]
|
||||
"
|
@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>chewi@gentoo.org</email>
|
||||
<name>James Le Cuirot</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">bendavid/aiopylgtv</remote-id>
|
||||
<remote-id type="pypi">aiopylgtv</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -1,33 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..10} pypy3 )
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="CFFI bindings to the Argon2 password hashing library"
|
||||
HOMEPAGE="https://github.com/hynek/argon2-cffi"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 arm arm64 ~ppc ~ppc64 ~riscv ~s390 ~sparc x86"
|
||||
|
||||
DEPEND="
|
||||
app-crypt/argon2:=
|
||||
virtual/python-cffi[${PYTHON_USEDEP}]
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-python/hypothesis[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
DOCS=( AUTHORS.rst CHANGELOG.rst FAQ.rst README.rst )
|
||||
|
||||
distutils_enable_sphinx docs
|
||||
distutils_enable_tests pytest
|
||||
|
||||
export ARGON2_CFFI_USE_SYSTEM=1
|
@ -1 +1,2 @@
|
||||
DIST flask-paginate-0.8.1.tar.gz 119751 BLAKE2B 954d39e13619784b1a79abc9f26fc2b3827309f9a3b77cacdd40c8f8d9dfec4c2967894e2d571e26841245da6d264dad71a412e425c87aa0c07b3520274de7c4 SHA512 ca226c79bd944a19760048c1289b554ee048f4f8d1f231f5545423843b7c0616d52ee8024cc68628e11c5f528972897d7fdb1630f87063bbd0e40c4dacf91224
|
||||
DIST flask-paginate-2021.10.26.tar.gz 120721 BLAKE2B dd37fa131baf20540620c350bca4a17f791df57c82fabd99e644891707259d330d4225fc666d3e5c31410bc17e10531bf735ab8a01e7129641fa81a9d8fbfe82 SHA512 86a782797a9401eecbbfc25c90834ed93d7c376c3eb6bc05f19edf7ad6f174aca01de9dc3b183c0c268e2995d81984fa1568e08aae8964e429c60f01b7b23736
|
||||
|
@ -0,0 +1,23 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..10} pypy3 )
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Pagination support for flask"
|
||||
HOMEPAGE="https://flask-paginate.readthedocs.io"
|
||||
SRC_URI="https://github.com/lixxu/flask-paginate/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
RDEPEND="dev-python/flask[${PYTHON_USEDEP}]"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
python_test() {
|
||||
epytest tests/tests.py
|
||||
}
|
@ -1 +0,0 @@
|
||||
DIST python-jwt-1.2.0.tar.gz 22578 BLAKE2B e8ed53c87f55f829e134955d03efd4c4a8e34e1eaa03f20a644db71d7b79d21564344a856206ad72aa5e0fa8cb8fa799d710a9669850c50c7aa588bfa59d7962 SHA512 c663e3fbb6476ae60b485e497f898aed2db84aa10c677ef2fc46160b355ea51af31ed259117fe20937809068e6c586e4f48b4e217722a47231f19be59f25295c
|
@ -1,17 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>williamh@gentoo.org</email>
|
||||
<name>William Hubbs</name>
|
||||
</maintainer>
|
||||
<maintainer type="person">
|
||||
<email>chutzpah@gentoo.org</email>
|
||||
<name>Patrick McLean</name>
|
||||
</maintainer>
|
||||
<stabilize-allarches/>
|
||||
<upstream>
|
||||
<remote-id type="github">GehirnInc/python-jwt</remote-id>
|
||||
<remote-id type="pypi">jwt</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -1,34 +0,0 @@
|
||||
# Copyright 2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="JSON Web Token library for python 3"
|
||||
HOMEPAGE="https://github.com/GehirnInc/python-jwt"
|
||||
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/hvac/hvac.git"
|
||||
else
|
||||
SRC_URI="https://github.com/GehirnInc/python-jwt/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64"
|
||||
fi
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
|
||||
BDEPEND="test? ( dev-python/freezegun[${PYTHON_USEDEP}] )"
|
||||
RDEPEND="
|
||||
dev-python/cryptography[${PYTHON_USEDEP}]
|
||||
!dev-python/pyjwt
|
||||
"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
python_prepare_all() {
|
||||
sed -i -e 's/^addopts =.*/addopts = jwt/' setup.cfg || die
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
@ -1,3 +1,2 @@
|
||||
DIST rdflib-5.0.0.tar.gz 818586 BLAKE2B d0046590b00211ccb4f0f586dc829c061a5f426b1cefed44a63d21d46396354b9012dbe0a63c8f9de138b25ca7d73ba624c49da6fb305ececd983c62c917fd8a SHA512 ba98ab6a7bb9d993d11c559a739761f297282eb9307f3e333db8dd1c6b365b408a59b701d823bef9be774a59b3f44f64c9444e3bb0115c0c549cb00945385dab
|
||||
DIST rdflib-6.0.1.tar.gz 1245483 BLAKE2B fd1c9837c25c8110bb44bd280803ec987ba865f8fea8187a1fca6173786deea65f462cf9f55f3c3c69d4fc18b01d37fc77b7b425e618c7b2e80324d7f5531f3e SHA512 d78c61a949a9c88297368820de386d289ef1722f5b2c4dad25a453c6bc9919fb98be23e682f739de6485f81746a1c338e4045c24ca058ed0b2848b81c0d34f52
|
||||
DIST rdflib-6.0.2.tar.gz 1273100 BLAKE2B aefd98c480710ece6fc5e621ebc0526eb24c61d36872280aa369baa2ce5bf90173190fa01d592861d2d6a9700fe9fc43a9ebe6d0b1f68851442e860ca702bf31 SHA512 0d14902d24582aad01289f5265feba3c533bbf5a0928b2e1032ba0af16d16cce46a92bde0f01ec2980351c1c13fe2cf4113445d2731e04400f0c20de73efa050
|
||||
|
@ -1,53 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
PYTHON_REQ_USE="sqlite?,threads(+)"
|
||||
DISTUTILS_USE_SETUPTOOLS=rdepend
|
||||
inherit distutils-r1 optfeature
|
||||
|
||||
DESCRIPTION="RDF library containing a triple store and parser/serializer"
|
||||
HOMEPAGE="https://github.com/RDFLib/rdflib https://pypi.org/project/rdflib/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86"
|
||||
IUSE="examples sqlite"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/isodate[${PYTHON_USEDEP}]
|
||||
dev-python/html5lib[${PYTHON_USEDEP}]
|
||||
dev-python/pyparsing[${PYTHON_USEDEP}]
|
||||
"
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-python/berkeleydb[${PYTHON_USEDEP}]
|
||||
dev-python/requests[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
distutils_enable_tests --install nose
|
||||
|
||||
python_prepare_all() {
|
||||
# these tests require internet access
|
||||
sed -e '/doctest/d' -i setup.cfg || die
|
||||
rm test/{test_sparql_service.py,test_graph.py,jsonld/test_onedotone.py} || die
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
|
||||
if use examples; then
|
||||
dodoc -r examples
|
||||
docompress -x /usr/share/doc/${PF}/examples
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
optfeature "support for sys-libs/db (Berkeley DB for MySQL)" dev-python/berkeleydb
|
||||
}
|
@ -1 +0,0 @@
|
||||
DIST Theano-PyMC-rel-1.1.2.tar.gz 12482962 BLAKE2B 427afab5b831f625b0825746d24d68d7c7a2ea853f83d0b543f9c16baf7f120bb26446a438fa69279cd55e7788b3f1aaa6c6ac787231415f49a53e34e6b92584 SHA512 f582e23803d392fc469ed4aa13ee8615b7ce367de0a95d57fb71217f578112bd1611df1fa580f19970e1e3681fc5dc7d80d9bb9c2c40e5956d1eb937a9271431
|
@ -1,12 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>sci@gentoo.org</email>
|
||||
<name>Gentoo Science Project</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="pypi">Theano-PyMC</remote-id>
|
||||
<remote-id type="github">pymc-devs/Theano-PyMC</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -1 +0,0 @@
|
||||
DIST Theano-1.0.5.tar.gz 2842778 BLAKE2B ee82e9487a5265a1040750ace70465c450134e70eba4e58752cbaa7d487be5fb3cce31b838429cb52f7bc31d32a20379e158ee289dd5732dd8b86a9ee36b6d89 SHA512 6bb27753957d32392ea793e39ea56eff94baafbb55e27488f9c0bbdb387172a6829e64f461f83dae192486d9764b72d815e3b8dc059b2af116b024fc7228a118
|
@ -1,17 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>sci@gentoo.org</email>
|
||||
<name>Gentoo Science Project</name>
|
||||
</maintainer>
|
||||
<longdescription lang="en">
|
||||
Theano is a numerical computation library for the Python. In Theano,
|
||||
computations are expressed using a NumPy-like syntax and compiled to
|
||||
run efficiently on either CPU or GPU architectures.
|
||||
</longdescription>
|
||||
<upstream>
|
||||
<remote-id type="pypi">Theano</remote-id>
|
||||
<remote-id type="github">Theano/Theano</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -1,53 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{7..9} )
|
||||
|
||||
inherit distutils-r1 optfeature
|
||||
|
||||
MY_P=${P^}
|
||||
|
||||
DESCRIPTION="Define and optimize multi-dimensional arrays mathematical expressions"
|
||||
HOMEPAGE="https://github.com/Theano/Theano"
|
||||
SRC_URI="mirror://pypi/${MY_P::1}/${MY_P%-*}/${MY_P}.tar.gz"
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~arm ~arm64 x86 ~amd64-linux ~x86-linux"
|
||||
# Tests sometimes hang. dev-python/theano-pymc is better. #738416
|
||||
# This package is on the way out anyway for that fork.
|
||||
RESTRICT="test"
|
||||
|
||||
BDEPEND="test? ( dev-python/parameterized[${PYTHON_USEDEP}] )"
|
||||
RDEPEND="
|
||||
dev-python/numpy[${PYTHON_USEDEP}]
|
||||
dev-python/six[${PYTHON_USEDEP}]
|
||||
dev-python/scipy[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
distutils_enable_tests nose
|
||||
|
||||
src_prepare() {
|
||||
sed -i -e "s/, 'flake8'//" setup.py || die
|
||||
|
||||
distutils-r1_src_prepare
|
||||
}
|
||||
|
||||
python_test() {
|
||||
distutils_install_for_testing
|
||||
nosetests --verbosity=3 -e test_format_flake8 || die
|
||||
}
|
||||
|
||||
# https://dev.gentoo.org/~mgorny/python-guide/concept.html#packaging-pkgutil-style-namespaces-in-gentoo
|
||||
python_install() {
|
||||
rm "${BUILD_DIR}"/lib/bin/__init__.py || die
|
||||
distutils-r1_python_install
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
optfeature "Make picture of Theano computation graph" dev-python/pydot-ng
|
||||
optfeature "Required for GPU/CPU code generation" dev-python/pygpu
|
||||
}
|
@ -1,2 +1 @@
|
||||
DIST ujson-4.1.0.tar.gz 7129002 BLAKE2B 0a9b8d90ca977b3abf7a3dbcb42fc40d9b6faa120ea59aac2aacb83faadf36cb3c0ca1073579f6bc5f94c6bd45550d82e55e1859b0afc7b3bed511e63626703f SHA512 b3661c23fcdad2dbbac1d92b319f85ad3b7b575c1e773f5207cc83811974ed8de0e9780acb50986fcdea1c4237d5ded8d10a9bb641468b198824f5da15b8ae0e
|
||||
DIST ujson-4.2.0.tar.gz 7129419 BLAKE2B 478ff6a3de9603478e9b747935ebc966f980dc832252974dda444b2ccb53878b3565ebdf7e8c223c687304d5f95607027d0652956d1f804cf2d80df6ce19be1a SHA512 894316eeeafe80eb3328958f4336c1989c9591caf84de5a9442f9d028c85f67d08e7c295e74f5828abc93ad56ffa2d12b98ebe0ecf4bca27ae37642fbffe47e4
|
||||
|
@ -1,22 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
PYTHON_COMPAT=( python3_{8..10} pypy3 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Ultra fast JSON encoder and decoder for Python"
|
||||
HOMEPAGE="https://pypi.org/project/ujson/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 arm arm64 x86 ~amd64-linux ~x86-linux"
|
||||
|
||||
BDEPEND="
|
||||
dev-python/setuptools_scm[${PYTHON_USEDEP}]
|
||||
test? ( dev-python/pytz[${PYTHON_USEDEP}] )
|
||||
"
|
||||
|
||||
distutils_enable_tests pytest
|
Binary file not shown.
Binary file not shown.
@ -0,0 +1,69 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
MY_P="Tix${PV}"
|
||||
DESCRIPTION="A widget library for Tcl/Tk"
|
||||
HOMEPAGE="http://tix.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/tix/${MY_P}-src.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos"
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
DEPEND="
|
||||
dev-lang/tk:0=
|
||||
x11-libs/libX11
|
||||
x11-libs/libXau
|
||||
x11-libs/libXdmcp"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}-tcl8.5.patch
|
||||
"${FILESDIR}"/${P}-tcl8.6.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
[[ ${CHOST} == *-darwin* ]] || eapply "${FILESDIR}"/${P}-link.patch
|
||||
|
||||
sed \
|
||||
-e 's:-Os::g' \
|
||||
-i configure tclconfig/tcl.m4 || die
|
||||
default
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
--with-tcl="${EPREFIX}/usr/$(get_libdir)" \
|
||||
--with-tk="${EPREFIX}/usr/$(get_libdir)"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
DOCS=( ChangeLog README.txt docs/*.txt )
|
||||
HTML_DOCS=(
|
||||
index.html
|
||||
ABOUT.html
|
||||
docs/*.html
|
||||
docs/html
|
||||
docs/img
|
||||
docs/tix-book
|
||||
)
|
||||
|
||||
default
|
||||
|
||||
# Bug #168897
|
||||
doheader generic/tix.h
|
||||
|
||||
# Bug #201138
|
||||
if [[ ${CHOST} == *-darwin* ]] ; then
|
||||
mv "${ED}"/usr/$(get_libdir)/${MY_P}/libTix{,.}${PV}.dylib || die
|
||||
dosym ${MY_P}/libTix.${PV}.dylib /usr/$(get_libdir)/libTix.${PV}.dylib
|
||||
else
|
||||
dosym ${MY_P}/lib${MY_P}.so /usr/$(get_libdir)/lib${MY_P}.so
|
||||
fi
|
||||
}
|
@ -1,7 +1,7 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
EAPI=7
|
||||
|
||||
MY_P="${PN}${PV}"
|
||||
|
Binary file not shown.
@ -1,2 +1,2 @@
|
||||
DIST linux-5.14.tar.xz 120669872 BLAKE2B 0047f5aaa3940dff97f4055ef544faafbbb5282128e6afe21d2f47d8dc8c395806a17016febfa050117d16f59e74b882cb8b9c5011d68f119c230d0a4d120524 SHA512 8e4f3ec3d36f774280f75dc7b004a43e09417af58f12e9c9f8348976659d4cfda7ad905f306f43fed66a27922e5c45db22e46bbfa7a0b9f365012380de3b6f64
|
||||
DIST patch-5.14.11.xz 447048 BLAKE2B 4d399284a42b14686f49596820fb86128d22fd585f0242b4787f550b7f43eb34a5eaaefa9258109f8e04b46c6946ab2ac23220a287f2bbd10aca9cf5ae2e8d4f SHA512 c85a9bb1a8e1eb5ab3e182fcbdc964f216111c89f2bdfa1855ff7522aac63ccad5d30a48ca3ce833643ff7fb3709992567270ee614988a6150803af43faccbfe
|
||||
DIST patch-5.14.14.xz 528644 BLAKE2B 3917c340eb1cd814b7fd40420e32baa84c6a062a7c52ab75301cfce8e59acf055f3c9ff38f4ae1590837f245607e294277001f0a0b53ee44b0056b83f98bc68f SHA512 258fa67ee6e6d13b4e92d361898313b4e2f3d9d0be883e5c5a0c436e51cf8bcb3eb5acb46272bb5df2bbf8390b81152e8244b1d6faf7299314589b90c95eebba
|
||||
|
@ -1,2 +1,3 @@
|
||||
DIST bpftrace-0.12.1.tar.gz 938043 BLAKE2B 3599c21d2381265ab5a7a3c0bf142dc7f79acb66fbb4f54b4100d042c21fc3c9e86297522bfe46f82ad5edbc2203314a6b02ff7cc07552c778b0726e681cb993 SHA512 a578499668bd2eb7342689b6c0ef3db6ca263a971d8e6f1b9a68c502c27170d24ede212a0fc2a72263e72aff58924f488a5c80d447397503a08512dc47b63345
|
||||
DIST bpftrace-0.13.0.tar.gz 952412 BLAKE2B 8e3f6f28b0c652e2257e1a970b80b87ba5ac5e94dc26719bffe16a0bbff48efc2b9ab5bc03e5fe4b764f5c9c3df16039d931f1f13c1f14327880838a373edacc SHA512 16b3f11c365cc7e306045a5cb6bcf6c66b92d746884f6587ce7cc4c76841b284757bff7b38b9838eb3db129e996e4f1b13afec34da57981362dadef8460816d0
|
||||
DIST bpftrace-0.14.0.tar.gz 991314 BLAKE2B 3222068d7f84c13f736197cef2d188fa31a25db6bd266afe5cbacb1c062155b5ebd5d0310fbad56c15574a795766a33b12624f0252b0bc0677bf05324f414df5 SHA512 78f2d9a4d54c0dda1947b924a828777b402befc3a05031b609da4d256907df1e64f946454a9be7317449f49706f02a881febc4e63d2ef2f4e76924ea19e36ddb
|
||||
|
@ -0,0 +1,98 @@
|
||||
# Copyright 2019-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit toolchain-funcs llvm linux-info cmake
|
||||
|
||||
DESCRIPTION="High-level tracing language for eBPF"
|
||||
HOMEPAGE="https://github.com/iovisor/bpftrace"
|
||||
|
||||
if [[ ${PV} =~ 9{4,} ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/iovisor/${PN}"
|
||||
BDEPEND=""
|
||||
else
|
||||
MY_PV="${PV//_/}"
|
||||
SRC_URI="https://github.com/iovisor/${PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
BDEPEND="app-arch/xz-utils "
|
||||
fi
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
IUSE="fuzzing test"
|
||||
|
||||
COMMON_DEPEND="
|
||||
dev-libs/libbpf:=
|
||||
>=dev-util/bcc-0.13.0:=
|
||||
dev-util/systemtap
|
||||
>=sys-devel/llvm-6:=[llvm_targets_BPF(+)]
|
||||
<=sys-devel/llvm-13:=[llvm_targets_BPF(+)]
|
||||
<=sys-devel/clang-13:=
|
||||
sys-libs/binutils-libs:=
|
||||
virtual/libelf
|
||||
"
|
||||
DEPEND="
|
||||
${COMMON_DEPEND}
|
||||
dev-libs/cereal:=
|
||||
test? ( dev-cpp/gtest )
|
||||
"
|
||||
RDEPEND="
|
||||
${COMMON_DEPEND}
|
||||
"
|
||||
BDEPEND+="
|
||||
>=dev-util/cmake-3.8
|
||||
sys-devel/flex
|
||||
sys-devel/bison
|
||||
"
|
||||
|
||||
S="${WORKDIR}/${PN}-${MY_PV:-${PV}}"
|
||||
QA_DT_NEEDED="/usr/lib.*/libbpftraceresources.so"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/bpftrace-0.14.0-install-libs.patch"
|
||||
"${FILESDIR}/bpftrace-0.14.0-dont-compress-man.patch"
|
||||
"${FILESDIR}/bpftrace-0.11.4-old-kernels.patch"
|
||||
"${FILESDIR}/bpftrace-0.12.0-fuzzing-build.patch"
|
||||
)
|
||||
|
||||
# lots of fixing needed
|
||||
RESTRICT="test"
|
||||
|
||||
pkg_pretend() {
|
||||
local CONFIG_CHECK="
|
||||
~BPF
|
||||
~BPF_EVENTS
|
||||
~BPF_JIT
|
||||
~BPF_SYSCALL
|
||||
~FTRACE_SYSCALLS
|
||||
~HAVE_EBPF_JIT
|
||||
"
|
||||
|
||||
check_extra_config
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
LLVM_MAX_SLOT=12 llvm_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
cmake_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local -a mycmakeargs=(
|
||||
-DSTATIC_LINKING:BOOL=OFF
|
||||
-DBUILD_TESTING:BOOL=OFF
|
||||
-DBUILD_FUZZ:BOOL=$(usex fuzzing)
|
||||
-DENABLE_MAN:BOOL=OFF
|
||||
)
|
||||
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake_src_install
|
||||
doman man/man8/*.?
|
||||
}
|
@ -0,0 +1,45 @@
|
||||
diff --git a/man/adoc/CMakeLists.txt b/man/adoc/CMakeLists.txt
|
||||
index 6f785d9d..c046b79f 100644
|
||||
--- a/man/adoc/CMakeLists.txt
|
||||
+++ b/man/adoc/CMakeLists.txt
|
||||
@@ -1,7 +1,5 @@
|
||||
-find_program(GZIP gzip REQUIRED)
|
||||
find_program(ASCIIDOCTOR asciidoctor REQUIRED)
|
||||
file(GLOB FILES *.adoc)
|
||||
-set(GZFILES "")
|
||||
foreach(FIL ${FILES})
|
||||
get_filename_component(NAME ${FIL} NAME_WE)
|
||||
set(MANPAGE_FILE ${CMAKE_CURRENT_BINARY_DIR}/${NAME}.8)
|
||||
@@ -10,12 +8,6 @@ foreach(FIL ${FILES})
|
||||
add_custom_command(OUTPUT ${MANPAGE_FILE}
|
||||
COMMAND ${ASCIIDOCTOR} ${FIL} -b manpage -o - > ${MANPAGE_FILE}
|
||||
DEPENDS ${FIL})
|
||||
-
|
||||
- add_custom_command(OUTPUT ${GZ_MANPAGE_FILE}
|
||||
- COMMAND ${GZIP} -c ${MANPAGE_FILE} > ${GZ_MANPAGE_FILE}
|
||||
- DEPENDS ${MANPAGE_FILE})
|
||||
-
|
||||
- list(APPEND GZFILES ${GZ_MANPAGE_FILE})
|
||||
endforeach()
|
||||
-add_custom_target(adoc_man DEPENDS ${GZFILES})
|
||||
-install(FILES ${GZFILES} DESTINATION ${CMAKE_INSTALL_MANDIR}/man8)
|
||||
+add_custom_target(adoc_man DEPENDS ${FILES})
|
||||
+install(FILES ${FILES} DESTINATION ${CMAKE_INSTALL_MANDIR}/man8)
|
||||
diff --git a/man/man8/CMakeLists.txt b/man/man8/CMakeLists.txt
|
||||
index 2a316cd9..2207cf80 100644
|
||||
--- a/man/man8/CMakeLists.txt
|
||||
+++ b/man/man8/CMakeLists.txt
|
||||
@@ -1,12 +1,3 @@
|
||||
-find_program(GZIP gzip REQUIRED)
|
||||
file(GLOB FILES *.8)
|
||||
-set(GZFILES "")
|
||||
-foreach(FIL ${FILES})
|
||||
- get_filename_component(NAME ${FIL} NAME)
|
||||
- add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${NAME}.gz
|
||||
- COMMAND ${GZIP} -c ${FIL} > ${CMAKE_CURRENT_BINARY_DIR}/${NAME}.gz
|
||||
- DEPENDS ${FIL})
|
||||
- list(APPEND GZFILES "${CMAKE_CURRENT_BINARY_DIR}/${NAME}.gz")
|
||||
-endforeach()
|
||||
add_custom_target(man_man DEPENDS ${GZFILES})
|
||||
-install(FILES ${GZFILES} DESTINATION ${CMAKE_INSTALL_MANDIR}/man8)
|
||||
+install(FILES ${FILES} DESTINATION ${CMAKE_INSTALL_MANDIR}/man8)
|
@ -0,0 +1,193 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index ea334df0..53e4dc8e 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -103,9 +103,10 @@ find_package(FLEX REQUIRED)
|
||||
bison_target(bison_parser src/parser.yy ${CMAKE_BINARY_DIR}/parser.tab.cc VERBOSE)
|
||||
flex_target(flex_lexer src/lexer.l ${CMAKE_BINARY_DIR}/lex.yy.cc)
|
||||
add_flex_bison_dependency(flex_lexer bison_parser)
|
||||
-add_library(parser ${BISON_bison_parser_OUTPUTS} ${FLEX_flex_lexer_OUTPUTS})
|
||||
-target_compile_options(parser PRIVATE "-w")
|
||||
-target_include_directories(parser PUBLIC src src/ast ${CMAKE_BINARY_DIR})
|
||||
+add_library(bpftraceparser ${BISON_bison_parser_OUTPUTS} ${FLEX_flex_lexer_OUTPUTS})
|
||||
+target_compile_options(bpftraceparser PRIVATE "-w")
|
||||
+target_include_directories(bpftraceparser PUBLIC src src/ast ${CMAKE_BINARY_DIR})
|
||||
+install(TARGETS bpftraceparser LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||
|
||||
include(CheckSymbolExists)
|
||||
set(CMAKE_REQUIRED_DEFINITIONS -D_GNU_SOURCE)
|
||||
diff --git a/resources/CMakeLists.txt b/resources/CMakeLists.txt
|
||||
index a95c60a1..f5c4d676 100644
|
||||
--- a/resources/CMakeLists.txt
|
||||
+++ b/resources/CMakeLists.txt
|
||||
@@ -1,6 +1,7 @@
|
||||
-add_library(resources headers.cpp)
|
||||
+add_library(bpftraceresources headers.cpp)
|
||||
|
||||
-target_include_directories(resources PUBLIC ../src)
|
||||
+target_include_directories(bpftraceresources PUBLIC ../src)
|
||||
+install(TARGETS bpftraceresources LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||
|
||||
function(embed_headers output)
|
||||
file(WRITE ${output} "#include \"headers.h\"\n\nnamespace bpftrace {\n")
|
||||
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
|
||||
index 47a050e2..1bbcf882 100644
|
||||
--- a/src/CMakeLists.txt
|
||||
+++ b/src/CMakeLists.txt
|
||||
@@ -40,7 +40,7 @@ add_library(runtime
|
||||
${BFD_DISASM_SRC}
|
||||
)
|
||||
# Ensure flex+bison outputs are built first
|
||||
-add_dependencies(runtime parser)
|
||||
+add_dependencies(runtime bpftraceparser)
|
||||
|
||||
add_library(libbpftrace
|
||||
build_info.cpp
|
||||
@@ -57,6 +57,7 @@ add_executable(${BPFTRACE}
|
||||
)
|
||||
|
||||
install(TARGETS ${BPFTRACE} DESTINATION ${CMAKE_INSTALL_BINDIR})
|
||||
+install(TARGETS libbpftrace LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||
target_link_libraries(${BPFTRACE} libbpftrace)
|
||||
|
||||
if (BUILD_FUZZ)
|
||||
@@ -109,6 +110,7 @@ target_include_directories(runtime PRIVATE ${CMAKE_BINARY_DIR})
|
||||
target_include_directories(runtime PRIVATE ${CMAKE_SOURCE_DIR}/src)
|
||||
target_include_directories(runtime PRIVATE ${CMAKE_SOURCE_DIR}/src/ast)
|
||||
target_compile_definitions(runtime PRIVATE ${BPFTRACE_FLAGS})
|
||||
+install(TARGETS runtime LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||
target_compile_definitions(libbpftrace PRIVATE ${BPFTRACE_FLAGS})
|
||||
|
||||
# Linking
|
||||
@@ -121,7 +123,8 @@ if(STATIC_LINKING)
|
||||
endif(STATIC_LINKING)
|
||||
|
||||
|
||||
-target_link_libraries(libbpftrace parser resources runtime aot ast arch cxxdemangler_llvm)
|
||||
+target_link_libraries(libbpftrace bpftraceparser bpftraceresources
|
||||
+ runtime aot bpftraceast bpftracearch cxxdemangler_llvm)
|
||||
|
||||
if (LIBBPF_BTF_DUMP_FOUND)
|
||||
target_include_directories(runtime PUBLIC ${LIBBPF_INCLUDE_DIRS})
|
||||
diff --git a/src/aot/CMakeLists.txt b/src/aot/CMakeLists.txt
|
||||
index 291d53f2..308691ee 100644
|
||||
--- a/src/aot/CMakeLists.txt
|
||||
+++ b/src/aot/CMakeLists.txt
|
||||
@@ -10,7 +10,7 @@ if(NOT LIBBCC_BPF_CONTAINS_RUNTIME)
|
||||
endif()
|
||||
|
||||
add_executable(bpftrace-aotrt aot_main.cpp)
|
||||
-target_link_libraries(bpftrace-aotrt aot runtime arch ast_defs cxxdemangler_stdlib)
|
||||
+target_link_libraries(bpftrace-aotrt aot runtime bpftracearch ast_defs cxxdemangler_stdlib)
|
||||
install(TARGETS bpftrace-aotrt DESTINATION ${CMAKE_INSTALL_BINDIR})
|
||||
|
||||
# Linking
|
||||
@@ -27,3 +27,4 @@ if(BUILD_ASAN)
|
||||
target_compile_options(bpftrace-aotrt PUBLIC "-fsanitize=address")
|
||||
target_link_options(bpftrace-aotrt PUBLIC "-fsanitize=address")
|
||||
endif()
|
||||
+install(TARGETS aot LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||
diff --git a/src/arch/CMakeLists.txt b/src/arch/CMakeLists.txt
|
||||
index 76bb217e..4ad0f626 100644
|
||||
--- a/src/arch/CMakeLists.txt
|
||||
+++ b/src/arch/CMakeLists.txt
|
||||
@@ -1,15 +1,17 @@
|
||||
if(CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64")
|
||||
- add_library(arch aarch64.cpp)
|
||||
+ add_library(bpftracearch aarch64.cpp)
|
||||
elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL "ppc64" OR
|
||||
CMAKE_SYSTEM_PROCESSOR STREQUAL "ppc64le")
|
||||
- add_library(arch ppc64.cpp)
|
||||
+ add_library(bpftracearch ppc64.cpp)
|
||||
elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL "s390" OR
|
||||
CMAKE_SYSTEM_PROCESSOR STREQUAL "s390x")
|
||||
- add_library(arch s390.cpp)
|
||||
+ add_library(bpftracearch s390.cpp)
|
||||
elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64")
|
||||
- add_library(arch x86_64.cpp)
|
||||
+ add_library(bpftracearch x86_64.cpp)
|
||||
elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL "mips64")
|
||||
- add_library(arch mips64.cpp)
|
||||
+ add_library(bpftracearch mips64.cpp)
|
||||
else()
|
||||
message(FATAL_ERROR "Unsupported architecture: ${CMAKE_SYSTEM_PROCESSOR}")
|
||||
endif()
|
||||
+
|
||||
+install(TARGETS bpftracearch LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||
diff --git a/src/ast/CMakeLists.txt b/src/ast/CMakeLists.txt
|
||||
index 014295cd..c35f6ac6 100644
|
||||
--- a/src/ast/CMakeLists.txt
|
||||
+++ b/src/ast/CMakeLists.txt
|
||||
@@ -1,6 +1,6 @@
|
||||
add_library(ast_defs ast.cpp)
|
||||
|
||||
-add_library(ast
|
||||
+add_library(bpftraceast
|
||||
async_event_types.cpp
|
||||
attachpoint_parser.cpp
|
||||
int_parser.cpp
|
||||
@@ -20,11 +20,13 @@ add_library(ast
|
||||
target_include_directories(ast_defs PUBLIC ${CMAKE_SOURCE_DIR}/src)
|
||||
target_include_directories(ast_defs PUBLIC ${CMAKE_SOURCE_DIR}/src/ast)
|
||||
target_include_directories(ast_defs PUBLIC ${CMAKE_BINARY_DIR})
|
||||
-target_link_libraries(ast ast_defs arch bpforc parser)
|
||||
+target_link_libraries(bpftraceast ast_defs bpftracearch bpforc bpftraceparser)
|
||||
+install(TARGETS ast_defs LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||
+install(TARGETS bpftraceast LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||
|
||||
-add_dependencies(ast_defs parser)
|
||||
+add_dependencies(ast_defs bpftraceparser)
|
||||
|
||||
-target_compile_definitions(ast PRIVATE ${BPFTRACE_FLAGS})
|
||||
+target_compile_definitions(bpftraceast PRIVATE ${BPFTRACE_FLAGS})
|
||||
|
||||
if (STATIC_LINKING)
|
||||
set(clang_libs
|
||||
@@ -55,11 +57,11 @@ if (STATIC_LINKING)
|
||||
|
||||
|
||||
if(EMBED_USE_LLVM)
|
||||
- target_link_libraries(ast "-Wl,--start-group" ${CLANG_EMBEDDED_CMAKE_TARGETS} ${LLVM_EMBEDDED_CMAKE_TARGETS} "-Wl,--end-group")
|
||||
+ target_link_libraries(bpftraceast "-Wl,--start-group" ${CLANG_EMBEDDED_CMAKE_TARGETS} ${LLVM_EMBEDDED_CMAKE_TARGETS} "-Wl,--end-group")
|
||||
else()
|
||||
llvm_map_components_to_libnames(llvm_libs ${llvm_lib_names})
|
||||
- target_link_libraries(ast ${clang_libs})
|
||||
- target_link_libraries(ast ${llvm_libs})
|
||||
+ target_link_libraries(bpftraceast ${clang_libs})
|
||||
+ target_link_libraries(bpftraceast ${llvm_libs})
|
||||
endif()
|
||||
|
||||
if(STATIC_LIBC)
|
||||
@@ -69,13 +71,13 @@ if (STATIC_LINKING)
|
||||
else()
|
||||
find_library(found_LLVM LLVM HINTS ${LLVM_LIBRARY_DIRS})
|
||||
if(found_LLVM)
|
||||
- target_link_libraries(ast LLVM)
|
||||
+ target_link_libraries(bpftraceast LLVM)
|
||||
else()
|
||||
llvm_map_components_to_libnames(_llvm_libs bpfcodegen ipo irreader mcjit orcjit ${LLVM_TARGETS_TO_BUILD})
|
||||
llvm_expand_dependencies(llvm_libs ${_llvm_libs})
|
||||
- target_link_libraries(ast ${llvm_libs})
|
||||
+ target_link_libraries(bpftraceast ${llvm_libs})
|
||||
endif()
|
||||
- target_link_libraries(ast libclang)
|
||||
+ target_link_libraries(bpftraceast libclang)
|
||||
endif()
|
||||
|
||||
add_subdirectory(bpforc)
|
||||
diff --git a/src/ast/bpforc/CMakeLists.txt b/src/ast/bpforc/CMakeLists.txt
|
||||
index 3f6dbefa..8ccfbb2b 100644
|
||||
--- a/src/ast/bpforc/CMakeLists.txt
|
||||
+++ b/src/ast/bpforc/CMakeLists.txt
|
||||
@@ -1 +1,2 @@
|
||||
add_library(bpforc bpforc.cpp)
|
||||
+install(TARGETS bpforc LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||
diff --git a/src/cxxdemangler/CMakeLists.txt b/src/cxxdemangler/CMakeLists.txt
|
||||
index 04cfcdd9..5677aa4b 100644
|
||||
--- a/src/cxxdemangler/CMakeLists.txt
|
||||
+++ b/src/cxxdemangler/CMakeLists.txt
|
||||
@@ -1,2 +1,4 @@
|
||||
add_library(cxxdemangler_stdlib cxxdemangler_stdlib.cpp)
|
||||
add_library(cxxdemangler_llvm cxxdemangler_llvm.cpp)
|
||||
+install(TARGETS cxxdemangler_stdlib LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||
+install(TARGETS cxxdemangler_llvm LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
@ -0,0 +1,189 @@
|
||||
# Copyright 2017-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# Auto-Generated by cargo-ebuild 0.3.0
|
||||
|
||||
EAPI=7
|
||||
|
||||
CRATES="
|
||||
cargo-c-0.9.5+cargo-0.57
|
||||
adler-1.0.2
|
||||
aho-corasick-0.7.18
|
||||
ansi_term-0.11.0
|
||||
anyhow-1.0.44
|
||||
arrayvec-0.5.2
|
||||
atty-0.2.14
|
||||
autocfg-1.0.1
|
||||
bitflags-1.3.2
|
||||
bitmaps-2.1.0
|
||||
bstr-0.2.17
|
||||
bytesize-1.1.0
|
||||
cargo-0.57.0
|
||||
cargo-platform-0.1.2
|
||||
cargo-util-0.1.1
|
||||
cbindgen-0.20.0
|
||||
cc-1.0.71
|
||||
cfg-if-1.0.0
|
||||
clap-2.33.3
|
||||
commoncrypto-0.2.0
|
||||
commoncrypto-sys-0.2.0
|
||||
core-foundation-0.9.2
|
||||
core-foundation-sys-0.8.3
|
||||
crates-io-0.33.0
|
||||
crc32fast-1.2.1
|
||||
crossbeam-utils-0.8.5
|
||||
crypto-hash-0.3.4
|
||||
curl-0.4.39
|
||||
curl-sys-0.4.49+curl-7.79.1
|
||||
either-1.6.1
|
||||
env_logger-0.9.0
|
||||
filetime-0.2.15
|
||||
flate2-1.0.22
|
||||
fnv-1.0.7
|
||||
foreign-types-0.3.2
|
||||
foreign-types-shared-0.1.1
|
||||
form_urlencoded-1.0.1
|
||||
fwdansi-1.1.0
|
||||
getrandom-0.2.3
|
||||
git2-0.13.23
|
||||
git2-curl-0.14.1
|
||||
glob-0.3.0
|
||||
globset-0.4.8
|
||||
hashbrown-0.11.2
|
||||
heck-0.3.3
|
||||
hermit-abi-0.1.19
|
||||
hex-0.3.2
|
||||
hex-0.4.3
|
||||
home-0.5.3
|
||||
humantime-2.1.0
|
||||
idna-0.2.3
|
||||
ignore-0.4.18
|
||||
im-rc-15.0.0
|
||||
indexmap-1.7.0
|
||||
itertools-0.10.1
|
||||
itoa-0.4.8
|
||||
jobserver-0.1.24
|
||||
lazy_static-1.4.0
|
||||
lazycell-1.3.0
|
||||
libc-0.2.104
|
||||
libgit2-sys-0.12.24+1.3.0
|
||||
libnghttp2-sys-0.1.7+1.45.0
|
||||
libssh2-sys-0.2.23
|
||||
libz-sys-1.1.3
|
||||
log-0.4.14
|
||||
matches-0.1.9
|
||||
memchr-2.4.1
|
||||
miniz_oxide-0.4.4
|
||||
miow-0.3.7
|
||||
num_cpus-1.13.0
|
||||
once_cell-1.8.0
|
||||
opener-0.5.0
|
||||
openssl-0.10.36
|
||||
openssl-probe-0.1.4
|
||||
openssl-src-111.16.0+1.1.1l
|
||||
openssl-sys-0.9.67
|
||||
percent-encoding-2.1.0
|
||||
pkg-config-0.3.20
|
||||
ppv-lite86-0.2.14
|
||||
proc-macro-error-1.0.4
|
||||
proc-macro-error-attr-1.0.4
|
||||
proc-macro2-1.0.30
|
||||
quote-1.0.10
|
||||
rand-0.8.4
|
||||
rand_chacha-0.3.1
|
||||
rand_core-0.5.1
|
||||
rand_core-0.6.3
|
||||
rand_hc-0.3.1
|
||||
rand_xoshiro-0.4.0
|
||||
redox_syscall-0.2.10
|
||||
regex-1.5.4
|
||||
regex-automata-0.1.10
|
||||
regex-syntax-0.6.25
|
||||
remove_dir_all-0.5.3
|
||||
rustc-workspace-hack-1.0.0
|
||||
rustfix-0.6.0
|
||||
ryu-1.0.5
|
||||
same-file-1.0.6
|
||||
schannel-0.1.19
|
||||
semver-1.0.4
|
||||
serde-1.0.130
|
||||
serde_derive-1.0.130
|
||||
serde_ignored-0.1.2
|
||||
serde_json-1.0.68
|
||||
shell-escape-0.1.5
|
||||
sized-chunks-0.6.5
|
||||
socket2-0.4.2
|
||||
strip-ansi-escapes-0.1.1
|
||||
strsim-0.8.0
|
||||
structopt-0.3.25
|
||||
structopt-derive-0.4.18
|
||||
syn-1.0.80
|
||||
tar-0.4.37
|
||||
tempfile-3.2.0
|
||||
termcolor-1.1.2
|
||||
textwrap-0.11.0
|
||||
thread_local-1.1.3
|
||||
tinyvec-1.5.0
|
||||
tinyvec_macros-0.1.0
|
||||
toml-0.5.8
|
||||
typenum-1.14.0
|
||||
unicode-bidi-0.3.7
|
||||
unicode-normalization-0.1.19
|
||||
unicode-segmentation-1.8.0
|
||||
unicode-width-0.1.9
|
||||
unicode-xid-0.2.2
|
||||
url-2.2.2
|
||||
utf8parse-0.2.0
|
||||
vcpkg-0.2.15
|
||||
vec_map-0.8.2
|
||||
version_check-0.9.3
|
||||
vte-0.10.1
|
||||
vte_generate_state_changes-0.1.1
|
||||
walkdir-2.3.2
|
||||
wasi-0.10.2+wasi-snapshot-preview1
|
||||
winapi-0.3.9
|
||||
winapi-i686-pc-windows-gnu-0.4.0
|
||||
winapi-util-0.1.5
|
||||
winapi-x86_64-pc-windows-gnu-0.4.0
|
||||
"
|
||||
|
||||
inherit cargo
|
||||
|
||||
MY_P="${PN}-0.9.5+cargo-0.57"
|
||||
DESCRIPTION="Helper program to build and install c-like libraries"
|
||||
# Double check the homepage as the cargo_metadata crate
|
||||
# does not provide this value so instead repository is used
|
||||
HOMEPAGE="https://github.com/lu-zero/cargo-c"
|
||||
SRC_URI="$(cargo_crate_uris)"
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
RESTRICT="mirror"
|
||||
# License set may be more restrictive as OR is not respected
|
||||
# use cargo-license for a more accurate license picture
|
||||
LICENSE="Apache-2.0 MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86"
|
||||
|
||||
RDEPEND="dev-libs/libgit2:=
|
||||
dev-libs/openssl:0=
|
||||
net-libs/libssh2:=
|
||||
net-misc/curl[ssl]
|
||||
sys-libs/zlib
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
BDEPEND=">=virtual/rust-1.56.0"
|
||||
|
||||
src_unpack() {
|
||||
cargo_src_unpack
|
||||
|
||||
tar -xf "${DISTDIR}"/"${MY_P}.crate" -C "${WORKDIR}" || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# Some crates will auto-build and statically link C libraries(!)
|
||||
# Tracker bug #709568
|
||||
export LIBSSH2_SYS_USE_PKG_CONFIG=1
|
||||
export LIBGIT2_SYS_USE_PKG_CONFIG=1
|
||||
export PKG_CONFIG_ALLOW_CROSS=1
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue