parent
dc66d1519e
commit
d7764395f7
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1 +1,2 @@
|
||||
DIST gedit-3.32.2.tar.xz 14789660 BLAKE2B 574a490e3beda9e8b4f8324409f3a1e3361b1fdd097c4bf8d05475be2a6bb66b230ab6d2047caa62c393458c29b6647c32293ce5c1428d030cb2345c19bf41c3 SHA512 a3ed4dea3d0f60fb2371d2b6bbf5f5db1f67c9a71d0d47836456e022903e86b8b127c88ece6a6d817b0c86ff82612c963a9e8ed60f9841af68474a1d129c886d
|
||||
DIST gedit-3.34.1.tar.xz 14797588 BLAKE2B 8dfaac4660575d67e3f8396dfed675a737fc69bc2b34866ee467a3464a338240133cab8d067db7b87fdc129f06a2450b91f4e0f70a73912d4a274cca980196d6 SHA512 22968c678a2f7ecf062f490d5eedc97aaa53b15932db801ea83eb336f01f41e7a6037a85508a40164f38dee406f8db097b7ef6f1481ab44ea82668766d24966d
|
||||
|
@ -0,0 +1,101 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
PYTHON_COMPAT=( python3_{6,7,8} )
|
||||
VALA_MIN_API_VERSION="0.26"
|
||||
VALA_USE_DEPEND="vapigen"
|
||||
|
||||
inherit gnome.org gnome2-utils meson python-single-r1 vala xdg
|
||||
|
||||
DESCRIPTION="A text editor for the GNOME desktop"
|
||||
HOMEPAGE="https://wiki.gnome.org/Apps/Gedit"
|
||||
|
||||
LICENSE="GPL-2+ CC-BY-SA-3.0"
|
||||
SLOT="0"
|
||||
|
||||
IUSE="+introspection +python gtk-doc spell vala"
|
||||
REQUIRED_USE="python? ( introspection ${PYTHON_REQUIRED_USE} ) spell? ( python )"
|
||||
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux"
|
||||
|
||||
# X libs are not needed for OSX (aqua)
|
||||
DEPEND="
|
||||
>=dev-libs/glib-2.44:2
|
||||
>=x11-libs/gtk+-3.22.0:3[introspection?]
|
||||
>=x11-libs/gtksourceview-4.0.2:4[introspection?]
|
||||
>=dev-libs/libpeas-1.14.1[gtk]
|
||||
>=dev-libs/libxml2-2.5.0:2
|
||||
>=net-libs/libsoup-2.60:2.4
|
||||
x11-libs/libX11
|
||||
|
||||
spell? ( >=app-text/gspell-0.2.5:0= )
|
||||
introspection? ( >=dev-libs/gobject-introspection-1.54:= )
|
||||
python? (
|
||||
${PYTHON_DEPS}
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/pycairo[${PYTHON_MULTI_USEDEP}]
|
||||
>=dev-python/pygobject-3:3[cairo,${PYTHON_MULTI_USEDEP}]
|
||||
dev-libs/libpeas[python,${PYTHON_SINGLE_USEDEP}]
|
||||
')
|
||||
)
|
||||
"
|
||||
RDEPEND="${DEPEND}
|
||||
x11-themes/adwaita-icon-theme
|
||||
gnome-base/gsettings-desktop-schemas
|
||||
gnome-base/gvfs
|
||||
"
|
||||
BDEPEND="
|
||||
${vala_depend}
|
||||
app-text/docbook-xml-dtd:4.1.2
|
||||
dev-util/glib-utils
|
||||
gtk-doc? ( >=dev-util/gtk-doc-1 )
|
||||
dev-util/itstool
|
||||
>=sys-devel/gettext-0.18
|
||||
virtual/pkgconfig
|
||||
"
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/3.32.2-make-spell-optional.patch
|
||||
)
|
||||
|
||||
pkg_setup() {
|
||||
use python && python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
use vala && vala_src_prepare
|
||||
xdg_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local emesonargs=(
|
||||
$(meson_use introspection)
|
||||
$(meson_use vala vapi)
|
||||
$(meson_use python plugins)
|
||||
$(meson_use gtk-doc documentation)
|
||||
-Denable-gvfs-metadata=yes
|
||||
$(meson_use spell)
|
||||
)
|
||||
meson_src_configure
|
||||
}
|
||||
|
||||
# Only appdata and desktop file validation in v3.32.2
|
||||
src_test() { :; }
|
||||
|
||||
src_install() {
|
||||
meson_src_install
|
||||
if use python; then
|
||||
python_optimize
|
||||
python_optimize "${ED}/usr/$(get_libdir)/gedit/plugins/"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_pkg_postinst
|
||||
gnome2_schemas_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
xdg_pkg_postrm
|
||||
gnome2_schemas_update
|
||||
}
|
Binary file not shown.
@ -0,0 +1,95 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
EGIT_COMMIT=ee2de87bd8e2a7a84799476cb4fc4ce8a78fdf6d
|
||||
|
||||
inherit go-module
|
||||
|
||||
DESCRIPTION="OCI-based implementation of Kubernetes Container Runtime Interface"
|
||||
HOMEPAGE="https://cri-o.io/"
|
||||
SRC_URI="https://github.com/cri-o/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0 BSD BSD-2 CC-BY-SA-4.0 ISC MIT MPL-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="btrfs +device-mapper selinux systemd"
|
||||
|
||||
COMMON_DEPEND="
|
||||
app-crypt/gpgme:=
|
||||
app-emulation/conmon
|
||||
app-emulation/runc
|
||||
dev-libs/glib:=
|
||||
dev-libs/libassuan:=
|
||||
dev-libs/libgpg-error:=
|
||||
net-firewall/conntrack-tools
|
||||
net-firewall/iptables
|
||||
net-misc/cni-plugins
|
||||
net-misc/socat
|
||||
sys-apps/iproute2
|
||||
sys-libs/libseccomp:=
|
||||
btrfs? ( sys-fs/btrfs-progs )
|
||||
device-mapper? ( sys-fs/lvm2:= )
|
||||
selinux? ( sys-libs/libselinux:= )
|
||||
systemd? ( sys-apps/systemd:= )"
|
||||
DEPEND="
|
||||
${COMMON_DEPEND}"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
!<app-emulation/libpod-1.3.2-r1"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
sed -e '/^GIT_.*/d' \
|
||||
-e '/ git diff --exit-code/d' \
|
||||
-e 's/$(GO) build -i/$(GO) build -v -work -x/' \
|
||||
-e 's/\${GIT_COMMIT}/'${EGIT_COMMIT}'/' \
|
||||
-e "s|^GIT_COMMIT := .*|GIT_COMMIT := ${EGIT_COMMIT}|" \
|
||||
-e "s|^COMMIT_NO := .*|COMMIT_NO := ${EGIT_COMMIT}|" \
|
||||
-i Makefile || die
|
||||
|
||||
echo ".NOTPARALLEL: binaries docs" >> Makefile || die
|
||||
|
||||
sed -e 's:/usr/local/bin:/usr/bin:' \
|
||||
-i contrib/systemd/* || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
[[ -f hack/btrfs_installed_tag.sh ]] || die
|
||||
use btrfs || { echo -e "#!/bin/sh\necho exclude_graphdriver_btrfs" > \
|
||||
hack/btrfs_installed_tag.sh || die; }
|
||||
|
||||
[[ -f hack/libdm_installed.sh ]] || die
|
||||
use device-mapper || { echo -e "#!/bin/sh\necho exclude_graphdriver_devicemapper" > \
|
||||
hack/libdm_installed.sh || die; }
|
||||
|
||||
[[ -f hack/selinux_tag.sh ]] || die
|
||||
use selinux || { echo -e "#!/bin/sh\ntrue" > \
|
||||
hack/selinux_tag.sh || die; }
|
||||
|
||||
mkdir -p bin || die
|
||||
GOBIN="${S}/bin" \
|
||||
emake all
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" PREFIX="${D}${EPREFIX}/usr" install install.config install.systemd
|
||||
|
||||
keepdir /etc/crio
|
||||
mv "${ED}/etc/crio/crio.conf"{,.example} || die
|
||||
|
||||
newinitd "${FILESDIR}/crio.initd" crio
|
||||
|
||||
insinto /etc/logrotate.d
|
||||
newins "${FILESDIR}/${PN}.logrotated" "${PN}"
|
||||
|
||||
# Suppress crio log error messages triggered if these don't exist.
|
||||
keepdir /etc/containers/oci/hooks.d
|
||||
keepdir /usr/share/containers/oci/hooks.d
|
||||
|
||||
# Suppress crio "Missing CNI default network" log message.
|
||||
keepdir /etc/cni/net.d
|
||||
insinto /etc/cni/net.d
|
||||
doins contrib/cni/99-loopback.conf
|
||||
}
|
@ -0,0 +1,86 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
CRATES="
|
||||
aho-corasick-0.7.8
|
||||
backtrace-0.3.44
|
||||
backtrace-sys-0.1.32
|
||||
bitflags-1.2.1
|
||||
cc-1.0.50
|
||||
cfg-if-0.1.10
|
||||
cpuid-0.1.0
|
||||
device_tree-1.1.0
|
||||
epoll-4.1.0
|
||||
itoa-0.4.5
|
||||
kernel-0.1.0
|
||||
kvm-bindings-0.2.0
|
||||
kvm-ioctls-0.5.0
|
||||
lazy_static-1.4.0
|
||||
libc-0.2.66
|
||||
log-0.4.8
|
||||
logger-0.1.0
|
||||
memchr-2.3.2
|
||||
proc-macro2-1.0.8
|
||||
quote-1.0.2
|
||||
regex-1.3.4
|
||||
regex-syntax-0.6.14
|
||||
rustc-demangle-0.1.16
|
||||
ryu-1.0.2
|
||||
seccomp-0.1.0
|
||||
serde-1.0.104
|
||||
serde_derive-1.0.104
|
||||
serde_json-1.0.48
|
||||
syn-1.0.14
|
||||
thread_local-1.0.1
|
||||
timerfd-1.1.1
|
||||
unicode-xid-0.2.0
|
||||
vm-memory-0.1.0
|
||||
vmm-sys-util-0.4.0
|
||||
"
|
||||
|
||||
inherit cargo linux-info toolchain-funcs
|
||||
|
||||
DESCRIPTION="Secure and fast microVMs for serverless computing"
|
||||
HOMEPAGE="https://firecracker-microvm.github.io https://github.com/firecracker-microvm/firecracker"
|
||||
SRC_URI="https://github.com/firecracker-microvm/firecracker/archive/v${PV}.tar.gz -> ${P}.tar.gz
|
||||
$(cargo_crate_uris ${CRATES})"
|
||||
|
||||
LICENSE="|| ( Apache-2.0 MIT Apache-2.0-with-LLVM-exceptions ) MPL-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="-* ~amd64 ~arm64"
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
BDEPEND="acct-group/kvm"
|
||||
|
||||
set_target_arch() {
|
||||
case "$(tc-arch)" in
|
||||
amd64) target_arch=x86_64 ;;
|
||||
arm64) target_arch=aarch64 ;;
|
||||
esac
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
|
||||
if ! linux_config_exists; then
|
||||
eerror "Unable to check your kernel for KVM support"
|
||||
else
|
||||
CONFIG_CHECK+=" ~KVM_AMD" || \
|
||||
CONFIG_CHECK+=" ~KVM_INTEL"
|
||||
ERROR_KVM="${P} requires KVM in-kernel support."
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local target_arch
|
||||
set_target_arch
|
||||
cargo_src_compile --target ${target_arch}-unknown-linux-gnu
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local target_arch
|
||||
set_target_arch
|
||||
dobin "${S}"/build/cargo_target/${target_arch}-unknown-linux-gnu/release/${PN}
|
||||
}
|
@ -1,3 +1 @@
|
||||
DIST virt-manager-2.0.0.tar.gz 2629465 BLAKE2B 8795985afb8805fdb4f1ee94c7344361a7d09d3e62e361f3126859c4d1b1077286b720de7629fd876e5bff10500cc6cea6f1d4afbba5c2c83fd61b137c40a3a7 SHA512 5d0eb65dceb5c913973edaa52414b1665d1ed9cd3f226e28a592decddec2acd8fdb589f60736edf9b7d95830893812f9aecca2cbdd715033ca7ea53a95472876
|
||||
DIST virt-manager-2.2.0.tar.gz 2628726 BLAKE2B d2f6bc7a7bcf8b220109702b7cd65dd9484c197252cf96e4748c27921a45749c476ed9d03eadac6ef3053df01ceb267c4756b0c602fad431ad9de0035d4ed5d5 SHA512 09975f7628ee302687eb6572b5f35797b4710aaae60c17542ee9edd72c65e80e93d7bbc7a2050667a9280effdbab28272886ae155b3ba73c104153ae3c048d99
|
||||
DIST virt-manager-2.2.1.tar.gz 2623754 BLAKE2B c81e730f2d685152bd0ef0a0327a74a70c50bff91e80ed0e3de92d0b848183c4bc092be333f2f0785c6a0b39f0b6d6abbd1f38c902f52ba4af7c56d64ee9b026 SHA512 aa97af52b3552c087beab8701762c21e8e6d818c9787d5376ed4e1ae40a34d5e8870c4c00fda9cb17a2340d1dff5b17e853182df720cdd9ea4c91cf01502a33a
|
||||
|
@ -1,96 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python3_{6,7} )
|
||||
DISTUTILS_SINGLE_IMPL=1
|
||||
|
||||
inherit gnome2 distutils-r1
|
||||
|
||||
DESCRIPTION="A graphical tool for administering virtual machines"
|
||||
HOMEPAGE="http://virt-manager.org"
|
||||
|
||||
if [[ ${PV} = *9999* ]]; then
|
||||
inherit git-r3
|
||||
SRC_URI=""
|
||||
KEYWORDS="amd64 x86"
|
||||
EGIT_REPO_URI="https://github.com/virt-manager/virt-manager.git"
|
||||
else
|
||||
SRC_URI="http://virt-manager.org/download/sources/${PN}/${P}.tar.gz"
|
||||
KEYWORDS="amd64 x86"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE="gnome-keyring gtk policykit sasl"
|
||||
|
||||
RDEPEND="!app-emulation/virtinst
|
||||
${PYTHON_DEPS}
|
||||
app-cdr/cdrtools
|
||||
>=app-emulation/libvirt-glib-1.0.0[introspection]
|
||||
$(python_gen_cond_dep '
|
||||
dev-libs/libxml2[python,${PYTHON_MULTI_USEDEP}]
|
||||
dev-python/argcomplete[${PYTHON_MULTI_USEDEP}]
|
||||
dev-python/ipaddr[${PYTHON_MULTI_USEDEP}]
|
||||
dev-python/libvirt-python[${PYTHON_MULTI_USEDEP}]
|
||||
dev-python/pygobject:3[${PYTHON_MULTI_USEDEP}]
|
||||
dev-python/requests[${PYTHON_MULTI_USEDEP}]
|
||||
')
|
||||
>=sys-libs/libosinfo-0.2.10[introspection]
|
||||
gtk? (
|
||||
gnome-base/dconf
|
||||
>=net-libs/gtk-vnc-0.3.8[gtk3(+),introspection]
|
||||
net-misc/spice-gtk[usbredir,gtk3,introspection,sasl?]
|
||||
net-misc/x11-ssh-askpass
|
||||
x11-libs/gtk+:3[introspection]
|
||||
x11-libs/vte:2.91[introspection]
|
||||
gnome-keyring? ( gnome-base/libgnome-keyring )
|
||||
policykit? ( sys-auth/polkit[introspection] )
|
||||
)
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-lang/perl
|
||||
dev-util/intltool
|
||||
"
|
||||
|
||||
DOCS=( README.md NEWS.md )
|
||||
|
||||
src_prepare() {
|
||||
distutils-r1_src_prepare
|
||||
}
|
||||
|
||||
distutils-r1_python_compile() {
|
||||
local defgraphics=
|
||||
|
||||
esetup.py configure \
|
||||
--default-graphics=spice
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local mydistutilsargs=( --no-update-icon-cache --no-compile-schemas )
|
||||
|
||||
distutils-r1_src_install
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
if use gtk; then
|
||||
gnome2_pkg_preinst
|
||||
|
||||
cd "${ED}"
|
||||
export GNOME2_ECLASS_ICONS=$(find 'usr/share/virt-manager/icons' -maxdepth 1 -mindepth 1 -type d 2> /dev/null)
|
||||
else
|
||||
rm -rf "${ED}/usr/share/virt-manager/virtManager"
|
||||
rm -f "${ED}/usr/share/virt-manager/virt-manager"
|
||||
rm -rf "${ED}/usr/share/virt-manager/ui/"
|
||||
rm -rf "${ED}/usr/share/virt-manager/icons/"
|
||||
rm -rf "${ED}/usr/share/man/man1/virt-manager.1*"
|
||||
rm -rf "${ED}/usr/share/icons/"
|
||||
rm -rf "${ED}/usr/share/applications/virt-manager.desktop"
|
||||
rm -rf "${ED}/usr/bin/virt-manager"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
use gtk && gnome2_pkg_postinst
|
||||
}
|
@ -1,98 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python3_{6,7} )
|
||||
DISTUTILS_SINGLE_IMPL=1
|
||||
|
||||
inherit gnome2 distutils-r1
|
||||
|
||||
DESCRIPTION="A graphical tool for administering virtual machines"
|
||||
HOMEPAGE="http://virt-manager.org"
|
||||
|
||||
if [[ ${PV} = *9999* ]]; then
|
||||
inherit git-r3
|
||||
SRC_URI=""
|
||||
KEYWORDS=""
|
||||
EGIT_REPO_URI="https://github.com/virt-manager/virt-manager.git"
|
||||
else
|
||||
SRC_URI="http://virt-manager.org/download/sources/${PN}/${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE="gnome-keyring gtk policykit sasl"
|
||||
|
||||
RDEPEND="!app-emulation/virtinst
|
||||
${PYTHON_DEPS}
|
||||
app-cdr/cdrtools
|
||||
>=app-emulation/libvirt-glib-1.0.0[introspection]
|
||||
$(python_gen_cond_dep '
|
||||
dev-libs/libxml2[python,${PYTHON_MULTI_USEDEP}]
|
||||
dev-python/argcomplete[${PYTHON_MULTI_USEDEP}]
|
||||
dev-python/ipaddr[${PYTHON_MULTI_USEDEP}]
|
||||
dev-python/libvirt-python[${PYTHON_MULTI_USEDEP}]
|
||||
dev-python/pygobject:3[${PYTHON_MULTI_USEDEP}]
|
||||
dev-python/requests[${PYTHON_MULTI_USEDEP}]
|
||||
')
|
||||
>=sys-libs/libosinfo-0.2.10[introspection]
|
||||
gtk? (
|
||||
gnome-base/dconf
|
||||
>=net-libs/gtk-vnc-0.3.8[gtk3(+),introspection]
|
||||
net-misc/spice-gtk[usbredir,gtk3,introspection,sasl?]
|
||||
net-misc/x11-ssh-askpass
|
||||
x11-libs/gtk+:3[introspection]
|
||||
x11-libs/gtksourceview:4[introspection]
|
||||
x11-libs/vte:2.91[introspection]
|
||||
gnome-keyring? ( gnome-base/libgnome-keyring )
|
||||
policykit? ( sys-auth/polkit[introspection] )
|
||||
)
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-lang/perl
|
||||
dev-util/intltool
|
||||
"
|
||||
|
||||
DOCS=( README.md NEWS.md )
|
||||
|
||||
src_prepare() {
|
||||
distutils-r1_src_prepare
|
||||
}
|
||||
|
||||
distutils-r1_python_compile() {
|
||||
local defgraphics=
|
||||
|
||||
esetup.py configure \
|
||||
--default-graphics=spice
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local mydistutilsargs=( --no-update-icon-cache --no-compile-schemas )
|
||||
distutils-r1_src_install
|
||||
|
||||
python_fix_shebang "${ED}"/usr/share/virt-manager
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
if use gtk; then
|
||||
gnome2_pkg_preinst
|
||||
|
||||
cd "${ED}"
|
||||
export GNOME2_ECLASS_ICONS=$(find 'usr/share/virt-manager/icons' -maxdepth 1 -mindepth 1 -type d 2> /dev/null)
|
||||
else
|
||||
rm -rf "${ED}/usr/share/virt-manager/virtManager"
|
||||
rm -f "${ED}/usr/share/virt-manager/virt-manager"
|
||||
rm -rf "${ED}/usr/share/virt-manager/ui/"
|
||||
rm -rf "${ED}/usr/share/virt-manager/icons/"
|
||||
rm -rf "${ED}/usr/share/man/man1/virt-manager.1*"
|
||||
rm -rf "${ED}/usr/share/icons/"
|
||||
rm -rf "${ED}/usr/share/applications/virt-manager.desktop"
|
||||
rm -rf "${ED}/usr/bin/virt-manager"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
use gtk && gnome2_pkg_postinst
|
||||
}
|
Binary file not shown.
@ -1,2 +1 @@
|
||||
DIST jq-1.5.tar.gz 739309 BLAKE2B 9d36db80fa9365d9967c9e1691e723d5237e7db2ddef43e06391bb97ba3a163f07c79906b9cf94d4b53f20598dc8ccacaff9e54ff3c32387fef1b3d484c13e73 SHA512 4a0bb069ae875f47731d7d84ae6b82240703dc7a694cfb0aee4c7e9639defe7ba9af575d17dc32bda4426b80c186cc8dcd4505f3a6bcbe16b39e9b13097da238
|
||||
DIST jq-1.6.tar.gz 1750584 BLAKE2B c9be1314e9d027247de63492ee362e996ef85faf45a47ee421cad95ebde9188bff8d3fc7db64e717ab922e1052f3b1c1500f5589fc5b2199ab66effb000e442d SHA512 5da71f53c325257f1f546a2520fe47828b495c953270df25ea0e37741463fdda72f0ba4d5b05b25114ec30f27a559344c2b024bacabf610759f4e3e9efadb480
|
||||
|
@ -1,60 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit autotools ltprune
|
||||
|
||||
DESCRIPTION="A lightweight and flexible command-line JSON processor"
|
||||
HOMEPAGE="https://stedolan.github.com/jq/"
|
||||
SRC_URI="https://github.com/stedolan/jq/releases/download/${P}/${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT CC-BY-3.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 ~arm ~ia64 ~ppc ~ppc64 x86 ~amd64-linux ~x64-macos"
|
||||
IUSE="oniguruma static-libs"
|
||||
|
||||
DEPEND="
|
||||
>=sys-devel/bison-3.0
|
||||
sys-devel/flex
|
||||
oniguruma? ( dev-libs/oniguruma:=[static-libs?] )
|
||||
"
|
||||
RDEPEND="
|
||||
!static-libs? (
|
||||
oniguruma? ( dev-libs/oniguruma[static-libs?] )
|
||||
)
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
local PATCHES=(
|
||||
"${FILESDIR}"/${PN}-1.5-dynamic-link.patch
|
||||
"${FILESDIR}"/${PN}-1.5-remove-automagic-dep-on-oniguruma.patch
|
||||
"${FILESDIR}"/${PN}-1.5-heap_buffer_overflow_in_tokenadd.patch
|
||||
)
|
||||
|
||||
use oniguruma || { sed -i 's:tests/onigtest::' Makefile.am || die; }
|
||||
sed -i '/^dist_doc_DATA/d' Makefile.am || die
|
||||
sed -i -r "s:(m4_define\(\[jq_version\],) .+\):\1 \[${PV}\]):" \
|
||||
configure.ac || die
|
||||
|
||||
default
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local econfargs=(
|
||||
# don't try to rebuild docs
|
||||
--disable-docs
|
||||
--disable-valgrind
|
||||
$(use_enable static-libs static)
|
||||
$(use_with oniguruma)
|
||||
)
|
||||
econf "${econfargs[@]}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local DOCS=( AUTHORS README )
|
||||
default
|
||||
|
||||
use static-libs || prune_libtool_files
|
||||
}
|
Binary file not shown.
@ -1,2 +1 @@
|
||||
DIST iso-codes-3.76.tar.xz 3474728 BLAKE2B b418b7b80d1926e765b65aad4edbd74ad8d37251fda14e3ab0e222095762d54e358de6f8d4a08fde8ae14460fd975a2a541ca6a5a4cf8ef1d777719462b0f991 SHA512 a0f6714a79a52b5dab82a268e85cb2d019ff5255744b88d088dcd7d5a15eb9710876a338a0a5d0f5659b4146bc6cc53d6d3474d621b3dcca7c47afabfc7e0dfa
|
||||
DIST iso-codes-4.4.tar.gz 13299605 BLAKE2B 485f3b0240f1892fb96f2b5c391b3f0adc593fac97d53748aa104208936d1bf81de1d40e742ab48e3663cea0ce5b28a20782df2f4eed251bab5b8a7055745d0e SHA512 d22ecdef75cd07b59ea0dbc87d25eb254676ab83297c1a43dbad9d3471ba355630f5588b4590972526f9e885b2e1ec307303ac0bb94b2dd5c707377c1cfa64d8
|
||||
|
@ -1,78 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
PYTHON_COMPAT=( python3_{6,7} )
|
||||
PLOCALES="af am ar as ast az be bg bn bn_IN br bs byn ca crh cs cy da de dz el en eo es et eu fa fi fo fr ga gez gl gu haw he hi hr hu hy ia id is it ja ka kk km kn ko kok ku lt lv mi mk ml mn mr ms mt nb ne nl nn nso oc or pa pl ps pt pt_BR ro ru rw si sk sl so sq sr sr@latin sv sw ta te th ti tig tk tl tr tt tt@iqtelif ug uk ve vi wa wal wo xh zh_CN zh_HK zh_TW zu"
|
||||
|
||||
inherit eutils l10n python-any-r1
|
||||
|
||||
DESCRIPTION="ISO language, territory, currency, script codes and their translations"
|
||||
HOMEPAGE="https://salsa.debian.org/iso-codes-team/iso-codes"
|
||||
SRC_URI="http://pkg-isocodes.alioth.debian.org/downloads/${P}.tar.xz"
|
||||
|
||||
LICENSE="LGPL-2.1+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 ~sh sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x86-solaris"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND=""
|
||||
DEPEND="${PYTHON_DEPS}
|
||||
app-arch/xz-utils
|
||||
sys-devel/gettext
|
||||
"
|
||||
|
||||
# This ebuild does not install any binaries.
|
||||
RESTRICT="binchecks strip"
|
||||
|
||||
# l10n_find_plocales_changes doesn't support multiple directories,
|
||||
# so need to do the update scan ourselves.
|
||||
check_existing_locales() {
|
||||
local std loc all_locales=()
|
||||
|
||||
ebegin "Looking for new locales"
|
||||
for std in "${all_stds[@]}"; do
|
||||
pushd "${std}" >/dev/null || die
|
||||
for loc in *.po; do
|
||||
all_locales+=( "${loc%.po}" )
|
||||
done
|
||||
popd >/dev/null
|
||||
done
|
||||
|
||||
all_locales=$(echo $(printf '%s\n' "${all_locales[@]}" | LC_COLLATE=C sort -u))
|
||||
if [[ ${PLOCALES} != "${all_locales}" ]]; then
|
||||
eend 1
|
||||
eerror "There are changes in locales! This ebuild should be updated to:"
|
||||
eerror "PLOCALES=\"${all_locales}\""
|
||||
die "Update PLOCALES in the ebuild"
|
||||
else
|
||||
eend 0
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
local std loc mylinguas
|
||||
local all_stds=( iso_15924 iso_3166-{1,2,3} iso_4217 iso_639-{2,3,5} )
|
||||
|
||||
check_existing_locales
|
||||
|
||||
# Modify the Makefiles so they only install requested locales.
|
||||
for std in "${all_stds[@]}"; do
|
||||
einfo "Preparing ${std} ..."
|
||||
pushd "${std}" >/dev/null || die
|
||||
mylinguas=()
|
||||
for loc in *.po; do
|
||||
if has ${loc%.po} ${LINGUAS-${loc%.po}}; then
|
||||
mylinguas+=( "${loc}" )
|
||||
fi
|
||||
done
|
||||
|
||||
sed \
|
||||
-e "/^pofiles =/s:=.*:= ${mylinguas[*]}:" \
|
||||
-e "/^mofiles =/s:=.*:= ${mylinguas[*]/%.po/.mo}:" \
|
||||
-i Makefile.am Makefile.in || die "sed in ${std} folder failed"
|
||||
popd >/dev/null
|
||||
done
|
||||
}
|
@ -1,3 +1 @@
|
||||
DIST paperwork-backend-1.2.4.tar.gz 59998 BLAKE2B e92bfbc311a38563fcb38511e8961c081b7c5d3a445ae9b18a80cb6848edbca2460a37b3f0c81d284a04974954cecbced0122a0bc66b3bbf10dc1bc1784b9969 SHA512 aba8cfd7abe9058e3433c64a96c1f79b451d8bdc661fa16ed7eb19f1b7e15efef024c94557082ec4d71c5adbaf268254af34f1eef8a35bad5e322409821ed5c4
|
||||
DIST paperwork-backend-1.3.0.tar.gz 62119 BLAKE2B 0dcb4c4d3c96cef8ab993449da46a01168be0b1ade8bb56eada723f046a0b82eb9b8b7c15b7706ab8b6be8e22166e2e01082e57d85a68c5ca919a081ad67fade SHA512 127b71db39a54533f520bb6969a36c48b54827f5720efb40728b133d4362901cbe4a20aa84337c1e8262338ae528ed502c23fedee703898a53e08b3bd5dfd7e0
|
||||
DIST paperwork-backend-1.3.1.tar.gz 62343 BLAKE2B 2d391f63b0eaa010695b3c11b35a6c89df9df9f60d45401d8bad711743037379cdb856d8f6b0ba9f7837ac272c2d6fcbe6f58808d8b5047dccf210fbd9a3c98c SHA512 e845ddd4d01be0f4d89e7e4a0a728d06b90b87a551dca3a88426d1ce6487bc000676c997df73d13662ea8f93aced8e8dee8d44ed4fa588a4c8bd514135610c35
|
||||
|
@ -1,29 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
PYTHON_COMPAT=( python3_6 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Backend part of Paperwork (Python API, no UI)"
|
||||
HOMEPAGE="https://github.com/openpaperwork/paperwork-backend"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="app-text/poppler[introspection]
|
||||
dev-python/natsort[${PYTHON_USEDEP}]
|
||||
dev-python/pillow[${PYTHON_USEDEP}]
|
||||
dev-python/pycairo[${PYTHON_USEDEP}]
|
||||
dev-python/pycountry[${PYTHON_USEDEP}]
|
||||
dev-python/pyenchant[${PYTHON_USEDEP}]
|
||||
dev-python/pygobject:3[${PYTHON_USEDEP}]
|
||||
dev-python/python-levenshtein[${PYTHON_USEDEP}]
|
||||
dev-python/simplebayes[${PYTHON_USEDEP}]
|
||||
dev-python/termcolor[${PYTHON_USEDEP}]
|
||||
dev-python/whoosh[${PYTHON_USEDEP}]"
|
||||
DEPEND="${RDEPEND}"
|
@ -1,30 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
PYTHON_COMPAT=( python3_6 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Backend part of Paperwork (Python API, no UI)"
|
||||
HOMEPAGE="https://github.com/openpaperwork/paperwork-backend"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="app-text/poppler[introspection]
|
||||
dev-python/distro[${PYTHON_USEDEP}]
|
||||
dev-python/natsort[${PYTHON_USEDEP}]
|
||||
dev-python/pillow[${PYTHON_USEDEP}]
|
||||
dev-python/pycairo[${PYTHON_USEDEP}]
|
||||
dev-python/pycountry[${PYTHON_USEDEP}]
|
||||
dev-python/pyenchant[${PYTHON_USEDEP}]
|
||||
dev-python/pygobject:3[${PYTHON_USEDEP}]
|
||||
dev-python/python-levenshtein[${PYTHON_USEDEP}]
|
||||
dev-python/simplebayes[${PYTHON_USEDEP}]
|
||||
dev-python/termcolor[${PYTHON_USEDEP}]
|
||||
dev-python/whoosh[${PYTHON_USEDEP}]"
|
||||
DEPEND="${RDEPEND}"
|
@ -1,3 +1 @@
|
||||
DIST paperwork-1.2.4.tar.gz 4379567 BLAKE2B 19d9c00ba678ef4c2236379311d4b9f0d01bbf908ca26c0dfebf53894f4a89539ddff9ac4065f703a981e723d0573b417b8ac39c3a2a94c75f94401fa537d688 SHA512 33292b0cc16046a10a49f5df4a1750b395e95fb898637c81e980ee10cc1525a5783878451ad84a70b62c1c1de73f3701bf40452779490171966decd9b896f4d9
|
||||
DIST paperwork-1.3.0.tar.gz 4625505 BLAKE2B 866a043216dd603fa4700ac09b998c55735e6a5fe09fc3ab02aeb6b68cc62f239e86f8116d84ae1571235e7d9230cbe25bb878909e3f7e542164d5f76440f367 SHA512 6f0b7b88d62520dd69fe8ee6a033a8cde9e48ba093ce7ec77df26549df29e7a0d8eb2bfef9f74e41a722cbd1d2d7693efbffa5327838708c9af54c76634b967e
|
||||
DIST paperwork-1.3.1.tar.gz 4631298 BLAKE2B 9b111c524da29c6d547141a64ff39a5c50f18375484ae60702a2c7ce57a7be51b62621cf114ffbfa9c2175f9978225525f321449a4a9cad2570cd26dd956e496 SHA512 a0e6a95ebd0b5bfc290b8981488967bb5f2198ac5ec768f824ed487648d0dea6abc3ab8b8cfd8107eac1223a5ecb351a5362d9cbd7d5efccf5cb8c9a318490bc
|
||||
|
@ -1,31 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
PYTHON_COMPAT=( python3_6 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="a personal document manager for scanned documents (and PDFs)"
|
||||
HOMEPAGE="https://gitlab.gnome.org/World/OpenPaperwork"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="~app-text/paperwork-backend-${PV}[${PYTHON_USEDEP}]
|
||||
dev-python/libpillowfight[${PYTHON_USEDEP}]
|
||||
dev-python/pillow[${PYTHON_USEDEP}]
|
||||
dev-python/pycairo[${PYTHON_USEDEP}]
|
||||
dev-python/pyenchant[${PYTHON_USEDEP}]
|
||||
dev-python/pygobject:3[${PYTHON_USEDEP}]
|
||||
dev-python/pyinsane:2[${PYTHON_USEDEP}]
|
||||
>=dev-python/pyocr-0.3.0[${PYTHON_USEDEP}]
|
||||
dev-python/python-dateutil[${PYTHON_USEDEP}]
|
||||
dev-python/pyxdg[${PYTHON_USEDEP}]
|
||||
dev-python/simplebayes[${PYTHON_USEDEP}]
|
||||
x11-libs/gtk+:3[introspection]
|
||||
x11-libs/libnotify[introspection]"
|
||||
DEPEND="${RDEPEND}"
|
@ -1,31 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
PYTHON_COMPAT=( python3_6 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="a personal document manager for scanned documents (and PDFs)"
|
||||
HOMEPAGE="https://gitlab.gnome.org/World/OpenPaperwork"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="~app-text/paperwork-backend-${PV}[${PYTHON_USEDEP}]
|
||||
dev-python/libpillowfight[${PYTHON_USEDEP}]
|
||||
dev-python/pillow[${PYTHON_USEDEP}]
|
||||
dev-python/pycairo[${PYTHON_USEDEP}]
|
||||
dev-python/pyenchant[${PYTHON_USEDEP}]
|
||||
dev-python/pygobject:3[${PYTHON_USEDEP}]
|
||||
>=dev-python/pyocr-0.3.0[${PYTHON_USEDEP}]
|
||||
dev-python/python-dateutil[${PYTHON_USEDEP}]
|
||||
dev-python/pyxdg[${PYTHON_USEDEP}]
|
||||
dev-python/simplebayes[${PYTHON_USEDEP}]
|
||||
media-libs/libinsane
|
||||
x11-libs/gtk+:3[introspection]
|
||||
x11-libs/libnotify[introspection]"
|
||||
DEPEND="${RDEPEND}"
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,246 +0,0 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
export CBUILD=${CBUILD:-${CHOST}}
|
||||
export CTARGET=${CTARGET:-${CHOST}}
|
||||
|
||||
MY_PV=${PV/_/}
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
BOOTSTRAP_VERSION="bootstrap-1.8"
|
||||
BOOTSTRAP_DIST="https://dev.gentoo.org/~williamh/dist"
|
||||
BOOTSTRAP_URI="
|
||||
${BOOTSTRAP_DIST}/go-linux-amd64-${BOOTSTRAP_VERSION}.tbz
|
||||
${BOOTSTRAP_DIST}/go-linux-arm-${BOOTSTRAP_VERSION}.tbz
|
||||
${BOOTSTRAP_DIST}/go-linux-arm64-${BOOTSTRAP_VERSION}.tbz
|
||||
${BOOTSTRAP_DIST}/go-linux-ppc64-${BOOTSTRAP_VERSION}.tbz
|
||||
${BOOTSTRAP_DIST}/go-linux-ppc64le-${BOOTSTRAP_VERSION}.tbz
|
||||
${BOOTSTRAP_DIST}/go-linux-s390x-${BOOTSTRAP_VERSION}.tbz
|
||||
${BOOTSTRAP_DIST}/go-linux-386-${BOOTSTRAP_VERSION}.tbz
|
||||
${BOOTSTRAP_DIST}/go-freebsd-amd64-${BOOTSTRAP_VERSION}.tbz
|
||||
${BOOTSTRAP_DIST}/go-freebsd-386-${BOOTSTRAP_VERSION}.tbz
|
||||
${BOOTSTRAP_DIST}/go-darwin-amd64-${BOOTSTRAP_VERSION}.tbz
|
||||
${BOOTSTRAP_DIST}/go-solaris-amd64-${BOOTSTRAP_VERSION}.tbz
|
||||
"
|
||||
|
||||
case ${PV} in
|
||||
*9999*)
|
||||
EGIT_REPO_URI="https://github.com/golang/go.git"
|
||||
inherit git-r3
|
||||
;;
|
||||
*)
|
||||
SRC_URI="https://storage.googleapis.com/golang/go${MY_PV}.src.tar.gz "
|
||||
S="${WORKDIR}"/go
|
||||
case ${PV} in
|
||||
*_beta*|*_rc*) ;;
|
||||
*)
|
||||
KEYWORDS="-* amd64 arm arm64 ~ppc64 ~s390 x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris"
|
||||
# The upstream tests fail under portage but pass if the build is
|
||||
# run according to their documentation [1].
|
||||
# I am restricting the tests on released versions until this is
|
||||
# solved.
|
||||
# [1] https://golang.org/issues/18442
|
||||
RESTRICT="test"
|
||||
;;
|
||||
esac
|
||||
esac
|
||||
|
||||
# If gccgo or a previously installed version of dev-lang/go is not being
|
||||
# used to build Go, there is no way to know the architecture or operating system
|
||||
# of the build machine, so we need to download all of our bootstrap
|
||||
# archives to allow this ebuild to work under crossdev.
|
||||
#
|
||||
# https://bugs.gentoo.org/671394
|
||||
SRC_URI+="!gccgo? ( !system-bootstrap? ( ${BOOTSTRAP_URI} ) )"
|
||||
|
||||
DESCRIPTION="A concurrent garbage collected and typesafe programming language"
|
||||
HOMEPAGE="https://golang.org"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0/${PV}"
|
||||
IUSE="gccgo system-bootstrap"
|
||||
|
||||
BDEPEND="gccgo? ( >=sys-devel/gcc-5[go] )"
|
||||
RDEPEND="!<dev-go/go-tools-0_pre20150902"
|
||||
|
||||
# These test data objects have writable/executable stacks.
|
||||
QA_EXECSTACK="
|
||||
usr/lib/go/src/debug/elf/testdata/*.obj
|
||||
usr/lib/go/src/*.gox
|
||||
"
|
||||
|
||||
# Do not complain about CFLAGS, etc, since Go doesn't use them.
|
||||
QA_FLAGS_IGNORED='.*'
|
||||
|
||||
REQUIRES_EXCLUDE="/usr/lib/go/src/debug/elf/testdata/*"
|
||||
|
||||
# The tools in /usr/lib/go should not cause the multilib-strict check to fail.
|
||||
QA_MULTILIB_PATHS="usr/lib/go/pkg/tool/.*/.*"
|
||||
|
||||
# Do not strip this package. Stripping is unsupported upstream and may
|
||||
# fail.
|
||||
RESTRICT+=" strip"
|
||||
|
||||
DOCS=(
|
||||
AUTHORS
|
||||
CONTRIBUTING.md
|
||||
CONTRIBUTORS
|
||||
PATENTS
|
||||
README.md
|
||||
)
|
||||
|
||||
go_arch()
|
||||
{
|
||||
# By chance most portage arch names match Go
|
||||
local portage_arch=$(tc-arch $@)
|
||||
case "${portage_arch}" in
|
||||
x86) echo 386;;
|
||||
x64-*) echo amd64;;
|
||||
ppc64) [[ $(tc-endian $@) = big ]] && echo ppc64 || echo ppc64le ;;
|
||||
s390) echo s390x ;;
|
||||
*) echo "${portage_arch}";;
|
||||
esac
|
||||
}
|
||||
|
||||
go_arm()
|
||||
{
|
||||
case "${1:-${CHOST}}" in
|
||||
armv5*) echo 5;;
|
||||
armv6*) echo 6;;
|
||||
armv7*) echo 7;;
|
||||
*)
|
||||
die "unknown GOARM for ${1:-${CHOST}}"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
go_os()
|
||||
{
|
||||
case "${1:-${CHOST}}" in
|
||||
*-linux*) echo linux;;
|
||||
*-darwin*) echo darwin;;
|
||||
*-freebsd*) echo freebsd;;
|
||||
*-netbsd*) echo netbsd;;
|
||||
*-openbsd*) echo openbsd;;
|
||||
*-solaris*) echo solaris;;
|
||||
*-cygwin*|*-interix*|*-winnt*)
|
||||
echo windows
|
||||
;;
|
||||
*)
|
||||
die "unknown GOOS for ${1:-${CHOST}}"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
go_tuple()
|
||||
{
|
||||
echo "$(go_os $@)_$(go_arch $@)"
|
||||
}
|
||||
|
||||
go_cross_compile()
|
||||
{
|
||||
[[ $(go_tuple ${CBUILD}) != $(go_tuple) ]]
|
||||
}
|
||||
|
||||
pkg_pretend()
|
||||
{
|
||||
# make.bash does not understand cross-compiling a cross-compiler
|
||||
if [[ $(go_tuple) != $(go_tuple ${CTARGET}) ]]; then
|
||||
die "CHOST CTARGET pair unsupported: CHOST=${CHOST} CTARGET=${CTARGET}"
|
||||
fi
|
||||
[[ ${MERGE_TYPE} != binary ]] &&
|
||||
use system-bootstrap && ! has_version "dev-lang/go" &&
|
||||
die "dev-lang/go must be installed to use the system-bootstrap use flag"
|
||||
}
|
||||
|
||||
src_unpack()
|
||||
{
|
||||
if [[ ${PV} = 9999 ]]; then
|
||||
git-r3_src_unpack
|
||||
else
|
||||
unpack "go${MY_PV}.src.tar.gz"
|
||||
fi
|
||||
use gccgo || use system-bootstrap ||
|
||||
unpack "go-$(go_os ${CBUILD})-$(go_arch ${CBUILD})-${BOOTSTRAP_VERSION}.tbz"
|
||||
}
|
||||
|
||||
src_compile()
|
||||
{
|
||||
export GOROOT_BOOTSTRAP="${WORKDIR}"/go-$(go_os ${CBUILD})-$(go_arch ${CBUILD})-bootstrap
|
||||
if use gccgo; then
|
||||
mkdir -p "${GOROOT_BOOTSTRAP}/bin" || die
|
||||
local go_binary=$(gcc-config --get-bin-path)/go-$(gcc-major-version)
|
||||
[[ -x ${go_binary} ]] || go_binary=$(
|
||||
find "${EPREFIX}"/usr/${CHOST}/gcc-bin/*/go-$(gcc-major-version) |
|
||||
sort -V | tail -n1)
|
||||
[[ -x ${go_binary} ]] ||
|
||||
die "go-$(gcc-major-version): command not found"
|
||||
ln -s "${go_binary}" "${GOROOT_BOOTSTRAP}/bin/go" || die
|
||||
elif use system-bootstrap; then
|
||||
export GOROOT_BOOTSTRAP="${EPREFIX}"/usr/lib/go
|
||||
fi
|
||||
export GOROOT_FINAL="${EPREFIX}"/usr/lib/go
|
||||
export GOROOT="$(pwd)"
|
||||
export GOBIN="${GOROOT}/bin"
|
||||
|
||||
# Go's build script does not use BUILD/HOST/TARGET consistently. :(
|
||||
export GOHOSTARCH=$(go_arch ${CBUILD})
|
||||
export GOHOSTOS=$(go_os ${CBUILD})
|
||||
export CC=$(tc-getBUILD_CC)
|
||||
|
||||
export GOARCH=$(go_arch)
|
||||
export GOOS=$(go_os)
|
||||
export CC_FOR_TARGET=$(tc-getCC)
|
||||
export CXX_FOR_TARGET=$(tc-getCXX)
|
||||
if [[ ${ARCH} == arm ]]; then
|
||||
export GOARM=$(go_arm)
|
||||
fi
|
||||
|
||||
cd src
|
||||
./make.bash || die "build failed"
|
||||
}
|
||||
|
||||
src_test()
|
||||
{
|
||||
go_cross_compile && return 0
|
||||
|
||||
cd src
|
||||
PATH="${GOBIN}:${PATH}" \
|
||||
./run.bash -no-rebuild || die "tests failed"
|
||||
}
|
||||
|
||||
src_install()
|
||||
{
|
||||
local bin_path f x
|
||||
|
||||
dodir /usr/lib/go
|
||||
|
||||
# There is a known issue which requires the source tree to be installed [1].
|
||||
# Once this is fixed, we can consider using the doc use flag to control
|
||||
# installing the doc and src directories.
|
||||
# [1] https://golang.org/issue/2775
|
||||
#
|
||||
# deliberately use cp to retain permissions
|
||||
cp -R api bin doc lib pkg misc src test "${ED}"/usr/lib/go
|
||||
if go_cross_compile; then
|
||||
bin_path="bin/$(go_tuple)"
|
||||
else
|
||||
bin_path=bin
|
||||
fi
|
||||
for x in ${bin_path}/*; do
|
||||
f=${x##*/}
|
||||
dosym ../lib/go/${bin_path}/${f} /usr/bin/${f}
|
||||
done
|
||||
einstalldocs
|
||||
|
||||
if [[ ${CHOST} == *-darwin* ]] ; then
|
||||
# fix install_name for test object (binutils_test) on Darwin, it
|
||||
# is never used in real circumstances
|
||||
local libmac64="${EPREFIX}"/usr/lib/go/src/cmd/vendor/github.com/
|
||||
libmac64+=google/pprof/internal/binutils/testdata/lib_mac_64
|
||||
install_name_tool -id "${libmac64}" "${D}${libmac64}"
|
||||
fi
|
||||
}
|
@ -1,246 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
export CBUILD=${CBUILD:-${CHOST}}
|
||||
export CTARGET=${CTARGET:-${CHOST}}
|
||||
|
||||
MY_PV=${PV/_/}
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
BOOTSTRAP_VERSION="bootstrap-1.8"
|
||||
BOOTSTRAP_DIST="https://dev.gentoo.org/~williamh/dist"
|
||||
BOOTSTRAP_URI="
|
||||
${BOOTSTRAP_DIST}/go-linux-amd64-${BOOTSTRAP_VERSION}.tbz
|
||||
${BOOTSTRAP_DIST}/go-linux-arm-${BOOTSTRAP_VERSION}.tbz
|
||||
${BOOTSTRAP_DIST}/go-linux-arm64-${BOOTSTRAP_VERSION}.tbz
|
||||
${BOOTSTRAP_DIST}/go-linux-ppc64-${BOOTSTRAP_VERSION}.tbz
|
||||
${BOOTSTRAP_DIST}/go-linux-ppc64le-${BOOTSTRAP_VERSION}.tbz
|
||||
${BOOTSTRAP_DIST}/go-linux-s390x-${BOOTSTRAP_VERSION}.tbz
|
||||
${BOOTSTRAP_DIST}/go-linux-386-${BOOTSTRAP_VERSION}.tbz
|
||||
${BOOTSTRAP_DIST}/go-freebsd-amd64-${BOOTSTRAP_VERSION}.tbz
|
||||
${BOOTSTRAP_DIST}/go-freebsd-386-${BOOTSTRAP_VERSION}.tbz
|
||||
${BOOTSTRAP_DIST}/go-darwin-amd64-${BOOTSTRAP_VERSION}.tbz
|
||||
${BOOTSTRAP_DIST}/go-solaris-amd64-${BOOTSTRAP_VERSION}.tbz
|
||||
"
|
||||
|
||||
case ${PV} in
|
||||
*9999*)
|
||||
EGIT_REPO_URI="https://github.com/golang/go.git"
|
||||
inherit git-r3
|
||||
;;
|
||||
*)
|
||||
SRC_URI="https://storage.googleapis.com/golang/go${MY_PV}.src.tar.gz "
|
||||
S="${WORKDIR}"/go
|
||||
case ${PV} in
|
||||
*_beta*|*_rc*) ;;
|
||||
*)
|
||||
KEYWORDS="-* amd64 arm ~arm64 ppc64 ~s390 x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris"
|
||||
# The upstream tests fail under portage but pass if the build is
|
||||
# run according to their documentation [1].
|
||||
# I am restricting the tests on released versions until this is
|
||||
# solved.
|
||||
# [1] https://golang.org/issues/18442
|
||||
RESTRICT="test"
|
||||
;;
|
||||
esac
|
||||
esac
|
||||
|
||||
# If gccgo or a previously installed version of dev-lang/go is not being
|
||||
# used to build Go, there is no way to know the architecture or operating system
|
||||
# of the build machine, so we need to download all of our bootstrap
|
||||
# archives to allow this ebuild to work under crossdev.
|
||||
#
|
||||
# https://bugs.gentoo.org/671394
|
||||
SRC_URI+="!gccgo? ( !system-bootstrap? ( ${BOOTSTRAP_URI} ) )"
|
||||
|
||||
DESCRIPTION="A concurrent garbage collected and typesafe programming language"
|
||||
HOMEPAGE="https://golang.org"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0/${PV}"
|
||||
IUSE="gccgo system-bootstrap"
|
||||
|
||||
BDEPEND="gccgo? ( >=sys-devel/gcc-5[go] )"
|
||||
RDEPEND="!<dev-go/go-tools-0_pre20150902"
|
||||
|
||||
# These test data objects have writable/executable stacks.
|
||||
QA_EXECSTACK="
|
||||
usr/lib/go/src/debug/elf/testdata/*.obj
|
||||
usr/lib/go/src/*.gox
|
||||
"
|
||||
|
||||
# Do not complain about CFLAGS, etc, since Go doesn't use them.
|
||||
QA_FLAGS_IGNORED='.*'
|
||||
|
||||
REQUIRES_EXCLUDE="/usr/lib/go/src/debug/elf/testdata/*"
|
||||
|
||||
# The tools in /usr/lib/go should not cause the multilib-strict check to fail.
|
||||
QA_MULTILIB_PATHS="usr/lib/go/pkg/tool/.*/.*"
|
||||
|
||||
# Do not strip this package. Stripping is unsupported upstream and may
|
||||
# fail.
|
||||
RESTRICT+=" strip"
|
||||
|
||||
DOCS=(
|
||||
AUTHORS
|
||||
CONTRIBUTING.md
|
||||
CONTRIBUTORS
|
||||
PATENTS
|
||||
README.md
|
||||
)
|
||||
|
||||
go_arch()
|
||||
{
|
||||
# By chance most portage arch names match Go
|
||||
local portage_arch=$(tc-arch $@)
|
||||
case "${portage_arch}" in
|
||||
x86) echo 386;;
|
||||
x64-*) echo amd64;;
|
||||
ppc64) [[ $(tc-endian $@) = big ]] && echo ppc64 || echo ppc64le ;;
|
||||
s390) echo s390x ;;
|
||||
*) echo "${portage_arch}";;
|
||||
esac
|
||||
}
|
||||
|
||||
go_arm()
|
||||
{
|
||||
case "${1:-${CHOST}}" in
|
||||
armv5*) echo 5;;
|
||||
armv6*) echo 6;;
|
||||
armv7*) echo 7;;
|
||||
*)
|
||||
die "unknown GOARM for ${1:-${CHOST}}"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
go_os()
|
||||
{
|
||||
case "${1:-${CHOST}}" in
|
||||
*-linux*) echo linux;;
|
||||
*-darwin*) echo darwin;;
|
||||
*-freebsd*) echo freebsd;;
|
||||
*-netbsd*) echo netbsd;;
|
||||
*-openbsd*) echo openbsd;;
|
||||
*-solaris*) echo solaris;;
|
||||
*-cygwin*|*-interix*|*-winnt*)
|
||||
echo windows
|
||||
;;
|
||||
*)
|
||||
die "unknown GOOS for ${1:-${CHOST}}"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
go_tuple()
|
||||
{
|
||||
echo "$(go_os $@)_$(go_arch $@)"
|
||||
}
|
||||
|
||||
go_cross_compile()
|
||||
{
|
||||
[[ $(go_tuple ${CBUILD}) != $(go_tuple) ]]
|
||||
}
|
||||
|
||||
pkg_pretend()
|
||||
{
|
||||
# make.bash does not understand cross-compiling a cross-compiler
|
||||
if [[ $(go_tuple) != $(go_tuple ${CTARGET}) ]]; then
|
||||
die "CHOST CTARGET pair unsupported: CHOST=${CHOST} CTARGET=${CTARGET}"
|
||||
fi
|
||||
[[ ${MERGE_TYPE} != binary ]] &&
|
||||
use system-bootstrap && ! has_version "dev-lang/go" &&
|
||||
die "dev-lang/go must be installed to use the system-bootstrap use flag"
|
||||
}
|
||||
|
||||
src_unpack()
|
||||
{
|
||||
if [[ ${PV} = 9999 ]]; then
|
||||
git-r3_src_unpack
|
||||
else
|
||||
unpack "go${MY_PV}.src.tar.gz"
|
||||
fi
|
||||
use gccgo || use system-bootstrap ||
|
||||
unpack "go-$(go_os ${CBUILD})-$(go_arch ${CBUILD})-${BOOTSTRAP_VERSION}.tbz"
|
||||
}
|
||||
|
||||
src_compile()
|
||||
{
|
||||
export GOROOT_BOOTSTRAP="${WORKDIR}"/go-$(go_os ${CBUILD})-$(go_arch ${CBUILD})-bootstrap
|
||||
if use gccgo; then
|
||||
mkdir -p "${GOROOT_BOOTSTRAP}/bin" || die
|
||||
local go_binary=$(gcc-config --get-bin-path)/go-$(gcc-major-version)
|
||||
[[ -x ${go_binary} ]] || go_binary=$(
|
||||
find "${EPREFIX}"/usr/${CHOST}/gcc-bin/*/go-$(gcc-major-version) |
|
||||
sort -V | tail -n1)
|
||||
[[ -x ${go_binary} ]] ||
|
||||
die "go-$(gcc-major-version): command not found"
|
||||
ln -s "${go_binary}" "${GOROOT_BOOTSTRAP}/bin/go" || die
|
||||
elif use system-bootstrap; then
|
||||
export GOROOT_BOOTSTRAP="${EPREFIX}"/usr/lib/go
|
||||
fi
|
||||
export GOROOT_FINAL="${EPREFIX}"/usr/lib/go
|
||||
export GOROOT="$(pwd)"
|
||||
export GOBIN="${GOROOT}/bin"
|
||||
|
||||
# Go's build script does not use BUILD/HOST/TARGET consistently. :(
|
||||
export GOHOSTARCH=$(go_arch ${CBUILD})
|
||||
export GOHOSTOS=$(go_os ${CBUILD})
|
||||
export CC=$(tc-getBUILD_CC)
|
||||
|
||||
export GOARCH=$(go_arch)
|
||||
export GOOS=$(go_os)
|
||||
export CC_FOR_TARGET=$(tc-getCC)
|
||||
export CXX_FOR_TARGET=$(tc-getCXX)
|
||||
if [[ ${ARCH} == arm ]]; then
|
||||
export GOARM=$(go_arm)
|
||||
fi
|
||||
|
||||
cd src
|
||||
./make.bash || die "build failed"
|
||||
}
|
||||
|
||||
src_test()
|
||||
{
|
||||
go_cross_compile && return 0
|
||||
|
||||
cd src
|
||||
PATH="${GOBIN}:${PATH}" \
|
||||
./run.bash -no-rebuild || die "tests failed"
|
||||
}
|
||||
|
||||
src_install()
|
||||
{
|
||||
local bin_path f x
|
||||
|
||||
dodir /usr/lib/go
|
||||
|
||||
# There is a known issue which requires the source tree to be installed [1].
|
||||
# Once this is fixed, we can consider using the doc use flag to control
|
||||
# installing the doc and src directories.
|
||||
# [1] https://golang.org/issue/2775
|
||||
#
|
||||
# deliberately use cp to retain permissions
|
||||
cp -R api bin doc lib pkg misc src test "${ED}"/usr/lib/go
|
||||
if go_cross_compile; then
|
||||
bin_path="bin/$(go_tuple)"
|
||||
else
|
||||
bin_path=bin
|
||||
fi
|
||||
for x in ${bin_path}/*; do
|
||||
f=${x##*/}
|
||||
dosym ../lib/go/${bin_path}/${f} /usr/bin/${f}
|
||||
done
|
||||
einstalldocs
|
||||
|
||||
if [[ ${CHOST} == *-darwin* ]] ; then
|
||||
# fix install_name for test object (binutils_test) on Darwin, it
|
||||
# is never used in real circumstances
|
||||
local libmac64="${EPREFIX}"/usr/lib/go/src/cmd/vendor/github.com/
|
||||
libmac64+=google/pprof/internal/binutils/testdata/lib_mac_64
|
||||
install_name_tool -id "${libmac64}" "${D}${libmac64}"
|
||||
fi
|
||||
}
|
Binary file not shown.
@ -1,2 +1 @@
|
||||
DIST double-conversion-3.1.4.tar.gz 7022872 BLAKE2B 270f318e6b37205ab3da3ccf5c598ca7a02dc2e728a5d8e3467523bc8f21039651bea3f70aeb9f8579505812d63181de9d1e8106997795a79efeb663e1bc22d7 SHA512 715a34ace2ff74b79d80a8c003c16cfbf958ebc92264e28cc572e1a12a786e1df9678abb46f032c2be387495e1a3d02957b12fa4a245ec6cfe19ca637519ac3c
|
||||
DIST double-conversion-3.1.5.tar.gz 7023792 BLAKE2B ed70a554bd52e23aadecbeaa6607dfcdb670450b95e2ff699c784512e6cb0c022f51f6ab775ebc5b3c293f991e5200ff5528d689c74dae92e8e68bedf672c5ac SHA512 0aeabdbfa06c3c4802905ac4bf8c2180840577677b47d45e1c91034fe07746428c9db79260ce6bdbdf8b584746066cea9247ba43a9c38155caf1ef44e214180a
|
||||
|
@ -1,58 +0,0 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit cmake-utils multibuild
|
||||
|
||||
DESCRIPTION="Binary-decimal and decimal-binary conversion routines for IEEE doubles"
|
||||
HOMEPAGE="https://github.com/google/double-conversion"
|
||||
SRC_URI="https://github.com/google/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0/3"
|
||||
KEYWORDS="amd64 arm arm64 hppa ~mips ppc ppc64 sparc x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="static-libs test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/0001-CMake-install-to-correct-lib-dir.patch"
|
||||
)
|
||||
|
||||
pkg_setup() {
|
||||
MULTIBUILD_VARIANTS=( shared $(usev static-libs) )
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
myconfigure() {
|
||||
local mycmakeargs=( -DBUILD_TESTING=$(usex test) )
|
||||
if [[ ${MULTIBUILD_VARIANT} = shared ]]; then
|
||||
mycmakeargs+=( -DBUILD_SHARED_LIBS=ON )
|
||||
fi
|
||||
if [[ ${MULTIBUILD_VARIANT} = static-libs ]]; then
|
||||
mycmakeargs+=( -DBUILD_SHARED_LIBS=OFF )
|
||||
fi
|
||||
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
|
||||
multibuild_foreach_variant myconfigure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
multibuild_foreach_variant cmake-utils_src_compile
|
||||
}
|
||||
|
||||
src_test() {
|
||||
[[ ${MULTIBUILD_VARIANT} = shared ]] && cmake-utils_src_test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
myinstall() {
|
||||
[[ ${MULTIBUILD_VARIANT} = shared ]] && cmake-utils_src_install
|
||||
[[ ${MULTIBUILD_VARIANT} = static-libs ]] && \
|
||||
dolib.a ${BUILD_DIR}/libdouble-conversion.a
|
||||
}
|
||||
|
||||
multibuild_foreach_variant myinstall
|
||||
}
|
@ -1,63 +0,0 @@
|
||||
From 0d65c903c600d983eabfa5be793fa60c346d8303 Mon Sep 17 00:00:00 2001
|
||||
From: Jason Zaman <jason@perfinion.com>
|
||||
Date: Sun, 14 Apr 2019 16:38:10 +0800
|
||||
Subject: [PATCH] CMake: install to correct lib dir
|
||||
|
||||
64-bit libraries should be installed in /usr/lib64, not in /usr/lib/
|
||||
Make the destination lib dir configurable.
|
||||
|
||||
Commit e13e72e17692f5dc0036460d734c637b563f3ac7 removed
|
||||
include(GNUInstallDirs) and ${CMAKE_INSTALL_LIBDIR} which broke
|
||||
installing on 64-bit systems.
|
||||
|
||||
Signed-off-by: Jason Zaman <jason@perfinion.com>
|
||||
---
|
||||
CMakeLists.txt | 15 ++++++++-------
|
||||
1 file changed, 8 insertions(+), 7 deletions(-)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index d9f4be8..2a06c71 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -40,12 +40,13 @@ endif()
|
||||
####
|
||||
# Installation (https://github.com/forexample/package-example)
|
||||
|
||||
+include(GNUInstallDirs)
|
||||
+
|
||||
# Layout. This works for all platforms:
|
||||
# * <prefix>/lib/cmake/<PROJECT-NAME>
|
||||
# * <prefix>/lib/
|
||||
# * <prefix>/include/
|
||||
-set(config_install_dir "lib/cmake/${PROJECT_NAME}")
|
||||
-set(include_install_dir "include")
|
||||
+set(config_install_dir "${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}")
|
||||
|
||||
set(generated_dir "${CMAKE_CURRENT_BINARY_DIR}/generated")
|
||||
|
||||
@@ -81,17 +82,17 @@ configure_package_config_file(
|
||||
install(
|
||||
TARGETS double-conversion
|
||||
EXPORT "${targets_export_name}"
|
||||
- LIBRARY DESTINATION "lib"
|
||||
- ARCHIVE DESTINATION "lib"
|
||||
- RUNTIME DESTINATION "bin"
|
||||
- INCLUDES DESTINATION "${include_install_dir}"
|
||||
+ LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
||||
+ ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
||||
+ RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
|
||||
+ INCLUDES DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}"
|
||||
)
|
||||
|
||||
# Headers:
|
||||
# * double-conversion/*.h -> <prefix>/include/double-conversion/*.h
|
||||
install(
|
||||
FILES ${headers}
|
||||
- DESTINATION "${include_install_dir}/double-conversion"
|
||||
+ DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/double-conversion"
|
||||
)
|
||||
|
||||
# Config
|
||||
--
|
||||
2.21.0
|
||||
|
@ -1,43 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
GIT_TAG="3a0b7b74982f44c735f4cfc2dccf538c3c4ef9e2"
|
||||
|
||||
DESCRIPTION="Gnulib is a library of common routines intended to be shared at the source level"
|
||||
HOMEPAGE="https://www.gnu.org/software/gnulib"
|
||||
SRC_URI="https://git.savannah.gnu.org/cgit/${PN}.git/snapshot/${PN}-${GIT_TAG}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~ppc-aix ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="doc"
|
||||
|
||||
S="${WORKDIR}/${PN}-${GIT_TAG}"
|
||||
|
||||
src_compile() {
|
||||
if use doc; then
|
||||
emake -C doc info html
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dodoc README ChangeLog
|
||||
|
||||
insinto /usr/share/${PN}
|
||||
doins -r build-aux
|
||||
doins -r doc
|
||||
doins -r lib
|
||||
doins -r m4
|
||||
doins -r modules
|
||||
doins -r tests
|
||||
doins -r top
|
||||
|
||||
# install the real script
|
||||
exeinto /usr/share/${PN}
|
||||
doexe gnulib-tool
|
||||
|
||||
# create and install the wrapper
|
||||
dosym ../share/${PN}/gnulib-tool /usr/bin/gnulib-tool
|
||||
}
|
@ -1,43 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
GIT_TAG="f583f328bec489dd59b54ecc1cc640843ea261cf"
|
||||
|
||||
DESCRIPTION="Library of common routines intended to be shared"
|
||||
HOMEPAGE="https://www.gnu.org/software/gnulib"
|
||||
SRC_URI="https://git.savannah.gnu.org/cgit/${PN}.git/snapshot/${PN}-${GIT_TAG}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~ppc-aix ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="doc"
|
||||
|
||||
S="${WORKDIR}/${PN}-${GIT_TAG}"
|
||||
|
||||
src_compile() {
|
||||
if use doc; then
|
||||
emake -C doc info html
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dodoc README ChangeLog
|
||||
|
||||
insinto /usr/share/${PN}
|
||||
doins -r build-aux
|
||||
doins -r doc
|
||||
doins -r lib
|
||||
doins -r m4
|
||||
doins -r modules
|
||||
doins -r tests
|
||||
doins -r top
|
||||
|
||||
# install the real script
|
||||
exeinto /usr/share/${PN}
|
||||
doexe gnulib-tool
|
||||
|
||||
# create and install the wrapper
|
||||
dosym ../share/${PN}/gnulib-tool /usr/bin/gnulib-tool
|
||||
}
|
@ -0,0 +1,119 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
DIST_AUTHOR=SHAY
|
||||
DIST_VERSION=1.42
|
||||
inherit depend.apache perl-module
|
||||
|
||||
DESCRIPTION="Test.pm wrapper with helpers for testing Apache"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
|
||||
IUSE="test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
DEPEND="virtual/perl-ExtUtils-MakeMaker"
|
||||
|
||||
need_apache
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-1.400.0-catfile-import.patch"
|
||||
"${FILESDIR}/${PN}-1.400.0-phpclient.patch"
|
||||
)
|
||||
|
||||
pkg_setup() {
|
||||
perl_set_version
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# This is to avoid conflicts with a deprecated Apache::Test stepping
|
||||
# in and causing problems/install errors
|
||||
if [ -f "${S}"/.mypacklist ];
|
||||
then
|
||||
rm -f "${S}"/.mypacklist
|
||||
fi
|
||||
perl-module_src_install
|
||||
}
|
||||
# Parallel tests seem to be bad.
|
||||
DIST_TEST="do"
|
||||
|
||||
optdep_notice() {
|
||||
local i
|
||||
elog "This package has several modules which may require additional dependencies"
|
||||
elog "to use. However, it is up to you to install them separately if you need this"
|
||||
elog "optional functionality:"
|
||||
elog
|
||||
i="$(if has_version 'www-apache/mod_perl'; then echo '[I]'; else echo '[ ]'; fi)"
|
||||
elog " $i www-apache/mod_perl"
|
||||
elog " - Running Perl code natively in Apache via"
|
||||
elog " Apache::TestHandler, Apache::TestReportPerl, or Apache::TestSmokePerl"
|
||||
|
||||
if use test; then
|
||||
elog
|
||||
elog "This module will perform additional tests if these dependencies are"
|
||||
elog "pre-installed"
|
||||
fi
|
||||
}
|
||||
src_test() {
|
||||
optdep_notice
|
||||
echo
|
||||
local MODULES=(
|
||||
"Apache::Test ${DIST_VERSION}"
|
||||
"Apache::Test5005compat 0.01"
|
||||
"Apache::TestBuild"
|
||||
"Apache::TestClient"
|
||||
"Apache::TestCommon"
|
||||
"Apache::TestCommonPost"
|
||||
"Apache::TestConfig"
|
||||
"Apache::TestConfigC"
|
||||
"Apache::TestConfigPHP"
|
||||
"Apache::TestConfigParrot"
|
||||
"Apache::TestConfigParse"
|
||||
"Apache::TestConfigPerl"
|
||||
"Apache::TestHarness"
|
||||
"Apache::TestHarnessPHP"
|
||||
"Apache::TestMB"
|
||||
"Apache::TestMM"
|
||||
"Apache::TestPerlDB"
|
||||
"Apache::TestReport"
|
||||
"Apache::TestRequest"
|
||||
"Apache::TestRun"
|
||||
"Apache::TestRunPHP 1.00"
|
||||
"Apache::TestRunParrot 1.00"
|
||||
"Apache::TestRunPerl 1.00"
|
||||
"Apache::TestSSLCA"
|
||||
"Apache::TestServer"
|
||||
"Apache::TestSmoke"
|
||||
"Apache::TestSort"
|
||||
"Apache::TestTrace 0.01"
|
||||
"Apache::TestUtil 0.02"
|
||||
"Bundle::ApacheTest ${DISTVERSION}"
|
||||
)
|
||||
has_version "www-apache/mod_perl" && MODULES+=(
|
||||
"Apache::TestHandler"
|
||||
"Apache::TestReportPerl"
|
||||
"Apache::TestSmokePerl"
|
||||
)
|
||||
local failed=()
|
||||
for dep in "${MODULES[@]}"; do
|
||||
ebegin "Compile testing ${dep}"
|
||||
perl -Mblib="${S}" -M"${dep} ()" -e1
|
||||
eend $? || failed+=( "$dep" )
|
||||
done
|
||||
if [[ ${failed[@]} ]]; then
|
||||
echo
|
||||
eerror "One or more modules failed compile:";
|
||||
for dep in "${failed[@]}"; do
|
||||
eerror " ${dep}"
|
||||
done
|
||||
die "Failing due to module compilation errors";
|
||||
fi
|
||||
perl_rm_files t/more/02testmore.t t/more/04testmore.t
|
||||
perl-module_src_test
|
||||
}
|
||||
pkg_postinst() {
|
||||
use test || optdep_notice
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST Apache-Test-1.40.tar.gz 151801 BLAKE2B 0ec57b0a8a0fafc8d10409a3cd02308da67bd6766caa71bfb525ef49832545c811281a987a5237be236a3a581fcf8311785d0bff8d283db2c52f08d11cd2bda1 SHA512 f48a1b93c4d61181670ec59bb8bb2231122b22ec9725d8899a3b2f82d2918fdc48a09494c2f45b0e6a603546481892a948eac3494e06c8eb219a9213e1faadb8
|
||||
DIST Apache-Test-1.42.tar.gz 153621 BLAKE2B 570c61e4b5f17c97376ba9f4ab3cde0b14df367f06b665e31dba9c6675972ad4d1bebe46b08416b0f4749d723a6b909430c9bdd1e5d3b1c6b21d209635f1236a SHA512 ecd78dde1b0db562d591990bcd50fe880d724dce9bfb20dceea3a51b81abd89d40889857e5e7714b586a093ad6f101dfd79c6aa33d63c906c41c532305b6584c
|
||||
|
Binary file not shown.
Binary file not shown.
@ -0,0 +1,66 @@
|
||||
From fed5542836c6afa925f3b607d544a92307c5e09f Mon Sep 17 00:00:00 2001
|
||||
From: Andrew Svetlov <andrew.svetlov@gmail.com>
|
||||
Date: Mon, 15 Oct 2018 21:32:48 +0300
|
||||
Subject: [PATCH] Fix tests
|
||||
|
||||
---
|
||||
tests/integration/test_real_browser.py | 18 ++++++++----------
|
||||
tests/unit/test_cors_config.py | 5 ++---
|
||||
2 files changed, 10 insertions(+), 13 deletions(-)
|
||||
|
||||
diff --git a/tests/integration/test_real_browser.py b/tests/integration/test_real_browser.py
|
||||
index a5c9030..5dff79a 100644
|
||||
--- a/tests/integration/test_real_browser.py
|
||||
+++ b/tests/integration/test_real_browser.py
|
||||
@@ -193,22 +193,20 @@ class IntegrationServers:
|
||||
|
||||
# Start servers.
|
||||
for server_name, server_descr in self.servers.items():
|
||||
- handler = server_descr.app.make_handler()
|
||||
- server = await self.loop.create_server(
|
||||
- handler,
|
||||
- sock=server_sockets[server_name])
|
||||
- server_descr.handler = handler
|
||||
- server_descr.server = server
|
||||
+ runner = web.AppRunner(server_descr.app)
|
||||
+ await runner.setup()
|
||||
+ site = web.SockSite(runner, server_sockets[server_name])
|
||||
+ await site.start()
|
||||
+ server_descr.runner = runner
|
||||
|
||||
self._logger.info("Started server '%s' at '%s'",
|
||||
server_name, server_descr.url)
|
||||
|
||||
async def stop_servers(self):
|
||||
for server_descr in self.servers.values():
|
||||
- server_descr.server.close()
|
||||
- await server_descr.handler.shutdown()
|
||||
- await server_descr.server.wait_closed()
|
||||
- await server_descr.app.cleanup()
|
||||
+ runner = server_descr.runner
|
||||
+ await runner.shutdown()
|
||||
+ await runner.cleanup()
|
||||
|
||||
self.servers = {}
|
||||
|
||||
diff --git a/tests/unit/test_cors_config.py b/tests/unit/test_cors_config.py
|
||||
index 5b8d8f3..817410e 100644
|
||||
--- a/tests/unit/test_cors_config.py
|
||||
+++ b/tests/unit/test_cors_config.py
|
||||
@@ -58,11 +58,10 @@ def options_route(app):
|
||||
"OPTIONS", "/options_path", _handler)
|
||||
|
||||
|
||||
-def test_add_options_route(cors, options_route):
|
||||
+def test_add_options_route(app, cors, options_route):
|
||||
"""Test configuring OPTIONS route"""
|
||||
-
|
||||
with pytest.raises(ValueError,
|
||||
- match="/options_path already has OPTIONS handler"):
|
||||
+ match="already has OPTIONS handler"):
|
||||
cors.add(options_route.resource)
|
||||
|
||||
|
||||
--
|
||||
2.25.1
|
||||
|
@ -1,2 +1,3 @@
|
||||
DIST cssselect2-0.2.0.tar.gz 28197 BLAKE2B 447dc915ff550ee137c64096ed760e12d8da4dbd732a1b48668c2843aa90b11af89e3fe6e31d7128ec713132c7dd5a8b17ed271e0afc3a9219b5839f5e1292d7 SHA512 18069dd22892d8457865c2960630e984e791c6779b8d3a6ce4542c3ae92535a8ab23fc964e59776095a999a38ad2c40facce3b9164fef68870bb54167b6dc49b
|
||||
DIST cssselect2-0.2.2.tar.gz 31764 BLAKE2B 4f85af65bc893522aa3a084998bab364b66b0305690331a5a2e5719a0dfa7c8744bc1a2615c39b58981ddb152bbdfcd10d95ef23561ef65de34f9e6c32f51619 SHA512 1f11077c6e28f52a1c370c1f3d5fa1156f74b390298323889230304ede6c23a2f2b78c63026f5d84e67518a21fc8df3484577bc77fcf19cb97a84c2a7f28d355
|
||||
DIST cssselect2-0.3.0.tar.gz 29534 BLAKE2B d7426d72c52ab2cbdbadfb935b3d4f1f23cbc960c94d6691a8f97c9935e0c8d6212e9e2c1c5b00df6fd450216a3deb2c7308c032821f9ef7fbb4d488a7728c8f SHA512 ae59314654d1c1ddf982b77521de7743d1496145a1367f51e02b6067d6757940e7ccb50b67959630f472972473a1e87cec8dfbc8eeb68ad5f16465a36b1447be
|
||||
|
@ -0,0 +1,30 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{6,7,8} )
|
||||
|
||||
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/Kozea/cssselect2"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/tinycss2[${PYTHON_USEDEP}]
|
||||
dev-python/webencodings[${PYTHON_USEDEP}]"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
src_prepare() {
|
||||
# junk deps
|
||||
sed -i -e '/^addopts/d' -e '/pytest-runner/d' setup.cfg || die
|
||||
distutils-r1_src_prepare
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue