parent
5ced1896e1
commit
19c05e5739
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,162 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/gnupg.asc
|
||||
inherit flag-o-matic systemd toolchain-funcs verify-sig
|
||||
|
||||
MY_P="${P/_/-}"
|
||||
|
||||
DESCRIPTION="The GNU Privacy Guard, a GPL OpenPGP implementation"
|
||||
HOMEPAGE="https://gnupg.org/"
|
||||
SRC_URI="mirror://gnupg/gnupg/${MY_P}.tar.bz2"
|
||||
SRC_URI+=" verify-sig? ( mirror://gnupg/gnupg/${P}.tar.bz2.sig )"
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="bzip2 doc ldap nls readline selinux +smartcard ssl test +tofu tpm tools usb user-socket wks-server"
|
||||
RESTRICT="!test? ( test )"
|
||||
REQUIRED_USE="test? ( tofu )"
|
||||
|
||||
# Existence of executables is checked during configuration.
|
||||
# Note: On each bump, update dep bounds on each version from configure.ac!
|
||||
DEPEND=">=dev-libs/libassuan-2.5.0
|
||||
>=dev-libs/libgcrypt-1.9.1:=
|
||||
>=dev-libs/libgpg-error-1.41
|
||||
>=dev-libs/libksba-1.3.4
|
||||
>=dev-libs/npth-1.2
|
||||
>=net-misc/curl-7.10
|
||||
bzip2? ( app-arch/bzip2 )
|
||||
ldap? ( net-nds/openldap:= )
|
||||
readline? ( sys-libs/readline:0= )
|
||||
smartcard? ( usb? ( virtual/libusb:1 ) )
|
||||
tofu? ( >=dev-db/sqlite-3.27 )
|
||||
tpm? ( >=app-crypt/tpm2-tss-2.4.0:= )
|
||||
ssl? ( >=net-libs/gnutls-3.0:0= )
|
||||
sys-libs/zlib
|
||||
"
|
||||
|
||||
RDEPEND="${DEPEND}
|
||||
app-crypt/pinentry
|
||||
nls? ( virtual/libintl )
|
||||
selinux? ( sec-policy/selinux-gpg )
|
||||
wks-server? ( virtual/mta )"
|
||||
|
||||
BDEPEND="virtual/pkgconfig
|
||||
doc? ( sys-apps/texinfo )
|
||||
nls? ( sys-devel/gettext )
|
||||
verify-sig? ( sec-keys/openpgp-keys-gnupg )"
|
||||
|
||||
DOCS=(
|
||||
ChangeLog NEWS README THANKS TODO VERSION
|
||||
doc/FAQ doc/DETAILS doc/HACKING doc/TRANSLATE doc/OpenPGP doc/KEYSERVER
|
||||
)
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-2.1.20-gpgscm-Use-shorter-socket-path-lengts-to-improve-tes.patch
|
||||
"${FILESDIR}"/${P}-fix-buffering-hang.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# Inject SSH_AUTH_SOCK into user's sessions after enabling gpg-agent-ssh.socket in systemctl --user mode,
|
||||
# idea borrowed from libdbus, see
|
||||
# https://gitlab.freedesktop.org/dbus/dbus/-/blob/master/bus/systemd-user/dbus.socket.in#L6
|
||||
#
|
||||
# This cannot be upstreamed, as it requires determining the exact prefix of 'systemctl',
|
||||
# which in turn requires discovery in Autoconf, something that upstream deeply resents.
|
||||
sed -e "/DirectoryMode=/a ExecStartPost=-${EPREFIX}/bin/systemctl --user set-environment SSH_AUTH_SOCK=%t/gnupg/S.gpg-agent.ssh" \
|
||||
-i doc/examples/systemd-user/gpg-agent-ssh.socket || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf=(
|
||||
$(use_enable bzip2)
|
||||
$(use_enable nls)
|
||||
$(use_enable smartcard scdaemon)
|
||||
$(use_enable ssl gnutls)
|
||||
$(use_enable tofu)
|
||||
$(use_enable tofu keyboxd)
|
||||
$(use_enable tofu sqlite)
|
||||
$(usex tpm '--with-tss=intel' '--disable-tpm2d')
|
||||
$(use smartcard && use_enable usb ccid-driver || echo '--disable-ccid-driver')
|
||||
$(use_enable wks-server wks-tools)
|
||||
$(use_with ldap)
|
||||
$(use_with readline)
|
||||
--with-mailprog=/usr/libexec/sendmail
|
||||
--disable-ntbtls
|
||||
--enable-all-tests
|
||||
--enable-gpgsm
|
||||
--enable-large-secmem
|
||||
CC_FOR_BUILD="$(tc-getBUILD_CC)"
|
||||
GPG_ERROR_CONFIG="${ESYSROOT}/usr/bin/${CHOST}-gpg-error-config"
|
||||
KSBA_CONFIG="${ESYSROOT}/usr/bin/ksba-config"
|
||||
LIBASSUAN_CONFIG="${ESYSROOT}/usr/bin/libassuan-config"
|
||||
LIBGCRYPT_CONFIG="${ESYSROOT}/usr/bin/${CHOST}-libgcrypt-config"
|
||||
NPTH_CONFIG="${ESYSROOT}/usr/bin/npth-config"
|
||||
$("${S}/configure" --help | grep -o -- '--without-.*-prefix')
|
||||
)
|
||||
|
||||
if use prefix && use usb; then
|
||||
# bug #649598
|
||||
append-cppflags -I"${EPREFIX}/usr/include/libusb-1.0"
|
||||
fi
|
||||
|
||||
#bug 663142
|
||||
if use user-socket; then
|
||||
myconf+=( --enable-run-gnupg-user-socket )
|
||||
fi
|
||||
|
||||
# glib fails and picks up clang's internal stdint.h causing weird errors
|
||||
[[ ${CC} == *clang ]] && \
|
||||
export gl_cv_absolute_stdint_h=/usr/include/stdint.h
|
||||
|
||||
# Hardcode mailprog to /usr/libexec/sendmail even if it does not exist.
|
||||
# As of GnuPG 2.3, the mailprog substitution is used for the binary called
|
||||
# by wks-client & wks-server; and if it's autodetected but not not exist at
|
||||
# build time, then then 'gpg-wks-client --send' functionality will not
|
||||
# work. This has an unwanted side-effect in stage3 builds: there was a
|
||||
# [R]DEPEND on virtual/mta, which also brought in virtual/logger, bloating
|
||||
# the build where the install guide previously make the user chose the
|
||||
# logger & mta early in the install.
|
||||
|
||||
econf "${myconf[@]}"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
default
|
||||
|
||||
use doc && emake -C doc html
|
||||
}
|
||||
|
||||
src_test() {
|
||||
#Bug: 638574
|
||||
use tofu && export TESTFLAGS=--parallel
|
||||
default
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
use tools &&
|
||||
dobin \
|
||||
tools/{convert-from-106,gpg-check-pattern} \
|
||||
tools/{gpgconf,gpgsplit,lspgpot,mail-signed-keys} \
|
||||
tools/make-dns-cert
|
||||
|
||||
dosym gpg /usr/bin/gpg2
|
||||
dosym gpgv /usr/bin/gpgv2
|
||||
echo ".so man1/gpg.1" > "${ED}"/usr/share/man/man1/gpg2.1 || die
|
||||
echo ".so man1/gpgv.1" > "${ED}"/usr/share/man/man1/gpgv2.1 || die
|
||||
|
||||
dodir /etc/env.d
|
||||
echo "CONFIG_PROTECT=/usr/share/gnupg/qualified.txt" >> "${ED}"/etc/env.d/30gnupg || die
|
||||
|
||||
use doc && dodoc doc/gnupg.html/* doc/*.png
|
||||
|
||||
systemd_douserunit doc/examples/systemd-user/*.{service,socket}
|
||||
}
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,178 @@
|
||||
# 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 mirror://apache/xmlgraphics/batik/source/batik-src-1.14.tar.gz --slot 1.14 --keywords "~amd64 ~ppc64 ~x86" --ebuild batik-1.14.ebuild
|
||||
|
||||
EAPI=8
|
||||
|
||||
JAVA_PKG_IUSE="doc source test"
|
||||
MAVEN_ID="org.apache.xmlgraphics:batik:1.14"
|
||||
JAVA_TESTING_FRAMEWORKS="junit-4"
|
||||
|
||||
inherit desktop java-pkg-2 java-pkg-simple xdg-utils
|
||||
|
||||
DESCRIPTION="XML Graphics Batik"
|
||||
HOMEPAGE="https://xmlgraphics.apache.org/batik/"
|
||||
SRC_URI="mirror://apache/xmlgraphics/batik/source/batik-src-${PV}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="1.14"
|
||||
KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
|
||||
|
||||
CP_DEPEND="
|
||||
dev-java/jacl:0
|
||||
dev-java/jython:2.7
|
||||
dev-java/rhino:1.6
|
||||
dev-java/xalan:0
|
||||
dev-java/xml-commons-external:1.4
|
||||
dev-java/xmlgraphics-commons:2
|
||||
"
|
||||
|
||||
DEPEND="${CP_DEPEND}
|
||||
>=virtual/jdk-1.8:*"
|
||||
|
||||
RDEPEND="${CP_DEPEND}
|
||||
>=virtual/jre-1.8:*"
|
||||
|
||||
DOCS=( CHANGES NOTICE README )
|
||||
|
||||
S="${WORKDIR}/batik-${PV}"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
java-pkg_clean
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# We loop over the modules list and compile the jar files.
|
||||
while read module; do
|
||||
einfo "Compiling $module"
|
||||
|
||||
JAVA_SRC_DIR=""
|
||||
JAVA_RESOURCE_DIRS=""
|
||||
JAVA_JAR_FILENAME="$module.jar"
|
||||
JAVA_MAIN_CLASS=""
|
||||
|
||||
# Not all of the modules have resources.
|
||||
if [[ -d $module/src/main/resources ]]; then
|
||||
JAVA_RESOURCE_DIRS="$module/src/main/resources"
|
||||
fi
|
||||
|
||||
# Don't let sed die on modules without MainClass.
|
||||
JAVA_MAIN_CLASS=$( sed -n 's:.*<mainClass>\(.*\)</mainClass>:\1:p' $module/pom.xml )
|
||||
|
||||
# Some modules don't have source code.
|
||||
if [[ -d $module/src/main/java/org ]]; then
|
||||
JAVA_SRC_DIR="$module/src/main/java"
|
||||
java-pkg-simple_src_compile
|
||||
else
|
||||
# This case applies to batik-rasterizer.
|
||||
if [[ -d $module/src/main/resources/org ]]; then
|
||||
jar -cfe $module.jar "${JAVA_MAIN_CLASS}" -C "$module/src/main/resources" . || die
|
||||
# Else for batik-rasterizer-ext, batik-squiggle and batik-squiggle-ext
|
||||
else
|
||||
jar -cfe $module.jar "${JAVA_MAIN_CLASS}" -C . README || die
|
||||
zip -d $module.jar "README"
|
||||
fi
|
||||
fi
|
||||
|
||||
JAVA_GENTOO_CLASSPATH_EXTRA+=":$module.jar"
|
||||
|
||||
rm -fr target || die
|
||||
# Modules batik-rasterizer-ext and batik-squiggle-ext, upstream puts their jar files in the extensions
|
||||
# directory, see batik-extension/src/main/resources/org/apache/batik/extensions/README.txt
|
||||
# We keep them in the mudules list for later but omit them by 'grep -v'.
|
||||
# The same for batik-test-old which depends on fop-transcoder-allinone which itself depends on batik.
|
||||
# batik-1.14-modules is the "Reactor Build Order" extracted from the output of "mvn dependency:tree".
|
||||
done < <(grep -v '\(batik-rasterizer-ext\|batik-squiggle-ext\|batik-test-old\)' "${FILESDIR}"/batik-1.14-modules)
|
||||
|
||||
if use doc; then
|
||||
JAVA_SRC_DIR=""
|
||||
JAVA_JAR_FILENAME="ignoreme.jar"
|
||||
|
||||
while read module; do
|
||||
# Some modules don't have source code
|
||||
if [[ -d $module/src/main/java/org ]]; then
|
||||
JAVA_SRC_DIR+=( "$module/src/main/java" )
|
||||
fi
|
||||
done < "${FILESDIR}"/batik-1.14-modules
|
||||
|
||||
java-pkg-simple_src_compile
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
JAVA_TEST_GENTOO_CLASSPATH="junit-4"
|
||||
|
||||
while read module; do
|
||||
einfo "Testing $module"
|
||||
|
||||
JAVA_TEST_SRC_DIR=""
|
||||
JAVA_TEST_RESOURCE_DIRS=""
|
||||
JAVA_TEST_RUN_ONLY=""
|
||||
|
||||
if [[ -d $module/src/test/resources ]]; then
|
||||
JAVA_TEST_RESOURCE_DIRS="$module/src/test/resources"
|
||||
fi
|
||||
|
||||
# https://github.com/apache/xmlgraphics-batik/blob/refs/tags/batik-1_14/batik-util/pom.xml#L74-L75
|
||||
if [[ $module == batik-util ]]; then
|
||||
JAVA_TEST_RUN_ONLY="org.apache.batik.util.Base64TestCases"
|
||||
fi
|
||||
|
||||
if [[ -d $module/src/test/java/org ]]; then
|
||||
JAVA_TEST_SRC_DIR="$module/src/test/java"
|
||||
java-pkg-simple_src_test
|
||||
fi
|
||||
done < <(grep -v '\(batik-rasterizer-ext\|batik-squiggle-ext\|batik-test-old\)' "${FILESDIR}"/batik-1.14-modules)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
einstalldocs
|
||||
domenu "${FILESDIR}"/batik-squiggle.desktop
|
||||
doicon batik-svgbrowser/src/main/resources/org/apache/batik/apps/svgbrowser/resources/init.svg
|
||||
|
||||
while read module; do
|
||||
JAVA_MAIN_CLASS=$( sed -n 's:.*<mainClass>\(.*\)</mainClass>:\1:p' $module/pom.xml )
|
||||
|
||||
java-pkg_dojar $module.jar
|
||||
|
||||
# Add a launcher if the module has a MainClass.
|
||||
if [[ -n "${JAVA_MAIN_CLASS}" ]]; then
|
||||
java-pkg_dolauncher "$module-${SLOT}" --main "${JAVA_MAIN_CLASS}"
|
||||
fi
|
||||
|
||||
# Some modules don't have source code
|
||||
if [[ -d $module/src/main/java/org ]]; then
|
||||
if use source; then
|
||||
java-pkg_dosrc "$module/src/main/java/*"
|
||||
fi
|
||||
fi
|
||||
done < <(grep -v '\(batik-rasterizer-ext\|batik-squiggle-ext\|batik-test-old\)' "${FILESDIR}"/batik-1.14-modules)
|
||||
|
||||
local java_policy_file="${JAVA_PKG_SHAREPATH}/etc/${PN}.policy"
|
||||
insinto "$(dirname "${java_policy_file}")"
|
||||
newins - "$(basename "${java_policy_file}")" <<- _EOF_
|
||||
grant codeBase "file:${EPREFIX}${JAVA_PKG_JARDEST}/-" {
|
||||
permission java.security.AllPermission;
|
||||
};
|
||||
_EOF_
|
||||
java-pkg_register-environment-variable \
|
||||
gjl_java_args \
|
||||
"-Djava.security.policy=file:${EPREFIX}${java_policy_file}"
|
||||
|
||||
if use doc; then
|
||||
java-pkg_dojavadoc target/api
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_desktop_database_update
|
||||
xdg_icon_cache_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
xdg_desktop_database_update
|
||||
xdg_icon_cache_update
|
||||
}
|
Binary file not shown.
@ -1 +1,2 @@
|
||||
DIST flatbuffers-2.0.0.tar.gz 1538022 BLAKE2B ccd827a43da39cf831727b439beed0cea216cdf50dbfe70954854bbe388b2c47ed4e78cc87e3fc0d5568034b13baa2ea96480914cc8129747bccbf8ea928847c SHA512 26a06b572c0e4c9685743bd2d2162ac7dcd74b9324624cc3f3ef5b154c0cee7c52a04b77cdc184245d2d6ae38dfdcc4fd66001c318aa8ca001d2bf1d85d66a89
|
||||
DIST flatbuffers-2.0.6.tar.gz 1724250 BLAKE2B b6969b28dba753c4551b33d27409d9925c10a640ae860264f8054c19a470ce3da366c0bf7917bf7fe4f6cb57acbfbe1837f175fde40b84d311df6d1378d146ce SHA512 be631f34064c28d81876bf137c796e9736623cf2cc4f2a05dd45372e7195729c99fad1fa795f8ce71a408756a842edbdc0c3bc714a7cf63203a1de8681d86fb6
|
||||
|
@ -0,0 +1,34 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit cmake
|
||||
|
||||
DESCRIPTION="Memory efficient serialization library"
|
||||
HOMEPAGE="https://google.github.io/flatbuffers/"
|
||||
SRC_URI="https://github.com/google/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
# From 1.2.0->2.0.0, incremented SONAME, although the interface didn't actually change.
|
||||
# (Apparently to adopt semver.)
|
||||
SLOT="0/2"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
|
||||
IUSE="static-libs test"
|
||||
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
DOCS=( readme.md )
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DFLATBUFFERS_BUILD_FLATLIB=$(usex static-libs)
|
||||
-DFLATBUFFERS_BUILD_SHAREDLIB=ON
|
||||
-DFLATBUFFERS_BUILD_TESTS=$(usex test)
|
||||
-DFLATBUFFERS_BUILD_BENCHMARKS=OFF
|
||||
)
|
||||
|
||||
use elibc_musl && mycmakeargs+=( -DFLATBUFFERS_LOCALE_INDEPENDENT=0 )
|
||||
|
||||
cmake_src_configure
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST rccl-4.0.0.tar.gz 741814 BLAKE2B c20178e45fb7787ef7f5e20326f91f11a1b2a575277b5f28591b0be6efa6730c3509b11255372648f1df50e33b5e593dbe9c3334c5001f39423fc70acfa49d07 SHA512 d25754895d7b5695e46031642c2550cf2b6b5c42628d8381a23d6d1a48699a14a4fdf842205a14b96bdd1339341f9e558492ef9366a63036d8a8a7011d2c1b05
|
||||
DIST rccl-4.3.0.tar.gz 836631 BLAKE2B c7fede9cf92d3e75b79da2874c0a1e45c5fd4ad9d24b11c9870e9fdef8d571a286cbf54ae0a033f2aec3d21b06cafc2b1c097aaf87ecd628f0c33e9267103be1 SHA512 1a27e6441955f01c853861f83743da2fc9597978c3ff99f238734d4bafb1e277d626811b72c6a12563d69b2b8265960b8a2566df618921557837035b92993f0e
|
||||
DIST rccl-5.0.2.tar.gz 888060 BLAKE2B f75d83b0f52487b4f7a2d30763ae4fb0d216fc353e62de981057cb855d5b26c7b846622c76330029c1ed5bd195695308bcef5c67d39526032dfee254084a40f7 SHA512 ee62720926008f67fcae0fc9a6ace23ca593a156f74fce6012ff2a6fcffdc2e2dc70d48cd3830b217e68449ba3e677b4005d20bd4554aeccf17cba56713cb00f
|
||||
|
@ -0,0 +1,31 @@
|
||||
Index: rccl-rocm-5.0.2/CMakeLists.txt
|
||||
===================================================================
|
||||
--- rccl-rocm-5.0.2.orig/CMakeLists.txt
|
||||
+++ rccl-rocm-5.0.2/CMakeLists.txt
|
||||
@@ -268,16 +268,12 @@ target_link_libraries(rccl INTERFACE hip
|
||||
rocm_set_soversion(rccl "1.0")
|
||||
|
||||
rocm_install_targets(TARGETS
|
||||
- rccl
|
||||
- PREFIX
|
||||
rccl)
|
||||
rocm_install(FILES ${PROJECT_BINARY_DIR}/rccl.h
|
||||
- DESTINATION rccl/${CMAKE_INSTALL_INCLUDEDIR})
|
||||
+ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
|
||||
|
||||
rocm_export_targets(NAMESPACE
|
||||
roc::
|
||||
- PREFIX
|
||||
- rccl
|
||||
TARGETS
|
||||
rccl
|
||||
DEPENDS
|
||||
@@ -329,8 +325,6 @@ rocm_create_package(
|
||||
"RCCL Maintainer <rccl-maintainer@amd.com>"
|
||||
LDCONFIG)
|
||||
|
||||
-rocm_install_symlink_subdir(rccl)
|
||||
-
|
||||
if(BUILD_TESTS)
|
||||
add_subdirectory(test)
|
||||
endif()
|
@ -0,0 +1,41 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit cmake
|
||||
|
||||
DESCRIPTION="ROCm Communication Collectives Library (RCCL)"
|
||||
HOMEPAGE="https://github.com/ROCmSoftwarePlatform/rccl"
|
||||
SRC_URI="https://github.com/ROCmSoftwarePlatform/rccl/archive/rocm-${PV}.tar.gz -> rccl-${PV}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
KEYWORDS="~amd64"
|
||||
SLOT="0/$(ver_cut 1-2)"
|
||||
|
||||
RDEPEND="dev-util/hip:${SLOT}"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND=">=dev-util/cmake-3.22
|
||||
>=dev-util/rocm-cmake-5.0.2-r1"
|
||||
|
||||
S="${WORKDIR}/rccl-rocm-${PV}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/rccl-5.0.2-change_install_location.patch"
|
||||
)
|
||||
|
||||
src_configure() {
|
||||
addwrite /dev/kfd
|
||||
addpredict /dev/dri/
|
||||
|
||||
export DEVICE_LIB_PATH="${EPREFIX}/usr/lib/amdgcn/bitcode/"
|
||||
export CXX=hipcc
|
||||
|
||||
local mycmakeargs=(
|
||||
-DBUILD_TESTS=OFF
|
||||
-Wno-dev
|
||||
${AMDGPU_TARGETS+-DAMDGPU_TARGETS="${AMDGPU_TARGETS}"}
|
||||
)
|
||||
|
||||
cmake_src_configure
|
||||
}
|
Binary file not shown.
Binary file not shown.
@ -0,0 +1,36 @@
|
||||
https://github.com/etingof/pysnmp/pull/415
|
||||
|
||||
From 1d83beddd61b71e71dd725a12813a7052c14f730 Mon Sep 17 00:00:00 2001
|
||||
From: Flaviu Tamas <me@flaviutamas.com>
|
||||
Date: Sun, 26 Dec 2021 18:07:09 -0500
|
||||
Subject: [PATCH 1/2] Fixes #413
|
||||
|
||||
Thanks to @mheppner for finding the issue and reporting the bug.
|
||||
--- a/pysnmp/carrier/asyncio/dgram/base.py
|
||||
+++ b/pysnmp/carrier/asyncio/dgram/base.py
|
||||
@@ -44,7 +44,7 @@
|
||||
from pysnmp.carrier import error
|
||||
from pysnmp.carrier.asyncio.base import AbstractAsyncioTransport
|
||||
|
||||
-IS_PYTHON_344_PLUS = platform.python_version_tuple() >= ('3', '4', '4')
|
||||
+IS_PYTHON_344_PLUS = [int(v) for v in platform.python_version_tuple()] >= [3, 4, 4]
|
||||
|
||||
|
||||
class DgramAsyncioProtocol(asyncio.DatagramProtocol, AbstractAsyncioTransport):
|
||||
|
||||
From fc5ad9c1b1b9195f49d327f471705f9519ce5c09 Mon Sep 17 00:00:00 2001
|
||||
From: Flaviu Tamas <me@flaviutamas.com>
|
||||
Date: Fri, 31 Dec 2021 11:41:09 -0500
|
||||
Subject: [PATCH 2/2] Fix python 3.10 compatability, part 2
|
||||
|
||||
--- a/pysnmp/carrier/asyncio/dispatch.py
|
||||
+++ b/pysnmp/carrier/asyncio/dispatch.py
|
||||
@@ -43,7 +43,7 @@
|
||||
from pysnmp.carrier.base import AbstractTransportDispatcher
|
||||
from pysnmp.error import PySnmpError
|
||||
|
||||
-IS_PYTHON_344_PLUS = platform.python_version_tuple() >= ('3', '4', '4')
|
||||
+IS_PYTHON_344_PLUS = [int(v) for v in platform.python_version_tuple()] >= [3, 4, 4]
|
||||
|
||||
|
||||
class AsyncioDispatcher(AbstractTransportDispatcher):
|
@ -0,0 +1,20 @@
|
||||
https://github.com/etingof/pysnmp/commit/2ee8b8707d36e772d6308f434b445a766e6586e7
|
||||
https://bugs.gentoo.org/836608
|
||||
|
||||
From 2ee8b8707d36e772d6308f434b445a766e6586e7 Mon Sep 17 00:00:00 2001
|
||||
From: Michael Weiss <dev.primeos@gmail.com>
|
||||
Date: Thu, 7 Nov 2019 18:55:45 +0100
|
||||
Subject: [PATCH] Improve the setuptools version check (#322)
|
||||
|
||||
Handles malformed `setuptools.__version__` such as "41.4.0.post20191022"
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -85,7 +85,7 @@ def howto_install_setuptools():
|
||||
|
||||
setup, Command = setuptools.setup, setuptools.Command
|
||||
|
||||
- observed_version = [int(x) for x in setuptools.__version__.split('.')]
|
||||
+ observed_version = [int(x) for x in setuptools.__version__.split('.')[:3]]
|
||||
required_version = [36, 2, 0]
|
||||
|
||||
# NOTE(etingof): require fresh setuptools to build proper wheels
|
@ -0,0 +1,49 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
inherit distutils-r1 optfeature
|
||||
|
||||
DESCRIPTION="Python SNMP library"
|
||||
HOMEPAGE="https://pypi.org/project/pysnmp/ https://github.com/etingof/pysnmp"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~ia64 ~ppc ~sparc ~x86"
|
||||
IUSE="doc examples"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/pyasn1-0.2.3[${PYTHON_USEDEP}]
|
||||
dev-python/pycryptodome[${PYTHON_USEDEP}]"
|
||||
PDEPEND="dev-python/pysmi[${PYTHON_USEDEP}]"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}-setuptools-version.patch
|
||||
"${FILESDIR}"/${PN}-4.4.12-python310.patch
|
||||
)
|
||||
|
||||
distutils_enable_sphinx docs/source
|
||||
|
||||
python_prepare_all() {
|
||||
touch docs/source/conf.py || die
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
if use examples; then
|
||||
docinto examples
|
||||
dodoc -r examples/. docs/mibs
|
||||
docompress -x /usr/share/doc/${PF}/examples
|
||||
fi
|
||||
|
||||
distutils-r1_python_install_all
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
optfeature "Example programs using pysnmp" dev-python/pysnmp-apps
|
||||
optfeature "IETF and other mibs" dev-python/pysnmp-mibs
|
||||
optfeature "Dump MIBs in python format" dev-python/pysmi
|
||||
}
|
@ -0,0 +1 @@
|
||||
DIST python-pam-2.0.2.tar.gz 14787 BLAKE2B 4bd9d7d57802fb30519ee755b091d8dd21da7fdac164cba2ac11fae48c8f575498562309d996a67766218e15e1b5f45f40c4cf32800de349fe0fa0cd03ae911d SHA512 eafeb753b22ffccc1c5729516ea1ae26799d3749140fe91849ddb804066cabd4b5493e9b059172977dd5b3c5d48c8b5ced6c5c944931fcf23225dda09db026f6
|
@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>python@gentoo.org</email>
|
||||
<name>Python</name>
|
||||
</maintainer>
|
||||
<stabilize-allarches/>
|
||||
<upstream>
|
||||
<remote-id type="pypi">python-pam</remote-id>
|
||||
<remote-id type="github">FirefighterBlu3/python-pam</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -0,0 +1,21 @@
|
||||
# Copyright 2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Python PAM module"
|
||||
HOMEPAGE="https://github.com/FirefighterBlu3/python-pam"
|
||||
SRC_URI="https://github.com/FirefighterBlu3/python-pam/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
RDEPEND="dev-python/six[${PYTHON_USEDEP}]
|
||||
dev-python/toml[${PYTHON_USEDEP}]"
|
||||
|
||||
distutils_enable_tests pytest
|
Binary file not shown.
@ -1,2 +1,3 @@
|
||||
DIST kramdown-2.3.1.gem 122368 BLAKE2B 731e20904f238f44db594c7b8efac858187c935d9fbf8a421ddceeb1aa486f0980b502953f8eaa7e3100f7b7722d09b1da35091d28977c70cfd1ef24a080c3e1 SHA512 d1955065e3c5d7a60e595b647d5e453cf07a08fe25d40c67cf6f32d30f704a2c653a52959f8c71b3290e6da74836a085fa6bf8201c878303ad572dee8cc64496
|
||||
DIST kramdown-2.3.2.gem 122368 BLAKE2B cfed374793257a152e99a0417997c39de943ae8d31b178715355841248789f3986b1bee455396a5ac8ad2d6784a5fd33e82effb8430230cddec83579cb8ca2d9 SHA512 268b55b45ad2c6dd02776abd5777c7f51ea8724c64b03d8a859bd809b54b181e018fcf5ca38170c89acfac5cef2e6de253f1c6037fe642c6c093e339fd8f4d1b
|
||||
DIST kramdown-2.4.0.gem 122368 BLAKE2B 86b1232583dc88f8a576fb17e3e2ee756f109700634783815e8ba1f722dd8c872f2f6a978d33e1970814530090665eba3693206e57d3f274bb39655a7ac2d208 SHA512 8e52c5cc53d2f0085e30188aa7bf67f92dfe7f0801297c6a45293cca307e3442baa06443638c1161dad4a4aa332cbc5b4f9b6281ba4c6346122a9fff5a3743c7
|
||||
|
@ -0,0 +1,55 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
USE_RUBY="ruby26 ruby27 ruby30"
|
||||
|
||||
RUBY_FAKEGEM_EXTRADOC="README.md AUTHORS CONTRIBUTERS"
|
||||
|
||||
RUBY_FAKEGEM_EXTRAINSTALL="data"
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
DESCRIPTION="Yet-another-markdown-parser but fast, pure Ruby, using strict syntax definition"
|
||||
HOMEPAGE="https://kramdown.gettalong.org/"
|
||||
|
||||
LICENSE="MIT"
|
||||
|
||||
SLOT="$(ver_cut 1)"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~s390 ~sparc ~x86"
|
||||
IUSE="latex"
|
||||
|
||||
LATEX_DEPS="latex? ( dev-texlive/texlive-latex dev-texlive/texlive-latexextra )"
|
||||
RDEPEND+=" ${LATEX_DEPS}"
|
||||
DEPEND+=" test? (
|
||||
${LATEX_DEPS}
|
||||
>=app-text/htmltidy-5.0.0
|
||||
)"
|
||||
|
||||
ruby_add_rdepend "
|
||||
dev-ruby/rexml
|
||||
>=dev-ruby/rouge-3.26.0:2
|
||||
>=dev-ruby/stringex-1.5.1
|
||||
!!<dev-ruby/kramdown-1.17.0-r2:0"
|
||||
|
||||
ruby_add_bdepend "doc? ( dev-ruby/rdoc )
|
||||
test? ( >=dev-ruby/minitest-5.0 )"
|
||||
|
||||
all_ruby_prepare() {
|
||||
if ! use latex; then
|
||||
# Remove latex tests. They will fail gracefully when latex isn't
|
||||
# present at all, but not when components are missing (most
|
||||
# notable ucs.sty).
|
||||
sed -i -e '/latex -v/,/^ end/ s:^:#:' test/test_files.rb || die
|
||||
fi
|
||||
}
|
||||
|
||||
each_ruby_test() {
|
||||
${RUBY} -Ilib:. -e "Dir['test/test_*.rb'].each{|f| require f}" || die
|
||||
}
|
||||
|
||||
all_ruby_install() {
|
||||
all_fakegem_install
|
||||
|
||||
doman man/man1/kramdown.1
|
||||
}
|
Binary file not shown.
@ -1,6 +1,8 @@
|
||||
DIST racket-8.2-src-builtpkgs.tgz 150467561 BLAKE2B 5005aa852b089becd9d6da136a55a035ac5fd86bd1ad186ec30cdcf411927d444e1814797d63dbde3eb7b52bba7756e0464edf1d854d2ee7f5851caaae18ba55 SHA512 9e4c0cabfcbdb8c8742e8170548bee58021697e8b0842f575f94193db31adc04a7b9023ed8fd70dae197e5ec6f1aee7985d849be3ce5b4279f216e900ee143c7
|
||||
DIST racket-8.3-src-builtpkgs.tgz 150608486 BLAKE2B f002934c07afab4152ad8395c4ab5c6c87ef810f5cf79cf5ae0b41f4caa4508e0044f4246812513def14130d507af57aa61efaff8106eaeac0b86918bd775902 SHA512 7c340f65d221343beb2b4205cdc58648bd65dceabdb16f40cda425474faa905f4dd441193dc6cd4856f7863fb83834721394d6888027db356f830eceb127dbae
|
||||
DIST racket-8.4-src-builtpkgs.tgz 151809822 BLAKE2B c42f7943975a6f91a03ef0f668d218571dfc4159eac5a5722b9513b978413a9617b4e1bf3ccabef051014311ecf51fdc80d7563942e9e645c442ddfc4995a308 SHA512 afd9f357673a28ac5e4529ea0879a4edc3dbffc5b8627aa3553f1caf867be3296b94620dc2d86b8bb3f0c7ec7743d0057ce897c5caa705e02f2cc469ce4c7116
|
||||
DIST racket-8.5-src-builtpkgs.tgz 152548446 BLAKE2B ef914d742b3b949ecd7a1f817900add3ede874d7bd4dbe195c2ab69826d938c3ac81b883bc57d938908bc1f9e96faeaa25cb4dedf85288c580b7a89d62ec970a SHA512 4714599cbe10247cad119cc4073d80329d77c845d92b3741d35a9c88cc6395dc3d6f08ace8f606c3e39840f7071789ea953e3b6548da04fd7dfaa72a4368a7ae
|
||||
DIST racket-minimal-8.2-src-builtpkgs.tgz 21187959 BLAKE2B 0f62a900e71ee101fa3acf0985b0a72215ac657285c5ce9e4f5f49189180b82dcca94ded9778b7ba92a42919f17b1dc24eec07e13c64c77e47fc958614d7dc0a SHA512 04950703fa73cdbbb10c234d57c89e70db6076b42d4a74ddb8cace9e0438b9a1431f7317baf31d667368ad75ae19e4eecec39667ba0c5b08a3580f8cc81f4f5e
|
||||
DIST racket-minimal-8.3-src-builtpkgs.tgz 21212037 BLAKE2B 76a742efe7ba2c44eb935d4852c20be355ccff9b935b39226ef1935184b0a9179ef6ca2ac0a64f3c7a6ae4a0082117a12c668d7804a0b73b9f1a391eaba61994 SHA512 3cab4a24cab5c1ac107c8aead2ada6fa3ec7d7aa122716c78af584f055dadf89497168e95b36d99115ecd1a1905dc1ec51774dd2c8099198ec7d6aa9d380039d
|
||||
DIST racket-minimal-8.4-src-builtpkgs.tgz 21279666 BLAKE2B 25d5eb405cedaa9cadfa776c4dd66b87f1641c86b638110f1a3a788465aaf573f5f8054e1e6913e6c0123840a1a2f64d5855db5f52acace3475b91d095272a76 SHA512 92433c08508cfb1bdb9093e5c7c726630826e9046de02fcb3d402f3dd76aa98fc2d9a5d09515d44e7a50eab0e38d963d2202f48a44741c3cf7fe8e47d9404e63
|
||||
DIST racket-minimal-8.5-src-builtpkgs.tgz 21390850 BLAKE2B 7bcd8c409203f71b3a49cd7e4a34159ef62fcc61b8fb66e976bfc0938ac54b7bc475e6aff59796b9c01ee324eb0d88bd68340c787f728a3739a57e879e731bfb SHA512 e0dec1038f33dbe3dfbbeba05cb24829e4b0c4223c5326cd26f920c736171e3b47b457236a06c9c57b6ebc82d17b022fba6558e3c94315b75469a2130b6fd375
|
||||
|
@ -0,0 +1,164 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit desktop optfeature readme.gentoo-r1
|
||||
|
||||
DESCRIPTION="General purpose, multi-paradigm Lisp-Scheme programming language"
|
||||
HOMEPAGE="https://racket-lang.org/"
|
||||
SRC_URI="
|
||||
minimal? ( https://download.racket-lang.org/installers/${PV}/${PN}-minimal-${PV}-src-builtpkgs.tgz )
|
||||
!minimal? ( https://download.racket-lang.org/installers/${PV}/${P}-src-builtpkgs.tgz )
|
||||
"
|
||||
S="${WORKDIR}/${P}/src"
|
||||
|
||||
# See https://blog.racket-lang.org/2019/11/completing-racket-s-relicensing-effort.html
|
||||
LICENSE="
|
||||
|| ( MIT Apache-2.0 )
|
||||
chez? ( Apache-2.0 )
|
||||
!chez? ( LGPL-3 )
|
||||
"
|
||||
# Bytecode generated by Racket is not compatible between versions.
|
||||
# The bytecode version should be denoted by SLOT, in most cases
|
||||
# PV == SLOT but this has to be checked carefully and in cases
|
||||
# where we use _p, _pre, etc it will have to be set manually.
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
|
||||
IUSE="+chez +doc +futures +jit minimal ncurses +places +threads"
|
||||
# See bug #809785 re chez/threads
|
||||
REQUIRED_USE="chez? ( futures places ) futures? ( jit threads ) places? ( threads )"
|
||||
|
||||
DEPEND="
|
||||
!dev-tex/slatex
|
||||
dev-db/sqlite:3
|
||||
dev-libs/libffi:=
|
||||
ncurses? ( sys-libs/ncurses:= )
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
# "mred" and "mzscheme" are binaries generated by Racket, not CC
|
||||
QA_FLAGS_IGNORED="usr/bin/mred usr/bin/mzscheme"
|
||||
|
||||
DOC_CONTENTS="
|
||||
If you wish to use sys-libs/readline instead of dev-libs/libedit
|
||||
for readline-like features in the Racket's REPL you can install
|
||||
the package 'readline-gpl' using raco, Racket's package manager
|
||||
https://pkgs.racket-lang.org/package/readline-gpl
|
||||
"
|
||||
|
||||
# Package database files (for pkg_preinst & pkg_config)
|
||||
PKGDB=(
|
||||
/usr/share/racket/info-cache.rktd
|
||||
/usr/share/racket/links.rktd
|
||||
/usr/share/racket/pkgs/pkgs.rktd
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
# Prepare the environment
|
||||
unset PLTADDONDIR PLTCOLLECTS PLTCONFIGDIR PLTUSERHOME
|
||||
|
||||
default
|
||||
|
||||
# Remove bundled libffi
|
||||
rm -r ./bc/foreign/libffi || die "failed to remove bundled libffi"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# Libtool:
|
||||
# According to vapier, we should use the bundled libtool
|
||||
# such that we don't preclude cross-compile.
|
||||
# Thus don't use --enable-lt=/usr/bin/libtool
|
||||
# Backend:
|
||||
# --enable-bc builds Racket w/o chez backend
|
||||
# C Libraries:
|
||||
# --enable-libs & --disable-shared is the way to build
|
||||
# .a files that are needed to embed Racket into programs
|
||||
# https://docs.racket-lang.org/inside/cs-embedding.html
|
||||
local myconf=(
|
||||
--disable-shared
|
||||
--disable-strip
|
||||
--docdir="${EPREFIX}/usr/share/doc/${PF}"
|
||||
--enable-libs
|
||||
$(usex chez "--enable-cs --enable-csonly" "--enable-bc --enable-bconly")
|
||||
$(use_enable doc docs)
|
||||
$(use_enable ncurses curses)
|
||||
)
|
||||
# Some options are togglable only for the BC version (are forced in CS)
|
||||
! use chez && myconf+=(
|
||||
--enable-float
|
||||
--enable-foreign
|
||||
--enable-gracket
|
||||
--enable-libffi
|
||||
$(use_enable futures)
|
||||
$(use_enable jit)
|
||||
$(use_enable places)
|
||||
$(use_enable threads pthread)
|
||||
)
|
||||
econf "${myconf[@]}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
# Install Racket boot files
|
||||
use chez && emake -C "${S}"/cs/c DESTDIR="${ED}" unix-install-boot-files
|
||||
|
||||
# raco needs decompressed files for packages doc installation bug 662424
|
||||
use doc && docompress -x /usr/share/doc/${PF}
|
||||
|
||||
# Create missing desktop files and icon
|
||||
if ! use minimal ; then
|
||||
newicon "${ED}/usr/share/racket/drracket-exe-icon.png" "racket.png"
|
||||
make_desktop_entry "gracket" "GRacket" "racket" "Development;Education;"
|
||||
make_desktop_entry "plt-games" "PLT Games" "racket" "Education;Game;"
|
||||
fi
|
||||
|
||||
readme.gentoo_create_doc
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
# If we are merging the same SLOT check if package
|
||||
# database files exist and do not overwrite them
|
||||
if has_version "${CATEGORY}/${PN}:${SLOT}" ; then
|
||||
echo "We are installing the same SLOT: ${SLOT}"
|
||||
local rktd
|
||||
for rktd in "${PKGDB[@]}" ; do
|
||||
if [[ -f "${EROOT}"/${rktd} ]] && [[ -f "${ED}"/${rktd} ]] ; then
|
||||
einfo "Keeping old file: ${rktd}"
|
||||
mv "${ED}"/${rktd} "${ED}"/${rktd}.bak ||
|
||||
die "failed to create a backup of ${rktd}"
|
||||
cp "${EROOT}"/${rktd} "${ED}"/${rktd} ||
|
||||
die "failed to create a copy of ${rktd}"
|
||||
fi
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# If we have any pkgs not included in Racket main distribution (outsiders),
|
||||
# then we have to re-setup them or during installation other pkgs will want
|
||||
# to recompile parts of "outsider" pkgs they depend upon (and fail).
|
||||
local outsiders=( $(raco pkg show -i | grep 'link' | sed 's|link.*||g') )
|
||||
if [[ -n "${outsiders[@]}" ]] ; then
|
||||
ebegin "Running \"raco setup\" for outsider packages"
|
||||
echo "Outsiders: ${outsiders[@]}"
|
||||
raco setup --all-users --force --no-docs --no-user --pkgs "${outsiders[@]}"
|
||||
eend 0 # do not fail
|
||||
fi
|
||||
|
||||
optfeature "readline editing features in REPL" dev-libs/libedit
|
||||
optfeature "generating PDF files using Scribble" dev-texlive/texlive-fontsextra
|
||||
|
||||
readme.gentoo_print_elog
|
||||
}
|
||||
|
||||
pkg_config() {
|
||||
einfo "Swapping package database backup files"
|
||||
|
||||
for rktd in "${PKGDB[@]}" ; do
|
||||
mv "${EROOT}"/${rktd} "${EROOT}"/${rktd}.pkg_config
|
||||
mv "${EROOT}"/${rktd}.bak "${EROOT}"/${rktd}
|
||||
mv "${EROOT}"/${rktd}.pkg_config "${EROOT}"/${rktd}.bak
|
||||
done
|
||||
}
|
Binary file not shown.
@ -1,86 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
CMAKE_BUILD_TYPE="Release"
|
||||
LLVM_MAX_SLOT="13"
|
||||
MY_PN="igc"
|
||||
MY_P="${MY_PN}-${PV}"
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
|
||||
inherit cmake flag-o-matic llvm python-any-r1
|
||||
|
||||
DESCRIPTION="LLVM-based OpenCL compiler for OpenCL targetting Intel Gen graphics hardware"
|
||||
HOMEPAGE="https://github.com/intel/intel-graphics-compiler"
|
||||
SRC_URI="https://github.com/intel/${PN}/archive/${MY_P}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/${PN}-${MY_P}"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="debug"
|
||||
|
||||
DEPEND="
|
||||
dev-libs/opencl-clang:${LLVM_MAX_SLOT}=
|
||||
dev-util/spirv-tools
|
||||
=sys-devel/lld-${LLVM_MAX_SLOT}*
|
||||
sys-devel/llvm:${LLVM_MAX_SLOT}=
|
||||
"
|
||||
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
BDEPEND="
|
||||
=sys-devel/lld-${LLVM_MAX_SLOT}*
|
||||
${PYTHON_DEPS}
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-1.0.9-no_Werror.patch"
|
||||
"${FILESDIR}/${PN}-1.0.8173-opencl-clang_version.patch"
|
||||
"${FILESDIR}/${PN}-1.0.8365-disable-git.patch"
|
||||
)
|
||||
|
||||
pkg_setup() {
|
||||
llvm_pkg_setup
|
||||
python-any-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# Get LLVM version
|
||||
local llvm_version="$(best_version -d sys-devel/llvm:${LLVM_MAX_SLOT})"
|
||||
|
||||
# See https://github.com/intel/intel-graphics-compiler/issues/212
|
||||
append-ldflags -Wl,-z,undefs
|
||||
|
||||
# See https://bugs.gentoo.org/718824
|
||||
! use debug && append-cppflags -DNDEBUG
|
||||
|
||||
local mycmakeargs=(
|
||||
-DCCLANG_SONAME_VERSION="${LLVM_MAX_SLOT}"
|
||||
-DCMAKE_LIBRARY_PATH="$(get_llvm_prefix ${LLVM_MAX_SLOT})/$(get_libdir)"
|
||||
-DIGC_OPTION__ARCHITECTURE_TARGET="Linux64"
|
||||
-DIGC_OPTION__CLANG_MODE="Prebuilds"
|
||||
-DIGC_OPTION__LINK_KHRONOS_SPIRV_TRANSLATOR="ON"
|
||||
-DIGC_OPTION__LLD_MODE="Prebuilds"
|
||||
-DIGC_OPTION__LLDELF_H_DIR="${EPREFIX}/usr/include/lld/Common"
|
||||
-DIGC_OPTION__LLVM_MODE="Prebuilds"
|
||||
-DIGC_OPTION__LLVM_PREFERRED_VERSION="${llvm_version##*-}"
|
||||
-DIGC_OPTION__SPIRV_TOOLS_MODE="Prebuilds"
|
||||
-DIGC_OPTION__SPIRV_TRANSLATOR_MODE="Prebuilds"
|
||||
-DIGC_OPTION__USE_PREINSTALLED_SPRIV_HEADERS="ON"
|
||||
-DINSTALL_GENX_IR="ON"
|
||||
-DSPIRVLLVMTranslator_INCLUDE_DIR="${EPREFIX}/usr/lib/llvm/${LLVM_MAX_SLOT}/include/LLVMSPIRVLib"
|
||||
|
||||
# Compilation with VectorCompiler causes currently a segfault.
|
||||
# See https://github.com/intel/intel-graphics-compiler/issues/236
|
||||
-DIGC_BUILD__VC_ENABLED="OFF"
|
||||
# -DIGC_OPTION__VC_INTRINSICS_MODE="Prebuilds"
|
||||
|
||||
# This will suspress some CMake warnings,
|
||||
# which cannot be fixed at the moment.
|
||||
-Wno-dev
|
||||
)
|
||||
|
||||
cmake_src_configure
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
This is not needed. Gentoo automatically collect license files into
|
||||
the documentation directory.
|
||||
|
||||
Index: rocm-cmake-rocm-5.0.2/share/rocm/cmake/ROCMCreatePackage.cmake
|
||||
===================================================================
|
||||
--- rocm-cmake-rocm-5.0.2.orig/share/rocm/cmake/ROCMCreatePackage.cmake
|
||||
+++ rocm-cmake-rocm-5.0.2/share/rocm/cmake/ROCMCreatePackage.cmake
|
||||
@@ -230,7 +230,6 @@ macro(rocm_create_package)
|
||||
")
|
||||
endforeach()
|
||||
endif()
|
||||
- rocm_setup_license(${PARSE_HEADER_ONLY})
|
||||
if(PARSE_COMPONENTS)
|
||||
rocm_set_comp_cpackvar(PARSE_HEADER_ONLY "${PARSE_COMPONENTS}")
|
||||
endif()
|
Binary file not shown.
@ -0,0 +1,186 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{8,9,10} )
|
||||
PYTHON_REQ_USE="xml"
|
||||
|
||||
inherit meson gnome2-utils pax-utils python-single-r1 xdg
|
||||
|
||||
DESCRIPTION="A fork of GNOME Shell with layout similar to GNOME 2"
|
||||
HOMEPAGE="https://projects.linuxmint.com/cinnamon/ https://github.com/linuxmint/cinnamon"
|
||||
SRC_URI="https://github.com/linuxmint/cinnamon/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2+"
|
||||
SLOT="0"
|
||||
IUSE="+eds +gstreamer gtk-doc +nls +networkmanager"
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
DEPEND="
|
||||
${PYTHON_DEPS}
|
||||
app-accessibility/at-spi2-atk:2
|
||||
>=dev-libs/glib-2.52.0:2[dbus]
|
||||
>=dev-libs/gobject-introspection-1.29.15:=
|
||||
dev-libs/libxml2:2
|
||||
>=gnome-extra/cinnamon-desktop-5.2:0=
|
||||
>=gnome-extra/cinnamon-menus-5.2
|
||||
>=gnome-extra/cjs-5.2[cairo]
|
||||
net-libs/libsoup:2.4[introspection]
|
||||
sys-apps/dbus
|
||||
>=sys-auth/polkit-0.100[introspection]
|
||||
virtual/opengl
|
||||
x11-libs/gdk-pixbuf:2[introspection]
|
||||
>=x11-libs/gtk+-3.12.0:3[introspection]
|
||||
>=x11-libs/libnotify-0.7.3:0=[introspection]
|
||||
x11-libs/libX11
|
||||
>=x11-libs/libXfixes-5.0
|
||||
x11-libs/pango[introspection]
|
||||
>=x11-libs/startup-notification-0.11
|
||||
>=x11-wm/muffin-5.2[introspection]
|
||||
|
||||
eds? (
|
||||
gnome-extra/evolution-data-server
|
||||
)
|
||||
gstreamer? (
|
||||
media-libs/gst-plugins-base:1.0
|
||||
media-libs/gstreamer:1.0
|
||||
)
|
||||
networkmanager? (
|
||||
net-misc/networkmanager[introspection]
|
||||
)
|
||||
"
|
||||
# caribou used by onscreen keyboard
|
||||
# libtimezonemap used by datetime settings
|
||||
# iso-flag-png (unpackaged) used by keyboard layout settings
|
||||
RDEPEND="
|
||||
${DEPEND}
|
||||
>=app-accessibility/caribou-0.3
|
||||
dev-libs/keybinder:3[introspection]
|
||||
dev-libs/libtimezonemap
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/dbus-python[${PYTHON_USEDEP}]
|
||||
dev-python/distro[${PYTHON_USEDEP}]
|
||||
dev-python/pexpect[${PYTHON_USEDEP}]
|
||||
dev-python/pillow[${PYTHON_USEDEP}]
|
||||
dev-python/pycairo[${PYTHON_USEDEP}]
|
||||
dev-python/pygobject:3[${PYTHON_USEDEP}]
|
||||
dev-python/pyinotify[${PYTHON_USEDEP}]
|
||||
dev-python/python-pam[${PYTHON_USEDEP}]
|
||||
dev-python/pytz[${PYTHON_USEDEP}]
|
||||
dev-python/requests[${PYTHON_USEDEP}]
|
||||
dev-python/setproctitle[${PYTHON_USEDEP}]
|
||||
dev-python/tinycss2[${PYTHON_USEDEP}]
|
||||
>=dev-python/python3-xapp-2.2.1-r1[${PYTHON_USEDEP}]
|
||||
')
|
||||
>=gnome-base/dconf-0.4.1
|
||||
>=gnome-base/gsettings-desktop-schemas-2.91.91
|
||||
>=gnome-base/libgnomekbd-2.91.4
|
||||
>=gnome-extra/cinnamon-control-center-5.2[networkmanager=]
|
||||
>=gnome-extra/cinnamon-screensaver-5.2
|
||||
>=gnome-extra/cinnamon-session-5.2
|
||||
>=gnome-extra/cinnamon-settings-daemon-5.2
|
||||
>=gnome-extra/nemo-5.2
|
||||
gnome-extra/polkit-gnome
|
||||
net-misc/wget
|
||||
sys-apps/accountsservice[introspection]
|
||||
sys-power/upower[introspection]
|
||||
>=x11-libs/xapp-2.2.8[introspection]
|
||||
x11-misc/xdg-utils
|
||||
x11-themes/adwaita-icon-theme
|
||||
x11-themes/gnome-themes-standard
|
||||
|
||||
nls? (
|
||||
>=gnome-extra/cinnamon-translations-5.2
|
||||
)
|
||||
"
|
||||
BDEPEND="
|
||||
>=dev-util/intltool-0.40
|
||||
>=sys-devel/gettext-0.17
|
||||
virtual/pkgconfig
|
||||
|
||||
gtk-doc? ( dev-util/gtk-doc )
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
# Fix backgrounds path as cinnamon doesn't provide them
|
||||
# https://github.com/linuxmint/Cinnamon/issues/3575
|
||||
"${FILESDIR}"/${PN}-3.8.0-gnome-background-compatibility.patch
|
||||
|
||||
# Use wheel group instead of sudo (from Fedora/Arch)
|
||||
# https://github.com/linuxmint/Cinnamon/issues/3576
|
||||
"${FILESDIR}"/${PN}-3.6.6-wheel-sudo.patch
|
||||
|
||||
# Make evolution-data-server integration optional
|
||||
"${FILESDIR}"/${PN}-5.2.7-eds-detection.patch
|
||||
|
||||
# Meson fixes
|
||||
"${FILESDIR}"/${PN}-5.2.7-revert-meson-0.60-fix.patch
|
||||
"${FILESDIR}"/${PN}-5.2.7-meson-0.61-fix.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
xdg_src_prepare
|
||||
|
||||
# Add polkit agent to required components
|
||||
# https://github.com/linuxmint/Cinnamon/issues/3579
|
||||
sed -i "s/'REQUIRED', '/&polkit-cinnamon-authentication-agent-1;/" meson.build || die
|
||||
|
||||
# shebang fixing craziness
|
||||
local p
|
||||
for p in $(grep -rl '#!.*python3' || die); do
|
||||
python_fix_shebang "${p}"
|
||||
done
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local emesonargs=(
|
||||
$(meson_use gstreamer build_recorder)
|
||||
$(meson_use gtk-doc docs)
|
||||
-Ddisable_networkmanager=$(usex networkmanager false true)
|
||||
-Dpy3modules_dir="$(python_get_sitedir)"
|
||||
)
|
||||
meson_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
meson_src_install
|
||||
|
||||
python_optimize "${D}$(python_get_sitedir)"
|
||||
python_optimize "${ED}"/usr/share/cinnamon/
|
||||
|
||||
# Required for gnome-shell on hardened/PaX, bug #398941
|
||||
pax-mark mr "${ED}"/usr/bin/cinnamon
|
||||
|
||||
# Doesn't exist on Gentoo, causing this to be a dead symlink
|
||||
rm "${ED}/etc/xdg/menus/cinnamon-applications-merged" || die
|
||||
|
||||
# Ensure authentication-agent is started, bug #523958
|
||||
# https://github.com/linuxmint/Cinnamon/issues/3579
|
||||
insinto /etc/xdg/autostart/
|
||||
doins "${FILESDIR}"/polkit-cinnamon-authentication-agent-1.desktop
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_pkg_postinst
|
||||
gnome2_schemas_update
|
||||
|
||||
if use gstreamer; then
|
||||
if ! has_version 'media-libs/gst-plugins-good:1.0' || \
|
||||
! has_version 'media-plugins/gst-plugins-vpx:1.0'; then
|
||||
ewarn "To make use of Cinnamon's built-in screen recording utility,"
|
||||
ewarn "you need to either install media-libs/gst-plugins-good:1.0"
|
||||
ewarn "and media-plugins/gst-plugins-vpx:1.0, or use dconf-editor to change"
|
||||
ewarn "org.cinnamon.recorder/pipeline to what you want to use."
|
||||
fi
|
||||
else
|
||||
ewarn "Cinnamon's built-in screen recording utility is not installed"
|
||||
ewarn "because gstreamer support is disabled."
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
xdg_pkg_postinst
|
||||
gnome2_schemas_update
|
||||
}
|
Binary file not shown.
@ -1,2 +1,3 @@
|
||||
DIST fcft-3.0.0.tar.gz 441458 BLAKE2B 9ff83691435953285f1b3f8b51dac7b17453a457eeb910f035e39c6fa3bb39098d3adbb7179f734261a4034e9ea8b034dd03a20ba0c364b7de2efe9b781dfdaa SHA512 fbf7ac7d777bdb530b90b79a0bd8b90d3f7ae8b099c2733304dbe89fbcc1a1a3493d1eac0478bcdee291d8c804da21461737fc3e34164637e86ff737023622b1
|
||||
DIST fcft-3.0.1.tar.gz 441493 BLAKE2B 79fe864edf04b21fe88fa167e3390836e5c7254710082312068ff4c39624508e086f4eed2ea5706b52421b2276a6f2d1f2211ff0b256112d989764e667c44fe2 SHA512 856bec504a253678a2962c0a7c5029e5fd3d26e305ca3fcae8d9df398bcc84a03e9d67522673d1f1bb0ec91606c0627d6ab4bf2780cbb5965a01c91e6f0aac89
|
||||
DIST fcft-3.1.1.tar.gz 741229 BLAKE2B ef3fdca8f88893f0c69ed48181dce2a185d5e67ba6fc94d2f782b64f3078700c6be909560448f2625d43517f94aac2d82f58df29804b0fae5a72372a5b4a4004 SHA512 0344fc55906dee2588162f805ad703fe0efd26f3a8ce794273721d6111dd29bdb3589bd863f24998346018932f78b4c2dc04c4e2c8b49286db1efa9ecbc5521f
|
||||
|
@ -0,0 +1,94 @@
|
||||
# Copyright 2020-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
inherit meson python-any-r1
|
||||
|
||||
DESCRIPTION="Simple library for font loading and glyph rasterization"
|
||||
HOMEPAGE="https://codeberg.org/dnkl/fcft"
|
||||
SRC_URI="https://codeberg.org/dnkl/fcft/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/${PN}"
|
||||
|
||||
# MIT for fcft
|
||||
# ZLIB for nanosvg
|
||||
LICENSE="MIT ZLIB"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64"
|
||||
IUSE="examples +harfbuzz +libutf8proc test"
|
||||
REQUIRED_USE="
|
||||
libutf8proc? ( harfbuzz )
|
||||
examples? ( libutf8proc )
|
||||
"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="
|
||||
media-libs/fontconfig
|
||||
media-libs/freetype
|
||||
x11-libs/pixman
|
||||
examples? (
|
||||
dev-libs/libutf8proc:=
|
||||
dev-libs/wayland
|
||||
)
|
||||
harfbuzz? (
|
||||
media-libs/harfbuzz:=
|
||||
)
|
||||
libutf8proc? (
|
||||
dev-libs/libutf8proc:=
|
||||
)
|
||||
"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
app-i18n/unicode-data
|
||||
dev-libs/tllist
|
||||
examples? (
|
||||
dev-libs/wayland-protocols
|
||||
)
|
||||
test? (
|
||||
dev-libs/check
|
||||
harfbuzz? ( media-fonts/noto-emoji )
|
||||
)
|
||||
"
|
||||
BDEPEND="
|
||||
${PYTHON_DEPS}
|
||||
app-text/scdoc
|
||||
examples? (
|
||||
dev-util/wayland-scanner
|
||||
)
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
rm -r unicode || die "Failed removing vendored unicode-data"
|
||||
|
||||
sed -i "s;unicode/UnicodeData.txt;${EPREFIX}/usr/share/unicode-data/UnicodeData.txt;" \
|
||||
meson.build || die "Failed changing UnicodeData.txt to system's copy"
|
||||
sed -i "s;unicode/emoji-data.txt;${EPREFIX}/usr/share/unicode-data/emoji/emoji-data.txt;" \
|
||||
meson.build || die "Failed changing emoji-data.txt to system's copy"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local emesonargs=(
|
||||
$(meson_feature harfbuzz grapheme-shaping)
|
||||
$(meson_feature libutf8proc run-shaping)
|
||||
$(meson_use examples)
|
||||
$(use test && meson_use harfbuzz test-text-shaping)
|
||||
# bundled, tiny, I believe this means we should always include it
|
||||
-Dsvg-backend=nanosvg
|
||||
-Ddocs=enabled
|
||||
-Dwerror=false
|
||||
)
|
||||
|
||||
meson_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local DOCS=( CHANGELOG.md README.md )
|
||||
meson_src_install
|
||||
|
||||
rm -r "${ED}"/usr/share/doc/${PN} || die
|
||||
|
||||
use examples && newbin "${BUILD_DIR}/example/example" fcft-example
|
||||
}
|
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue