parent
f6ea1e493a
commit
b1583b22f2
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,273 @@
|
|||||||
|
# Copyright 2021-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
CRATES="
|
||||||
|
adler-1.0.2
|
||||||
|
adler32-1.2.0
|
||||||
|
ahash-0.4.7
|
||||||
|
ahash-0.7.6
|
||||||
|
aho-corasick-0.7.18
|
||||||
|
ansi_colours-1.1.1
|
||||||
|
ansi_term-0.12.1
|
||||||
|
anyhow-1.0.56
|
||||||
|
argh-0.1.7
|
||||||
|
argh_derive-0.1.7
|
||||||
|
argh_shared-0.1.7
|
||||||
|
atty-0.2.14
|
||||||
|
autocfg-1.1.0
|
||||||
|
base64-0.13.0
|
||||||
|
bet-1.0.1
|
||||||
|
bincode-1.3.3
|
||||||
|
bitflags-1.3.2
|
||||||
|
bstr-0.2.17
|
||||||
|
bytemuck-1.8.0
|
||||||
|
byteorder-1.4.3
|
||||||
|
cc-1.0.73
|
||||||
|
cfg-if-1.0.0
|
||||||
|
char_reader-0.1.1
|
||||||
|
chrono-0.4.19
|
||||||
|
clap-2.34.0
|
||||||
|
cli-log-0.1.0
|
||||||
|
cli-log-2.0.0
|
||||||
|
clipboard-win-4.4.1
|
||||||
|
color_quant-1.1.0
|
||||||
|
coolor-0.3.1
|
||||||
|
crc32fast-1.3.2
|
||||||
|
crokey-0.4.0
|
||||||
|
crokey-proc_macros-0.4.0
|
||||||
|
crossbeam-0.8.1
|
||||||
|
crossbeam-channel-0.5.2
|
||||||
|
crossbeam-deque-0.8.1
|
||||||
|
crossbeam-epoch-0.9.7
|
||||||
|
crossbeam-queue-0.3.4
|
||||||
|
crossbeam-utils-0.8.7
|
||||||
|
crossterm-0.19.0
|
||||||
|
crossterm-0.22.1
|
||||||
|
crossterm_winapi-0.7.0
|
||||||
|
crossterm_winapi-0.9.0
|
||||||
|
csv-1.1.6
|
||||||
|
csv-core-0.1.10
|
||||||
|
csv2svg-0.1.6
|
||||||
|
custom_error-1.9.2
|
||||||
|
deflate-0.8.6
|
||||||
|
deser-hjson-1.0.2
|
||||||
|
directories-3.0.2
|
||||||
|
directories-next-2.0.0
|
||||||
|
dirs-sys-0.3.6
|
||||||
|
dirs-sys-next-0.1.2
|
||||||
|
doc-comment-0.3.3
|
||||||
|
either-1.6.1
|
||||||
|
error-code-2.3.1
|
||||||
|
fallible-iterator-0.2.0
|
||||||
|
fallible-streaming-iterator-0.1.9
|
||||||
|
fastrand-1.7.0
|
||||||
|
file-size-1.0.3
|
||||||
|
flate2-1.0.22
|
||||||
|
fnv-1.0.7
|
||||||
|
form_urlencoded-1.0.1
|
||||||
|
getrandom-0.2.5
|
||||||
|
gif-0.11.3
|
||||||
|
git2-0.13.25
|
||||||
|
glassbench-0.3.1
|
||||||
|
glob-0.3.0
|
||||||
|
hashbrown-0.9.1
|
||||||
|
hashbrown-0.11.2
|
||||||
|
hashlink-0.6.0
|
||||||
|
heck-0.3.3
|
||||||
|
hermit-abi-0.1.19
|
||||||
|
id-arena-2.2.1
|
||||||
|
idna-0.2.3
|
||||||
|
image-0.23.14
|
||||||
|
indexmap-1.8.0
|
||||||
|
instant-0.1.12
|
||||||
|
is_executable-1.0.1
|
||||||
|
itoa-0.4.8
|
||||||
|
itoa-1.0.1
|
||||||
|
jobserver-0.1.24
|
||||||
|
jpeg-decoder-0.1.22
|
||||||
|
lazy-regex-2.3.0
|
||||||
|
lazy-regex-proc_macros-2.3.0
|
||||||
|
lazy_static-1.4.0
|
||||||
|
lfs-core-0.11.0
|
||||||
|
libc-0.2.119
|
||||||
|
libgit2-sys-0.12.26+1.3.0
|
||||||
|
libsqlite3-sys-0.20.1
|
||||||
|
libz-sys-1.1.5
|
||||||
|
line-wrap-0.1.1
|
||||||
|
linked-hash-map-0.5.4
|
||||||
|
lock_api-0.4.6
|
||||||
|
log-0.4.14
|
||||||
|
matches-0.1.9
|
||||||
|
memchr-2.4.1
|
||||||
|
memmap-0.7.0
|
||||||
|
memoffset-0.6.5
|
||||||
|
minimad-0.7.1
|
||||||
|
minimad-0.9.0
|
||||||
|
miniz_oxide-0.3.7
|
||||||
|
miniz_oxide-0.4.4
|
||||||
|
mio-0.7.14
|
||||||
|
miow-0.3.7
|
||||||
|
nix-0.22.3
|
||||||
|
ntapi-0.3.7
|
||||||
|
num-integer-0.1.44
|
||||||
|
num-iter-0.1.42
|
||||||
|
num-rational-0.3.2
|
||||||
|
num-traits-0.2.14
|
||||||
|
num_cpus-1.13.1
|
||||||
|
num_threads-0.1.4
|
||||||
|
once_cell-1.10.0
|
||||||
|
onig-6.3.1
|
||||||
|
onig_sys-69.7.1
|
||||||
|
open-1.7.1
|
||||||
|
opener-0.5.0
|
||||||
|
parking_lot-0.11.2
|
||||||
|
parking_lot_core-0.8.5
|
||||||
|
pathdiff-0.2.1
|
||||||
|
percent-encoding-2.1.0
|
||||||
|
phf-0.9.0
|
||||||
|
phf_generator-0.9.1
|
||||||
|
phf_macros-0.9.0
|
||||||
|
phf_shared-0.9.0
|
||||||
|
pkg-config-0.3.24
|
||||||
|
plist-1.3.1
|
||||||
|
png-0.16.8
|
||||||
|
ppv-lite86-0.2.16
|
||||||
|
proc-macro-hack-0.5.19
|
||||||
|
proc-macro2-1.0.36
|
||||||
|
proc-status-0.1.1
|
||||||
|
quick-xml-0.22.0
|
||||||
|
quote-1.0.15
|
||||||
|
rand-0.8.5
|
||||||
|
rand_chacha-0.3.1
|
||||||
|
rand_core-0.6.3
|
||||||
|
rayon-1.5.1
|
||||||
|
rayon-core-1.9.1
|
||||||
|
redox_syscall-0.2.11
|
||||||
|
redox_users-0.4.0
|
||||||
|
regex-1.5.5
|
||||||
|
regex-automata-0.1.10
|
||||||
|
regex-syntax-0.6.25
|
||||||
|
remove_dir_all-0.5.3
|
||||||
|
rgb-0.8.32
|
||||||
|
rusqlite-0.24.2
|
||||||
|
ryu-1.0.9
|
||||||
|
safemem-0.3.3
|
||||||
|
same-file-1.0.6
|
||||||
|
scoped_threadpool-0.1.9
|
||||||
|
scopeguard-1.1.0
|
||||||
|
secular-1.0.1
|
||||||
|
serde-1.0.136
|
||||||
|
serde_derive-1.0.136
|
||||||
|
serde_json-1.0.79
|
||||||
|
signal-hook-0.1.17
|
||||||
|
signal-hook-0.3.13
|
||||||
|
signal-hook-mio-0.2.1
|
||||||
|
signal-hook-registry-1.4.0
|
||||||
|
siphasher-0.3.10
|
||||||
|
smallvec-1.8.0
|
||||||
|
snafu-0.7.0
|
||||||
|
snafu-derive-0.7.0
|
||||||
|
splitty-0.1.0
|
||||||
|
str-buf-1.0.5
|
||||||
|
strict-0.1.4
|
||||||
|
strsim-0.8.0
|
||||||
|
svg-0.8.2
|
||||||
|
syn-1.0.86
|
||||||
|
syntect-no-panic-4.6.1
|
||||||
|
tempfile-3.3.0
|
||||||
|
termimad-0.10.3
|
||||||
|
termimad-0.20.0
|
||||||
|
terminal-clipboard-0.3.1
|
||||||
|
termux-clipboard-0.1.0
|
||||||
|
textwrap-0.11.0
|
||||||
|
thiserror-1.0.30
|
||||||
|
thiserror-impl-1.0.30
|
||||||
|
tiff-0.6.1
|
||||||
|
time-0.1.43
|
||||||
|
time-0.3.7
|
||||||
|
tinyvec-1.5.1
|
||||||
|
tinyvec_macros-0.1.0
|
||||||
|
toml-0.5.8
|
||||||
|
umask-1.0.1
|
||||||
|
unicode-bidi-0.3.7
|
||||||
|
unicode-normalization-0.1.19
|
||||||
|
unicode-segmentation-1.9.0
|
||||||
|
unicode-width-0.1.9
|
||||||
|
unicode-xid-0.2.2
|
||||||
|
url-2.2.2
|
||||||
|
users-0.11.0
|
||||||
|
vcpkg-0.2.15
|
||||||
|
vec_map-0.8.2
|
||||||
|
version_check-0.9.4
|
||||||
|
walkdir-2.3.2
|
||||||
|
wasi-0.10.2+wasi-snapshot-preview1
|
||||||
|
weezl-0.1.5
|
||||||
|
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
|
||||||
|
x11-clipboard-0.5.3
|
||||||
|
xcb-0.10.1
|
||||||
|
xml-rs-0.8.4
|
||||||
|
xterm-query-0.1.0
|
||||||
|
yaml-rust-0.4.5
|
||||||
|
"
|
||||||
|
|
||||||
|
inherit bash-completion-r1 cargo
|
||||||
|
|
||||||
|
DESCRIPTION="A new way to see and navigate directory trees"
|
||||||
|
HOMEPAGE="https://dystroy.org/broot/ https://github.com/Canop/broot"
|
||||||
|
SRC_URI="https://github.com/Canop/broot/archive/v${PV}.tar.gz -> ${P}.tar.gz
|
||||||
|
$(cargo_crate_uris)"
|
||||||
|
|
||||||
|
LICENSE="Apache-2.0 BSD-2 BSD LGPL-3+ MIT ZLIB"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
IUSE="X"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
dev-libs/libgit2:=
|
||||||
|
X? ( x11-libs/libxcb:= )
|
||||||
|
"
|
||||||
|
DEPEND="${RDEPEND}"
|
||||||
|
BDEPEND=">=virtual/rust-1.58"
|
||||||
|
|
||||||
|
QA_FLAGS_IGNORED="usr/bin/${PN}"
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
export RUSTFLAGS="-Cstrip=none ${RUSTFLAGS}" #835400
|
||||||
|
local myfeatures=( $(usev X clipboard) )
|
||||||
|
|
||||||
|
cargo_src_configure --no-default-features
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
|
||||||
|
local mandate=$(date -r man/page +'%Y/%m/%d' || die)
|
||||||
|
sed -e "s|#version|${PV}|" \
|
||||||
|
-e "s|#date|${mandate}|" \
|
||||||
|
man/page > "${T}"/${PN}.1 || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
cargo_src_install
|
||||||
|
|
||||||
|
doman "${T}"/${PN}.1
|
||||||
|
|
||||||
|
local build_dir=( target/$(usex debug{,} release)/build/${PN}-*/out )
|
||||||
|
cd ${build_dir[0]} || die
|
||||||
|
|
||||||
|
newbashcomp ${PN}.bash ${PN}
|
||||||
|
newbashcomp br.bash br
|
||||||
|
|
||||||
|
insinto /usr/share/zsh/site-functions
|
||||||
|
doins _${PN}
|
||||||
|
doins _br
|
||||||
|
|
||||||
|
insinto /usr/share/fish/vendor_completions.d
|
||||||
|
doins ${PN}.fish
|
||||||
|
doins br.fish
|
||||||
|
}
|
Binary file not shown.
Binary file not shown.
@ -1 +1,2 @@
|
|||||||
DIST gson-2.8.8-sources.tar.gz 393941 BLAKE2B ebdd1088a069eea58e5ea4e2eddea0d42064c53f7284778b1b7217c8bc7abeb7e14350e19d838af1d94f78c5c38aca6de0f37674b022f0e528ed65eef803c3f1 SHA512 f90ad679c99c5e9a6ee9e397e59ab1d7d94a9c82366902b808addc40ebbab101fdba7fc83e4666c4f35e52d8b127e6f901e65072a7de210496466074dcd043c5
|
DIST gson-2.8.8-sources.tar.gz 393941 BLAKE2B ebdd1088a069eea58e5ea4e2eddea0d42064c53f7284778b1b7217c8bc7abeb7e14350e19d838af1d94f78c5c38aca6de0f37674b022f0e528ed65eef803c3f1 SHA512 f90ad679c99c5e9a6ee9e397e59ab1d7d94a9c82366902b808addc40ebbab101fdba7fc83e4666c4f35e52d8b127e6f901e65072a7de210496466074dcd043c5
|
||||||
|
DIST gson-2.9.0.tar.gz 350309 BLAKE2B f17f7a7410744b14cb79c979b35c7f3c46a3d9e922722c41893b872013319a1bd06d81526e8380055aafa47524bfcc50e02629d1c5994e1f9f81df4391a9c651 SHA512 25e57f0e3cbff7e4d33070d250ba4ecf1c659380bce07863c52a3b30edd0ba88c923e55b0f38098b5ce3827a74a21c4d41f9de02f6a84da771ae39fd823667d3
|
||||||
|
@ -0,0 +1,63 @@
|
|||||||
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
# Skeleton command:
|
||||||
|
# java-ebuilder --generate-ebuild --workdir . --pom pom.xml --download-uri https://github.com/google/gson/archive/gson-parent-2.9.0.tar.gz --slot 2.6 --keywords "~amd64 ~arm ~arm64 ~ppc64 ~x86" --ebuild gson-2.9.0.ebuild
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
JAVA_PKG_IUSE="doc source test"
|
||||||
|
MAVEN_ID="com.google.code.gson:gson:2.9.0"
|
||||||
|
JAVA_TESTING_FRAMEWORKS="junit-4"
|
||||||
|
|
||||||
|
inherit java-pkg-2 java-pkg-simple
|
||||||
|
|
||||||
|
DESCRIPTION="Gson JSON library"
|
||||||
|
HOMEPAGE="https://github.com/google/gson"
|
||||||
|
SRC_URI="https://github.com/google/${PN}/archive/${PN}-parent-${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="Apache-2.0"
|
||||||
|
SLOT="2.9"
|
||||||
|
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
|
||||||
|
|
||||||
|
DEPEND="
|
||||||
|
virtual/jdk:11
|
||||||
|
"
|
||||||
|
|
||||||
|
# Set to jre-11:* since jre-1.8:* causes errors:
|
||||||
|
# error: Invalid SafeVarargs annotation. Instance method <T>assertIterationOrder(Iterable<T>,T...) is not final.
|
||||||
|
# in src/test/java/com/google/gson/internal/LinkedTreeMapTest.java:164:
|
||||||
|
RDEPEND="
|
||||||
|
>=virtual/jre-11:*
|
||||||
|
"
|
||||||
|
|
||||||
|
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"
|
||||||
|
# FAILURES!!!
|
||||||
|
# Tests run: 1090, Failures: 3
|
||||||
|
# testComGoogleGsonAnnotationsPackage(com.google.gson.regression.OSGiTest)
|
||||||
|
# junit.framework.AssertionFailedError: Cannot find com.google.gson OSGi bundle manifest
|
||||||
|
"com.google.gson.regression.OSGiTest"
|
||||||
|
# testSerializeInternalImplementationObject(com.google.gson.functional.ReflectionAccessTest)
|
||||||
|
# java.lang.IllegalStateException: Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 2 path $
|
||||||
|
"com.google.gson.functional.ReflectionAccessTest"
|
||||||
|
)
|
||||||
|
|
||||||
|
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"
|
||||||
|
}
|
@ -1,99 +0,0 @@
|
|||||||
# Copyright 1999-2022 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
# Skeleton command:
|
|
||||||
# java-ebuilder --generate-ebuild --workdir . --pom pom.xml --download-uri https://github.com/ronmamo/reflections/archive/0.9.12.tar.gz --slot 0 --keywords "~amd64 ~arm ~arm64 ~ppc64 ~x86" --ebuild reflections-0.9.12.ebuild
|
|
||||||
|
|
||||||
EAPI=8
|
|
||||||
|
|
||||||
JAVA_PKG_IUSE="doc source test"
|
|
||||||
MAVEN_ID="org.reflections:reflections:0.9.12"
|
|
||||||
JAVA_TESTING_FRAMEWORKS="junit-4"
|
|
||||||
|
|
||||||
inherit java-pkg-2 java-pkg-simple
|
|
||||||
|
|
||||||
DESCRIPTION="Reflections - a Java runtime metadata analysis"
|
|
||||||
HOMEPAGE="https://github.com/ronmamo/reflections"
|
|
||||||
SRC_URI="https://github.com/ronmamo/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="WTFPL-2 BSD-2"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
|
|
||||||
|
|
||||||
# Common dependencies
|
|
||||||
# POM: pom.xml
|
|
||||||
# com.google.code.gson:gson:2.8.6 -> >=dev-java/gson-2.8.8:2.6
|
|
||||||
# org.dom4j:dom4j:2.1.1 -> >=dev-java/dom4j-2.1.3:1
|
|
||||||
# org.javassist:javassist:3.26.0-GA -> !!!suitable-mavenVersion-not-found!!!
|
|
||||||
# org.slf4j:slf4j-api:1.7.30 -> >=dev-java/slf4j-api-1.7.30:0
|
|
||||||
# org.slf4j:slf4j-simple:1.7.24 -> >=dev-java/slf4j-simple-1.7.30:0
|
|
||||||
|
|
||||||
CP_DEPEND="
|
|
||||||
dev-java/dom4j:1
|
|
||||||
dev-java/gson:2.6
|
|
||||||
dev-java/javassist:3
|
|
||||||
dev-java/slf4j-api:0
|
|
||||||
dev-java/slf4j-simple:0
|
|
||||||
"
|
|
||||||
|
|
||||||
# Compile dependencies
|
|
||||||
# POM: pom.xml
|
|
||||||
# javax.servlet:servlet-api:2.5 -> java-virtuals/servlet-api:2.5
|
|
||||||
# POM: pom.xml
|
|
||||||
# test? junit:junit:4.13 -> >=dev-java/junit-4.13.2:4
|
|
||||||
|
|
||||||
DEPEND="
|
|
||||||
java-virtuals/servlet-api:2.5
|
|
||||||
>=virtual/jdk-1.8:*
|
|
||||||
${CP_DEPEND}
|
|
||||||
"
|
|
||||||
|
|
||||||
RDEPEND="
|
|
||||||
>=virtual/jre-1.8:*
|
|
||||||
${CP_DEPEND}"
|
|
||||||
|
|
||||||
S="${WORKDIR}/${P}"
|
|
||||||
|
|
||||||
JAVA_CLASSPATH_EXTRA="servlet-api-2.5"
|
|
||||||
JAVA_SRC_DIR=( "src/main/java" )
|
|
||||||
|
|
||||||
JAVA_TEST_GENTOO_CLASSPATH="junit-4"
|
|
||||||
JAVA_TEST_SRC_DIR=( "src/test/java" )
|
|
||||||
JAVA_TEST_RESOURCE_DIRS=( "src/test/resources" )
|
|
||||||
JAVA_TEST_EXCLUDES=(
|
|
||||||
# Upstream does not run this test
|
|
||||||
"org.reflections.TestModel"
|
|
||||||
# 1) testMethodParameterNames(org.reflections.ReflectionsCollectTest)
|
|
||||||
# org.reflections.ReflectionsException: Scanner MethodParameterNamesScanner was not configured
|
|
||||||
# at org.reflections.Store.get(Store.java:39)
|
|
||||||
# at org.reflections.Store.get(Store.java:61)
|
|
||||||
# at org.reflections.Store.get(Store.java:46)
|
|
||||||
# at org.reflections.Reflections.getMethodParamNames(Reflections.java:579)
|
|
||||||
# at org.reflections.ReflectionsTest.testMethodParameterNames(ReflectionsTest.java:239)
|
|
||||||
org.reflections.ReflectionsCollectTest
|
|
||||||
# 2) testMethodParameterNames(org.reflections.ReflectionsParallelTest)
|
|
||||||
# org.reflections.ReflectionsException: Scanner MethodParameterNamesScanner was not configured
|
|
||||||
# at org.reflections.Store.get(Store.java:39)
|
|
||||||
# at org.reflections.Store.get(Store.java:61)
|
|
||||||
# at org.reflections.Store.get(Store.java:46)
|
|
||||||
# at org.reflections.Reflections.getMethodParamNames(Reflections.java:579)
|
|
||||||
# at org.reflections.ReflectionsTest.testMethodParameterNames(ReflectionsTest.java:239)
|
|
||||||
org.reflections.ReflectionsParallelTest
|
|
||||||
# 3) testMethodParameterNames(org.reflections.ReflectionsTest)
|
|
||||||
# org.reflections.ReflectionsException: Scanner MethodParameterNamesScanner was not configured
|
|
||||||
# at org.reflections.Store.get(Store.java:39)
|
|
||||||
# at org.reflections.Store.get(Store.java:61)
|
|
||||||
# at org.reflections.Store.get(Store.java:46)
|
|
||||||
# at org.reflections.Reflections.getMethodParamNames(Reflections.java:579)
|
|
||||||
# at org.reflections.ReflectionsTest.testMethodParameterNames(ReflectionsTest.java:239)
|
|
||||||
org.reflections.ReflectionsTest
|
|
||||||
#
|
|
||||||
# https://github.com/ronmamo/reflections/issues/277#issuecomment-927152981
|
|
||||||
# scanner was not configured exception - this is a known issue in 0.9.12, a simple workaround is to
|
|
||||||
# check if the getStore() contains index for the scanner before querying. next version 0.10 fixes this.
|
|
||||||
)
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
default # https://bugs.gentoo.org/789582
|
|
||||||
java-pkg-simple_src_install
|
|
||||||
}
|
|
Binary file not shown.
@ -1,5 +1,4 @@
|
|||||||
DIST R-4.0.5.tar.gz 32466444 BLAKE2B 5dbbd289f4fd6347b4109eecaf65b50b5793a83edddd2cb391c20473607f136d91a8e9f4ab9e453f6927d2ca9145762920424e3a1dcea89309afde56efd5d32c SHA512 6ff5b0f9cb6b17f66cde1f5585d1b33659dbae8919d34c2e593f68a0bff4d0425aa9704d99284d103702a9cd42f613311f3a87af6b939b1af65dcec80bf2ca8c
|
DIST R-4.0.5.tar.gz 32466444 BLAKE2B 5dbbd289f4fd6347b4109eecaf65b50b5793a83edddd2cb391c20473607f136d91a8e9f4ab9e453f6927d2ca9145762920424e3a1dcea89309afde56efd5d32c SHA512 6ff5b0f9cb6b17f66cde1f5585d1b33659dbae8919d34c2e593f68a0bff4d0425aa9704d99284d103702a9cd42f613311f3a87af6b939b1af65dcec80bf2ca8c
|
||||||
DIST R-4.1.0.tar.gz 33714683 BLAKE2B 22ba966b5a29f153f3ce6cbc467e815c397e7c6aade0db62c7d2ae044056d9227da4dcb8fbf33e661548f4f434c328415e297c6b07b3932ef3f47358c2543f42 SHA512 41519bf06a1ebc2bb582e9a7c35d0e82e213312dec8147861a7f9b28ee750cd40dfbf02737602d05698641fcea6182b0da8131e83edacc358e98eca0a393b729
|
|
||||||
DIST R-4.1.2.tar.gz 34009074 BLAKE2B 7ca14b28fc40548180dde979d57f93f41fb3966697d58f686cf63e24e4cbf2de8166240952e708fc94f97846cd57bbd559b4edb688500e1db2a6704de16f508c SHA512 657c7950a88f632f1bbb08dbd0b3fb485732a25d8bbcb8a7939a40b23c7a235fdb9b46c296acaa9f72eabebe96e270ecbdcd7970fc9d3a299e6687bea45f2d3f
|
DIST R-4.1.2.tar.gz 34009074 BLAKE2B 7ca14b28fc40548180dde979d57f93f41fb3966697d58f686cf63e24e4cbf2de8166240952e708fc94f97846cd57bbd559b4edb688500e1db2a6704de16f508c SHA512 657c7950a88f632f1bbb08dbd0b3fb485732a25d8bbcb8a7939a40b23c7a235fdb9b46c296acaa9f72eabebe96e270ecbdcd7970fc9d3a299e6687bea45f2d3f
|
||||||
DIST R-4.2.0.tar.gz 37585694 BLAKE2B 5ba4d3b9397e92b72af729d88ff562655e0dd7c547bd371638aa76d4f1701f4f8a7911d500cf4f10d87b62457f8f8ce7a946d893477ceb7268b06bd59bc10f3d SHA512 99e71dad00b63e44bfcb8dc9539ff1951809112882d9ee7e06a4e99bce2e6ceac24e8348fd598c21e6d5ab0e0629a85170cde208bfa8145af91c398ac4ef7bcd
|
DIST R-4.2.0.tar.gz 37585694 BLAKE2B 5ba4d3b9397e92b72af729d88ff562655e0dd7c547bd371638aa76d4f1701f4f8a7911d500cf4f10d87b62457f8f8ce7a946d893477ceb7268b06bd59bc10f3d SHA512 99e71dad00b63e44bfcb8dc9539ff1951809112882d9ee7e06a4e99bce2e6ceac24e8348fd598c21e6d5ab0e0629a85170cde208bfa8145af91c398ac4ef7bcd
|
||||||
DIST R-78d6830e28ea90a046da79a9b4f70c39594bb6d6.bash_completion 13596 BLAKE2B 53338e4a1c4f68beb69247216e553dbcac47f660fbf032bfebf7a660e32d2cff5b11ed35411c52de7e1fd6e00bbf5b5ea19369a325fa0a38bd93d63dc3288cbd SHA512 9ccd19bb1b0c18a2f13035ccd6809447429e197e298fb4d1df808ef345d723b42f75a1b91c349f6dbb46e4a82e59ef33e11300c495d79b63d670d0c0f2b16a06
|
DIST R-78d6830e28ea90a046da79a9b4f70c39594bb6d6.bash_completion 13596 BLAKE2B 53338e4a1c4f68beb69247216e553dbcac47f660fbf032bfebf7a660e32d2cff5b11ed35411c52de7e1fd6e00bbf5b5ea19369a325fa0a38bd93d63dc3288cbd SHA512 9ccd19bb1b0c18a2f13035ccd6809447429e197e298fb4d1df808ef345d723b42f75a1b91c349f6dbb46e4a82e59ef33e11300c495d79b63d670d0c0f2b16a06
|
||||||
|
@ -1,235 +0,0 @@
|
|||||||
# Copyright 1999-2021 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=7
|
|
||||||
|
|
||||||
inherit bash-completion-r1 autotools flag-o-matic fortran-2 toolchain-funcs
|
|
||||||
|
|
||||||
# latest git commit for R bash completion: https://github.com/deepayan/rcompletion
|
|
||||||
BCPV=78d6830e28ea90a046da79a9b4f70c39594bb6d6
|
|
||||||
|
|
||||||
DESCRIPTION="Language and environment for statistical computing and graphics"
|
|
||||||
HOMEPAGE="https://www.r-project.org/"
|
|
||||||
SRC_URI="
|
|
||||||
mirror://cran/src/base/R-4/${P}.tar.gz
|
|
||||||
https://raw.githubusercontent.com/deepayan/rcompletion/${BCPV}/bash_completion/R -> ${PN}-${BCPV}.bash_completion"
|
|
||||||
|
|
||||||
LICENSE="|| ( GPL-2 GPL-3 ) LGPL-2.1"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~arm64 ~hppa ~ia64 ~sparc ~x86 ~amd64-linux ~x86-linux"
|
|
||||||
IUSE="cairo doc icu java jpeg lapack lto minimal nls openmp perl png prefix profile readline static-libs test tiff tk X"
|
|
||||||
|
|
||||||
REQUIRED_USE="png? ( || ( cairo X ) )
|
|
||||||
jpeg? ( || ( cairo X ) )
|
|
||||||
tiff? ( || ( cairo X ) )
|
|
||||||
"
|
|
||||||
|
|
||||||
# At least one package installation in the test suite requires TeX,
|
|
||||||
# and will fail without it (bug #718056).
|
|
||||||
BDEPEND="virtual/pkgconfig
|
|
||||||
doc? (
|
|
||||||
virtual/latex-base
|
|
||||||
dev-texlive/texlive-fontsrecommended
|
|
||||||
)
|
|
||||||
test? ( virtual/latex-base )"
|
|
||||||
DEPEND="
|
|
||||||
app-arch/bzip2:0=
|
|
||||||
app-arch/xz-utils:0=
|
|
||||||
app-text/ghostscript-gpl
|
|
||||||
dev-libs/libpcre2:=
|
|
||||||
net-libs/libtirpc
|
|
||||||
net-misc/curl
|
|
||||||
virtual/blas:0
|
|
||||||
|| ( sys-apps/coreutils app-misc/realpath )
|
|
||||||
cairo? ( x11-libs/cairo:0=[X=] x11-libs/pango:0= )
|
|
||||||
icu? ( dev-libs/icu:= )
|
|
||||||
jpeg? ( virtual/jpeg:0 )
|
|
||||||
lapack? ( virtual/lapack:0 )
|
|
||||||
perl? ( dev-lang/perl )
|
|
||||||
png? ( media-libs/libpng:0= )
|
|
||||||
readline? ( sys-libs/readline:0= )
|
|
||||||
tiff? ( media-libs/tiff:0= )
|
|
||||||
tk? ( dev-lang/tk:0= )
|
|
||||||
X? ( x11-libs/libXmu:0= x11-libs/libXt x11-misc/xdg-utils )"
|
|
||||||
|
|
||||||
RDEPEND="${DEPEND}
|
|
||||||
sys-libs/zlib:0[minizip]
|
|
||||||
java? ( >=virtual/jre-1.8:* )"
|
|
||||||
|
|
||||||
RESTRICT="minimal? ( test )
|
|
||||||
!test? ( test )"
|
|
||||||
|
|
||||||
PATCHES=(
|
|
||||||
"${FILESDIR}"/${PN}-3.4.1-parallel.patch
|
|
||||||
"${FILESDIR}"/${PN}-3.4.1-rmath-shared.patch
|
|
||||||
"${FILESDIR}"/${PN}-3.6.2-no-LDFLAGS-in-libR-pkg-config.patch
|
|
||||||
"${FILESDIR}"/${PN}-3.6.2-no-gzip-doc.patch
|
|
||||||
)
|
|
||||||
|
|
||||||
pkg_pretend() {
|
|
||||||
[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
if [[ ${MERGE_TYPE} != binary ]] && use openmp; then
|
|
||||||
FORTRAN_NEED_OPENMP=1
|
|
||||||
fi
|
|
||||||
fortran-2_pkg_setup
|
|
||||||
filter-ldflags -Wl,-Bdirect -Bdirect
|
|
||||||
# avoid using existing R installation
|
|
||||||
unset R_HOME
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
default
|
|
||||||
|
|
||||||
# fix packages.html for doc (gentoo bug #205103)
|
|
||||||
sed -e "s:../../../library:../../../../$(get_libdir)/R/library:g" \
|
|
||||||
-i src/library/tools/R/Rd.R || die
|
|
||||||
|
|
||||||
# fix Rscript path when installed (gentoo bug #221061)
|
|
||||||
sed -e "s:-DR_HOME='\"\$(rhome)\"':-DR_HOME='\"${EROOT}/usr/$(get_libdir)/${PN}\"':" \
|
|
||||||
-i src/unix/Makefile.in || die "sed unix Makefile failed"
|
|
||||||
|
|
||||||
# fix HTML links to manual (gentoo bug #273957)
|
|
||||||
sed -e 's:\.\./manual/:manual/:g' \
|
|
||||||
-i $(grep -Flr ../manual/ doc) || die "sed for HTML links failed"
|
|
||||||
|
|
||||||
use lapack && \
|
|
||||||
export LAPACK_LIBS="$($(tc-getPKG_CONFIG) --libs lapack)"
|
|
||||||
|
|
||||||
if use X; then
|
|
||||||
export R_BROWSER="$(type -p xdg-open)"
|
|
||||||
export R_PDFVIEWER="$(type -p xdg-open)"
|
|
||||||
fi
|
|
||||||
use perl && \
|
|
||||||
export PERL5LIB="${S}/share/perl:${PERL5LIB:+:}${PERL5LIB}"
|
|
||||||
|
|
||||||
# don't search /usr/local
|
|
||||||
sed -i -e '/FLAGS=.*\/local\//c\: # removed by ebuild' configure.ac || die
|
|
||||||
# Fix for Darwin (OS X)
|
|
||||||
if use prefix; then
|
|
||||||
if [[ ${CHOST} == *-darwin* ]] ; then
|
|
||||||
sed -e 's:-install_name libR.dylib:-install_name ${libdir}/R/lib/libR.dylib:' \
|
|
||||||
-e 's:-install_name libRlapack.dylib:-install_name ${libdir}/R/lib/libRlapack.dylib:' \
|
|
||||||
-e 's:-install_name libRblas.dylib:-install_name ${libdir}/R/lib/libRblas.dylib:' \
|
|
||||||
-e "/SHLIB_EXT/s/\.so/.dylib/" \
|
|
||||||
-i configure.ac || die
|
|
||||||
# sort of "undo" 2.14.1-rmath-shared.patch
|
|
||||||
sed -e "s:-Wl,-soname=libRmath.so:-install_name ${EROOT}/usr/$(get_libdir)/libRmath.dylib:" \
|
|
||||||
-i src/nmath/standalone/Makefile.in || die
|
|
||||||
else
|
|
||||||
append-ldflags -Wl,-rpath="${EROOT}/usr/$(get_libdir)/R/lib"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
AT_M4DIR=m4
|
|
||||||
eautoreconf
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
# --with-system-tre \
|
|
||||||
# tre is patched from upstream
|
|
||||||
econf \
|
|
||||||
--enable-byte-compiled-packages \
|
|
||||||
--enable-R-shlib \
|
|
||||||
--disable-R-framework \
|
|
||||||
--with-blas="$($(tc-getPKG_CONFIG) --libs blas)" \
|
|
||||||
rdocdir="${EPREFIX}/usr/share/doc/${PF}" \
|
|
||||||
$(use_enable java) \
|
|
||||||
$(use_enable lto lto R) \
|
|
||||||
$(use_enable nls) \
|
|
||||||
$(use_enable openmp) \
|
|
||||||
$(use_enable profile R-profiling) \
|
|
||||||
$(use_enable profile memory-profiling) \
|
|
||||||
$(use_enable static-libs static) \
|
|
||||||
$(use_enable static-libs R-static-lib) \
|
|
||||||
$(use_with cairo) \
|
|
||||||
$(use_with icu ICU) \
|
|
||||||
$(use_with jpeg jpeglib) \
|
|
||||||
$(use_with lapack) \
|
|
||||||
$(use_with !minimal recommended-packages) \
|
|
||||||
$(use_with png libpng) \
|
|
||||||
$(use_with readline) \
|
|
||||||
$(use_with tiff libtiff) \
|
|
||||||
$(use_with tk tcltk) \
|
|
||||||
$(use_with tk tk-config "${EPREFIX}"/usr/$(get_libdir)/tkConfig.sh) \
|
|
||||||
$(use_with tk tcl-config "${EPREFIX}"/usr/$(get_libdir)/tclConfig.sh) \
|
|
||||||
$(use_with X x)
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
export VARTEXFONTS="${T}/fonts"
|
|
||||||
emake AR="$(tc-getAR)"
|
|
||||||
emake -C src/nmath/standalone \
|
|
||||||
shared $(use static-libs && echo static) AR="$(tc-getAR)"
|
|
||||||
use doc && emake info pdf
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
default
|
|
||||||
emake -j1 -C src/nmath/standalone DESTDIR="${D}" install
|
|
||||||
|
|
||||||
if use doc; then
|
|
||||||
emake DESTDIR="${D}" install-info install-pdf
|
|
||||||
dosym ../manual /usr/share/doc/${PF}/html/manual
|
|
||||||
fi
|
|
||||||
|
|
||||||
cat > 99R <<-EOF
|
|
||||||
LDPATH=${EROOT}/usr/$(get_libdir)/${PN}/lib
|
|
||||||
R_HOME=${EROOT}/usr/$(get_libdir)/${PN}
|
|
||||||
EOF
|
|
||||||
doenvd 99R
|
|
||||||
newbashcomp "${DISTDIR}"/${PN}-${BCPV}.bash_completion ${PN}
|
|
||||||
# The buildsystem has a different understanding of install_names than
|
|
||||||
# we require. Since it builds modules like shared objects (wrong), many
|
|
||||||
# objects (all modules) get an incorrect install_name. Fixing the build
|
|
||||||
# system here is not really trivial.
|
|
||||||
if [[ ${CHOST} == *-darwin* ]] ; then
|
|
||||||
local mod
|
|
||||||
pushd "${ED}"/usr/$(get_libdir)/R > /dev/null
|
|
||||||
for mod in $(find . -name "*.dylib") ; do
|
|
||||||
mod=${mod#./}
|
|
||||||
install_name_tool -id "${EPREFIX}/usr/$(get_libdir)/R/${mod}" \
|
|
||||||
"${mod}"
|
|
||||||
done
|
|
||||||
popd > /dev/null
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Users are encouraged to access some of the the R documentation
|
|
||||||
# interactively, through functions like "contributors()" that
|
|
||||||
# tries to open the "AUTHORS" file. Other files can be accessed
|
|
||||||
# by name with RShowDoc(), and the documentation for e.g. license()
|
|
||||||
# and RShowDoc() suggests a few of these names. Here we try to
|
|
||||||
# collect as many names as possible that a user might actually
|
|
||||||
# try to view through R, because if we don't decompress them,
|
|
||||||
# then R doesn't know what to do with 'em. Bug #556706.
|
|
||||||
INTERACTIVE_DOCS=(
|
|
||||||
AUTHORS
|
|
||||||
COPYING
|
|
||||||
FAQ
|
|
||||||
NEWS
|
|
||||||
THANKS
|
|
||||||
)
|
|
||||||
|
|
||||||
# Other data sources that are shipped as "documentation," but which
|
|
||||||
# need to be accessible via their original unmolested filenames.
|
|
||||||
INTERACTIVE_DATA=(
|
|
||||||
BioC_mirrors.csv
|
|
||||||
CRAN_mirrors.csv
|
|
||||||
KEYWORDS.db
|
|
||||||
NEWS.rds
|
|
||||||
)
|
|
||||||
|
|
||||||
NOCOMPRESS_DOCS=( "${INTERACTIVE_DOCS[@]}" "${INTERACTIVE_DATA[@]}" )
|
|
||||||
|
|
||||||
for f in "${NOCOMPRESS_DOCS[@]}"; do
|
|
||||||
docompress -x "/usr/share/doc/${PF}/${f}"
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
if use java; then
|
|
||||||
einfo "Re-initializing java paths for ${P}"
|
|
||||||
R CMD javareconf
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,248 +0,0 @@
|
|||||||
# Copyright 1999-2022 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=8
|
|
||||||
|
|
||||||
inherit bash-completion-r1 autotools flag-o-matic fortran-2 toolchain-funcs
|
|
||||||
|
|
||||||
# latest git commit for R bash completion: https://github.com/deepayan/rcompletion
|
|
||||||
BCPV=78d6830e28ea90a046da79a9b4f70c39594bb6d6
|
|
||||||
|
|
||||||
DESCRIPTION="Language and environment for statistical computing and graphics"
|
|
||||||
HOMEPAGE="https://www.r-project.org/"
|
|
||||||
SRC_URI="
|
|
||||||
mirror://cran/src/base/R-4/${P}.tar.gz
|
|
||||||
https://raw.githubusercontent.com/deepayan/rcompletion/${BCPV}/bash_completion/R -> ${PN}-${BCPV}.bash_completion"
|
|
||||||
|
|
||||||
LICENSE="|| ( GPL-2 GPL-3 ) LGPL-2.1"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~arm64 ~hppa ~ia64 ~sparc ~x86 ~amd64-linux ~x86-linux"
|
|
||||||
IUSE="cairo doc icu java jpeg lapack lto minimal nls openmp perl png prefix profile readline test tiff tk X"
|
|
||||||
|
|
||||||
REQUIRED_USE="
|
|
||||||
png? ( || ( cairo X ) )
|
|
||||||
jpeg? ( || ( cairo X ) )
|
|
||||||
tiff? ( || ( cairo X ) )"
|
|
||||||
RESTRICT="
|
|
||||||
minimal? ( test )
|
|
||||||
!test? ( test )"
|
|
||||||
|
|
||||||
# At least one package installation in the test suite requires TeX,
|
|
||||||
# and will fail without it (bug #718056).
|
|
||||||
BDEPEND="
|
|
||||||
virtual/pkgconfig
|
|
||||||
doc? (
|
|
||||||
virtual/latex-base
|
|
||||||
dev-texlive/texlive-fontsrecommended
|
|
||||||
)
|
|
||||||
test? ( virtual/latex-base )"
|
|
||||||
DEPEND="
|
|
||||||
app-arch/bzip2
|
|
||||||
app-arch/xz-utils
|
|
||||||
app-text/ghostscript-gpl
|
|
||||||
dev-libs/libpcre2:=
|
|
||||||
net-libs/libtirpc
|
|
||||||
net-misc/curl
|
|
||||||
virtual/blas
|
|
||||||
sys-libs/zlib[minizip]
|
|
||||||
|| (
|
|
||||||
sys-apps/coreutils
|
|
||||||
app-misc/realpath
|
|
||||||
)
|
|
||||||
cairo? (
|
|
||||||
x11-libs/cairo:=[X=]
|
|
||||||
x11-libs/pango:=
|
|
||||||
)
|
|
||||||
icu? ( dev-libs/icu:= )
|
|
||||||
jpeg? ( virtual/jpeg )
|
|
||||||
lapack? ( virtual/lapack )
|
|
||||||
perl? ( dev-lang/perl )
|
|
||||||
png? ( media-libs/libpng:= )
|
|
||||||
readline? ( sys-libs/readline:= )
|
|
||||||
tiff? ( media-libs/tiff:= )
|
|
||||||
tk? ( dev-lang/tk:= )
|
|
||||||
X? (
|
|
||||||
x11-libs/libXmu
|
|
||||||
x11-libs/libXt
|
|
||||||
x11-misc/xdg-utils
|
|
||||||
)"
|
|
||||||
RDEPEND="${DEPEND}
|
|
||||||
java? ( >=virtual/jre-1.8:* )"
|
|
||||||
|
|
||||||
PATCHES=(
|
|
||||||
"${FILESDIR}"/${PN}-3.4.1-parallel.patch
|
|
||||||
"${FILESDIR}"/${PN}-3.4.1-rmath-shared.patch
|
|
||||||
"${FILESDIR}"/${PN}-3.6.2-no-LDFLAGS-in-libR-pkg-config.patch
|
|
||||||
"${FILESDIR}"/${PN}-3.6.2-no-gzip-doc.patch
|
|
||||||
)
|
|
||||||
|
|
||||||
pkg_pretend() {
|
|
||||||
[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
if [[ ${MERGE_TYPE} != binary ]] && use openmp; then
|
|
||||||
tc-check-openmp
|
|
||||||
FORTRAN_NEED_OPENMP=1
|
|
||||||
fi
|
|
||||||
|
|
||||||
fortran-2_pkg_setup
|
|
||||||
|
|
||||||
# avoid using existing R installation
|
|
||||||
unset R_HOME
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
default
|
|
||||||
|
|
||||||
# fix packages.html for doc (gentoo bug #205103)
|
|
||||||
sed -e "s:../../../library:../../../../$(get_libdir)/R/library:g" \
|
|
||||||
-i src/library/tools/R/Rd.R || die
|
|
||||||
|
|
||||||
# fix Rscript path when installed (gentoo bug #221061)
|
|
||||||
sed -e "s:-DR_HOME='\"\$(rhome)\"':-DR_HOME='\"${EPREFIX}/usr/$(get_libdir)/${PN}\"':" \
|
|
||||||
-i src/unix/Makefile.in || die "sed unix Makefile failed"
|
|
||||||
|
|
||||||
# fix HTML links to manual (gentoo bug #273957)
|
|
||||||
sed -e 's:\.\./manual/:manual/:g' \
|
|
||||||
-i $(grep -Flr ../manual/ doc) || die "sed for HTML links failed"
|
|
||||||
|
|
||||||
use lapack && \
|
|
||||||
export LAPACK_LIBS="$($(tc-getPKG_CONFIG) --libs lapack)"
|
|
||||||
|
|
||||||
if use X; then
|
|
||||||
export R_BROWSER="$(type -p xdg-open)"
|
|
||||||
export R_PDFVIEWER="$(type -p xdg-open)"
|
|
||||||
fi
|
|
||||||
use perl && \
|
|
||||||
export PERL5LIB="${S}/share/perl:${PERL5LIB:+:}${PERL5LIB}"
|
|
||||||
|
|
||||||
# don't search /usr/local
|
|
||||||
sed -i -e '/FLAGS=.*\/local\//c\: # removed by ebuild' configure.ac || die
|
|
||||||
|
|
||||||
# Fix for Darwin (macOS)
|
|
||||||
if use prefix; then
|
|
||||||
if [[ ${CHOST} == *-darwin* ]] ; then
|
|
||||||
sed -e 's:-install_name libR.dylib:-install_name ${libdir}/R/lib/libR.dylib:' \
|
|
||||||
-e 's:-install_name libRlapack.dylib:-install_name ${libdir}/R/lib/libRlapack.dylib:' \
|
|
||||||
-e 's:-install_name libRblas.dylib:-install_name ${libdir}/R/lib/libRblas.dylib:' \
|
|
||||||
-e "/SHLIB_EXT/s/\.so/.dylib/" \
|
|
||||||
-i configure.ac || die
|
|
||||||
# sort of "undo" 2.14.1-rmath-shared.patch
|
|
||||||
sed -e "s:-Wl,-soname=libRmath.so:-install_name ${EPREFIX}/usr/$(get_libdir)/libRmath.dylib:" \
|
|
||||||
-i src/nmath/standalone/Makefile.in || die
|
|
||||||
else
|
|
||||||
append-ldflags -Wl,-rpath="${EPREFIX}/usr/$(get_libdir)/R/lib"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
AT_M4DIR=m4 eautoreconf
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
filter-ldflags -Wl,-Bdirect -Bdirect
|
|
||||||
|
|
||||||
# --with-system-tre \
|
|
||||||
# tre is patched from upstream
|
|
||||||
econf \
|
|
||||||
--enable-byte-compiled-packages \
|
|
||||||
--enable-R-shlib \
|
|
||||||
--disable-R-framework \
|
|
||||||
--disable-R-static-lib \
|
|
||||||
--with-blas="$($(tc-getPKG_CONFIG) --libs blas)" \
|
|
||||||
rdocdir="${EPREFIX}/usr/share/doc/${PF}" \
|
|
||||||
$(use_enable java) \
|
|
||||||
$(use_enable lto lto R) \
|
|
||||||
$(use_enable nls) \
|
|
||||||
$(use_enable openmp) \
|
|
||||||
$(use_enable profile R-profiling) \
|
|
||||||
$(use_enable profile memory-profiling) \
|
|
||||||
$(use_with cairo) \
|
|
||||||
$(use_with icu ICU) \
|
|
||||||
$(use_with jpeg jpeglib) \
|
|
||||||
$(use_with lapack) \
|
|
||||||
$(use_with !minimal recommended-packages) \
|
|
||||||
$(use_with png libpng) \
|
|
||||||
$(use_with readline) \
|
|
||||||
$(use_with tiff libtiff) \
|
|
||||||
$(use_with tk tcltk) \
|
|
||||||
$(use_with tk tk-config "${ESYSROOT}"/usr/$(get_libdir)/tkConfig.sh) \
|
|
||||||
$(use_with tk tcl-config "${ESYSROOT}"/usr/$(get_libdir)/tclConfig.sh) \
|
|
||||||
$(use_with X x)
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
export VARTEXFONTS="${T}"/fonts
|
|
||||||
emake AR="$(tc-getAR)"
|
|
||||||
emake -C src/nmath/standalone shared AR="$(tc-getAR)"
|
|
||||||
use doc && emake info pdf
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
default
|
|
||||||
emake -j1 -C src/nmath/standalone DESTDIR="${D}" install
|
|
||||||
|
|
||||||
if use doc; then
|
|
||||||
emake DESTDIR="${D}" install-info install-pdf
|
|
||||||
dosym ../manual /usr/share/doc/${PF}/html/manual
|
|
||||||
fi
|
|
||||||
|
|
||||||
newenvd - 99R <<-_EOF_
|
|
||||||
LDPATH=${EPREFIX}/usr/$(get_libdir)/${PN}/lib
|
|
||||||
R_HOME=${EPREFIX}/usr/$(get_libdir)/${PN}
|
|
||||||
_EOF_
|
|
||||||
|
|
||||||
newbashcomp "${DISTDIR}"/${PN}-${BCPV}.bash_completion ${PN}
|
|
||||||
# The buildsystem has a different understanding of install_names than
|
|
||||||
# we require. Since it builds modules like shared objects (wrong), many
|
|
||||||
# objects (all modules) get an incorrect install_name. Fixing the build
|
|
||||||
# system here is not really trivial.
|
|
||||||
if [[ ${CHOST} == *-darwin* ]] ; then
|
|
||||||
local mod
|
|
||||||
pushd "${ED}"/usr/$(get_libdir)/R >/dev/null || die
|
|
||||||
for mod in $(find . -name "*.dylib") ; do
|
|
||||||
mod=${mod#./}
|
|
||||||
install_name_tool -id "${EPREFIX}/usr/$(get_libdir)/R/${mod}" \
|
|
||||||
"${mod}"
|
|
||||||
done
|
|
||||||
popd >/dev/null || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Users are encouraged to access some of the the R documentation
|
|
||||||
# interactively, through functions like "contributors()" that
|
|
||||||
# tries to open the "AUTHORS" file. Other files can be accessed
|
|
||||||
# by name with RShowDoc(), and the documentation for e.g. license()
|
|
||||||
# and RShowDoc() suggests a few of these names. Here we try to
|
|
||||||
# collect as many names as possible that a user might actually
|
|
||||||
# try to view through R, because if we don't decompress them,
|
|
||||||
# then R doesn't know what to do with 'em. Bug #556706.
|
|
||||||
local INTERACTIVE_DOCS=(
|
|
||||||
AUTHORS
|
|
||||||
COPYING
|
|
||||||
FAQ
|
|
||||||
NEWS
|
|
||||||
THANKS
|
|
||||||
)
|
|
||||||
|
|
||||||
# Other data sources that are shipped as "documentation," but which
|
|
||||||
# need to be accessible via their original unmolested filenames.
|
|
||||||
local INTERACTIVE_DATA=(
|
|
||||||
BioC_mirrors.csv
|
|
||||||
CRAN_mirrors.csv
|
|
||||||
KEYWORDS.db
|
|
||||||
NEWS.rds
|
|
||||||
)
|
|
||||||
|
|
||||||
local f NOCOMPRESS_DOCS=( "${INTERACTIVE_DOCS[@]}" "${INTERACTIVE_DATA[@]}" )
|
|
||||||
|
|
||||||
for f in "${NOCOMPRESS_DOCS[@]}"; do
|
|
||||||
docompress -x "/usr/share/doc/${PF}/${f}"
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
if use java; then
|
|
||||||
einfo "Re-initializing java paths for ${P}"
|
|
||||||
R CMD javareconf
|
|
||||||
fi
|
|
||||||
}
|
|
Binary file not shown.
Binary file not shown.
@ -0,0 +1,48 @@
|
|||||||
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
DISTUTILS_USE_PEP517=setuptools
|
||||||
|
PYTHON_COMPAT=( pypy3 python3_{8..11} )
|
||||||
|
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
DESCRIPTION="ANSI escape character sequences for colored terminal text & cursor positioning"
|
||||||
|
HOMEPAGE="
|
||||||
|
https://pypi.org/project/colorama/
|
||||||
|
https://github.com/tartley/colorama/
|
||||||
|
"
|
||||||
|
# https://github.com/tartley/colorama/pull/183
|
||||||
|
SRC_URI="https://github.com/tartley/${PN}/archive/${PV}.tar.gz -> ${P}.github.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="BSD"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
|
||||||
|
IUSE="examples test"
|
||||||
|
RESTRICT="!test? ( test )"
|
||||||
|
|
||||||
|
BDEPEND="
|
||||||
|
test? (
|
||||||
|
dev-python/mock[${PYTHON_USEDEP}]
|
||||||
|
dev-python/pytest[${PYTHON_USEDEP}]
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
python_install_all() {
|
||||||
|
distutils-r1_python_install_all
|
||||||
|
|
||||||
|
if use examples; then
|
||||||
|
docinto examples
|
||||||
|
dodoc -r demos/.
|
||||||
|
docompress -x /usr/share/doc/${PF}/examples
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
python_test() {
|
||||||
|
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
|
||||||
|
# Some tests require stdout to be a TTY
|
||||||
|
# https://github.com/tartley/colorama/issues/169
|
||||||
|
script -eqc "${EPYTHON} -m pytest -vv -s" /dev/null \
|
||||||
|
|| die "tests failed with ${EPYTHON}"
|
||||||
|
}
|
@ -0,0 +1,45 @@
|
|||||||
|
# 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} pypy3 )
|
||||||
|
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
DESCRIPTION="Python parser for the CommonMark Markdown spec"
|
||||||
|
HOMEPAGE="
|
||||||
|
https://pypi.org/project/commonmark/
|
||||||
|
https://github.com/readthedocs/commonmark.py/
|
||||||
|
"
|
||||||
|
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="BSD"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
|
||||||
|
IUSE="test"
|
||||||
|
RESTRICT="!test? ( test )"
|
||||||
|
|
||||||
|
BDEPEND="
|
||||||
|
test? (
|
||||||
|
>=dev-python/hypothesis-3.7.1[${PYTHON_USEDEP}]
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
python_test() {
|
||||||
|
local -x PYTHONIOENCODING='utf8'
|
||||||
|
"${EPYTHON}" commonmark/tests/run_spec_tests.py || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
# Fix file collision with app-text/cmark, see bug #627034
|
||||||
|
sed -i -e "s:'cmark\( = commonmark.cmark\:main'\):'cmark.py\1:" \
|
||||||
|
setup.py || die
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
ewarn "/usr/bin/cmark has been renamed to /usr/bin/cmark.py due file"
|
||||||
|
ewarn "collision with app-text/cmark (see bug #627034)"
|
||||||
|
}
|
@ -0,0 +1,33 @@
|
|||||||
|
# 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} pypy3 )
|
||||||
|
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
DESCRIPTION="parses CSS3 Selectors and translates them to XPath 1.0"
|
||||||
|
HOMEPAGE="
|
||||||
|
https://cssselect.readthedocs.io/en/latest/
|
||||||
|
https://pypi.org/project/cssselect/
|
||||||
|
https://github.com/scrapy/cssselect/
|
||||||
|
"
|
||||||
|
SRC_URI="
|
||||||
|
https://github.com/scrapy/cssselect/archive/v${PV}.tar.gz
|
||||||
|
-> ${P}.tar.gz
|
||||||
|
"
|
||||||
|
|
||||||
|
LICENSE="BSD"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos"
|
||||||
|
|
||||||
|
BDEPEND="
|
||||||
|
test? (
|
||||||
|
dev-python/lxml[${PYTHON_USEDEP}]
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
distutils_enable_sphinx docs
|
||||||
|
distutils_enable_tests unittest
|
@ -1 +1,2 @@
|
|||||||
DIST cython-0.29.28.gh.tar.gz 2101301 BLAKE2B 980c04545e935deb4b4b1653f167dcbc94b8e2b24bc8897b5cc996dfca977645f7475c32aa973251ffcbbb31e725e27693af61ceaf66f2332c9525b02653dc76 SHA512 52490d0b5355e13cbe586830f763173d7556cf3d79d79192ca75138b1190e7a4c1f3feeb0568349802ef3b97300c3805f54eef5ffd73a5180d68f023ac2a44cd
|
DIST cython-0.29.28.gh.tar.gz 2101301 BLAKE2B 980c04545e935deb4b4b1653f167dcbc94b8e2b24bc8897b5cc996dfca977645f7475c32aa973251ffcbbb31e725e27693af61ceaf66f2332c9525b02653dc76 SHA512 52490d0b5355e13cbe586830f763173d7556cf3d79d79192ca75138b1190e7a4c1f3feeb0568349802ef3b97300c3805f54eef5ffd73a5180d68f023ac2a44cd
|
||||||
|
DIST cython-74073417c4f7e616af0a139a55f790f1ec7fe728.gh.tar.gz 2106765 BLAKE2B c2686a1d49fd1b522dcdf89f16c52fbb34595aed72e5626c8d3697ecc9318751d108999db443cfefe08334155ab59d230fcbd8e74715e185a161399abad6ae35 SHA512 2454a364fdd33f0090ba052a0bfa0ffb464ef750253a91c20a63c4db0b513f743870e7b9fafd844b0bf1a6b66b9b639f830d3a8c2f64abac6e197e2ff2279a59
|
||||||
|
@ -0,0 +1,94 @@
|
|||||||
|
# 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} pypy3 )
|
||||||
|
PYTHON_REQ_USE="threads(+)"
|
||||||
|
|
||||||
|
inherit distutils-r1 toolchain-funcs elisp-common
|
||||||
|
|
||||||
|
EGIT_COMMIT="74073417c4f7e616af0a139a55f790f1ec7fe728"
|
||||||
|
MY_P=${PN}-${EGIT_COMMIT}
|
||||||
|
|
||||||
|
DESCRIPTION="A Python to C compiler"
|
||||||
|
HOMEPAGE="
|
||||||
|
https://cython.org/
|
||||||
|
https://github.com/cython/cython/
|
||||||
|
https://pypi.org/project/Cython/
|
||||||
|
"
|
||||||
|
SRC_URI="
|
||||||
|
https://github.com/cython/cython/archive/${EGIT_COMMIT}.tar.gz
|
||||||
|
-> ${MY_P}.gh.tar.gz
|
||||||
|
"
|
||||||
|
S=${WORKDIR}/${MY_P}
|
||||||
|
|
||||||
|
LICENSE="Apache-2.0"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris ~x86-solaris"
|
||||||
|
IUSE="emacs test"
|
||||||
|
RESTRICT="!test? ( test )"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
emacs? ( >=app-editors/emacs-23.1:* )
|
||||||
|
"
|
||||||
|
BDEPEND="
|
||||||
|
${RDEPEND}
|
||||||
|
test? (
|
||||||
|
$(python_gen_cond_dep '
|
||||||
|
dev-python/numpy[${PYTHON_USEDEP}]
|
||||||
|
' python3_{8..10})
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}/${PN}-0.29.22-spawn-multiprocessing.patch"
|
||||||
|
"${FILESDIR}/${PN}-0.29.23-test_exceptions-py310.patch"
|
||||||
|
)
|
||||||
|
|
||||||
|
SITEFILE=50cython-gentoo.el
|
||||||
|
|
||||||
|
distutils_enable_sphinx docs
|
||||||
|
|
||||||
|
python_compile() {
|
||||||
|
# Python gets confused when it is in sys.path before build.
|
||||||
|
local -x PYTHONPATH=
|
||||||
|
|
||||||
|
distutils-r1_python_compile
|
||||||
|
}
|
||||||
|
|
||||||
|
python_compile_all() {
|
||||||
|
use emacs && elisp-compile Tools/cython-mode.el
|
||||||
|
}
|
||||||
|
|
||||||
|
python_test() {
|
||||||
|
if [[ ${EPYTHON} == python3.11 ]]; then
|
||||||
|
einfo "Skipping tests on ${EPYTHON} (xfail)"
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
|
||||||
|
tc-export CC
|
||||||
|
# https://github.com/cython/cython/issues/1911
|
||||||
|
local -x CFLAGS="${CFLAGS} -fno-strict-overflow"
|
||||||
|
"${PYTHON}" runtests.py -vv --work-dir "${BUILD_DIR}"/tests ||
|
||||||
|
die "Tests fail with ${EPYTHON}"
|
||||||
|
}
|
||||||
|
|
||||||
|
python_install_all() {
|
||||||
|
local DOCS=( CHANGES.rst README.rst ToDo.txt USAGE.txt )
|
||||||
|
distutils-r1_python_install_all
|
||||||
|
|
||||||
|
if use emacs; then
|
||||||
|
elisp-install ${PN} Tools/cython-mode.*
|
||||||
|
elisp-site-file-install "${FILESDIR}/${SITEFILE}"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
use emacs && elisp-site-regen
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postrm() {
|
||||||
|
use emacs && elisp-site-regen
|
||||||
|
}
|
@ -0,0 +1,40 @@
|
|||||||
|
# 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} pypy3 )
|
||||||
|
PYTHON_REQ_USE="xml(+)"
|
||||||
|
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
DESCRIPTION="XML bomb protection for Python stdlib modules, an xml serialiser"
|
||||||
|
HOMEPAGE="
|
||||||
|
https://github.com/tiran/defusedxml/
|
||||||
|
https://pypi.org/project/defusedxml/
|
||||||
|
"
|
||||||
|
SRC_URI="
|
||||||
|
https://github.com/tiran/defusedxml/archive/v${PV}.tar.gz
|
||||||
|
-> ${P}.tar.gz
|
||||||
|
"
|
||||||
|
|
||||||
|
LICENSE="PSF-2"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
|
||||||
|
IUSE="examples"
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
distutils-r1_src_prepare
|
||||||
|
sed -i -e 's:verbosity=1:verbosity=2:' tests.py || die
|
||||||
|
mv other examples || die
|
||||||
|
}
|
||||||
|
|
||||||
|
python_test() {
|
||||||
|
"${EPYTHON}" tests.py -v || die
|
||||||
|
}
|
||||||
|
|
||||||
|
python_install_all() {
|
||||||
|
use examples && dodoc -r examples/
|
||||||
|
distutils-r1_python_install_all
|
||||||
|
}
|
@ -0,0 +1,65 @@
|
|||||||
|
# Copyright 2021-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} pypy3 )
|
||||||
|
|
||||||
|
inherit distutils-r1 vcs-snapshot
|
||||||
|
|
||||||
|
DESCRIPTION="Low-level components of distutils2/packaging"
|
||||||
|
HOMEPAGE="
|
||||||
|
https://pypi.org/project/distlib/
|
||||||
|
https://bitbucket.org/pypa/distlib/
|
||||||
|
"
|
||||||
|
# pypi has zip only :-(
|
||||||
|
SRC_URI="
|
||||||
|
https://bitbucket.org/pypa/distlib/get/${PV}.tar.bz2 -> ${P}.tar.bz2
|
||||||
|
"
|
||||||
|
|
||||||
|
LICENSE="PSF-2"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos"
|
||||||
|
IUSE="test"
|
||||||
|
RESTRICT="!test? ( test )"
|
||||||
|
|
||||||
|
# pypiserver is called as external executable
|
||||||
|
# openpyxl installs invalid metadata that breaks distlib
|
||||||
|
BDEPEND="
|
||||||
|
test? (
|
||||||
|
dev-python/pypiserver
|
||||||
|
!!<dev-python/openpyxl-3.0.3[${PYTHON_USEDEP}]
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
# make sure they're not used
|
||||||
|
rm tests/pypi-server-standalone.py || die
|
||||||
|
|
||||||
|
# use system pypiserver instead of broken bundled one
|
||||||
|
eapply "${FILESDIR}"/distlib-0.3.2-system-pypiserver.py || die
|
||||||
|
|
||||||
|
# doesn't work with our patched pip
|
||||||
|
sed -i -e '/PIP_AVAIL/s:True:False:' tests/test_wheel.py || die
|
||||||
|
|
||||||
|
# broken with pypy3
|
||||||
|
sed -i -e 's:test_custom_shebang:_&:' tests/test_scripts.py || die
|
||||||
|
# broken with py3.11, doesn't look important
|
||||||
|
sed -i -e 's:test_sequencer_basic:_&:' tests/test_util.py || die
|
||||||
|
|
||||||
|
distutils-r1_src_prepare
|
||||||
|
}
|
||||||
|
|
||||||
|
python_test() {
|
||||||
|
local -x SKIP_ONLINE=1
|
||||||
|
local -x PYTHONHASHSEED=0
|
||||||
|
|
||||||
|
# disable system-site-packages -- distlib has no deps, and is very
|
||||||
|
# fragile to packages actually installed on the system
|
||||||
|
sed -i -e '/system-site-packages/s:true:false:' \
|
||||||
|
"${BUILD_DIR}/install${EPREFIX}/usr/bin/pyvenv.cfg" || die
|
||||||
|
|
||||||
|
"${EPYTHON}" tests/test_all.py -v -x ||
|
||||||
|
die "Tests failed with ${EPYTHON}"
|
||||||
|
}
|
@ -0,0 +1,26 @@
|
|||||||
|
# Copyright 2018-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} pypy3 )
|
||||||
|
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
DESCRIPTION="RFC-compliant FQDN validation and manipulation for Python"
|
||||||
|
HOMEPAGE="
|
||||||
|
https://github.com/ypcrts/fqdn/
|
||||||
|
https://pypi.org/project/fqdn/
|
||||||
|
"
|
||||||
|
SRC_URI="
|
||||||
|
https://github.com/ypcrts/${PN}/archive/v${PV}.tar.gz
|
||||||
|
-> ${P}.tar.gz
|
||||||
|
"
|
||||||
|
|
||||||
|
LICENSE="MPL-2.0"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
|
||||||
|
|
||||||
|
distutils_enable_tests pytest
|
||||||
|
distutils_enable_sphinx docs
|
@ -0,0 +1,29 @@
|
|||||||
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
DISTUTILS_USE_PEP517=setuptools
|
||||||
|
# Note: greenlet is built-in in pypy
|
||||||
|
PYTHON_COMPAT=( python3_{8..10} )
|
||||||
|
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
DESCRIPTION="Lightweight in-process concurrent programming"
|
||||||
|
HOMEPAGE="
|
||||||
|
https://greenlet.readthedocs.io/en/latest/
|
||||||
|
https://github.com/python-greenlet/greenlet/
|
||||||
|
https://pypi.org/project/greenlet/
|
||||||
|
"
|
||||||
|
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="MIT"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 -hppa -ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos"
|
||||||
|
|
||||||
|
distutils_enable_sphinx docs
|
||||||
|
distutils_enable_tests unittest
|
||||||
|
|
||||||
|
python_test() {
|
||||||
|
eunittest greenlet.tests
|
||||||
|
}
|
@ -0,0 +1,39 @@
|
|||||||
|
# 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} pypy3 )
|
||||||
|
PYTHON_REQ_USE="xml(+)"
|
||||||
|
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
DESCRIPTION="HTML parser based on the HTML5 specification"
|
||||||
|
HOMEPAGE="
|
||||||
|
https://github.com/html5lib/html5lib-python/
|
||||||
|
https://html5lib.readthedocs.io/
|
||||||
|
https://pypi.org/project/html5lib/
|
||||||
|
"
|
||||||
|
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="MIT"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos"
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}"/${P}-pytest6.patch
|
||||||
|
)
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
>=dev-python/six-1.9[${PYTHON_USEDEP}]
|
||||||
|
dev-python/webencodings[${PYTHON_USEDEP}]
|
||||||
|
"
|
||||||
|
BDEPEND="
|
||||||
|
test? (
|
||||||
|
dev-python/pytest-expect[${PYTHON_USEDEP}]
|
||||||
|
dev-python/mock[${PYTHON_USEDEP}]
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
distutils_enable_tests pytest
|
@ -0,0 +1,23 @@
|
|||||||
|
# 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} pypy3 )
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
DESCRIPTION="Capture stdout, stderr easily"
|
||||||
|
HOMEPAGE="https://pypi.org/project/iocapture/"
|
||||||
|
SRC_URI="https://github.com/oinume/iocapture/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
|
||||||
|
LICENSE="MIT"
|
||||||
|
|
||||||
|
BDEPEND="
|
||||||
|
test? (
|
||||||
|
dev-python/six[${PYTHON_USEDEP}]
|
||||||
|
)"
|
||||||
|
|
||||||
|
distutils_enable_tests pytest
|
@ -0,0 +1,39 @@
|
|||||||
|
# Copyright 2021-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} pypy3 )
|
||||||
|
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
DESCRIPTION="Operations with ISO 8601 durations"
|
||||||
|
HOMEPAGE="
|
||||||
|
https://pypi.org/project/isoduration/
|
||||||
|
https://github.com/bolsote/isoduration/
|
||||||
|
"
|
||||||
|
SRC_URI="
|
||||||
|
https://github.com/bolsote/isoduration/archive/${PV}.tar.gz
|
||||||
|
-> ${P}.gh.tar.gz
|
||||||
|
"
|
||||||
|
|
||||||
|
LICENSE="ISC"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
>=dev-python/arrow-0.15.0[${PYTHON_USEDEP}]
|
||||||
|
"
|
||||||
|
BDEPEND="
|
||||||
|
test? (
|
||||||
|
dev-python/hypothesis[${PYTHON_USEDEP}]
|
||||||
|
dev-python/isodate[${PYTHON_USEDEP}]
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
distutils_enable_tests pytest
|
||||||
|
|
||||||
|
EPYTEST_IGNORE=(
|
||||||
|
tests/test_benchmark.py
|
||||||
|
)
|
@ -0,0 +1,22 @@
|
|||||||
|
# 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} pypy3 )
|
||||||
|
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
DESCRIPTION="Utility library for gitignore style pattern matching of file paths"
|
||||||
|
HOMEPAGE="
|
||||||
|
https://github.com/cpburnz/python-path-specification/
|
||||||
|
https://pypi.org/project/pathspec/
|
||||||
|
"
|
||||||
|
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="MPL-2.0"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos"
|
||||||
|
|
||||||
|
distutils_enable_tests unittest
|
@ -1,2 +1 @@
|
|||||||
DIST psutil-5.7.3.tar.gz 465556 BLAKE2B 6a9f31fcba571f381c1f4c904a9ff65659d13ed64e91df478aa7df4dabb87a35c4fbd9c0491a3d10b9eaf0fdcc8f2407fcf7144e729043eda605dfe6e6f93844 SHA512 8fcff56dd4e4c1b877c09023721e6f562424f7f84ae5304d518976a1e7f21dd026772f1abfc063bdd0857a375bc869f42febde090dc0b65918d1ebf44e3ad71d
|
|
||||||
DIST psutil-5.9.0.tar.gz 478322 BLAKE2B 763c8ae14ae546bed64a360047d2ce38783e9e7e939160f751c4ccc94b8e023aaa4cdca426f584e05dae8b1326333660e216d7cb3edd820e24a931dddfa5160f SHA512 b521cfce51e90fdf87ba19bf8069877e3210aede92c17460ea0b00324a36e133168e4bff550462d07ab6d93c597c6560d68954340031ff43168d54a8e5d4c4e7
|
DIST psutil-5.9.0.tar.gz 478322 BLAKE2B 763c8ae14ae546bed64a360047d2ce38783e9e7e939160f751c4ccc94b8e023aaa4cdca426f584e05dae8b1326333660e216d7cb3edd820e24a931dddfa5160f SHA512 b521cfce51e90fdf87ba19bf8069877e3210aede92c17460ea0b00324a36e133168e4bff550462d07ab6d93c597c6560d68954340031ff43168d54a8e5d4c4e7
|
||||||
|
@ -1,112 +0,0 @@
|
|||||||
From e910d08976e00bc12b5a516daa9e6a6d42d48354 Mon Sep 17 00:00:00 2001
|
|
||||||
From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
|
|
||||||
Date: Wed, 19 Feb 2020 07:27:32 +0100
|
|
||||||
Subject: [PATCH] Skip broken tests on Gentoo
|
|
||||||
|
|
||||||
---
|
|
||||||
psutil/tests/test_linux.py | 8 ++++++++
|
|
||||||
psutil/tests/test_posix.py | 1 +
|
|
||||||
psutil/tests/test_process.py | 2 ++
|
|
||||||
psutil/tests/test_system.py | 1 +
|
|
||||||
4 files changed, 12 insertions(+)
|
|
||||||
|
|
||||||
diff --git a/psutil/tests/test_linux.py b/psutil/tests/test_linux.py
|
|
||||||
index e51f8bd5..48527ccb 100755
|
|
||||||
--- a/psutil/tests/test_linux.py
|
|
||||||
+++ b/psutil/tests/test_linux.py
|
|
||||||
@@ -17,5 +17,6 @@ import re
|
|
||||||
import shutil
|
|
||||||
import socket
|
|
||||||
import struct
|
|
||||||
+import sys
|
|
||||||
import textwrap
|
|
||||||
import time
|
|
||||||
@@ -381,6 +382,8 @@ class TestSystemVirtualMemory(unittest.TestCase):
|
|
||||||
ret = psutil.virtual_memory()
|
|
||||||
assert m.called
|
|
||||||
self.assertEqual(ret.available, 2057400 * 1024 + 4818144 * 1024)
|
|
||||||
+ if sys.version_info < (3,):
|
|
||||||
+ return
|
|
||||||
w = ws[0]
|
|
||||||
self.assertIn(
|
|
||||||
"inactive memory stats couldn't be determined", str(w.message))
|
|
||||||
@@ -411,6 +414,8 @@ class TestSystemVirtualMemory(unittest.TestCase):
|
|
||||||
ret = psutil.virtual_memory()
|
|
||||||
self.assertEqual(
|
|
||||||
ret.available, 2057400 * 1024 + 4818144 * 1024)
|
|
||||||
+ if sys.version_info < (3,):
|
|
||||||
+ return
|
|
||||||
w = ws[0]
|
|
||||||
self.assertIn(
|
|
||||||
"inactive memory stats couldn't be determined",
|
|
||||||
@@ -882,6 +887,7 @@ class TestLoadAvg(unittest.TestCase):
|
|
||||||
@unittest.skipIf(not LINUX, "LINUX only")
|
|
||||||
class TestSystemNetIfAddrs(unittest.TestCase):
|
|
||||||
|
|
||||||
+ @unittest.skip("broken on Gentoo")
|
|
||||||
def test_ips(self):
|
|
||||||
for name, addrs in psutil.net_if_addrs().items():
|
|
||||||
for addr in addrs:
|
|
||||||
@@ -1364,7 +1370,8 @@ class TestMisc(unittest.TestCase):
|
|
||||||
psutil.PROCFS_PATH = "/proc"
|
|
||||||
os.rmdir(tdir)
|
|
||||||
|
|
||||||
@retry_on_failure()
|
|
||||||
+ @unittest.skip("broken on Gentoo")
|
|
||||||
def test_issue_687(self):
|
|
||||||
# In case of thread ID:
|
|
||||||
# - pid_exists() is supposed to return False
|
|
||||||
@@ -2073,6 +2080,7 @@ class TestProcessAgainstStatus(unittest.TestCase):
|
|
||||||
value = self.read_status_file("nonvoluntary_ctxt_switches:")
|
|
||||||
self.assertEqual(self.proc.num_ctx_switches().involuntary, value)
|
|
||||||
|
|
||||||
+ @unittest.skip("broken on Gentoo")
|
|
||||||
def test_cpu_affinity(self):
|
|
||||||
value = self.read_status_file("Cpus_allowed_list:")
|
|
||||||
if '-' in str(value):
|
|
||||||
diff --git a/psutil/tests/test_posix.py b/psutil/tests/test_posix.py
|
|
||||||
index a96b310f..70199203 100755
|
|
||||||
--- a/psutil/tests/test_posix.py
|
|
||||||
+++ b/psutil/tests/test_posix.py
|
|
||||||
@@ -364,6 +364,7 @@ class TestSystemAPIs(unittest.TestCase):
|
|
||||||
"couldn't find %s nic in 'ifconfig -a' output\n%s" % (
|
|
||||||
nic, output))
|
|
||||||
|
|
||||||
+ @unittest.skip("broken on Gentoo")
|
|
||||||
@unittest.skipIf(CI_TESTING and not psutil.users(), "unreliable on CI")
|
|
||||||
@retry_on_failure()
|
|
||||||
def test_users(self):
|
|
||||||
diff --git a/psutil/tests/test_process.py b/psutil/tests/test_process.py
|
|
||||||
index 987bdf38..cb04f3ef 100755
|
|
||||||
--- a/psutil/tests/test_process.py
|
|
||||||
+++ b/psutil/tests/test_process.py
|
|
||||||
@@ -350,6 +350,7 @@ class TestProcess(unittest.TestCase):
|
|
||||||
self.assertGreaterEqual(io2[i], 0)
|
|
||||||
self.assertGreaterEqual(io2[i], 0)
|
|
||||||
|
|
||||||
+ @unittest.skip("fails if builder is ioniced already")
|
|
||||||
@unittest.skipIf(not HAS_IONICE, "not supported")
|
|
||||||
@unittest.skipIf(not LINUX, "linux only")
|
|
||||||
def test_ionice_linux(self):
|
|
||||||
@@ -1495,6 +1496,7 @@ class TestProcess(unittest.TestCase):
|
|
||||||
d2 = clean_dict(os.environ.copy())
|
|
||||||
self.assertEqual(d1, d2)
|
|
||||||
|
|
||||||
+ @unittest.skip("broken by sandbox")
|
|
||||||
@unittest.skipIf(not HAS_ENVIRON, "not supported")
|
|
||||||
@unittest.skipIf(not POSIX, "POSIX only")
|
|
||||||
def test_weird_environ(self):
|
|
||||||
diff --git a/psutil/tests/test_system.py b/psutil/tests/test_system.py
|
|
||||||
index 3834209f..b07b5883 100755
|
|
||||||
--- a/psutil/tests/test_system.py
|
|
||||||
+++ b/psutil/tests/test_system.py
|
|
||||||
@@ -215,6 +215,7 @@ class TestMiscAPIs(unittest.TestCase):
|
|
||||||
self.assertGreater(bt, 0)
|
|
||||||
self.assertLess(bt, time.time())
|
|
||||||
|
|
||||||
+ @unittest.skip("broken on Gentoo")
|
|
||||||
@unittest.skipIf(CI_TESTING and not psutil.users(), "unreliable on CI")
|
|
||||||
def test_users(self):
|
|
||||||
users = psutil.users()
|
|
||||||
--
|
|
||||||
2.25.1
|
|
@ -1,39 +0,0 @@
|
|||||||
# Copyright 1999-2021 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="Retrieve information on running processes and system utilization"
|
|
||||||
HOMEPAGE="https://github.com/giampaolo/psutil https://pypi.org/project/psutil/"
|
|
||||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="BSD"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
|
||||||
IUSE="test"
|
|
||||||
RESTRICT="!test? ( test )"
|
|
||||||
|
|
||||||
PATCHES=(
|
|
||||||
"${FILESDIR}/psutil-5.7.2-tests.patch"
|
|
||||||
)
|
|
||||||
|
|
||||||
python_test() {
|
|
||||||
if [[ ${EPYTHON} == pypy* ]]; then
|
|
||||||
ewarn "Not running tests on ${EPYTHON} since they are broken"
|
|
||||||
return 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
# since we are running in an environment a bit similar to CI,
|
|
||||||
# let's skip the tests that are disable for CI
|
|
||||||
TRAVIS=1 APPVEYOR=1 "${EPYTHON}" psutil/tests/runner.py ||
|
|
||||||
die "tests failed with ${EPYTHON}"
|
|
||||||
}
|
|
||||||
|
|
||||||
python_compile() {
|
|
||||||
# force -j1 to avoid .o linking race conditions
|
|
||||||
local MAKEOPTS=-j1
|
|
||||||
distutils-r1_python_compile
|
|
||||||
}
|
|
@ -0,0 +1,45 @@
|
|||||||
|
# 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} pypy3 )
|
||||||
|
|
||||||
|
inherit distutils-r1 bash-completion-r1
|
||||||
|
|
||||||
|
MY_P=${P^}
|
||||||
|
DESCRIPTION="Pygments is a syntax highlighting package written in Python"
|
||||||
|
HOMEPAGE="
|
||||||
|
https://pygments.org/
|
||||||
|
https://github.com/pygments/pygments/
|
||||||
|
https://pypi.org/project/Pygments/
|
||||||
|
"
|
||||||
|
SRC_URI="mirror://pypi/${MY_P:0:1}/${PN^}/${MY_P}.tar.gz"
|
||||||
|
S=${WORKDIR}/${MY_P}
|
||||||
|
|
||||||
|
LICENSE="BSD"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
|
||||||
|
|
||||||
|
BDEPEND="
|
||||||
|
test? (
|
||||||
|
dev-python/lxml[${PYTHON_USEDEP}]
|
||||||
|
dev-python/pillow[${PYTHON_USEDEP}]
|
||||||
|
dev-python/wcag-contrast-ratio[${PYTHON_USEDEP}]
|
||||||
|
virtual/ttf-fonts
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}/${PN}-2.11.2-fix-docs-relative.patch"
|
||||||
|
)
|
||||||
|
|
||||||
|
distutils_enable_sphinx doc \
|
||||||
|
dev-python/wcag-contrast-ratio
|
||||||
|
distutils_enable_tests pytest
|
||||||
|
|
||||||
|
python_install_all() {
|
||||||
|
distutils-r1_python_install_all
|
||||||
|
newbashcomp external/pygments.bashcomp pygmentize
|
||||||
|
}
|
@ -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} pypy3 )
|
||||||
|
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
DESCRIPTION="Persistent/Functional/Immutable data structures"
|
||||||
|
HOMEPAGE="
|
||||||
|
https://github.com/tobgu/pyrsistent/
|
||||||
|
https://pypi.org/project/pyrsistent/
|
||||||
|
"
|
||||||
|
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="MIT"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
|
||||||
|
|
||||||
|
BDEPEND="
|
||||||
|
test? (
|
||||||
|
dev-python/hypothesis[${PYTHON_USEDEP}]
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
distutils_enable_tests pytest
|
@ -0,0 +1,27 @@
|
|||||||
|
# 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} pypy3 )
|
||||||
|
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
DESCRIPTION="pytest plugin that stores test expectations by saving the set of failing tests"
|
||||||
|
HOMEPAGE="
|
||||||
|
https://github.com/gsnedders/pytest-expect/
|
||||||
|
https://pypi.org/project/pytest-expect/
|
||||||
|
"
|
||||||
|
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="MIT"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
|
||||||
|
# no tests
|
||||||
|
RESTRICT="test"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
dev-python/pytest[${PYTHON_USEDEP}]
|
||||||
|
dev-python/u-msgpack-python[${PYTHON_USEDEP}]
|
||||||
|
"
|
@ -0,0 +1,47 @@
|
|||||||
|
# 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} pypy3 )
|
||||||
|
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
DESCRIPTION="Extensions to the standard Python datetime module"
|
||||||
|
HOMEPAGE="
|
||||||
|
https://dateutil.readthedocs.io/
|
||||||
|
https://pypi.org/project/python-dateutil/
|
||||||
|
https://github.com/dateutil/dateutil/
|
||||||
|
"
|
||||||
|
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="BSD"
|
||||||
|
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"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
>=dev-python/six-1.5[${PYTHON_USEDEP}]
|
||||||
|
sys-libs/timezone-data
|
||||||
|
"
|
||||||
|
BDEPEND="
|
||||||
|
dev-python/setuptools_scm[${PYTHON_USEDEP}]
|
||||||
|
test? (
|
||||||
|
dev-python/freezegun[${PYTHON_USEDEP}]
|
||||||
|
dev-python/hypothesis[${PYTHON_USEDEP}]
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}/python-dateutil-2.8.2-system-tzdata.patch"
|
||||||
|
"${FILESDIR}/python-dateutil-2.8.1-no-pytest-cov.patch"
|
||||||
|
)
|
||||||
|
|
||||||
|
distutils_enable_tests pytest
|
||||||
|
|
||||||
|
python_prepare_all() {
|
||||||
|
# don't install zoneinfo tarball
|
||||||
|
sed -i '/package_data=/d' setup.py || die
|
||||||
|
|
||||||
|
distutils-r1_python_prepare_all
|
||||||
|
}
|
@ -1 +1,2 @@
|
|||||||
DIST python-poppler-qt5-0.75.0.tar.gz 23281 BLAKE2B 06b2b0899d2a3cfc84e623b98cc3379aa45ac9ca9267f25168cce04f2ed761fd897043376fda3386b2daff2b46850b24782cafd6aabb13a8e7d6f3920b55a02c SHA512 2f03036a2eaeb8e28875f19a813ff85a91c1e9a94301bdb736ecc50e7ececb4de2622728e6fecbf64e114435529f82b6afd23d772e2d3910ae03d5d2b5da3205
|
DIST python-poppler-qt5-0.75.0.tar.gz 23281 BLAKE2B 06b2b0899d2a3cfc84e623b98cc3379aa45ac9ca9267f25168cce04f2ed761fd897043376fda3386b2daff2b46850b24782cafd6aabb13a8e7d6f3920b55a02c SHA512 2f03036a2eaeb8e28875f19a813ff85a91c1e9a94301bdb736ecc50e7ececb4de2622728e6fecbf64e114435529f82b6afd23d772e2d3910ae03d5d2b5da3205
|
||||||
|
DIST python-poppler-qt5-21.3.0.tar.gz 25641 BLAKE2B 5937f1ddc1493bb1ef1d98b91dd8ccec4bd8c835956d84c8d7ce7a1cedcbe16854861e1f13825812e0f74c335020f0d74aad2d2bbc7a5780c6eb3ac77437f13b SHA512 cc942a860c2c999ff04fb0468b1556b0e23e7aa19a0185a39c5e903e717dca64bcbd51b8fe34b6885bd789cbf5cc1080c2ca1dcee30b3e69fa1721618e8db278
|
||||||
|
@ -0,0 +1,33 @@
|
|||||||
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
DISTUTILS_USE_PEP517=sip
|
||||||
|
PYTHON_COMPAT=( python3_{8..10} )
|
||||||
|
|
||||||
|
inherit distutils-r1 multiprocessing qmake-utils
|
||||||
|
|
||||||
|
DESCRIPTION="Python binding for libpoppler-qt5"
|
||||||
|
HOMEPAGE="https://github.com/frescobaldi/python-poppler-qt5"
|
||||||
|
SRC_URI="https://github.com/frescobaldi/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="LGPL-2.1"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
app-text/poppler[qt5]
|
||||||
|
dev-python/PyQt5[${PYTHON_USEDEP}]
|
||||||
|
"
|
||||||
|
DEPEND="${RDEPEND}"
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
DISTUTILS_ARGS=(
|
||||||
|
--jobs="$(makeopts_jobs)"
|
||||||
|
--qmake="$(qt5_get_bindir)"/qmake
|
||||||
|
--qmake-setting="$(qt5_get_qmake_args)"
|
||||||
|
--verbose
|
||||||
|
)
|
||||||
|
}
|
@ -0,0 +1,49 @@
|
|||||||
|
# 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} pypy3 )
|
||||||
|
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
DESCRIPTION="YAML parser and emitter for Python"
|
||||||
|
HOMEPAGE="
|
||||||
|
https://pyyaml.org/wiki/PyYAML
|
||||||
|
https://pypi.org/project/PyYAML/
|
||||||
|
https://github.com/yaml/pyyaml/
|
||||||
|
"
|
||||||
|
SRC_URI="
|
||||||
|
https://github.com/yaml/pyyaml/archive/${PV}.tar.gz
|
||||||
|
-> ${P}.gh.tar.gz
|
||||||
|
"
|
||||||
|
|
||||||
|
LICENSE="MIT"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris ~x86-solaris"
|
||||||
|
IUSE="examples"
|
||||||
|
|
||||||
|
DEPEND="
|
||||||
|
dev-libs/libyaml:=
|
||||||
|
"
|
||||||
|
RDEPEND="
|
||||||
|
${DEPEND}
|
||||||
|
"
|
||||||
|
BDEPEND="
|
||||||
|
dev-python/cython[${PYTHON_USEDEP}]
|
||||||
|
"
|
||||||
|
|
||||||
|
distutils_enable_tests setup.py
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
export PYYAML_FORCE_CYTHON=1
|
||||||
|
}
|
||||||
|
|
||||||
|
python_install_all() {
|
||||||
|
distutils-r1_python_install_all
|
||||||
|
if use examples; then
|
||||||
|
dodoc -r examples
|
||||||
|
docompress -x /usr/share/doc/${PF}
|
||||||
|
fi
|
||||||
|
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue