parent
c4db931ee9
commit
d6e9c6c1cc
Binary file not shown.
Binary file not shown.
@ -0,0 +1,66 @@
|
|||||||
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
DISTUTILS_USE_PEP517=setuptools
|
||||||
|
PYTHON_COMPAT=( python3_{8..10} )
|
||||||
|
|
||||||
|
inherit bash-completion-r1 distutils-r1 multiprocessing
|
||||||
|
|
||||||
|
DESCRIPTION="Universal Command Line Environment for AWS"
|
||||||
|
HOMEPAGE="https://pypi.org/project/awscli/"
|
||||||
|
#SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
|
||||||
|
SRC_URI="https://github.com/aws/aws-cli/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
S="${WORKDIR}/aws-cli-${PV}"
|
||||||
|
|
||||||
|
LICENSE="Apache-2.0"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||||
|
|
||||||
|
# awscli 1.22.55 → botocore 1.24.0
|
||||||
|
# so botocore is x.(y+2).(z-55)
|
||||||
|
BOTOCORE_PV="$(ver_cut 1).$(( $(ver_cut 2) + 2)).$(( $(ver_cut 3-) - 55))"
|
||||||
|
RDEPEND="
|
||||||
|
>=dev-python/botocore-${BOTOCORE_PV}[${PYTHON_USEDEP}]
|
||||||
|
dev-python/colorama[${PYTHON_USEDEP}]
|
||||||
|
dev-python/docutils[${PYTHON_USEDEP}]
|
||||||
|
dev-python/rsa[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/s3transfer-0.4.0[${PYTHON_USEDEP}]
|
||||||
|
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||||
|
"
|
||||||
|
BDEPEND="
|
||||||
|
test? (
|
||||||
|
dev-python/pytest-xdist[${PYTHON_USEDEP}]
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
distutils_enable_tests pytest
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
# do not rely on bundled deps in botocore (sic!)
|
||||||
|
find -name '*.py' -exec sed -i \
|
||||||
|
-e 's:from botocore[.]vendored import:import:' \
|
||||||
|
-e 's:from botocore[.]vendored[.]:from :' \
|
||||||
|
{} + || die
|
||||||
|
# strip overzealous upper bounds on requirements
|
||||||
|
sed -i -e 's:,<[0-9.]*::' -e 's:==:>=:' setup.py || die
|
||||||
|
distutils-r1_src_prepare
|
||||||
|
}
|
||||||
|
|
||||||
|
python_test() {
|
||||||
|
# integration tests require AWS credentials and Internet access
|
||||||
|
epytest tests/{functional,unit} \
|
||||||
|
-n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")"
|
||||||
|
}
|
||||||
|
|
||||||
|
python_install_all() {
|
||||||
|
newbashcomp bin/aws_bash_completer aws
|
||||||
|
|
||||||
|
insinto /usr/share/zsh/site-functions
|
||||||
|
newins bin/aws_zsh_completer.sh _aws
|
||||||
|
|
||||||
|
distutils-r1_python_install_all
|
||||||
|
|
||||||
|
rm "${ED}"/usr/bin/{aws.cmd,aws_bash_completer,aws_zsh_completer.sh} || die
|
||||||
|
}
|
Binary file not shown.
Binary file not shown.
@ -1,2 +1 @@
|
|||||||
DIST tmux-mem-cpu-load-3.4.0.tar.gz 19483 BLAKE2B eeaabcd4447b326dbf77d3e5844971d2b466c93169993d4a16912bc4d0f777b07db1b0c2973dfaef9e0cd5b4f0dfd132043aed20170a1a7856d7a3c1f6a96ba8 SHA512 f963683faa86ff7b20a658787978ce3c4c36c41fabe297e18e4b1483e680d71a3b10c220dbae5c29bc7f7cb65e79839041b53c9aaee75a17bdc78bf0b76e8dc1
|
|
||||||
DIST tmux-mem-cpu-load-3.5.1.tar.gz 23020 BLAKE2B 2bbe2441c0fd687fee4ed2f27b8cea0fdbb0596c36fe8c791be110b880abe5d8c28a14960a9836552cf49b4f92d32a127be9271954853c5310f1628791138f7a SHA512 e08a3ad088021d4f4a3fb671a15cc8468a833501202391a63f57d3b53ea65934dc32869c3b7bbe47bce7d8ff2c9d1d35a5823a70c80d1218392aac82ed96e68f
|
DIST tmux-mem-cpu-load-3.5.1.tar.gz 23020 BLAKE2B 2bbe2441c0fd687fee4ed2f27b8cea0fdbb0596c36fe8c791be110b880abe5d8c28a14960a9836552cf49b4f92d32a127be9271954853c5310f1628791138f7a SHA512 e08a3ad088021d4f4a3fb671a15cc8468a833501202391a63f57d3b53ea65934dc32869c3b7bbe47bce7d8ff2c9d1d35a5823a70c80d1218392aac82ed96e68f
|
||||||
|
@ -1,24 +0,0 @@
|
|||||||
# Copyright 1999-2021 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
|
|
||||||
inherit cmake-utils
|
|
||||||
|
|
||||||
IUSE=""
|
|
||||||
if [[ ${PV} == *9999* ]]; then
|
|
||||||
inherit git-r3
|
|
||||||
EGIT_REPO_URI=${EGIT_REPO_URI:-"https://github.com/thewtex/tmux-mem-cpu-load.git"}
|
|
||||||
SRC_URI=""
|
|
||||||
else
|
|
||||||
KEYWORDS="amd64 ~arm64 x86"
|
|
||||||
SRC_URI="https://github.com/thewtex/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
||||||
fi
|
|
||||||
|
|
||||||
DESCRIPTION="CPU, RAM memory, and load monitor for use with tmux"
|
|
||||||
HOMEPAGE="https://github.com/thewtex/tmux-mem-cpu-load/"
|
|
||||||
|
|
||||||
LICENSE="Apache-2.0"
|
|
||||||
SLOT="0"
|
|
||||||
|
|
||||||
DOCS=( AUTHORS README.rst )
|
|
Binary file not shown.
Binary file not shown.
@ -1 +1,2 @@
|
|||||||
DIST mgorny-dev-scripts-13.tar.gz 8162 BLAKE2B 0ac4b8d61119b64d3d6420861ac466f975606972e5274be76a3a66210536783077ab4c066167553e11d5f913ea32ce49536f6757e2b806a355f85e2698c858f9 SHA512 53bb2fcc99f9bd048adf14b6b760a1293bb87e5b48ec1959d3037cd2b8a09583150309632451444e6048abfe9296f3a63346720c4a5de6c6103a9807f13874cc
|
DIST mgorny-dev-scripts-13.tar.gz 8162 BLAKE2B 0ac4b8d61119b64d3d6420861ac466f975606972e5274be76a3a66210536783077ab4c066167553e11d5f913ea32ce49536f6757e2b806a355f85e2698c858f9 SHA512 53bb2fcc99f9bd048adf14b6b760a1293bb87e5b48ec1959d3037cd2b8a09583150309632451444e6048abfe9296f3a63346720c4a5de6c6103a9807f13874cc
|
||||||
|
DIST mgorny-dev-scripts-14.tar.gz 10869 BLAKE2B 674f20874b1815d6c5e2e507f33e86da8dce5c2024cc77b66a47bfd0203718ae149729c3ed5d70714f89e5e754b3b68f2d0c2f0cbc40505e51fc2d352e823e7c SHA512 57822f981db90b9e4b1ea14a6117e14ab8d6668b6d01e63c719637b870e5ddae3c1fd9bf7aed27618c42c12df8c40476c96de36d6c753dfbae92a1d0bf7d3b8b
|
||||||
|
@ -0,0 +1,29 @@
|
|||||||
|
# Copyright 2019-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
DESCRIPTION="Handy scripts for ebuild development and more"
|
||||||
|
HOMEPAGE="https://github.com/mgorny/mgorny-dev-scripts"
|
||||||
|
SRC_URI="https://github.com/mgorny/mgorny-dev-scripts/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="BSD-2"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86 ~x64-macos"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
app-portage/gentoolkit
|
||||||
|
dev-perl/URI
|
||||||
|
dev-util/pkgcheck
|
||||||
|
dev-vcs/git
|
||||||
|
net-misc/wget
|
||||||
|
sys-apps/portage
|
||||||
|
x11-misc/xdg-utils
|
||||||
|
!dev-util/pkgdiff
|
||||||
|
"
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
dodoc README.rst
|
||||||
|
rm -f COPYING README.rst || die
|
||||||
|
dobin *
|
||||||
|
}
|
Binary file not shown.
Binary file not shown.
@ -1,4 +1,3 @@
|
|||||||
DIST gjs-1.64.4.tar.xz 422496 BLAKE2B a96211f7240336dbb30c6965e405f59ee72e4288842837da8da8c6d3c59b7e04ebb6c7a8b0b02d38601c162ffdf1a1fef9f13e4db720c4c483f4a39dffd5dbb4 SHA512 21a15d7106ad6584fb1f02cb0a0a4cab211a3540adb8f2c03d35c211e3946b81935000a52351fedd95a18a7ff6b7f96e665fcafa3c411ff79f2b6cb332c82b42
|
DIST gjs-1.64.4.tar.xz 422496 BLAKE2B a96211f7240336dbb30c6965e405f59ee72e4288842837da8da8c6d3c59b7e04ebb6c7a8b0b02d38601c162ffdf1a1fef9f13e4db720c4c483f4a39dffd5dbb4 SHA512 21a15d7106ad6584fb1f02cb0a0a4cab211a3540adb8f2c03d35c211e3946b81935000a52351fedd95a18a7ff6b7f96e665fcafa3c411ff79f2b6cb332c82b42
|
||||||
DIST gjs-1.68.4.tar.xz 559768 BLAKE2B 0e5f2cbb5b93c7ddc05916c95f23d9438c8e76bc2eb35c11eca5414d9f4327e0c99ec9c85795880bd478de5e3655da0f7e9223ba4c3f7c8d5685bdb4a00920d5 SHA512 c610abfa701c0a61ffa6916ec5ebcd07b1dcb04607d74ab0b6d30583da27d60f9993e037fab73e66e1580d644d3a57f0a479f55a09e3bf56fea7f17367c787b3
|
DIST gjs-1.64.5.tar.xz 422548 BLAKE2B dcc0b7327cbc6a1108be031c8807e61ebd3c8392916750078aaa0d82cb3bf9f7ff0e1876c250e5ddf6e9d7bb6a17d9d1fe34c1c77ff534b7ec1dd54fa05a2d1b SHA512 41a3c79888792674b2bccbf254507ed02497eb571c8ca7f47aab406d2ee29b73c98b1c7d59c33ed33bad90c6989df944d78b86d2f7e9824d598b62e29769b6dc
|
||||||
DIST gjs-1.70.0.tar.xz 595292 BLAKE2B fc06f4b397350daf19a532a3ec3c2851e106bc76dda41d4a9c32b2718a6f5add1bf0c1066ba9cc5aaeeb192cb4f0a0e3dba1c16826fb3157c0a1e0a8bfe88606 SHA512 e32ee511c34fa9af210061a106d42de67d40c20f398dfacc541db0323bb4a499f2552aa28028eba16ec42afd4dec5a0cea4292155a66b966c3731ded45b23cb4
|
|
||||||
DIST gjs-1.70.1.tar.xz 598444 BLAKE2B 7d5f1b82e9edd20b9b3d3b03511d3cb8e19715d5dcaaa5375867c1c8754895db33089c41e17f28b732183ce510fff868399cd2174062684e0b3072cd599bc12b SHA512 194d8efeb37ecf7f3ea65c0bf0bbe2120524a11448423888d0785868297ebdea12b0ea4b28cb49d2596c7a3d73f13eb216072db8dca5e209193ba3dbbad78b6b
|
DIST gjs-1.70.1.tar.xz 598444 BLAKE2B 7d5f1b82e9edd20b9b3d3b03511d3cb8e19715d5dcaaa5375867c1c8754895db33089c41e17f28b732183ce510fff868399cd2174062684e0b3072cd599bc12b SHA512 194d8efeb37ecf7f3ea65c0bf0bbe2120524a11448423888d0785868297ebdea12b0ea4b28cb49d2596c7a3d73f13eb216072db8dca5e209193ba3dbbad78b6b
|
||||||
|
@ -1,51 +0,0 @@
|
|||||||
# Copyright 1999-2022 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=7
|
|
||||||
|
|
||||||
inherit flag-o-matic gnome.org meson virtualx
|
|
||||||
|
|
||||||
DESCRIPTION="Javascript bindings for GNOME"
|
|
||||||
HOMEPAGE="https://wiki.gnome.org/Projects/Gjs"
|
|
||||||
|
|
||||||
LICENSE="MIT || ( MPL-1.1 LGPL-2+ GPL-2+ )"
|
|
||||||
SLOT="0"
|
|
||||||
IUSE="+cairo examples gtk readline sysprof test"
|
|
||||||
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86"
|
|
||||||
RESTRICT="!test? ( test )"
|
|
||||||
|
|
||||||
RDEPEND="
|
|
||||||
>=dev-libs/glib-2.66.0
|
|
||||||
dev-libs/libffi:=
|
|
||||||
>=dev-libs/gobject-introspection-1.66.1:=
|
|
||||||
>=dev-lang/spidermonkey-78.2.0:78
|
|
||||||
cairo? ( x11-libs/cairo[X,glib,svg] )
|
|
||||||
readline? ( sys-libs/readline:0= )
|
|
||||||
"
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
sysprof? ( >=dev-util/sysprof-capture-3.40.1:4 )
|
|
||||||
test? ( sys-apps/dbus
|
|
||||||
>=x11-libs/gtk+-3.20:3[introspection] )
|
|
||||||
"
|
|
||||||
BDEPEND="
|
|
||||||
virtual/pkgconfig
|
|
||||||
"
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
append-cppflags -DG_DISABLE_CAST_CHECKS
|
|
||||||
|
|
||||||
# FIXME: add systemtap/dtrace support, like in glib:2
|
|
||||||
local emesonargs=(
|
|
||||||
$(meson_feature cairo)
|
|
||||||
$(meson_feature readline)
|
|
||||||
$(meson_feature sysprof profiler)
|
|
||||||
-Dinstalled_tests=false
|
|
||||||
$(meson_use !test skip_dbus_tests)
|
|
||||||
$(meson_use !test skip_gtk_tests)
|
|
||||||
)
|
|
||||||
meson_src_configure
|
|
||||||
}
|
|
||||||
|
|
||||||
src_test() {
|
|
||||||
virtx meson_src_test
|
|
||||||
}
|
|
@ -1,3 +1,2 @@
|
|||||||
DIST liborcus-0.16.1.tar.xz 1805436 BLAKE2B 7df89da5a175daa6fcf759d28f8a0eaebf3db6405af3b06a01b8dad41c7706acedc74876a0b68ff9cabd5780bb7cb311cd7c98390c9ecd265e62513eadde81eb SHA512 6d75591820af65181dd3a418f051a359695083f29c7d9c77edbcab3e89d9ea367824be0b19f27a31267525f446936145f5780a0ce3c6ee2d89823742837d4739
|
DIST liborcus-0.16.1.tar.xz 1805436 BLAKE2B 7df89da5a175daa6fcf759d28f8a0eaebf3db6405af3b06a01b8dad41c7706acedc74876a0b68ff9cabd5780bb7cb311cd7c98390c9ecd265e62513eadde81eb SHA512 6d75591820af65181dd3a418f051a359695083f29c7d9c77edbcab3e89d9ea367824be0b19f27a31267525f446936145f5780a0ce3c6ee2d89823742837d4739
|
||||||
DIST liborcus-0.17.0.tar.xz 1826696 BLAKE2B 4cab8696f698510de6c995aa6a3e59a8407297d6a60bac89ca7ffa1f74576de555c69a38de97eac63e2aed1817a3377ec7e15b1da7b5c01b49d049092d8756ff SHA512 1ac24f3c10973d0e0f6e3db7982391434631ec998ae07bb011fa8e000e48ca430c07a0c2588871a93b6d9bf7a19e30d4f05d34aef699dfce1f59a4556c7727e8
|
|
||||||
DIST liborcus-0.17.2.tar.xz 1839188 BLAKE2B d274e3af71df16866e305403d63d3978613915753412ac9de19d7de7802930c3886d8653d6d48a8d9a971dc0ee284f8f83af8dc07850b5f28fcdab2815b6d9b2 SHA512 8ad8db46c23673260057aff555286d95ebfeff0a027bdeae24f11f8aa12456284f7f4446edddb91936b3011eb1227cfe1618ab3c4d909f8356c8c151f5739d79
|
DIST liborcus-0.17.2.tar.xz 1839188 BLAKE2B d274e3af71df16866e305403d63d3978613915753412ac9de19d7de7802930c3886d8653d6d48a8d9a971dc0ee284f8f83af8dc07850b5f28fcdab2815b6d9b2 SHA512 8ad8db46c23673260057aff555286d95ebfeff0a027bdeae24f11f8aa12456284f7f4446edddb91936b3011eb1227cfe1618ab3c4d909f8356c8c151f5739d79
|
||||||
|
@ -1,67 +0,0 @@
|
|||||||
# Copyright 1999-2021 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=8
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python3_{8,9} )
|
|
||||||
|
|
||||||
inherit autotools python-single-r1
|
|
||||||
|
|
||||||
DESCRIPTION="Standalone file import filter library for spreadsheet documents"
|
|
||||||
HOMEPAGE="https://gitlab.com/orcus/orcus/blob/master/README.md"
|
|
||||||
|
|
||||||
if [[ ${PV} == *9999* ]]; then
|
|
||||||
MDDS_SLOT="1/9999"
|
|
||||||
EGIT_REPO_URI="https://gitlab.com/orcus/orcus.git"
|
|
||||||
inherit git-r3
|
|
||||||
else
|
|
||||||
MDDS_SLOT="1/2.0"
|
|
||||||
SRC_URI="https://kohei.us/files/orcus/src/${P}.tar.xz"
|
|
||||||
# Unkeyworded while libreoffice has no release making use of this slot
|
|
||||||
# KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
|
|
||||||
fi
|
|
||||||
|
|
||||||
LICENSE="MIT"
|
|
||||||
SLOT="0/0.17" # based on SONAME of liborcus.so
|
|
||||||
IUSE="python +spreadsheet-model test tools"
|
|
||||||
|
|
||||||
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
|
||||||
RESTRICT="!test? ( test )"
|
|
||||||
|
|
||||||
RDEPEND="
|
|
||||||
dev-libs/boost:=[zlib(+)]
|
|
||||||
sys-libs/zlib
|
|
||||||
python? ( ${PYTHON_DEPS} )
|
|
||||||
spreadsheet-model? ( dev-libs/libixion:${SLOT} )
|
|
||||||
"
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
dev-util/mdds:${MDDS_SLOT}
|
|
||||||
"
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
use python && python-single-r1_pkg_setup
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
# bug 713586
|
|
||||||
use test && eapply "${FILESDIR}/${P}-test-fix.patch"
|
|
||||||
|
|
||||||
default
|
|
||||||
eautoreconf
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
local myeconfargs=(
|
|
||||||
--disable-static
|
|
||||||
--disable-werror
|
|
||||||
$(use_enable python)
|
|
||||||
$(use_enable spreadsheet-model)
|
|
||||||
$(use_with tools)
|
|
||||||
)
|
|
||||||
econf "${myeconfargs[@]}"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
default
|
|
||||||
find "${D}" -name '*.la' -type f -delete || die
|
|
||||||
}
|
|
@ -0,0 +1,30 @@
|
|||||||
|
# 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="A Python package that generates fake data for you"
|
||||||
|
HOMEPAGE="https://github.com/joke2k/faker"
|
||||||
|
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="MIT"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
>=dev-python/python-dateutil-2.4.2[${PYTHON_USEDEP}]
|
||||||
|
!dev-ruby/faker"
|
||||||
|
BDEPEND="
|
||||||
|
test? (
|
||||||
|
dev-python/freezegun[${PYTHON_USEDEP}]
|
||||||
|
dev-python/pillow[${PYTHON_USEDEP},tiff]
|
||||||
|
dev-python/random2[${PYTHON_USEDEP}]
|
||||||
|
dev-python/validators[${PYTHON_USEDEP}]
|
||||||
|
)"
|
||||||
|
|
||||||
|
distutils_enable_tests pytest
|
Binary file not shown.
@ -1,2 +1,3 @@
|
|||||||
DIST alembic-1.7.5.tar.gz 1229596 BLAKE2B dbedcc43f60b2b28adc17b1c0c753b22993127acd5aab04bbf4a47920e11894498618d353eb544b48c0c5698d7cf6f96fba39a98df723a611810e71e24809b0e SHA512 4223116c3610f3196335c1fb2032a9a236c3e6ec4e4ca5cb85ccc3667d614e77d51d9fee1ee0173a32451198929428c1fcf39afd90b6df32584b076e0a4ab1a4
|
DIST alembic-1.7.5.tar.gz 1229596 BLAKE2B dbedcc43f60b2b28adc17b1c0c753b22993127acd5aab04bbf4a47920e11894498618d353eb544b48c0c5698d7cf6f96fba39a98df723a611810e71e24809b0e SHA512 4223116c3610f3196335c1fb2032a9a236c3e6ec4e4ca5cb85ccc3667d614e77d51d9fee1ee0173a32451198929428c1fcf39afd90b6df32584b076e0a4ab1a4
|
||||||
DIST alembic-1.7.6.tar.gz 1235649 BLAKE2B 5e12cf09927c7851ad5c95b7047865eec6ca01d3ce94045be3601855370e1cce8371d16ee4141a953a8ea0ffaafaa68c08499416283c7996b086b7b5967c8790 SHA512 dca97722ac70654dfa23d673b776d064af13bf1e59219131d7716d7ce183508361bad713d7d0986c8a56dd66c58a59fafc1c3b3ef80507eaf6368e48f9c1a059
|
DIST alembic-1.7.6.tar.gz 1235649 BLAKE2B 5e12cf09927c7851ad5c95b7047865eec6ca01d3ce94045be3601855370e1cce8371d16ee4141a953a8ea0ffaafaa68c08499416283c7996b086b7b5967c8790 SHA512 dca97722ac70654dfa23d673b776d064af13bf1e59219131d7716d7ce183508361bad713d7d0986c8a56dd66c58a59fafc1c3b3ef80507eaf6368e48f9c1a059
|
||||||
|
DIST alembic-1.7.7.tar.gz 1247590 BLAKE2B 9906a266b71d658bd66b00b237bc21bb092646077584ddb5c245f73709087f0e476e86eb022bf041e57a68e16ee89e5a3a047dc7ec2d43ffa941b2e803aef0fe SHA512 dcb4ba2faafc3ee789981931e0548f7328c1118938150789218e720f39386fd5e7e2543ab241838bcc1faaf36db07900fd065963496e68ced0896a5f4795d63d
|
||||||
|
@ -0,0 +1,36 @@
|
|||||||
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
DISTUTILS_USE_PEP517=setuptools
|
||||||
|
PYTHON_COMPAT=( pypy3 python3_{8..10} )
|
||||||
|
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
DESCRIPTION="database migrations tool, written by the author of SQLAlchemy"
|
||||||
|
HOMEPAGE="https://github.com/sqlalchemy/alembic"
|
||||||
|
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="MIT"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~arm64 ~riscv ~x86"
|
||||||
|
IUSE="doc"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
>=dev-python/sqlalchemy-1.1.0[${PYTHON_USEDEP}]
|
||||||
|
dev-python/mako[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/python-editor-0.3[${PYTHON_USEDEP}]
|
||||||
|
dev-python/python-dateutil[${PYTHON_USEDEP}]
|
||||||
|
$(python_gen_cond_dep '
|
||||||
|
dev-python/importlib_metadata[${PYTHON_USEDEP}]
|
||||||
|
dev-python/importlib_resources[${PYTHON_USEDEP}]
|
||||||
|
' pypy3 python3_8)
|
||||||
|
"
|
||||||
|
|
||||||
|
distutils_enable_tests pytest
|
||||||
|
|
||||||
|
python_install_all() {
|
||||||
|
use doc && local HTML_DOCS=( docs/. )
|
||||||
|
distutils-r1_python_install_all
|
||||||
|
}
|
@ -0,0 +1,63 @@
|
|||||||
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
DISTUTILS_USE_PEP517=setuptools
|
||||||
|
PYTHON_COMPAT=( python3_{8..10} )
|
||||||
|
|
||||||
|
inherit distutils-r1 multiprocessing
|
||||||
|
|
||||||
|
DESCRIPTION="The AWS SDK for Python"
|
||||||
|
HOMEPAGE="https://github.com/boto/boto3"
|
||||||
|
LICENSE="Apache-2.0"
|
||||||
|
SLOT="0"
|
||||||
|
|
||||||
|
if [[ "${PV}" == "9999" ]]; then
|
||||||
|
EGIT_REPO_URI="https://github.com/boto/boto3"
|
||||||
|
inherit git-r3
|
||||||
|
BOTOCORE_PV=${PV}
|
||||||
|
else
|
||||||
|
SRC_URI="https://github.com/boto/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux"
|
||||||
|
|
||||||
|
# botocore is x.(y+3).z
|
||||||
|
BOTOCORE_PV="$(ver_cut 1).$(( $(ver_cut 2) + 3)).$(ver_cut 3-)"
|
||||||
|
fi
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
>=dev-python/botocore-${BOTOCORE_PV}[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/jmespath-0.7.1[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/s3transfer-0.3.0[${PYTHON_USEDEP}]
|
||||||
|
"
|
||||||
|
BDEPEND="
|
||||||
|
test? (
|
||||||
|
dev-python/mock[${PYTHON_USEDEP}]
|
||||||
|
dev-python/pytest-xdist[${PYTHON_USEDEP}]
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
distutils_enable_sphinx docs/source \
|
||||||
|
'dev-python/guzzle_sphinx_theme'
|
||||||
|
distutils_enable_tests pytest
|
||||||
|
|
||||||
|
python_prepare_all() {
|
||||||
|
# don't lock versions to narrow ranges
|
||||||
|
sed -e '/botocore/ d' \
|
||||||
|
-e '/jmespath/ d' \
|
||||||
|
-e '/s3transfer/ d' \
|
||||||
|
-i setup.py || die
|
||||||
|
|
||||||
|
# do not rely on bundled deps in botocore (sic!)
|
||||||
|
find -name '*.py' -exec sed -i \
|
||||||
|
-e 's:from botocore[.]vendored import:import:' \
|
||||||
|
-e 's:from botocore[.]vendored[.]:from :' \
|
||||||
|
{} + || die
|
||||||
|
|
||||||
|
distutils-r1_python_prepare_all
|
||||||
|
}
|
||||||
|
|
||||||
|
python_test() {
|
||||||
|
epytest tests/{functional,unit} \
|
||||||
|
-n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")"
|
||||||
|
}
|
@ -0,0 +1,68 @@
|
|||||||
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
DISTUTILS_USE_PEP517=setuptools
|
||||||
|
PYTHON_COMPAT=( python3_{8..10} )
|
||||||
|
|
||||||
|
inherit distutils-r1 multiprocessing
|
||||||
|
|
||||||
|
DESCRIPTION="Low-level, data-driven core of boto 3"
|
||||||
|
HOMEPAGE="https://github.com/boto/botocore"
|
||||||
|
LICENSE="Apache-2.0"
|
||||||
|
SLOT="0"
|
||||||
|
|
||||||
|
if [[ "${PV}" == "9999" ]]; then
|
||||||
|
EGIT_REPO_URI="https://github.com/boto/botocore"
|
||||||
|
inherit git-r3
|
||||||
|
else
|
||||||
|
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||||
|
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux"
|
||||||
|
fi
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
dev-python/six[${PYTHON_USEDEP}]
|
||||||
|
dev-python/jmespath[${PYTHON_USEDEP}]
|
||||||
|
dev-python/python-dateutil[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/urllib3-1.25.4[${PYTHON_USEDEP}]
|
||||||
|
"
|
||||||
|
BDEPEND="
|
||||||
|
test? (
|
||||||
|
dev-python/jsonschema[${PYTHON_USEDEP}]
|
||||||
|
dev-python/pytest-xdist[${PYTHON_USEDEP}]
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}/1.8.6-tests-pass-all-env-vars-to-cmd-runner.patch"
|
||||||
|
)
|
||||||
|
|
||||||
|
distutils_enable_sphinx docs/source \
|
||||||
|
'dev-python/guzzle_sphinx_theme'
|
||||||
|
distutils_enable_tests pytest
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
# unpin deps
|
||||||
|
sed -i -e "s:>=.*':':" setup.py || die
|
||||||
|
|
||||||
|
# unbundle deps
|
||||||
|
rm -r botocore/vendored || die
|
||||||
|
find -name '*.py' -exec sed -i \
|
||||||
|
-e 's:from botocore[.]vendored import:import:' \
|
||||||
|
-e 's:from botocore[.]vendored[.]:from :' \
|
||||||
|
{} + || die
|
||||||
|
|
||||||
|
distutils-r1_src_prepare
|
||||||
|
}
|
||||||
|
|
||||||
|
python_test() {
|
||||||
|
local EPYTEST_DESELECT=(
|
||||||
|
# rely on bundled six
|
||||||
|
tests/functional/test_six_imports.py::test_no_bare_six_imports
|
||||||
|
tests/functional/test_six_threading.py::test_six_thread_safety
|
||||||
|
)
|
||||||
|
|
||||||
|
epytest tests/{functional,unit} \
|
||||||
|
-n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")"
|
||||||
|
}
|
@ -1 +1,2 @@
|
|||||||
DIST cppy-1.1.0.tar.gz 11777 BLAKE2B 3bdeba7ee9bb478b51090a52077abc44ee74f72439c3cf2bca898bfc84bd97993bf4dd20d641a1952e2738e3f6b89434f7435fe0a5a8302f91ebef9d02729686 SHA512 9ef4db580c963219a111ab10bc263cdf2c4386e27fce8ffe5c785fc7e8f6c6b60cb23ce918959c6f17194fd6977cc65fa64d167a0b62e6cff0cf662154bc734c
|
DIST cppy-1.1.0.tar.gz 11777 BLAKE2B 3bdeba7ee9bb478b51090a52077abc44ee74f72439c3cf2bca898bfc84bd97993bf4dd20d641a1952e2738e3f6b89434f7435fe0a5a8302f91ebef9d02729686 SHA512 9ef4db580c963219a111ab10bc263cdf2c4386e27fce8ffe5c785fc7e8f6c6b60cb23ce918959c6f17194fd6977cc65fa64d167a0b62e6cff0cf662154bc734c
|
||||||
|
DIST cppy-1.2.0.tar.gz 16701 BLAKE2B 0d77f742f5436145ef5923253c1e4949352b6dce904519d655943eb9e9293a47ef19471fde0aefd914309677db0aa5ca1ddb81a2b1e6541b2ff5724b734f8c5b SHA512 074496bc08b1e163610fcd8fc15225a6110ea874a1e1680ec85e449fb8de77dda548d170c631fc90c3cb81d8fa090d2e1d8f19c156e34b0fa1da2b1f20b531fa
|
||||||
|
@ -0,0 +1,19 @@
|
|||||||
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
DISTUTILS_USE_PEP517=setuptools
|
||||||
|
PYTHON_COMPAT=( python3_{8..10} )
|
||||||
|
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
DESCRIPTION="C++ header library which makes it easier to write Python extension modules"
|
||||||
|
HOMEPAGE="https://pypi.org/project/cppy"
|
||||||
|
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="BSD"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
|
||||||
|
|
||||||
|
distutils_enable_tests pytest
|
@ -0,0 +1,91 @@
|
|||||||
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
DISTUTILS_USE_PEP517=setuptools
|
||||||
|
PYTHON_COMPAT=( python3_{8..10} )
|
||||||
|
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
DESCRIPTION="Mock library for boto"
|
||||||
|
HOMEPAGE="https://github.com/spulec/moto"
|
||||||
|
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="Apache-2.0"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
>=dev-python/aws-xray-sdk-python-0.93[${PYTHON_USEDEP}]
|
||||||
|
$(python_gen_cond_dep 'dev-python/backports-tempfile[${PYTHON_USEDEP}]' python3_{6,7})
|
||||||
|
dev-python/boto[${PYTHON_USEDEP}]
|
||||||
|
dev-python/cfn-lint[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/cryptography-3.3.1[${PYTHON_USEDEP}]
|
||||||
|
dev-python/cookies[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/docker-py-2.5.1[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/idna-2.5[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/jinja-2.10.1[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/jsondiff-1.1.2[${PYTHON_USEDEP}]
|
||||||
|
dev-python/boto3[${PYTHON_USEDEP}]
|
||||||
|
dev-python/botocore[${PYTHON_USEDEP}]
|
||||||
|
dev-python/flask[${PYTHON_USEDEP}]
|
||||||
|
dev-python/flask-cors[${PYTHON_USEDEP}]
|
||||||
|
dev-python/more-itertools[${PYTHON_USEDEP}]
|
||||||
|
dev-python/pretty-yaml[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/pyyaml-5.1[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/python-dateutil-2.1[${PYTHON_USEDEP}]
|
||||||
|
dev-python/pytz[${PYTHON_USEDEP}]
|
||||||
|
dev-python/python-dateutil[${PYTHON_USEDEP}]
|
||||||
|
dev-python/python-jose[${PYTHON_USEDEP}]
|
||||||
|
dev-python/python-sshpubkeys[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/responses-0.9.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/requests-2.5[${PYTHON_USEDEP}]
|
||||||
|
dev-python/xmltodict[${PYTHON_USEDEP}]
|
||||||
|
dev-python/werkzeug[${PYTHON_USEDEP}]
|
||||||
|
dev-python/zipp[${PYTHON_USEDEP}]
|
||||||
|
"
|
||||||
|
BDEPEND="
|
||||||
|
test? (
|
||||||
|
dev-python/freezegun[${PYTHON_USEDEP}]
|
||||||
|
dev-python/responses[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/sure-1.4.11[${PYTHON_USEDEP}]
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
distutils_enable_tests pytest
|
||||||
|
|
||||||
|
python_test() {
|
||||||
|
local EPYTEST_DESELECT=(
|
||||||
|
# TODO
|
||||||
|
tests/test_firehose/test_firehose_put.py::test_put_record_http_destination
|
||||||
|
tests/test_firehose/test_firehose_put.py::test_put_record_batch_http_destination
|
||||||
|
tests/test_sqs/test_sqs_cloudformation.py::test_describe_stack_subresources
|
||||||
|
tests/test_swf/responses/test_decision_tasks.py::test_respond_decision_task_completed_with_schedule_activity_task_boto3
|
||||||
|
tests/test_swf/responses/test_timeouts.py::test_activity_task_heartbeat_timeout_boto3
|
||||||
|
tests/test_swf/responses/test_timeouts.py::test_decision_task_start_to_close_timeout_boto3
|
||||||
|
tests/test_swf/responses/test_timeouts.py::test_workflow_execution_start_to_close_timeout_boto3
|
||||||
|
# broken code (local variable used referenced before definition)
|
||||||
|
tests/test_appsync/test_appsync_schema.py
|
||||||
|
# Needs network (or docker?) but not marked as such, bug #807031
|
||||||
|
# TODO: report upstream
|
||||||
|
tests/test_batch/test_batch_jobs.py::test_terminate_job
|
||||||
|
tests/test_batch/test_batch_jobs.py::test_cancel_running_job
|
||||||
|
tests/test_batch/test_batch_jobs.py::test_dependencies
|
||||||
|
tests/test_batch/test_batch_jobs.py::test_container_overrides
|
||||||
|
tests/test_cloudformation/test_cloudformation_custom_resources.py::test_create_custom_lambda_resource__verify_cfnresponse_failed
|
||||||
|
tests/test_cloudformation/test_cloudformation_stack_integration.py::test_lambda_function
|
||||||
|
tests/test_sqs/test_integration.py::test_invoke_function_from_sqs_exception
|
||||||
|
tests/test_sqs/test_sqs_integration.py::test_invoke_function_from_sqs_exception
|
||||||
|
# broken by new expat
|
||||||
|
tests/test_sts/test_sts.py::test_assume_role_with_saml
|
||||||
|
tests/test_sts/test_sts.py::test_assume_role_with_saml_should_not_rely_on_attribute_order
|
||||||
|
tests/test_sts/test_sts.py::test_assume_role_with_saml_should_respect_xml_namespaces
|
||||||
|
tests/test_sts/test_sts.py::test_assume_role_with_saml_should_retrieve_attribute_value_from_text_when_xml_tag_contains_xmlns_attributes
|
||||||
|
tests/test_sts/test_sts.py::test_assume_role_with_saml_should_default_session_duration_to_3600_seconds_when_saml_attribute_not_provided
|
||||||
|
)
|
||||||
|
|
||||||
|
# pytest-django causes freezegun try to mangle stuff inside django
|
||||||
|
# which fails when django is not really used
|
||||||
|
epytest -p no:django -m 'not network'
|
||||||
|
}
|
@ -0,0 +1,66 @@
|
|||||||
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
DISTUTILS_USE_PEP517=setuptools
|
||||||
|
PYTHON_COMPAT=( python3_{8..10} )
|
||||||
|
|
||||||
|
inherit distutils-r1 multiprocessing
|
||||||
|
|
||||||
|
DESCRIPTION="Optional static typing for Python"
|
||||||
|
HOMEPAGE="http://www.mypy-lang.org/"
|
||||||
|
SRC_URI="https://github.com/python/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="MIT"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
|
||||||
|
|
||||||
|
# stubgen collides with this package: https://bugs.gentoo.org/585594
|
||||||
|
RDEPEND="
|
||||||
|
!dev-util/stubgen
|
||||||
|
>=dev-python/psutil-4[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/typed-ast-1.4.0[${PYTHON_USEDEP}]
|
||||||
|
<dev-python/typed-ast-1.5.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/typing-extensions-3.7.4[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/mypy_extensions-0.4.3[${PYTHON_USEDEP}]
|
||||||
|
<dev-python/mypy_extensions-0.5.0[${PYTHON_USEDEP}]
|
||||||
|
dev-python/tomli[${PYTHON_USEDEP}]
|
||||||
|
"
|
||||||
|
BDEPEND="
|
||||||
|
test? (
|
||||||
|
>=dev-python/attrs-18.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/lxml-4.4.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/pytest-6.1.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/pytest-xdist-1.18[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/py-1.5.2[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/typed-ast-1.4.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/virtualenv-16.0.0[${PYTHON_USEDEP}]
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
distutils_enable_sphinx docs/source dev-python/sphinx_rtd_theme
|
||||||
|
distutils_enable_tests pytest
|
||||||
|
|
||||||
|
# this requires packaging a lot of type stubs
|
||||||
|
export MYPY_USE_MYPYC=0
|
||||||
|
|
||||||
|
python_test() {
|
||||||
|
local EPYTEST_DESELECT=(
|
||||||
|
# Fails with pytest-xdist 2.3.0
|
||||||
|
# https://github.com/python/mypy/issues/11019
|
||||||
|
mypy/test/teststubtest.py
|
||||||
|
# fails due to setuptools deprecation warnings
|
||||||
|
mypyc/test/test_run.py::TestRun::run-imports.test::testImports
|
||||||
|
)
|
||||||
|
|
||||||
|
[[ "${EPYTHON}" == "python3.10" ]] && EPYTEST_DESELECT+=(
|
||||||
|
# https://github.com/python/mypy/issues/11018
|
||||||
|
mypyc/test/test_commandline.py::TestCommandLine::testErrorOutput
|
||||||
|
)
|
||||||
|
|
||||||
|
# Some mypy/test/testcmdline.py::PythonCmdlineSuite tests
|
||||||
|
# fail with high COLUMNS values
|
||||||
|
local -x COLUMNS=80
|
||||||
|
epytest -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")"
|
||||||
|
}
|
@ -0,0 +1,49 @@
|
|||||||
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
DISTUTILS_USE_PEP517=setuptools
|
||||||
|
PYTHON_COMPAT=( python3_{8..10} )
|
||||||
|
|
||||||
|
inherit distutils-r1 flag-o-matic optfeature
|
||||||
|
|
||||||
|
DESCRIPTION="Python to native compiler"
|
||||||
|
HOMEPAGE="https://www.nuitka.net"
|
||||||
|
SRC_URI="https://nuitka.net/releases/${P^}.tar.gz"
|
||||||
|
S="${WORKDIR}/${P^}"
|
||||||
|
|
||||||
|
LICENSE="Apache-2.0"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE="test"
|
||||||
|
RESTRICT="!test? ( test )"
|
||||||
|
|
||||||
|
RDEPEND="dev-util/scons[${PYTHON_USEDEP}]"
|
||||||
|
BDEPEND="
|
||||||
|
${RDEPEND}
|
||||||
|
test? ( dev-util/ccache )
|
||||||
|
"
|
||||||
|
|
||||||
|
DOCS=( Changelog.pdf Developer_Manual.pdf README.pdf )
|
||||||
|
|
||||||
|
distutils-r1_src_prepare() {
|
||||||
|
# remove vendored version of SCons that is Python2 only
|
||||||
|
# this should be removed when upstream removes support for Python2
|
||||||
|
rm -vR "${PN}/build/inline_copy/lib/scons-2.3.2/SCons" || die
|
||||||
|
eapply_user
|
||||||
|
}
|
||||||
|
|
||||||
|
python_install() {
|
||||||
|
distutils-r1_python_install
|
||||||
|
doman doc/nuitka3.1 doc/nuitka3-run.1
|
||||||
|
}
|
||||||
|
|
||||||
|
python_test() {
|
||||||
|
append-ldflags -Wl,--no-warn-search-mismatch
|
||||||
|
./tests/basics/run_all.py search || die
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
optfeature "support for stand-alone executables" app-admin/chrpath
|
||||||
|
}
|
@ -0,0 +1,145 @@
|
|||||||
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python3_{8..10} pypy3 )
|
||||||
|
PYTHON_REQ_USE="ssl(+),threads(+)"
|
||||||
|
|
||||||
|
inherit bash-completion-r1 distutils-r1
|
||||||
|
|
||||||
|
# setuptools & wheel .whl files are required for testing,
|
||||||
|
# the exact version is not very important.
|
||||||
|
SETUPTOOLS_WHL="setuptools-57.4.0-py3-none-any.whl"
|
||||||
|
WHEEL_WHL="wheel-0.36.2-py2.py3-none-any.whl"
|
||||||
|
# upstream still requires virtualenv-16 for testing, we are now fetching
|
||||||
|
# it directly to avoid blockers with virtualenv-20
|
||||||
|
VENV_PV=16.7.11
|
||||||
|
|
||||||
|
DESCRIPTION="Installs python packages -- replacement for easy_install"
|
||||||
|
HOMEPAGE="
|
||||||
|
https://pip.pypa.io/en/stable/
|
||||||
|
https://pypi.org/project/pip/
|
||||||
|
https://github.com/pypa/pip/"
|
||||||
|
SRC_URI="
|
||||||
|
https://github.com/pypa/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz
|
||||||
|
test? (
|
||||||
|
https://files.pythonhosted.org/packages/py3/s/setuptools/${SETUPTOOLS_WHL}
|
||||||
|
https://files.pythonhosted.org/packages/py2.py3/w/wheel/${WHEEL_WHL}
|
||||||
|
https://github.com/pypa/virtualenv/archive/${VENV_PV}.tar.gz
|
||||||
|
-> virtualenv-${VENV_PV}.tar.gz
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
LICENSE="MIT"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||||
|
SLOT="0"
|
||||||
|
IUSE="test vanilla"
|
||||||
|
RESTRICT="!test? ( test )"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
>=dev-python/setuptools-39.2.0[${PYTHON_USEDEP}]
|
||||||
|
"
|
||||||
|
BDEPEND="
|
||||||
|
${RDEPEND}
|
||||||
|
test? (
|
||||||
|
dev-python/freezegun[${PYTHON_USEDEP}]
|
||||||
|
dev-python/pretend[${PYTHON_USEDEP}]
|
||||||
|
dev-python/pytest[${PYTHON_USEDEP}]
|
||||||
|
dev-python/scripttest[${PYTHON_USEDEP}]
|
||||||
|
dev-python/tomli-w[${PYTHON_USEDEP}]
|
||||||
|
dev-python/werkzeug[${PYTHON_USEDEP}]
|
||||||
|
dev-python/wheel[${PYTHON_USEDEP}]
|
||||||
|
!alpha? ( !hppa? ( !ia64? (
|
||||||
|
dev-python/cryptography[${PYTHON_USEDEP}]
|
||||||
|
) ) )
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
python_prepare_all() {
|
||||||
|
local PATCHES=(
|
||||||
|
"${FILESDIR}/${PN}-21.3-no-coverage.patch"
|
||||||
|
)
|
||||||
|
if ! use vanilla; then
|
||||||
|
PATCHES+=( "${FILESDIR}/pip-20.0.2-disable-system-install.patch" )
|
||||||
|
fi
|
||||||
|
|
||||||
|
distutils-r1_python_prepare_all
|
||||||
|
|
||||||
|
if use test; then
|
||||||
|
mkdir tests/data/common_wheels/ || die
|
||||||
|
cp "${DISTDIR}"/{${SETUPTOOLS_WHL},${WHEEL_WHL}} \
|
||||||
|
tests/data/common_wheels/ || die
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
python_test() {
|
||||||
|
if [[ ${EPYTHON} == pypy* ]]; then
|
||||||
|
ewarn "Skipping tests on ${EPYTHON} since they are very broken"
|
||||||
|
return 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
local EPYTEST_DESELECT=(
|
||||||
|
tests/functional/test_install.py::test_double_install_fail
|
||||||
|
tests/functional/test_list.py::test_multiple_exclude_and_normalization
|
||||||
|
'tests/unit/test_commands.py::test_index_group_handle_pip_version_check[False-False-True-download]'
|
||||||
|
'tests/unit/test_commands.py::test_index_group_handle_pip_version_check[False-False-True-install]'
|
||||||
|
'tests/unit/test_commands.py::test_index_group_handle_pip_version_check[False-False-True-list]'
|
||||||
|
'tests/unit/test_commands.py::test_index_group_handle_pip_version_check[False-False-True-wheel]'
|
||||||
|
tests/functional/test_install.py::test_install_pip_does_not_modify_pip_when_satisfied
|
||||||
|
# Internet
|
||||||
|
tests/functional/test_install.py::test_install_editable_with_prefix_setup_cfg
|
||||||
|
tests/functional/test_install.py::test_editable_install__local_dir_no_setup_py_with_pyproject
|
||||||
|
tests/functional/test_install.py::test_editable_install__local_dir_setup_requires_with_pyproject
|
||||||
|
)
|
||||||
|
|
||||||
|
[[ ${EPYTHON} == python3.10 ]] && EPYTEST_DESELECT+=(
|
||||||
|
tests/lib/test_lib.py::test_correct_pip_version
|
||||||
|
# uses vendored packaging that uses deprecated distutils
|
||||||
|
tests/functional/test_warning.py::test_pip_works_with_warnings_as_errors
|
||||||
|
)
|
||||||
|
|
||||||
|
if ! has_version "dev-python/cryptography[${PYTHON_USEDEP}]"; then
|
||||||
|
EPYTEST_DESELECT+=(
|
||||||
|
tests/functional/test_install.py::test_install_sends_client_cert
|
||||||
|
tests/functional/test_install_config.py::test_do_not_prompt_for_authentication
|
||||||
|
tests/functional/test_install_config.py::test_prompt_for_authentication
|
||||||
|
tests/functional/test_install_config.py::test_prompt_for_keyring_if_needed
|
||||||
|
)
|
||||||
|
fi
|
||||||
|
|
||||||
|
distutils_install_for_testing
|
||||||
|
pushd "${WORKDIR}/virtualenv-${VENV_PV}" >/dev/null || die
|
||||||
|
distutils_install_for_testing
|
||||||
|
popd >/dev/null || die
|
||||||
|
# prevent it from being installed
|
||||||
|
rm -r "${BUILD_DIR}"/lib/virtualenv* || die
|
||||||
|
|
||||||
|
local -x GENTOO_PIP_TESTING=1 \
|
||||||
|
PATH="${TEST_DIR}/scripts:${PATH}" \
|
||||||
|
PYTHONPATH="${TEST_DIR}/lib:${BUILD_DIR}/lib"
|
||||||
|
epytest -m "not network"
|
||||||
|
}
|
||||||
|
|
||||||
|
python_install_all() {
|
||||||
|
# Prevent dbus auto-launch
|
||||||
|
# https://bugs.gentoo.org/692178
|
||||||
|
export DBUS_SESSION_BUS_ADDRESS="disabled:"
|
||||||
|
|
||||||
|
local DOCS=( AUTHORS.txt docs/html/**/*.rst )
|
||||||
|
distutils-r1_python_install_all
|
||||||
|
|
||||||
|
COMPLETION="${T}"/completion.tmp
|
||||||
|
|
||||||
|
# 'pip completion' command embeds full $0 into completion script, which confuses
|
||||||
|
# 'complete' and causes QA warning when running as "${PYTHON} -m pip".
|
||||||
|
# This trick sets correct $0 while still calling just installed pip.
|
||||||
|
local pipcmd='import sys; sys.argv[0] = "pip"; __file__ = ""; from pip._internal.cli.main import main; sys.exit(main())'
|
||||||
|
|
||||||
|
"${EPYTHON}" -c "${pipcmd}" completion --bash > "${COMPLETION}" || die
|
||||||
|
newbashcomp "${COMPLETION}" ${PN}
|
||||||
|
|
||||||
|
"${EPYTHON}" -c "${pipcmd}" completion --zsh > "${COMPLETION}" || die
|
||||||
|
insinto /usr/share/zsh/site-functions
|
||||||
|
newins "${COMPLETION}" _pip
|
||||||
|
}
|
@ -1 +1,2 @@
|
|||||||
DIST tempest-29.2.0.tar.gz 1092824 BLAKE2B cad7284ab5a5a39a1a5bdf9f2365a85d337e4ebe17243bc3692a98402ef7f11b27b94e0252d9d427f358c343b736b500db5386098950c88b09f23d87de9ad856 SHA512 4042bce9c5d7cd26d652189d82ee91ac43d73a515b690820dfe05b70c2e792ec6f3bb0be5566bb37e81965015f62773414c8a16cc77512b1e52f141eafbd542d
|
DIST tempest-29.2.0.tar.gz 1092824 BLAKE2B cad7284ab5a5a39a1a5bdf9f2365a85d337e4ebe17243bc3692a98402ef7f11b27b94e0252d9d427f358c343b736b500db5386098950c88b09f23d87de9ad856 SHA512 4042bce9c5d7cd26d652189d82ee91ac43d73a515b690820dfe05b70c2e792ec6f3bb0be5566bb37e81965015f62773414c8a16cc77512b1e52f141eafbd542d
|
||||||
|
DIST tempest-30.0.0.tar.gz 1110715 BLAKE2B b697ecbced21124719e6b1d7ebd2c4f8ba83528a84da0b8f8109c155b61124581b97c180bbdc6885ae53850fb28daed25772d12be5026c44ecc3fe4f0dad98a3 SHA512 fa9be713ccb130ad065628592f59bebda3dc1fa8222ab3c382ec5b299504dc0a730f2110ef80f98bbdd1288b5785ab745fe39b721b77f7343983c1bc0a036f19
|
||||||
|
@ -0,0 +1,69 @@
|
|||||||
|
# Copyright 2021-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
DISTUTILS_USE_PEP517=setuptools
|
||||||
|
PYTHON_COMPAT=( python3_{8..10} )
|
||||||
|
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
DESCRIPTION="OpenStack Integration Testing"
|
||||||
|
HOMEPAGE="https://pypi.org/project/tempest/ https://docs.openstack.org/tempest/latest/"
|
||||||
|
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="Apache-2.0"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
>dev-python/pbr-2.1.0[${PYTHON_USEDEP}]
|
||||||
|
>dev-python/cliff-2.9.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/jsonschema-3.2.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/testtools-2.2.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/paramiko-2.7.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/netaddr-0.7.18[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/oslo-concurrency-3.26.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/oslo-config-5.2.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/oslo-log-3.36.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/oslo-utils-4.7.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/fixtures-3.0.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/pyyaml-3.12[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/subunit-1.0.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/stevedore-1.20.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/prettytable-0.7.1[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/urllib3-1.21.1[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/debtcollector-1.2.0[${PYTHON_USEDEP}]
|
||||||
|
"
|
||||||
|
BDEPEND="
|
||||||
|
>dev-python/pbr-2.1.0[${PYTHON_USEDEP}]
|
||||||
|
test? (
|
||||||
|
>=dev-python/oslotest-3.2.0[${PYTHON_USEDEP}]
|
||||||
|
dev-python/stestr[${PYTHON_USEDEP}]
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
distutils_enable_tests unittest
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
# Small subset of tests, which fail as result of not using specific
|
||||||
|
# testing environment. Others expect to run suite using stestr.
|
||||||
|
rm -r tempest/tests/lib/services/volume/v3/ || die
|
||||||
|
rm tempest/tests/test_list_tests.py || die
|
||||||
|
rm tempest/tests/lib/cmd/test_check_uuid.py || die
|
||||||
|
|
||||||
|
# remove dep on hacking
|
||||||
|
rm tempest/tests/test_hacking.py || die
|
||||||
|
|
||||||
|
distutils-r1_src_prepare
|
||||||
|
}
|
||||||
|
|
||||||
|
python_test() {
|
||||||
|
local -x OS_LOG_CAPTURE=1 OS_STDOUT_CAPTURE=1 OS_STDERR_CAPTURE=1 OS_TEST_TIMEOUT=320
|
||||||
|
eunittest -b -s tempest/tests -t .
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
distutils-r1_src_install
|
||||||
|
mv "${ED}/usr/etc" "${ED}/etc" || die
|
||||||
|
}
|
@ -1,3 +1,4 @@
|
|||||||
DIST uvicorn-0.17.3.tar.gz 706936 BLAKE2B f96f1707fc966f2972392a413517ba4f3f65097c83134bd648a759ef65496ffa166507d64a2c51d5c301adab4203e0766ab2b359d1182dceeb31dd70e6bbf8e3 SHA512 d2a35a69420b2715c2688be341860958b8697c1565d5b2665d4b9c6fa7bf72060e61f72bfd99fb7c346df48f4a962e3c7a7118dd1d0782bc35ac0fcc57cb4e1d
|
DIST uvicorn-0.17.3.tar.gz 706936 BLAKE2B f96f1707fc966f2972392a413517ba4f3f65097c83134bd648a759ef65496ffa166507d64a2c51d5c301adab4203e0766ab2b359d1182dceeb31dd70e6bbf8e3 SHA512 d2a35a69420b2715c2688be341860958b8697c1565d5b2665d4b9c6fa7bf72060e61f72bfd99fb7c346df48f4a962e3c7a7118dd1d0782bc35ac0fcc57cb4e1d
|
||||||
DIST uvicorn-0.17.4.tar.gz 706950 BLAKE2B 51d30a97f70984929bc4d4eb3934a16514307ff3e504f86813d0b5ea81467cc5fcc06da6aaa298f0319b2ccddf88b02ee4006ba9f1d573da50365cc4455f5da3 SHA512 4e61d712551ee6e6471f88f511e31b5543ef16d8ebe960447f5de6d02753bdbc38fd5fbae0d736b54b01a61d8519ef3891db2bbc1c7440806650b92a765d1d23
|
DIST uvicorn-0.17.4.tar.gz 706950 BLAKE2B 51d30a97f70984929bc4d4eb3934a16514307ff3e504f86813d0b5ea81467cc5fcc06da6aaa298f0319b2ccddf88b02ee4006ba9f1d573da50365cc4455f5da3 SHA512 4e61d712551ee6e6471f88f511e31b5543ef16d8ebe960447f5de6d02753bdbc38fd5fbae0d736b54b01a61d8519ef3891db2bbc1c7440806650b92a765d1d23
|
||||||
DIST uvicorn-0.17.5.tar.gz 707840 BLAKE2B 70a5aa4c084f63231b2c4f11c9a4add6a84362789243fe59b4c954665b67f859dcd92076454cac7b960d30c878bccb52e6da5232e052d70ca0a71f4035804b96 SHA512 b73c99d03957bf5f37957386da77cad68e0c9603fb0bfe48ab81f1066953ca01bc75b2eb458a20a587df4f2e1f591fe1c56f26d8df84070c833ccbb912d55ca2
|
DIST uvicorn-0.17.5.tar.gz 707840 BLAKE2B 70a5aa4c084f63231b2c4f11c9a4add6a84362789243fe59b4c954665b67f859dcd92076454cac7b960d30c878bccb52e6da5232e052d70ca0a71f4035804b96 SHA512 b73c99d03957bf5f37957386da77cad68e0c9603fb0bfe48ab81f1066953ca01bc75b2eb458a20a587df4f2e1f591fe1c56f26d8df84070c833ccbb912d55ca2
|
||||||
|
DIST uvicorn-0.17.6.tar.gz 708048 BLAKE2B 83b06907c8109b38e13930d8b73584682fa4e34fe7e51fe14b6ca1ddc7ef8122d950a09e31cb364a02f5f12eead5d0522b41cbf428509c6900604d4e2776dfb2 SHA512 d5c5223759d59648f279e22f7e6af728fe8117ed75488d125c1db3e5e9d385a50d574cff72ac46db4eb0a78d0e4f690096cfe78c774674dfba61860e55b7494e
|
||||||
|
@ -0,0 +1,47 @@
|
|||||||
|
# Copyright 2021-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
DISTUTILS_USE_PEP517=setuptools
|
||||||
|
PYTHON_COMPAT=( python3_{8..10} )
|
||||||
|
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
DESCRIPTION="Lightning-fast ASGI server implementation"
|
||||||
|
HOMEPAGE="https://www.uvicorn.org/"
|
||||||
|
SRC_URI="https://github.com/encode/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="BSD"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
>=dev-python/asgiref-3.4.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/click-7.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/h11-0.8[${PYTHON_USEDEP}]
|
||||||
|
"
|
||||||
|
BDEPEND="
|
||||||
|
test? (
|
||||||
|
dev-python/cryptography[${PYTHON_USEDEP}]
|
||||||
|
dev-python/httpx[${PYTHON_USEDEP}]
|
||||||
|
dev-python/pytest-asyncio[${PYTHON_USEDEP}]
|
||||||
|
dev-python/pytest-mock[${PYTHON_USEDEP}]
|
||||||
|
dev-python/python-dotenv[${PYTHON_USEDEP}]
|
||||||
|
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||||
|
dev-python/trustme[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/websockets-10.0[${PYTHON_USEDEP}]
|
||||||
|
dev-python/watchgod[${PYTHON_USEDEP}]
|
||||||
|
dev-python/wsproto[${PYTHON_USEDEP}]
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
distutils_enable_tests pytest
|
||||||
|
|
||||||
|
EPYTEST_DESELECT=(
|
||||||
|
# too long path for unix socket
|
||||||
|
tests/test_config.py::test_bind_unix_socket_works_with_reload_or_workers
|
||||||
|
# need unpackaged httptools
|
||||||
|
"tests/middleware/test_logging.py::test_trace_logging_on_http_protocol[httptools]"
|
||||||
|
tests/protocols/test_http.py::test_fragmentation
|
||||||
|
)
|
Binary file not shown.
@ -0,0 +1,405 @@
|
|||||||
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python3_9 python3_10 )
|
||||||
|
|
||||||
|
inherit check-reqs cmake flag-o-matic pax-utils python-single-r1 toolchain-funcs xdg-utils
|
||||||
|
|
||||||
|
DESCRIPTION="3D Creation/Animation/Publishing System"
|
||||||
|
HOMEPAGE="https://www.blender.org"
|
||||||
|
|
||||||
|
if [[ ${PV} = *9999* ]] ; then
|
||||||
|
# Subversion is needed for downloading unit test files
|
||||||
|
inherit git-r3 subversion
|
||||||
|
EGIT_REPO_URI="https://git.blender.org/blender.git"
|
||||||
|
else
|
||||||
|
SRC_URI="https://download.blender.org/source/${P}.tar.xz"
|
||||||
|
SRC_URI+=" https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${PN}-3.0.1-ffmpeg-5.0.patch.bz2"
|
||||||
|
|
||||||
|
TEST_TARBALL_VERSION=2.93.0
|
||||||
|
SRC_URI+=" test? ( https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${PN}-${TEST_TARBALL_VERSION}-tests.tar.bz2 )"
|
||||||
|
KEYWORDS="amd64 ~arm ~arm64"
|
||||||
|
fi
|
||||||
|
|
||||||
|
SLOT="${PV%.*}"
|
||||||
|
LICENSE="|| ( GPL-3 BL )"
|
||||||
|
IUSE="+bullet +dds +fluid +openexr +system-python +system-numpy +tbb \
|
||||||
|
alembic collada +color-management cuda +cycles \
|
||||||
|
debug doc +embree +ffmpeg +fftw +gmp headless jack jemalloc jpeg2k \
|
||||||
|
man ndof nls openal opencl +oidn +openimageio +openmp +opensubdiv \
|
||||||
|
+openvdb +osl +pdf +potrace +pugixml pulseaudio sdl +sndfile standalone test +tiff valgrind"
|
||||||
|
RESTRICT="!test? ( test )"
|
||||||
|
|
||||||
|
REQUIRED_USE="${PYTHON_REQUIRED_USE}
|
||||||
|
alembic? ( openexr )
|
||||||
|
cuda? ( cycles )
|
||||||
|
cycles? ( openexr tiff openimageio )
|
||||||
|
fluid? ( tbb )
|
||||||
|
opencl? ( cycles )
|
||||||
|
openvdb? ( tbb )
|
||||||
|
osl? ( cycles )
|
||||||
|
standalone? ( cycles )
|
||||||
|
test? ( color-management )"
|
||||||
|
|
||||||
|
# Library versions for official builds can be found in the blender source directory in:
|
||||||
|
# build_files/build_environment/install_deps.sh
|
||||||
|
RDEPEND="${PYTHON_DEPS}
|
||||||
|
dev-libs/boost:=[nls?,threads(+)]
|
||||||
|
dev-libs/lzo:2=
|
||||||
|
$(python_gen_cond_dep '
|
||||||
|
dev-python/numpy[${PYTHON_USEDEP}]
|
||||||
|
dev-python/requests[${PYTHON_USEDEP}]
|
||||||
|
')
|
||||||
|
media-libs/freetype:=
|
||||||
|
media-libs/glew:*
|
||||||
|
media-libs/libpng:=
|
||||||
|
media-libs/libsamplerate
|
||||||
|
sys-libs/zlib:=
|
||||||
|
virtual/glu
|
||||||
|
virtual/jpeg
|
||||||
|
virtual/libintl
|
||||||
|
virtual/opengl
|
||||||
|
alembic? ( >=media-gfx/alembic-1.8.3-r2[boost(+),hdf(+)] )
|
||||||
|
collada? ( >=media-libs/opencollada-1.6.68 )
|
||||||
|
color-management? ( >=media-libs/opencolorio-2.1.1-r7:= )
|
||||||
|
cuda? ( dev-util/nvidia-cuda-toolkit:= )
|
||||||
|
embree? ( >=media-libs/embree-3.10.0[raymask] )
|
||||||
|
ffmpeg? ( media-video/ffmpeg:=[x264,mp3,encode,theora,jpeg2k?,vpx,vorbis,opus,xvid] )
|
||||||
|
fftw? ( sci-libs/fftw:3.0= )
|
||||||
|
gmp? ( dev-libs/gmp )
|
||||||
|
!headless? (
|
||||||
|
x11-libs/libX11
|
||||||
|
x11-libs/libXi
|
||||||
|
x11-libs/libXxf86vm
|
||||||
|
)
|
||||||
|
jack? ( virtual/jack )
|
||||||
|
jemalloc? ( dev-libs/jemalloc:= )
|
||||||
|
jpeg2k? ( media-libs/openjpeg:2= )
|
||||||
|
ndof? (
|
||||||
|
app-misc/spacenavd
|
||||||
|
dev-libs/libspnav
|
||||||
|
)
|
||||||
|
nls? ( virtual/libiconv )
|
||||||
|
openal? ( media-libs/openal )
|
||||||
|
opencl? ( virtual/opencl )
|
||||||
|
oidn? ( >=media-libs/oidn-1.3.0 )
|
||||||
|
openimageio? ( >=media-libs/openimageio-2.3.12.0-r3:= )
|
||||||
|
openexr? (
|
||||||
|
>=dev-libs/imath-3.1.4-r2:=
|
||||||
|
>=media-libs/openexr-3:0=
|
||||||
|
)
|
||||||
|
opensubdiv? ( >=media-libs/opensubdiv-3.4.0[cuda=,opencl=] )
|
||||||
|
openvdb? (
|
||||||
|
>=media-gfx/openvdb-8.2.0-r2:=
|
||||||
|
dev-libs/c-blosc:=
|
||||||
|
)
|
||||||
|
osl? ( >=media-libs/osl-1.11.16.0-r3:= )
|
||||||
|
pdf? ( media-libs/libharu )
|
||||||
|
potrace? ( media-gfx/potrace )
|
||||||
|
pugixml? ( dev-libs/pugixml )
|
||||||
|
pulseaudio? ( media-sound/pulseaudio )
|
||||||
|
sdl? ( media-libs/libsdl2[sound,joystick] )
|
||||||
|
sndfile? ( media-libs/libsndfile )
|
||||||
|
tbb? ( <dev-cpp/tbb-2021.4.0:= )
|
||||||
|
tiff? ( media-libs/tiff )
|
||||||
|
valgrind? ( dev-util/valgrind )
|
||||||
|
"
|
||||||
|
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
dev-cpp/eigen:=
|
||||||
|
"
|
||||||
|
|
||||||
|
BDEPEND="
|
||||||
|
virtual/pkgconfig
|
||||||
|
doc? (
|
||||||
|
app-doc/doxygen[dot]
|
||||||
|
dev-python/sphinx[latex]
|
||||||
|
dev-texlive/texlive-bibtexextra
|
||||||
|
dev-texlive/texlive-fontsextra
|
||||||
|
dev-texlive/texlive-fontutils
|
||||||
|
dev-texlive/texlive-latex
|
||||||
|
dev-texlive/texlive-latexextra
|
||||||
|
)
|
||||||
|
nls? ( sys-devel/gettext )
|
||||||
|
"
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}"/${PN}-3.0.0-intern-ghost-fix-typo-in-finding-XF86VMODE.patch
|
||||||
|
"${FILESDIR}"/${PN}-3.0.1-openexr.patch
|
||||||
|
"${FILESDIR}"/${PN}-3.0.1-openimageio-2.3.patch
|
||||||
|
"${WORKDIR}"/${PN}-3.0.1-ffmpeg-5.0.patch
|
||||||
|
)
|
||||||
|
|
||||||
|
blender_check_requirements() {
|
||||||
|
[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
|
||||||
|
|
||||||
|
if use doc; then
|
||||||
|
CHECKREQS_DISK_BUILD="4G" check-reqs_pkg_pretend
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
blender_get_version() {
|
||||||
|
# Get blender version from blender itself.
|
||||||
|
BV=$(grep "BLENDER_VERSION " source/blender/blenkernel/BKE_blender_version.h | cut -d " " -f 3; assert)
|
||||||
|
if ((${BV:0:1} < 3)) ; then
|
||||||
|
# Add period (290 -> 2.90).
|
||||||
|
BV=${BV:0:1}.${BV:1}
|
||||||
|
else
|
||||||
|
# Add period and strip last number (300 -> 3.0)
|
||||||
|
BV=${BV:0:1}.${BV:1:1}
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_pretend() {
|
||||||
|
blender_check_requirements
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
blender_check_requirements
|
||||||
|
python-single-r1_pkg_setup
|
||||||
|
}
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
if [[ ${PV} = *9999* ]] ; then
|
||||||
|
git-r3_src_unpack
|
||||||
|
else
|
||||||
|
default
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use test; then
|
||||||
|
mkdir -p lib || die
|
||||||
|
mv "${WORKDIR}"/blender-${TEST_TARBALL_VERSION}-tests/tests lib || die
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
cmake_src_prepare
|
||||||
|
|
||||||
|
blender_get_version
|
||||||
|
|
||||||
|
# Disable MS Windows help generation. The variable doesn't do what it
|
||||||
|
# it sounds like.
|
||||||
|
sed -e "s|GENERATE_HTMLHELP = YES|GENERATE_HTMLHELP = NO|" \
|
||||||
|
-i doc/doxygen/Doxyfile || die
|
||||||
|
|
||||||
|
# Prepare icons and .desktop files for slotting.
|
||||||
|
sed -e "s|blender.svg|blender-${BV}.svg|" -i source/creator/CMakeLists.txt || die
|
||||||
|
sed -e "s|blender-symbolic.svg|blender-${BV}-symbolic.svg|" -i source/creator/CMakeLists.txt || die
|
||||||
|
sed -e "s|blender.desktop|blender-${BV}.desktop|" -i source/creator/CMakeLists.txt || die
|
||||||
|
sed -e "s|blender-thumbnailer.py|blender-${BV}-thumbnailer.py|" -i source/creator/CMakeLists.txt || die
|
||||||
|
|
||||||
|
sed -e "s|Name=Blender|Name=Blender ${PV}|" -i release/freedesktop/blender.desktop || die
|
||||||
|
sed -e "s|Exec=blender|Exec=blender-${BV}|" -i release/freedesktop/blender.desktop || die
|
||||||
|
sed -e "s|Icon=blender|Icon=blender-${BV}|" -i release/freedesktop/blender.desktop || die
|
||||||
|
|
||||||
|
mv release/freedesktop/icons/scalable/apps/blender.svg release/freedesktop/icons/scalable/apps/blender-${BV}.svg || die
|
||||||
|
mv release/freedesktop/icons/symbolic/apps/blender-symbolic.svg release/freedesktop/icons/symbolic/apps/blender-${BV}-symbolic.svg || die
|
||||||
|
mv release/freedesktop/blender.desktop release/freedesktop/blender-${BV}.desktop || die
|
||||||
|
mv release/bin/blender-thumbnailer.py release/bin/blender-${BV}-thumbnailer.py || die
|
||||||
|
|
||||||
|
if use test; then
|
||||||
|
# Without this the tests will try to use /usr/bin/blender and /usr/share/blender/ to run the tests.
|
||||||
|
sed -e "s|string(REPLACE.*|set(TEST_INSTALL_DIR ${ED}/usr/)|g" -i tests/CMakeLists.txt || die
|
||||||
|
sed -e "s|string(REPLACE.*|set(TEST_INSTALL_DIR ${ED}/usr/)|g" -i build_files/cmake/Modules/GTestTesting.cmake || die
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
append-lfs-flags
|
||||||
|
|
||||||
|
local mycmakeargs=(
|
||||||
|
-DBUILD_SHARED_LIBS=OFF
|
||||||
|
-DPYTHON_INCLUDE_DIR="$(python_get_includedir)"
|
||||||
|
-DPYTHON_LIBRARY="$(python_get_library_path)"
|
||||||
|
-DPYTHON_VERSION="${EPYTHON/python/}"
|
||||||
|
-DWITH_ALEMBIC=$(usex alembic)
|
||||||
|
-DWITH_ASSERT_ABORT=$(usex debug)
|
||||||
|
-DWITH_BOOST=ON
|
||||||
|
-DWITH_BULLET=$(usex bullet)
|
||||||
|
-DWITH_CODEC_FFMPEG=$(usex ffmpeg)
|
||||||
|
-DWITH_CODEC_SNDFILE=$(usex sndfile)
|
||||||
|
-DWITH_CXX_GUARDEDALLOC=$(usex debug)
|
||||||
|
-DWITH_CYCLES=$(usex cycles)
|
||||||
|
-DWITH_CYCLES_DEVICE_CUDA=$(usex cuda TRUE FALSE)
|
||||||
|
-DWITH_CYCLES_DEVICE_OPENCL=$(usex opencl)
|
||||||
|
-DWITH_CYCLES_EMBREE=$(usex embree)
|
||||||
|
-DWITH_CYCLES_OSL=$(usex osl)
|
||||||
|
-DWITH_CYCLES_STANDALONE=$(usex standalone)
|
||||||
|
-DWITH_CYCLES_STANDALONE_GUI=$(usex standalone)
|
||||||
|
-DWITH_DOC_MANPAGE=$(usex man)
|
||||||
|
-DWITH_FFTW3=$(usex fftw)
|
||||||
|
-DWITH_GMP=$(usex gmp)
|
||||||
|
-DWITH_GTESTS=$(usex test)
|
||||||
|
-DWITH_HARU=$(usex pdf)
|
||||||
|
-DWITH_HEADLESS=$(usex headless)
|
||||||
|
-DWITH_INSTALL_PORTABLE=OFF
|
||||||
|
-DWITH_IMAGE_DDS=$(usex dds)
|
||||||
|
-DOPENEXR_ROOT_DIR="${ESYSROOT}/usr/$(get_libdir)/OpenEXR-3"
|
||||||
|
-DWITH_IMAGE_OPENEXR=$(usex openexr)
|
||||||
|
-DWITH_IMAGE_OPENJPEG=$(usex jpeg2k)
|
||||||
|
-DWITH_IMAGE_TIFF=$(usex tiff)
|
||||||
|
-DWITH_INPUT_NDOF=$(usex ndof)
|
||||||
|
-DWITH_INTERNATIONAL=$(usex nls)
|
||||||
|
-DWITH_JACK=$(usex jack)
|
||||||
|
-DWITH_MEM_JEMALLOC=$(usex jemalloc)
|
||||||
|
-DWITH_MEM_VALGRIND=$(usex valgrind)
|
||||||
|
-DWITH_MOD_FLUID=$(usex fluid)
|
||||||
|
-DWITH_MOD_OCEANSIM=$(usex fftw)
|
||||||
|
-DWITH_NANOVDB=OFF
|
||||||
|
-DWITH_OPENAL=$(usex openal)
|
||||||
|
-DWITH_OPENCOLLADA=$(usex collada)
|
||||||
|
-DWITH_OPENCOLORIO=$(usex color-management)
|
||||||
|
-DWITH_OPENIMAGEDENOISE=$(usex oidn)
|
||||||
|
-DWITH_OPENIMAGEIO=$(usex openimageio)
|
||||||
|
-DWITH_OPENMP=$(usex openmp)
|
||||||
|
-DWITH_OPENSUBDIV=$(usex opensubdiv)
|
||||||
|
-DWITH_OPENVDB=$(usex openvdb)
|
||||||
|
-DWITH_OPENVDB_BLOSC=$(usex openvdb)
|
||||||
|
-DWITH_POTRACE=$(usex potrace)
|
||||||
|
-DWITH_PUGIXML=$(usex pugixml)
|
||||||
|
-DWITH_PULSEAUDIO=$(usex pulseaudio)
|
||||||
|
-DWITH_PYTHON_INSTALL=$(usex system-python OFF ON)
|
||||||
|
-DWITH_PYTHON_INSTALL_NUMPY=$(usex system-numpy OFF ON)
|
||||||
|
-DWITH_SDL=$(usex sdl)
|
||||||
|
-DWITH_STATIC_LIBS=OFF
|
||||||
|
-DWITH_SYSTEM_EIGEN3=ON
|
||||||
|
-DWITH_SYSTEM_GLEW=ON
|
||||||
|
-DWITH_SYSTEM_LZO=ON
|
||||||
|
-DWITH_TBB=$(usex tbb)
|
||||||
|
-DWITH_USD=OFF
|
||||||
|
-DWITH_XR_OPENXR=OFF
|
||||||
|
)
|
||||||
|
append-flags $(usex debug '-DDEBUG' '-DNDEBUG')
|
||||||
|
|
||||||
|
if tc-is-gcc ; then
|
||||||
|
# These options only exist when GCC is detected.
|
||||||
|
# We disable these to respect the user's choice of linker.
|
||||||
|
mycmakeargs+=(
|
||||||
|
-DWITH_LINKER_GOLD=OFF
|
||||||
|
-DWITH_LINKER_LLD=OFF
|
||||||
|
)
|
||||||
|
fi
|
||||||
|
|
||||||
|
cmake_src_configure
|
||||||
|
}
|
||||||
|
|
||||||
|
src_test() {
|
||||||
|
# A lot of tests needs to have access to the installed data files.
|
||||||
|
# So install them into the image directory now.
|
||||||
|
cmake_src_install
|
||||||
|
|
||||||
|
blender_get_version
|
||||||
|
# Define custom blender data/script file paths not be able to find them otherwise during testing.
|
||||||
|
# (Because the data is in the image directory and it will default to look in /usr/share)
|
||||||
|
export BLENDER_SYSTEM_SCRIPTS=${ED}/usr/share/blender/${BV}/scripts
|
||||||
|
export BLENDER_SYSTEM_DATAFILES=${ED}/usr/share/blender/${BV}/datafiles
|
||||||
|
|
||||||
|
cmake_src_test
|
||||||
|
|
||||||
|
# Clean up the image directory for src_install
|
||||||
|
rm -fr ${ED}/* || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
blender_get_version
|
||||||
|
|
||||||
|
# Pax mark blender for hardened support.
|
||||||
|
pax-mark m "${BUILD_DIR}"/bin/blender
|
||||||
|
|
||||||
|
if use standalone; then
|
||||||
|
dobin "${BUILD_DIR}"/bin/cycles
|
||||||
|
fi
|
||||||
|
|
||||||
|
cmake_src_install
|
||||||
|
|
||||||
|
if use man; then
|
||||||
|
# Slot the man page
|
||||||
|
mv "${ED}/usr/share/man/man1/blender.1" "${ED}/usr/share/man/man1/blender-${BV}.1" || die
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use doc; then
|
||||||
|
# Define custom blender data/script file paths. Otherwise Blender will not be able to find them during doc building.
|
||||||
|
# (Because the data is in the image directory and it will default to look in /usr/share)
|
||||||
|
export BLENDER_SYSTEM_SCRIPTS=${ED}/usr/share/blender/${BV}/scripts
|
||||||
|
export BLENDER_SYSTEM_DATAFILES=${ED}/usr/share/blender/${BV}/datafiles
|
||||||
|
|
||||||
|
# Workaround for binary drivers.
|
||||||
|
addpredict /dev/ati
|
||||||
|
addpredict /dev/dri
|
||||||
|
addpredict /dev/nvidiactl
|
||||||
|
|
||||||
|
einfo "Generating Blender C/C++ API docs ..."
|
||||||
|
cd "${CMAKE_USE_DIR}"/doc/doxygen || die
|
||||||
|
doxygen -u Doxyfile || die
|
||||||
|
doxygen || die "doxygen failed to build API docs."
|
||||||
|
|
||||||
|
cd "${CMAKE_USE_DIR}" || die
|
||||||
|
einfo "Generating (BPY) Blender Python API docs ..."
|
||||||
|
"${BUILD_DIR}"/bin/blender --background --python doc/python_api/sphinx_doc_gen.py -noaudio || die "sphinx failed."
|
||||||
|
|
||||||
|
cd "${CMAKE_USE_DIR}"/doc/python_api || die
|
||||||
|
sphinx-build sphinx-in BPY_API || die "sphinx failed."
|
||||||
|
|
||||||
|
docinto "html/API/python"
|
||||||
|
dodoc -r "${CMAKE_USE_DIR}"/doc/python_api/BPY_API/.
|
||||||
|
|
||||||
|
docinto "html/API/blender"
|
||||||
|
dodoc -r "${CMAKE_USE_DIR}"/doc/doxygen/html/.
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Fix doc installdir
|
||||||
|
docinto html
|
||||||
|
dodoc "${CMAKE_USE_DIR}"/release/text/readme.html
|
||||||
|
rm -r "${ED}"/usr/share/doc/blender || die
|
||||||
|
|
||||||
|
python_fix_shebang "${ED}/usr/bin/blender-${BV}-thumbnailer.py"
|
||||||
|
python_optimize "${ED}/usr/share/blender/${BV}/scripts"
|
||||||
|
|
||||||
|
mv "${ED}/usr/bin/blender" "${ED}/usr/bin/blender-${BV}" || die
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
elog
|
||||||
|
elog "Blender uses python integration. As such, may have some"
|
||||||
|
elog "inherent risks with running unknown python scripts."
|
||||||
|
elog
|
||||||
|
elog "It is recommended to change your blender temp directory"
|
||||||
|
elog "from /tmp to /home/user/tmp or another tmp file under your"
|
||||||
|
elog "home directory. This can be done by starting blender, then"
|
||||||
|
elog "changing the 'Temporary Files' directory in Blender preferences."
|
||||||
|
elog
|
||||||
|
ewarn
|
||||||
|
ewarn "This ebuild does not unbundle the massive amount of 3rd party"
|
||||||
|
ewarn "libraries which are shipped with blender. Note that"
|
||||||
|
ewarn "these have caused security issues in the past."
|
||||||
|
ewarn "If you are concerned about security, file a bug upstream:"
|
||||||
|
ewarn " https://developer.blender.org/"
|
||||||
|
ewarn
|
||||||
|
|
||||||
|
if ! use python_single_target_python3_9; then
|
||||||
|
elog "You are building Blender with a newer python version than"
|
||||||
|
elog "supported by this version upstream."
|
||||||
|
elog "If you experience breakages with e.g. plugins, please switch to"
|
||||||
|
elog "python_single_target_python3_9 instead."
|
||||||
|
elog "Bug: https://bugs.gentoo.org/737388"
|
||||||
|
elog
|
||||||
|
fi
|
||||||
|
|
||||||
|
xdg_icon_cache_update
|
||||||
|
xdg_mimeinfo_database_update
|
||||||
|
xdg_desktop_database_update
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postrm() {
|
||||||
|
xdg_icon_cache_update
|
||||||
|
xdg_mimeinfo_database_update
|
||||||
|
xdg_desktop_database_update
|
||||||
|
|
||||||
|
ewarn ""
|
||||||
|
ewarn "You may want to remove the following directory."
|
||||||
|
ewarn "~/.config/${PN}/${SLOT}/cache/"
|
||||||
|
ewarn "It may contain extra render kernels not tracked by portage"
|
||||||
|
ewarn ""
|
||||||
|
}
|
@ -0,0 +1,413 @@
|
|||||||
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python3_9 python3_10 )
|
||||||
|
|
||||||
|
inherit check-reqs cmake flag-o-matic pax-utils python-single-r1 toolchain-funcs xdg-utils
|
||||||
|
|
||||||
|
DESCRIPTION="3D Creation/Animation/Publishing System"
|
||||||
|
HOMEPAGE="https://www.blender.org"
|
||||||
|
|
||||||
|
if [[ ${PV} = *9999* ]] ; then
|
||||||
|
# Subversion is needed for downloading unit test files
|
||||||
|
inherit git-r3 subversion
|
||||||
|
EGIT_REPO_URI="https://git.blender.org/blender.git"
|
||||||
|
else
|
||||||
|
SRC_URI="https://download.blender.org/source/${P}.tar.xz"
|
||||||
|
SRC_URI+=" https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${PN}-3.0.1-ffmpeg-5.0.patch.bz2"
|
||||||
|
|
||||||
|
# Update these between major releases.
|
||||||
|
TEST_TARBALL_VERSION="3.0.0"
|
||||||
|
SRC_URI+=" test? ( https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${PN}-${TEST_TARBALL_VERSION}-tests.tar.bz2 )"
|
||||||
|
KEYWORDS="~amd64 ~arm ~arm64"
|
||||||
|
fi
|
||||||
|
|
||||||
|
SLOT="${PV%.*}"
|
||||||
|
LICENSE="|| ( GPL-3 BL )"
|
||||||
|
IUSE="+bullet +dds +fluid +openexr +system-python +system-numpy +tbb \
|
||||||
|
alembic collada +color-management cuda +cycles \
|
||||||
|
debug doc +embree +ffmpeg +fftw +gmp headless jack jemalloc jpeg2k \
|
||||||
|
man ndof nls openal +oidn +openimageio +openmp +opensubdiv \
|
||||||
|
+openvdb +osl +pdf +potrace +pugixml pulseaudio sdl +sndfile standalone test +tiff valgrind"
|
||||||
|
RESTRICT="!test? ( test )"
|
||||||
|
|
||||||
|
REQUIRED_USE="${PYTHON_REQUIRED_USE}
|
||||||
|
alembic? ( openexr )
|
||||||
|
cuda? ( cycles )
|
||||||
|
cycles? ( openexr tiff openimageio )
|
||||||
|
fluid? ( tbb )
|
||||||
|
openvdb? ( tbb )
|
||||||
|
osl? ( cycles )
|
||||||
|
standalone? ( cycles )
|
||||||
|
test? ( color-management )"
|
||||||
|
|
||||||
|
# Library versions for official builds can be found in the blender source directory in:
|
||||||
|
# build_files/build_environment/install_deps.sh
|
||||||
|
RDEPEND="${PYTHON_DEPS}
|
||||||
|
dev-libs/boost:=[nls?,threads(+)]
|
||||||
|
dev-libs/lzo:2=
|
||||||
|
$(python_gen_cond_dep '
|
||||||
|
dev-python/numpy[${PYTHON_USEDEP}]
|
||||||
|
dev-python/requests[${PYTHON_USEDEP}]
|
||||||
|
dev-python/zstandard[${PYTHON_USEDEP}]
|
||||||
|
')
|
||||||
|
media-libs/freetype:=
|
||||||
|
media-libs/glew:*
|
||||||
|
media-libs/libpng:=
|
||||||
|
media-libs/libsamplerate
|
||||||
|
sys-libs/zlib:=
|
||||||
|
virtual/glu
|
||||||
|
virtual/jpeg
|
||||||
|
virtual/libintl
|
||||||
|
virtual/opengl
|
||||||
|
alembic? ( >=media-gfx/alembic-1.8.3-r2[boost(+),hdf(+)] )
|
||||||
|
collada? ( >=media-libs/opencollada-1.6.68 )
|
||||||
|
color-management? ( >=media-libs/opencolorio-2.1.1-r7:= )
|
||||||
|
cuda? ( dev-util/nvidia-cuda-toolkit:= )
|
||||||
|
embree? ( >=media-libs/embree-3.10.0[raymask] )
|
||||||
|
ffmpeg? ( media-video/ffmpeg:=[x264,mp3,encode,theora,jpeg2k?,vpx,vorbis,opus,xvid] )
|
||||||
|
fftw? ( sci-libs/fftw:3.0= )
|
||||||
|
gmp? ( dev-libs/gmp )
|
||||||
|
!headless? (
|
||||||
|
x11-libs/libX11
|
||||||
|
x11-libs/libXi
|
||||||
|
x11-libs/libXxf86vm
|
||||||
|
)
|
||||||
|
jack? ( virtual/jack )
|
||||||
|
jemalloc? ( dev-libs/jemalloc:= )
|
||||||
|
jpeg2k? ( media-libs/openjpeg:2= )
|
||||||
|
ndof? (
|
||||||
|
app-misc/spacenavd
|
||||||
|
dev-libs/libspnav
|
||||||
|
)
|
||||||
|
nls? ( virtual/libiconv )
|
||||||
|
openal? ( media-libs/openal )
|
||||||
|
oidn? ( >=media-libs/oidn-1.4.1 )
|
||||||
|
openimageio? ( >=media-libs/openimageio-2.3.12.0-r3:= )
|
||||||
|
openexr? (
|
||||||
|
>=dev-libs/imath-3.1.4-r2:=
|
||||||
|
>=media-libs/openexr-3:0=
|
||||||
|
)
|
||||||
|
opensubdiv? ( >=media-libs/opensubdiv-3.4.0[cuda=] )
|
||||||
|
openvdb? (
|
||||||
|
>=media-gfx/openvdb-8.2.0-r2:=
|
||||||
|
dev-libs/c-blosc:=
|
||||||
|
)
|
||||||
|
osl? ( >=media-libs/osl-1.11.16.0-r3:= )
|
||||||
|
pdf? ( media-libs/libharu )
|
||||||
|
potrace? ( media-gfx/potrace )
|
||||||
|
pugixml? ( dev-libs/pugixml )
|
||||||
|
pulseaudio? ( media-sound/pulseaudio )
|
||||||
|
sdl? ( media-libs/libsdl2[sound,joystick] )
|
||||||
|
sndfile? ( media-libs/libsndfile )
|
||||||
|
tbb? ( dev-cpp/tbb:= )
|
||||||
|
tiff? ( media-libs/tiff )
|
||||||
|
valgrind? ( dev-util/valgrind )
|
||||||
|
"
|
||||||
|
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
dev-cpp/eigen:=
|
||||||
|
"
|
||||||
|
|
||||||
|
BDEPEND="
|
||||||
|
virtual/pkgconfig
|
||||||
|
doc? (
|
||||||
|
app-doc/doxygen[dot]
|
||||||
|
dev-python/sphinx[latex]
|
||||||
|
dev-texlive/texlive-bibtexextra
|
||||||
|
dev-texlive/texlive-fontsextra
|
||||||
|
dev-texlive/texlive-fontutils
|
||||||
|
dev-texlive/texlive-latex
|
||||||
|
dev-texlive/texlive-latexextra
|
||||||
|
)
|
||||||
|
nls? ( sys-devel/gettext )
|
||||||
|
"
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}"/${PN}-3.0.0-intern-ghost-fix-typo-in-finding-XF86VMODE.patch
|
||||||
|
"${FILESDIR}"/${PN}-3.0.1-openexr.patch
|
||||||
|
"${FILESDIR}"/${PN}-3.0.1-openimageio-2.3.patch
|
||||||
|
"${WORKDIR}"/${PN}-3.0.1-ffmpeg-5.0.patch
|
||||||
|
)
|
||||||
|
|
||||||
|
blender_check_requirements() {
|
||||||
|
[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
|
||||||
|
|
||||||
|
if use doc; then
|
||||||
|
CHECKREQS_DISK_BUILD="4G" check-reqs_pkg_pretend
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
blender_get_version() {
|
||||||
|
# Get blender version from blender itself.
|
||||||
|
BV=$(grep "BLENDER_VERSION " source/blender/blenkernel/BKE_blender_version.h | cut -d " " -f 3; assert)
|
||||||
|
if ((${BV:0:1} < 3)) ; then
|
||||||
|
# Add period (290 -> 2.90).
|
||||||
|
BV=${BV:0:1}.${BV:1}
|
||||||
|
else
|
||||||
|
# Add period and skip the middle number (301 -> 3.1)
|
||||||
|
BV=${BV:0:1}.${BV:2}
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_pretend() {
|
||||||
|
blender_check_requirements
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
blender_check_requirements
|
||||||
|
python-single-r1_pkg_setup
|
||||||
|
}
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
if [[ ${PV} = *9999* ]] ; then
|
||||||
|
git-r3_src_unpack
|
||||||
|
if use test; then
|
||||||
|
TESTS_SVN_URL=https://svn.blender.org/svnroot/bf-blender/trunk/lib/tests
|
||||||
|
subversion_fetch ${TESTS_SVN_URL} ../lib/tests
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
default
|
||||||
|
if use test; then
|
||||||
|
#The tests are downloaded from: https://svn.blender.org/svnroot/bf-blender/tags/blender-${SLOT}-release/lib/tests
|
||||||
|
mkdir -p lib || die
|
||||||
|
mv "${WORKDIR}"/blender-${TEST_TARBALL_VERSION}-tests/tests lib || die
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
cmake_src_prepare
|
||||||
|
|
||||||
|
blender_get_version
|
||||||
|
|
||||||
|
# Disable MS Windows help generation. The variable doesn't do what it
|
||||||
|
# it sounds like.
|
||||||
|
sed -e "s|GENERATE_HTMLHELP = YES|GENERATE_HTMLHELP = NO|" \
|
||||||
|
-i doc/doxygen/Doxyfile || die
|
||||||
|
|
||||||
|
# Prepare icons and .desktop files for slotting.
|
||||||
|
sed -e "s|blender.svg|blender-${BV}.svg|" -i source/creator/CMakeLists.txt || die
|
||||||
|
sed -e "s|blender-symbolic.svg|blender-${BV}-symbolic.svg|" -i source/creator/CMakeLists.txt || die
|
||||||
|
sed -e "s|blender.desktop|blender-${BV}.desktop|" -i source/creator/CMakeLists.txt || die
|
||||||
|
|
||||||
|
sed -e "s|Name=Blender|Name=Blender ${PV}|" -i release/freedesktop/blender.desktop || die
|
||||||
|
sed -e "s|Exec=blender|Exec=blender-${BV}|" -i release/freedesktop/blender.desktop || die
|
||||||
|
sed -e "s|Icon=blender|Icon=blender-${BV}|" -i release/freedesktop/blender.desktop || die
|
||||||
|
|
||||||
|
mv release/freedesktop/icons/scalable/apps/blender.svg release/freedesktop/icons/scalable/apps/blender-${BV}.svg || die
|
||||||
|
mv release/freedesktop/icons/symbolic/apps/blender-symbolic.svg release/freedesktop/icons/symbolic/apps/blender-${BV}-symbolic.svg || die
|
||||||
|
mv release/freedesktop/blender.desktop release/freedesktop/blender-${BV}.desktop || die
|
||||||
|
|
||||||
|
if use test; then
|
||||||
|
# Without this the tests will try to use /usr/bin/blender and /usr/share/blender/ to run the tests.
|
||||||
|
sed -e "s|string(REPLACE.*|set(TEST_INSTALL_DIR ${ED}/usr/)|g" -i tests/CMakeLists.txt || die
|
||||||
|
sed -e "s|string(REPLACE.*|set(TEST_INSTALL_DIR ${ED}/usr/)|g" -i build_files/cmake/Modules/GTestTesting.cmake || die
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
append-lfs-flags
|
||||||
|
|
||||||
|
local mycmakeargs=(
|
||||||
|
-DBUILD_SHARED_LIBS=OFF
|
||||||
|
-DPYTHON_INCLUDE_DIR="$(python_get_includedir)"
|
||||||
|
-DPYTHON_LIBRARY="$(python_get_library_path)"
|
||||||
|
-DPYTHON_VERSION="${EPYTHON/python/}"
|
||||||
|
-DWITH_ALEMBIC=$(usex alembic)
|
||||||
|
-DWITH_ASSERT_ABORT=$(usex debug)
|
||||||
|
-DWITH_BOOST=ON
|
||||||
|
-DWITH_BULLET=$(usex bullet)
|
||||||
|
-DWITH_CODEC_FFMPEG=$(usex ffmpeg)
|
||||||
|
-DWITH_CODEC_SNDFILE=$(usex sndfile)
|
||||||
|
-DWITH_CXX_GUARDEDALLOC=$(usex debug)
|
||||||
|
-DWITH_CYCLES=$(usex cycles)
|
||||||
|
-DWITH_CYCLES_DEVICE_CUDA=$(usex cuda TRUE FALSE)
|
||||||
|
-DWITH_CYCLES_EMBREE=$(usex embree)
|
||||||
|
-DWITH_CYCLES_OSL=$(usex osl)
|
||||||
|
-DWITH_CYCLES_STANDALONE=$(usex standalone)
|
||||||
|
-DWITH_CYCLES_STANDALONE_GUI=$(usex standalone)
|
||||||
|
-DWITH_DOC_MANPAGE=$(usex man)
|
||||||
|
-DWITH_FFTW3=$(usex fftw)
|
||||||
|
-DWITH_GMP=$(usex gmp)
|
||||||
|
-DWITH_GTESTS=$(usex test)
|
||||||
|
-DWITH_HARU=$(usex pdf)
|
||||||
|
-DWITH_HEADLESS=$(usex headless)
|
||||||
|
-DWITH_INSTALL_PORTABLE=OFF
|
||||||
|
-DWITH_IMAGE_DDS=$(usex dds)
|
||||||
|
-DOPENEXR_ROOT_DIR="${ESYSROOT}/usr/$(get_libdir)/OpenEXR-3"
|
||||||
|
-DWITH_IMAGE_OPENEXR=$(usex openexr)
|
||||||
|
-DWITH_IMAGE_OPENJPEG=$(usex jpeg2k)
|
||||||
|
-DWITH_IMAGE_TIFF=$(usex tiff)
|
||||||
|
-DWITH_INPUT_NDOF=$(usex ndof)
|
||||||
|
-DWITH_INTERNATIONAL=$(usex nls)
|
||||||
|
-DWITH_JACK=$(usex jack)
|
||||||
|
-DWITH_MEM_JEMALLOC=$(usex jemalloc)
|
||||||
|
-DWITH_MEM_VALGRIND=$(usex valgrind)
|
||||||
|
-DWITH_MOD_FLUID=$(usex fluid)
|
||||||
|
-DWITH_MOD_OCEANSIM=$(usex fftw)
|
||||||
|
-DWITH_NANOVDB=OFF
|
||||||
|
-DWITH_OPENAL=$(usex openal)
|
||||||
|
-DWITH_OPENCOLLADA=$(usex collada)
|
||||||
|
-DWITH_OPENCOLORIO=$(usex color-management)
|
||||||
|
-DWITH_OPENIMAGEDENOISE=$(usex oidn)
|
||||||
|
-DWITH_OPENIMAGEIO=$(usex openimageio)
|
||||||
|
-DWITH_OPENMP=$(usex openmp)
|
||||||
|
-DWITH_OPENSUBDIV=$(usex opensubdiv)
|
||||||
|
-DWITH_OPENVDB=$(usex openvdb)
|
||||||
|
-DWITH_OPENVDB_BLOSC=$(usex openvdb)
|
||||||
|
-DWITH_POTRACE=$(usex potrace)
|
||||||
|
-DWITH_PUGIXML=$(usex pugixml)
|
||||||
|
-DWITH_PULSEAUDIO=$(usex pulseaudio)
|
||||||
|
-DWITH_PYTHON_INSTALL=$(usex system-python OFF ON)
|
||||||
|
-DWITH_PYTHON_INSTALL_NUMPY=$(usex system-numpy OFF ON)
|
||||||
|
-DWITH_SDL=$(usex sdl)
|
||||||
|
-DWITH_STATIC_LIBS=OFF
|
||||||
|
-DWITH_SYSTEM_EIGEN3=ON
|
||||||
|
-DWITH_SYSTEM_GLEW=ON
|
||||||
|
-DWITH_SYSTEM_LZO=ON
|
||||||
|
-DWITH_TBB=$(usex tbb)
|
||||||
|
-DWITH_USD=OFF
|
||||||
|
-DWITH_XR_OPENXR=OFF
|
||||||
|
)
|
||||||
|
|
||||||
|
append-flags $(usex debug '-DDEBUG' '-DNDEBUG')
|
||||||
|
|
||||||
|
if tc-is-gcc ; then
|
||||||
|
# These options only exist when GCC is detected.
|
||||||
|
# We disable these to respect the user's choice of linker.
|
||||||
|
mycmakeargs+=(
|
||||||
|
-DWITH_LINKER_GOLD=OFF
|
||||||
|
-DWITH_LINKER_LLD=OFF
|
||||||
|
)
|
||||||
|
fi
|
||||||
|
|
||||||
|
cmake_src_configure
|
||||||
|
}
|
||||||
|
|
||||||
|
src_test() {
|
||||||
|
# A lot of tests needs to have access to the installed data files.
|
||||||
|
# So install them into the image directory now.
|
||||||
|
cmake_src_install
|
||||||
|
|
||||||
|
blender_get_version
|
||||||
|
# Define custom blender data/script file paths not be able to find them otherwise during testing.
|
||||||
|
# (Because the data is in the image directory and it will default to look in /usr/share)
|
||||||
|
export BLENDER_SYSTEM_SCRIPTS=${ED}/usr/share/blender/${BV}/scripts
|
||||||
|
export BLENDER_SYSTEM_DATAFILES=${ED}/usr/share/blender/${BV}/datafiles
|
||||||
|
|
||||||
|
# Sanity check that the script and datafile path is valid.
|
||||||
|
# If they are not vaild, blender will fallback to the default path which is not what we want.
|
||||||
|
[ -d "$BLENDER_SYSTEM_SCRIPTS" ] || die "The custom script path is invalid, fix the ebuild!"
|
||||||
|
[ -d "$BLENDER_SYSTEM_DATAFILES" ] || die "The custom datafiles path is invalid, fix the ebuild!"
|
||||||
|
|
||||||
|
cmake_src_test
|
||||||
|
|
||||||
|
# Clean up the image directory for src_install
|
||||||
|
rm -fr ${ED}/* || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
blender_get_version
|
||||||
|
|
||||||
|
# Pax mark blender for hardened support.
|
||||||
|
pax-mark m "${BUILD_DIR}"/bin/blender
|
||||||
|
|
||||||
|
if use standalone; then
|
||||||
|
dobin "${BUILD_DIR}"/bin/cycles
|
||||||
|
fi
|
||||||
|
|
||||||
|
cmake_src_install
|
||||||
|
|
||||||
|
if use man; then
|
||||||
|
# Slot the man page
|
||||||
|
mv "${ED}/usr/share/man/man1/blender.1" "${ED}/usr/share/man/man1/blender-${BV}.1" || die
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use doc; then
|
||||||
|
# Define custom blender data/script file paths. Otherwise Blender will not be able to find them during doc building.
|
||||||
|
# (Because the data is in the image directory and it will default to look in /usr/share)
|
||||||
|
export BLENDER_SYSTEM_SCRIPTS=${ED}/usr/share/blender/${BV}/scripts
|
||||||
|
export BLENDER_SYSTEM_DATAFILES=${ED}/usr/share/blender/${BV}/datafiles
|
||||||
|
|
||||||
|
# Workaround for binary drivers.
|
||||||
|
addpredict /dev/ati
|
||||||
|
addpredict /dev/dri
|
||||||
|
addpredict /dev/nvidiactl
|
||||||
|
|
||||||
|
einfo "Generating Blender C/C++ API docs ..."
|
||||||
|
cd "${CMAKE_USE_DIR}"/doc/doxygen || die
|
||||||
|
doxygen -u Doxyfile || die
|
||||||
|
doxygen || die "doxygen failed to build API docs."
|
||||||
|
|
||||||
|
cd "${CMAKE_USE_DIR}" || die
|
||||||
|
einfo "Generating (BPY) Blender Python API docs ..."
|
||||||
|
"${BUILD_DIR}"/bin/blender --background --python doc/python_api/sphinx_doc_gen.py -noaudio || die "sphinx failed."
|
||||||
|
|
||||||
|
cd "${CMAKE_USE_DIR}"/doc/python_api || die
|
||||||
|
sphinx-build sphinx-in BPY_API || die "sphinx failed."
|
||||||
|
|
||||||
|
docinto "html/API/python"
|
||||||
|
dodoc -r "${CMAKE_USE_DIR}"/doc/python_api/BPY_API/.
|
||||||
|
|
||||||
|
docinto "html/API/blender"
|
||||||
|
dodoc -r "${CMAKE_USE_DIR}"/doc/doxygen/html/.
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Fix doc installdir
|
||||||
|
docinto html
|
||||||
|
dodoc "${CMAKE_USE_DIR}"/release/text/readme.html
|
||||||
|
rm -r "${ED}"/usr/share/doc/blender || die
|
||||||
|
|
||||||
|
python_optimize "${ED}/usr/share/blender/${BV}/scripts"
|
||||||
|
|
||||||
|
mv "${ED}/usr/bin/blender-thumbnailer" "${ED}/usr/bin/blender-${BV}-thumbnailer" || die
|
||||||
|
mv "${ED}/usr/bin/blender" "${ED}/usr/bin/blender-${BV}" || die
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
elog
|
||||||
|
elog "Blender uses python integration. As such, may have some"
|
||||||
|
elog "inherent risks with running unknown python scripts."
|
||||||
|
elog
|
||||||
|
elog "It is recommended to change your blender temp directory"
|
||||||
|
elog "from /tmp to /home/user/tmp or another tmp file under your"
|
||||||
|
elog "home directory. This can be done by starting blender, then"
|
||||||
|
elog "changing the 'Temporary Files' directory in Blender preferences."
|
||||||
|
elog
|
||||||
|
ewarn
|
||||||
|
ewarn "This ebuild does not unbundle the massive amount of 3rd party"
|
||||||
|
ewarn "libraries which are shipped with blender. Note that"
|
||||||
|
ewarn "these have caused security issues in the past."
|
||||||
|
ewarn "If you are concerned about security, file a bug upstream:"
|
||||||
|
ewarn " https://developer.blender.org/"
|
||||||
|
ewarn
|
||||||
|
|
||||||
|
if ! use python_single_target_python3_9; then
|
||||||
|
elog "You are building Blender with a newer python version than"
|
||||||
|
elog "supported by this version upstream."
|
||||||
|
elog "If you experience breakages with e.g. plugins, please switch to"
|
||||||
|
elog "python_single_target_python3_9 instead."
|
||||||
|
elog "Bug: https://bugs.gentoo.org/737388"
|
||||||
|
elog
|
||||||
|
fi
|
||||||
|
|
||||||
|
xdg_icon_cache_update
|
||||||
|
xdg_mimeinfo_database_update
|
||||||
|
xdg_desktop_database_update
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postrm() {
|
||||||
|
xdg_icon_cache_update
|
||||||
|
xdg_mimeinfo_database_update
|
||||||
|
xdg_desktop_database_update
|
||||||
|
|
||||||
|
ewarn ""
|
||||||
|
ewarn "You may want to remove the following directory."
|
||||||
|
ewarn "~/.config/${PN}/${SLOT}/cache/"
|
||||||
|
ewarn "It may contain extra render kernels not tracked by portage"
|
||||||
|
ewarn ""
|
||||||
|
}
|
@ -0,0 +1,404 @@
|
|||||||
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python3_10 )
|
||||||
|
|
||||||
|
inherit check-reqs cmake flag-o-matic pax-utils python-single-r1 toolchain-funcs xdg-utils
|
||||||
|
|
||||||
|
DESCRIPTION="3D Creation/Animation/Publishing System"
|
||||||
|
HOMEPAGE="https://www.blender.org"
|
||||||
|
|
||||||
|
if [[ ${PV} = *9999* ]] ; then
|
||||||
|
# Subversion is needed for downloading unit test files
|
||||||
|
inherit git-r3 subversion
|
||||||
|
EGIT_REPO_URI="https://git.blender.org/blender.git"
|
||||||
|
else
|
||||||
|
SRC_URI="https://download.blender.org/source/${P}.tar.xz"
|
||||||
|
# Update these between major releases.
|
||||||
|
TEST_TARBALL_VERSION="$(ver_cut 1-2).0"
|
||||||
|
SRC_URI+=" test? ( https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${PN}-${TEST_TARBALL_VERSION}-tests.tar.bz2 )"
|
||||||
|
KEYWORDS="~amd64 ~arm ~arm64"
|
||||||
|
fi
|
||||||
|
|
||||||
|
SLOT="${PV%.*}"
|
||||||
|
LICENSE="|| ( GPL-3 BL )"
|
||||||
|
IUSE="+bullet +dds +fluid +openexr +system-python +system-numpy +tbb \
|
||||||
|
alembic collada +color-management cuda +cycles \
|
||||||
|
debug doc +embree +ffmpeg +fftw +gmp headless jack jemalloc jpeg2k \
|
||||||
|
man +nanovdb ndof nls openal +oidn +openimageio +openmp +opensubdiv \
|
||||||
|
+openvdb +osl +pdf +potrace +pugixml pulseaudio sdl +sndfile standalone test +tiff valgrind"
|
||||||
|
RESTRICT="!test? ( test )"
|
||||||
|
|
||||||
|
REQUIRED_USE="${PYTHON_REQUIRED_USE}
|
||||||
|
alembic? ( openexr )
|
||||||
|
cuda? ( cycles )
|
||||||
|
cycles? ( openexr tiff openimageio )
|
||||||
|
fluid? ( tbb )
|
||||||
|
openvdb? ( tbb )
|
||||||
|
osl? ( cycles )
|
||||||
|
standalone? ( cycles )
|
||||||
|
test? ( color-management )"
|
||||||
|
|
||||||
|
# Library versions for official builds can be found in the blender source directory in:
|
||||||
|
# build_files/build_environment/install_deps.sh
|
||||||
|
RDEPEND="${PYTHON_DEPS}
|
||||||
|
dev-libs/boost:=[nls?,threads(+)]
|
||||||
|
dev-libs/lzo:2=
|
||||||
|
$(python_gen_cond_dep '
|
||||||
|
dev-python/numpy[${PYTHON_USEDEP}]
|
||||||
|
dev-python/requests[${PYTHON_USEDEP}]
|
||||||
|
dev-python/zstandard[${PYTHON_USEDEP}]
|
||||||
|
')
|
||||||
|
media-libs/freetype:=
|
||||||
|
media-libs/glew:*
|
||||||
|
media-libs/libpng:=
|
||||||
|
media-libs/libsamplerate
|
||||||
|
sys-libs/zlib:=
|
||||||
|
virtual/glu
|
||||||
|
virtual/jpeg
|
||||||
|
virtual/libintl
|
||||||
|
virtual/opengl
|
||||||
|
alembic? ( >=media-gfx/alembic-1.8.3-r2[boost(+),hdf(+)] )
|
||||||
|
collada? ( >=media-libs/opencollada-1.6.68 )
|
||||||
|
color-management? ( >=media-libs/opencolorio-2.1.1-r7:= )
|
||||||
|
cuda? ( dev-util/nvidia-cuda-toolkit:= )
|
||||||
|
embree? ( >=media-libs/embree-3.10.0[raymask] )
|
||||||
|
ffmpeg? ( media-video/ffmpeg:=[x264,mp3,encode,theora,jpeg2k?,vpx,vorbis,opus,xvid] )
|
||||||
|
fftw? ( sci-libs/fftw:3.0= )
|
||||||
|
gmp? ( dev-libs/gmp )
|
||||||
|
!headless? (
|
||||||
|
x11-libs/libX11
|
||||||
|
x11-libs/libXi
|
||||||
|
x11-libs/libXxf86vm
|
||||||
|
)
|
||||||
|
jack? ( virtual/jack )
|
||||||
|
jemalloc? ( dev-libs/jemalloc:= )
|
||||||
|
jpeg2k? ( media-libs/openjpeg:2= )
|
||||||
|
ndof? (
|
||||||
|
app-misc/spacenavd
|
||||||
|
dev-libs/libspnav
|
||||||
|
)
|
||||||
|
nls? ( virtual/libiconv )
|
||||||
|
openal? ( media-libs/openal )
|
||||||
|
oidn? ( >=media-libs/oidn-1.4.1 )
|
||||||
|
openimageio? ( >=media-libs/openimageio-2.3.12.0-r3:= )
|
||||||
|
openexr? (
|
||||||
|
>=dev-libs/imath-3.1.4-r2:=
|
||||||
|
>=media-libs/openexr-3:0=
|
||||||
|
)
|
||||||
|
opensubdiv? ( >=media-libs/opensubdiv-3.4.0[cuda=] )
|
||||||
|
openvdb? (
|
||||||
|
>=media-gfx/openvdb-9.0.0:=[nanovdb?]
|
||||||
|
dev-libs/c-blosc:=
|
||||||
|
)
|
||||||
|
osl? ( >=media-libs/osl-1.11.16.0-r3:= )
|
||||||
|
pdf? ( media-libs/libharu )
|
||||||
|
potrace? ( media-gfx/potrace )
|
||||||
|
pugixml? ( dev-libs/pugixml )
|
||||||
|
pulseaudio? ( media-sound/pulseaudio )
|
||||||
|
sdl? ( media-libs/libsdl2[sound,joystick] )
|
||||||
|
sndfile? ( media-libs/libsndfile )
|
||||||
|
tbb? ( dev-cpp/tbb:= )
|
||||||
|
tiff? ( media-libs/tiff )
|
||||||
|
valgrind? ( dev-util/valgrind )
|
||||||
|
"
|
||||||
|
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
dev-cpp/eigen:=
|
||||||
|
"
|
||||||
|
|
||||||
|
BDEPEND="
|
||||||
|
virtual/pkgconfig
|
||||||
|
doc? (
|
||||||
|
app-doc/doxygen[dot]
|
||||||
|
dev-python/sphinx[latex]
|
||||||
|
dev-texlive/texlive-bibtexextra
|
||||||
|
dev-texlive/texlive-fontsextra
|
||||||
|
dev-texlive/texlive-fontutils
|
||||||
|
dev-texlive/texlive-latex
|
||||||
|
dev-texlive/texlive-latexextra
|
||||||
|
)
|
||||||
|
nls? ( sys-devel/gettext )
|
||||||
|
"
|
||||||
|
|
||||||
|
blender_check_requirements() {
|
||||||
|
[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
|
||||||
|
|
||||||
|
if use doc; then
|
||||||
|
CHECKREQS_DISK_BUILD="4G" check-reqs_pkg_pretend
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
blender_get_version() {
|
||||||
|
# Get blender version from blender itself.
|
||||||
|
BV=$(grep "BLENDER_VERSION " source/blender/blenkernel/BKE_blender_version.h | cut -d " " -f 3; assert)
|
||||||
|
if ((${BV:0:1} < 3)) ; then
|
||||||
|
# Add period (290 -> 2.90).
|
||||||
|
BV=${BV:0:1}.${BV:1}
|
||||||
|
else
|
||||||
|
# Add period and skip the middle number (301 -> 3.1)
|
||||||
|
BV=${BV:0:1}.${BV:2}
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_pretend() {
|
||||||
|
blender_check_requirements
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
blender_check_requirements
|
||||||
|
python-single-r1_pkg_setup
|
||||||
|
}
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
if [[ ${PV} = *9999* ]] ; then
|
||||||
|
git-r3_src_unpack
|
||||||
|
if use test; then
|
||||||
|
TESTS_SVN_URL=https://svn.blender.org/svnroot/bf-blender/trunk/lib/tests
|
||||||
|
subversion_fetch ${TESTS_SVN_URL} ../lib/tests
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
default
|
||||||
|
if use test; then
|
||||||
|
#The tests are downloaded from: https://svn.blender.org/svnroot/bf-blender/tags/blender-${SLOT}-release/lib/tests
|
||||||
|
mkdir -p lib || die
|
||||||
|
mv "${WORKDIR}"/blender-${TEST_TARBALL_VERSION}-tests/tests lib || die
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
cmake_src_prepare
|
||||||
|
|
||||||
|
blender_get_version
|
||||||
|
|
||||||
|
# Disable MS Windows help generation. The variable doesn't do what it
|
||||||
|
# it sounds like.
|
||||||
|
sed -e "s|GENERATE_HTMLHELP = YES|GENERATE_HTMLHELP = NO|" \
|
||||||
|
-i doc/doxygen/Doxyfile || die
|
||||||
|
|
||||||
|
# Prepare icons and .desktop files for slotting.
|
||||||
|
sed -e "s|blender.svg|blender-${BV}.svg|" -i source/creator/CMakeLists.txt || die
|
||||||
|
sed -e "s|blender-symbolic.svg|blender-${BV}-symbolic.svg|" -i source/creator/CMakeLists.txt || die
|
||||||
|
sed -e "s|blender.desktop|blender-${BV}.desktop|" -i source/creator/CMakeLists.txt || die
|
||||||
|
|
||||||
|
sed -e "s|Name=Blender|Name=Blender ${PV}|" -i release/freedesktop/blender.desktop || die
|
||||||
|
sed -e "s|Exec=blender|Exec=blender-${BV}|" -i release/freedesktop/blender.desktop || die
|
||||||
|
sed -e "s|Icon=blender|Icon=blender-${BV}|" -i release/freedesktop/blender.desktop || die
|
||||||
|
|
||||||
|
mv release/freedesktop/icons/scalable/apps/blender.svg release/freedesktop/icons/scalable/apps/blender-${BV}.svg || die
|
||||||
|
mv release/freedesktop/icons/symbolic/apps/blender-symbolic.svg release/freedesktop/icons/symbolic/apps/blender-${BV}-symbolic.svg || die
|
||||||
|
mv release/freedesktop/blender.desktop release/freedesktop/blender-${BV}.desktop || die
|
||||||
|
|
||||||
|
if use test; then
|
||||||
|
# Without this the tests will try to use /usr/bin/blender and /usr/share/blender/ to run the tests.
|
||||||
|
sed -e "s|string(REPLACE.*|set(TEST_INSTALL_DIR ${ED}/usr/)|g" -i tests/CMakeLists.txt || die
|
||||||
|
sed -e "s|string(REPLACE.*|set(TEST_INSTALL_DIR ${ED}/usr/)|g" -i build_files/cmake/Modules/GTestTesting.cmake || die
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
append-lfs-flags
|
||||||
|
|
||||||
|
local mycmakeargs=(
|
||||||
|
-DBUILD_SHARED_LIBS=OFF
|
||||||
|
-DPYTHON_INCLUDE_DIR="$(python_get_includedir)"
|
||||||
|
-DPYTHON_LIBRARY="$(python_get_library_path)"
|
||||||
|
-DPYTHON_VERSION="${EPYTHON/python/}"
|
||||||
|
-DWITH_ALEMBIC=$(usex alembic)
|
||||||
|
-DWITH_ASSERT_ABORT=$(usex debug)
|
||||||
|
-DWITH_BOOST=ON
|
||||||
|
-DWITH_BULLET=$(usex bullet)
|
||||||
|
-DWITH_CODEC_FFMPEG=$(usex ffmpeg)
|
||||||
|
-DWITH_CODEC_SNDFILE=$(usex sndfile)
|
||||||
|
-DWITH_CXX_GUARDEDALLOC=$(usex debug)
|
||||||
|
-DWITH_CYCLES=$(usex cycles)
|
||||||
|
-DWITH_CYCLES_DEVICE_CUDA=$(usex cuda TRUE FALSE)
|
||||||
|
-DWITH_CYCLES_EMBREE=$(usex embree)
|
||||||
|
-DWITH_CYCLES_OSL=$(usex osl)
|
||||||
|
-DWITH_CYCLES_STANDALONE=$(usex standalone)
|
||||||
|
-DWITH_CYCLES_STANDALONE_GUI=$(usex standalone)
|
||||||
|
-DWITH_DOC_MANPAGE=$(usex man)
|
||||||
|
-DWITH_FFTW3=$(usex fftw)
|
||||||
|
-DWITH_GMP=$(usex gmp)
|
||||||
|
-DWITH_GTESTS=$(usex test)
|
||||||
|
-DWITH_HARU=$(usex pdf)
|
||||||
|
-DWITH_HEADLESS=$(usex headless)
|
||||||
|
-DWITH_INSTALL_PORTABLE=OFF
|
||||||
|
-DWITH_IMAGE_DDS=$(usex dds)
|
||||||
|
-DWITH_IMAGE_OPENEXR=$(usex openexr)
|
||||||
|
-DWITH_IMAGE_OPENJPEG=$(usex jpeg2k)
|
||||||
|
-DWITH_IMAGE_TIFF=$(usex tiff)
|
||||||
|
-DWITH_INPUT_NDOF=$(usex ndof)
|
||||||
|
-DWITH_INTERNATIONAL=$(usex nls)
|
||||||
|
-DWITH_JACK=$(usex jack)
|
||||||
|
-DWITH_MEM_JEMALLOC=$(usex jemalloc)
|
||||||
|
-DWITH_MEM_VALGRIND=$(usex valgrind)
|
||||||
|
-DWITH_MOD_FLUID=$(usex fluid)
|
||||||
|
-DWITH_MOD_OCEANSIM=$(usex fftw)
|
||||||
|
-DWITH_NANOVDB=$(usex nanovdb)
|
||||||
|
-DWITH_OPENAL=$(usex openal)
|
||||||
|
-DWITH_OPENCOLLADA=$(usex collada)
|
||||||
|
-DWITH_OPENCOLORIO=$(usex color-management)
|
||||||
|
-DWITH_OPENIMAGEDENOISE=$(usex oidn)
|
||||||
|
-DWITH_OPENIMAGEIO=$(usex openimageio)
|
||||||
|
-DWITH_OPENMP=$(usex openmp)
|
||||||
|
-DWITH_OPENSUBDIV=$(usex opensubdiv)
|
||||||
|
-DWITH_OPENVDB=$(usex openvdb)
|
||||||
|
-DWITH_OPENVDB_BLOSC=$(usex openvdb)
|
||||||
|
-DWITH_POTRACE=$(usex potrace)
|
||||||
|
-DWITH_PUGIXML=$(usex pugixml)
|
||||||
|
-DWITH_PULSEAUDIO=$(usex pulseaudio)
|
||||||
|
-DWITH_PYTHON_INSTALL=$(usex system-python OFF ON)
|
||||||
|
-DWITH_PYTHON_INSTALL_NUMPY=$(usex system-numpy OFF ON)
|
||||||
|
-DWITH_SDL=$(usex sdl)
|
||||||
|
-DWITH_STATIC_LIBS=OFF
|
||||||
|
-DWITH_SYSTEM_EIGEN3=ON
|
||||||
|
-DWITH_SYSTEM_FREETYPE=ON
|
||||||
|
-DWITH_SYSTEM_GLEW=ON
|
||||||
|
-DWITH_SYSTEM_LZO=ON
|
||||||
|
-DWITH_TBB=$(usex tbb)
|
||||||
|
-DWITH_USD=OFF
|
||||||
|
-DWITH_XR_OPENXR=OFF
|
||||||
|
)
|
||||||
|
|
||||||
|
append-flags $(usex debug '-DDEBUG' '-DNDEBUG')
|
||||||
|
|
||||||
|
if tc-is-gcc ; then
|
||||||
|
# These options only exist when GCC is detected.
|
||||||
|
# We disable these to respect the user's choice of linker.
|
||||||
|
mycmakeargs+=(
|
||||||
|
-DWITH_LINKER_GOLD=OFF
|
||||||
|
-DWITH_LINKER_LLD=OFF
|
||||||
|
)
|
||||||
|
fi
|
||||||
|
|
||||||
|
cmake_src_configure
|
||||||
|
}
|
||||||
|
|
||||||
|
src_test() {
|
||||||
|
# A lot of tests needs to have access to the installed data files.
|
||||||
|
# So install them into the image directory now.
|
||||||
|
cmake_src_install
|
||||||
|
|
||||||
|
blender_get_version
|
||||||
|
# Define custom blender data/script file paths not be able to find them otherwise during testing.
|
||||||
|
# (Because the data is in the image directory and it will default to look in /usr/share)
|
||||||
|
export BLENDER_SYSTEM_SCRIPTS=${ED}/usr/share/blender/${BV}/scripts
|
||||||
|
export BLENDER_SYSTEM_DATAFILES=${ED}/usr/share/blender/${BV}/datafiles
|
||||||
|
|
||||||
|
# Sanity check that the script and datafile path is valid.
|
||||||
|
# If they are not vaild, blender will fallback to the default path which is not what we want.
|
||||||
|
[ -d "$BLENDER_SYSTEM_SCRIPTS" ] || die "The custom script path is invalid, fix the ebuild!"
|
||||||
|
[ -d "$BLENDER_SYSTEM_DATAFILES" ] || die "The custom datafiles path is invalid, fix the ebuild!"
|
||||||
|
|
||||||
|
cmake_src_test
|
||||||
|
|
||||||
|
# Clean up the image directory for src_install
|
||||||
|
rm -fr ${ED}/* || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
blender_get_version
|
||||||
|
|
||||||
|
# Pax mark blender for hardened support.
|
||||||
|
pax-mark m "${BUILD_DIR}"/bin/blender
|
||||||
|
|
||||||
|
if use standalone; then
|
||||||
|
dobin "${BUILD_DIR}"/bin/cycles
|
||||||
|
fi
|
||||||
|
|
||||||
|
cmake_src_install
|
||||||
|
|
||||||
|
if use man; then
|
||||||
|
# Slot the man page
|
||||||
|
mv "${ED}/usr/share/man/man1/blender.1" "${ED}/usr/share/man/man1/blender-${BV}.1" || die
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use doc; then
|
||||||
|
# Define custom blender data/script file paths. Otherwise Blender will not be able to find them during doc building.
|
||||||
|
# (Because the data is in the image directory and it will default to look in /usr/share)
|
||||||
|
export BLENDER_SYSTEM_SCRIPTS=${ED}/usr/share/blender/${BV}/scripts
|
||||||
|
export BLENDER_SYSTEM_DATAFILES=${ED}/usr/share/blender/${BV}/datafiles
|
||||||
|
|
||||||
|
# Workaround for binary drivers.
|
||||||
|
addpredict /dev/ati
|
||||||
|
addpredict /dev/dri
|
||||||
|
addpredict /dev/nvidiactl
|
||||||
|
|
||||||
|
einfo "Generating Blender C/C++ API docs ..."
|
||||||
|
cd "${CMAKE_USE_DIR}"/doc/doxygen || die
|
||||||
|
doxygen -u Doxyfile || die
|
||||||
|
doxygen || die "doxygen failed to build API docs."
|
||||||
|
|
||||||
|
cd "${CMAKE_USE_DIR}" || die
|
||||||
|
einfo "Generating (BPY) Blender Python API docs ..."
|
||||||
|
"${BUILD_DIR}"/bin/blender --background --python doc/python_api/sphinx_doc_gen.py -noaudio || die "sphinx failed."
|
||||||
|
|
||||||
|
cd "${CMAKE_USE_DIR}"/doc/python_api || die
|
||||||
|
sphinx-build sphinx-in BPY_API || die "sphinx failed."
|
||||||
|
|
||||||
|
docinto "html/API/python"
|
||||||
|
dodoc -r "${CMAKE_USE_DIR}"/doc/python_api/BPY_API/.
|
||||||
|
|
||||||
|
docinto "html/API/blender"
|
||||||
|
dodoc -r "${CMAKE_USE_DIR}"/doc/doxygen/html/.
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Fix doc installdir
|
||||||
|
docinto html
|
||||||
|
dodoc "${CMAKE_USE_DIR}"/release/text/readme.html
|
||||||
|
rm -r "${ED}"/usr/share/doc/blender || die
|
||||||
|
|
||||||
|
python_optimize "${ED}/usr/share/blender/${BV}/scripts"
|
||||||
|
|
||||||
|
mv "${ED}/usr/bin/blender-thumbnailer" "${ED}/usr/bin/blender-${BV}-thumbnailer" || die
|
||||||
|
mv "${ED}/usr/bin/blender" "${ED}/usr/bin/blender-${BV}" || die
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
elog
|
||||||
|
elog "Blender uses python integration. As such, may have some"
|
||||||
|
elog "inherent risks with running unknown python scripts."
|
||||||
|
elog
|
||||||
|
elog "It is recommended to change your blender temp directory"
|
||||||
|
elog "from /tmp to /home/user/tmp or another tmp file under your"
|
||||||
|
elog "home directory. This can be done by starting blender, then"
|
||||||
|
elog "changing the 'Temporary Files' directory in Blender preferences."
|
||||||
|
elog
|
||||||
|
ewarn
|
||||||
|
ewarn "This ebuild does not unbundle the massive amount of 3rd party"
|
||||||
|
ewarn "libraries which are shipped with blender. Note that"
|
||||||
|
ewarn "these have caused security issues in the past."
|
||||||
|
ewarn "If you are concerned about security, file a bug upstream:"
|
||||||
|
ewarn " https://developer.blender.org/"
|
||||||
|
ewarn
|
||||||
|
|
||||||
|
if ! use python_single_target_python3_10; then
|
||||||
|
elog "You are building Blender with a newer python version than"
|
||||||
|
elog "supported by this version upstream."
|
||||||
|
elog "If you experience breakages with e.g. plugins, please switch to"
|
||||||
|
elog "python_single_target_python3_10 instead."
|
||||||
|
elog "Bug: https://bugs.gentoo.org/737388"
|
||||||
|
elog
|
||||||
|
fi
|
||||||
|
|
||||||
|
xdg_icon_cache_update
|
||||||
|
xdg_mimeinfo_database_update
|
||||||
|
xdg_desktop_database_update
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postrm() {
|
||||||
|
xdg_icon_cache_update
|
||||||
|
xdg_mimeinfo_database_update
|
||||||
|
xdg_desktop_database_update
|
||||||
|
|
||||||
|
ewarn ""
|
||||||
|
ewarn "You may want to remove the following directory."
|
||||||
|
ewarn "~/.config/${PN}/${SLOT}/cache/"
|
||||||
|
ewarn "It may contain extra render kernels not tracked by portage"
|
||||||
|
ewarn ""
|
||||||
|
}
|
@ -1,58 +0,0 @@
|
|||||||
From cebeb90a87105cd6e35bcb357d53cc04c828ca21 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Sergei Trofimovich <slyfox@gentoo.org>
|
|
||||||
Date: Sun, 25 Oct 2020 18:09:21 +0000
|
|
||||||
Subject: [PATCH] configure.ac: fix `--with-linux-input` handling with upcoming
|
|
||||||
autoconf-2.70
|
|
||||||
|
|
||||||
Upcoming autoconf-2.70 exposes deficiency in configure.ac:
|
|
||||||
|
|
||||||
```
|
|
||||||
$ autoconf-2.70_beta2 && ./configure --host=x86_64-pc-linux-gnu
|
|
||||||
./configure: line 1430: 5: Bad file descriptor
|
|
||||||
checking whether is declared... ./configure: line 1432: ${+y}: bad
|
|
||||||
```
|
|
||||||
|
|
||||||
It happens because macros are called with parameters using insufficient quoting.
|
|
||||||
|
|
||||||
More details at https://lists.gnu.org/archive/html/bug-autoconf/2020-10/msg00027.html
|
|
||||||
|
|
||||||
The fix only amends `--with-linux-input`. Other cases of underquoting
|
|
||||||
will need to be handled separately.
|
|
||||||
|
|
||||||
Fix-by: Zack Weinberg
|
|
||||||
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
|
|
||||||
---
|
|
||||||
configure.ac | 17 ++++++++---------
|
|
||||||
1 file changed, 8 insertions(+), 9 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/configure.ac b/configure.ac
|
|
||||||
index 96312f706e..63b85be07a 100644
|
|
||||||
--- a/configure.ac
|
|
||||||
+++ b/configure.ac
|
|
||||||
@@ -2135,15 +2135,14 @@ fi
|
|
||||||
AC_ARG_WITH(linux-input, [ --without-linux-input don't build linux input event controller module])
|
|
||||||
|
|
||||||
have_linux_input="no (linux input support disabled)"
|
|
||||||
-if test "x$with_linux_input" != "xno"; then
|
|
||||||
- AC_CHECK_HEADER(linux/input.h,
|
|
||||||
- AC_CHECK_DECL(KEY_OK,
|
|
||||||
- have_linux_input=yes,
|
|
||||||
- have_linux_input="no (needs Linux 2.6)",
|
|
||||||
- [#include <linux/input.h>]))
|
|
||||||
-fi
|
|
||||||
-
|
|
||||||
-AM_CONDITIONAL(HAVE_LINUX_INPUT, test "x$have_linux_input" = xyes)
|
|
||||||
+AS_IF([test "x$with_linux_input" != "xno"],
|
|
||||||
+ [AC_CHECK_HEADER([linux/input.h],
|
|
||||||
+ [AC_CHECK_DECL([KEY_OK],
|
|
||||||
+ [have_linux_input=yes],
|
|
||||||
+ [have_linux_input="no (needs Linux 2.6)"],
|
|
||||||
+ [#include <linux/input.h>])])])
|
|
||||||
+
|
|
||||||
+AM_CONDITIONAL([HAVE_LINUX_INPUT], [test "x$have_linux_input" = xyes])
|
|
||||||
|
|
||||||
|
|
||||||
###############################
|
|
||||||
--
|
|
||||||
GitLab
|
|
||||||
|
|
@ -1,212 +0,0 @@
|
|||||||
# Copyright 1999-2022 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=7
|
|
||||||
GNOME2_EAUTORECONF=yes
|
|
||||||
WANT_AUTOMAKE=
|
|
||||||
|
|
||||||
inherit autotools gnome2 toolchain-funcs virtualx
|
|
||||||
|
|
||||||
DESCRIPTION="GNU Image Manipulation Program"
|
|
||||||
HOMEPAGE="https://www.gimp.org/"
|
|
||||||
SRC_URI="mirror://gimp/v2.10/${P}.tar.bz2"
|
|
||||||
LICENSE="GPL-3 LGPL-3"
|
|
||||||
SLOT="0/2"
|
|
||||||
KEYWORDS="~alpha amd64 ~arm arm64 ~hppa ~ia64 ~ppc ppc64 x86"
|
|
||||||
|
|
||||||
IUSE="aalib alsa aqua debug doc gnome heif jpeg2k mng openexr postscript udev unwind vector-icons webp wmf xpm cpu_flags_ppc_altivec cpu_flags_x86_mmx cpu_flags_x86_sse"
|
|
||||||
|
|
||||||
RESTRICT="!test? ( test )"
|
|
||||||
|
|
||||||
COMMON_DEPEND="
|
|
||||||
>=app-text/poppler-0.50[cairo]
|
|
||||||
>=app-text/poppler-data-0.4.7
|
|
||||||
>=dev-libs/atk-2.2.0
|
|
||||||
>=dev-libs/glib-2.56.2:2
|
|
||||||
>=dev-libs/json-glib-1.2.6
|
|
||||||
dev-libs/libxml2:2
|
|
||||||
dev-libs/libxslt
|
|
||||||
>=gnome-base/librsvg-2.40.6:2
|
|
||||||
>=media-gfx/mypaint-brushes-2.0.2:=
|
|
||||||
>=media-libs/babl-0.1.78
|
|
||||||
>=media-libs/fontconfig-2.12.4
|
|
||||||
>=media-libs/freetype-2.1.7
|
|
||||||
>=media-libs/gegl-0.4.26:0.4[cairo]
|
|
||||||
<media-libs/gegl-0.4.28:0.4
|
|
||||||
>=media-libs/gexiv2-0.10.6
|
|
||||||
>=media-libs/harfbuzz-0.9.19:=
|
|
||||||
>=media-libs/lcms-2.8:2
|
|
||||||
>=media-libs/libmypaint-1.6.1:=
|
|
||||||
>=media-libs/libpng-1.6.25:0=
|
|
||||||
>=media-libs/tiff-3.5.7:0
|
|
||||||
net-libs/glib-networking[ssl]
|
|
||||||
sys-libs/zlib
|
|
||||||
virtual/jpeg
|
|
||||||
>=x11-libs/cairo-1.12.2
|
|
||||||
>=x11-libs/gdk-pixbuf-2.31:2
|
|
||||||
>=x11-libs/gtk+-2.24.32:2
|
|
||||||
x11-libs/libXcursor
|
|
||||||
>=x11-libs/pango-1.29.4
|
|
||||||
aalib? ( media-libs/aalib )
|
|
||||||
alsa? ( >=media-libs/alsa-lib-1.0.0 )
|
|
||||||
aqua? ( >=x11-libs/gtk-mac-integration-2.0.0 )
|
|
||||||
heif? ( >=media-libs/libheif-1.3.2:= )
|
|
||||||
jpeg2k? ( >=media-libs/openjpeg-2.1.0:2= )
|
|
||||||
mng? ( media-libs/libmng:= )
|
|
||||||
openexr? ( >=media-libs/openexr-1.6.1:= )
|
|
||||||
postscript? ( app-text/ghostscript-gpl )
|
|
||||||
udev? ( dev-libs/libgudev:= )
|
|
||||||
unwind? ( >=sys-libs/libunwind-1.1.0:= )
|
|
||||||
webp? ( >=media-libs/libwebp-0.6.0:= )
|
|
||||||
wmf? ( >=media-libs/libwmf-0.2.8 )
|
|
||||||
xpm? ( x11-libs/libXpm )
|
|
||||||
"
|
|
||||||
|
|
||||||
RDEPEND="
|
|
||||||
${COMMON_DEPEND}
|
|
||||||
x11-themes/hicolor-icon-theme
|
|
||||||
gnome? ( gnome-base/gvfs )
|
|
||||||
"
|
|
||||||
|
|
||||||
DEPEND="
|
|
||||||
${COMMON_DEPEND}
|
|
||||||
>=dev-lang/perl-5.10.0
|
|
||||||
dev-libs/appstream-glib
|
|
||||||
dev-util/gtk-update-icon-cache
|
|
||||||
>=dev-util/intltool-0.40.1
|
|
||||||
>=sys-devel/gettext-0.19
|
|
||||||
>=sys-devel/libtool-2.2
|
|
||||||
virtual/pkgconfig
|
|
||||||
"
|
|
||||||
|
|
||||||
DOCS=( "AUTHORS" "ChangeLog" "HACKING" "NEWS" "README" "README.i18n" )
|
|
||||||
|
|
||||||
# Bugs 685210 (and duplicate 691070)
|
|
||||||
PATCHES=(
|
|
||||||
"${FILESDIR}/${PN}-2.10_fix_test-appdata.patch"
|
|
||||||
"${FILESDIR}/${PN}-2.99.2_fix_autoconf-2.70.patch"
|
|
||||||
)
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
sed -i -e 's/mypaint-brushes-1.0/mypaint-brushes-2.0/' configure.ac || die #737794
|
|
||||||
|
|
||||||
sed -i -e 's/== "xquartz"/= "xquartz"/' configure.ac || die #494864
|
|
||||||
sed 's:-DGIMP_DISABLE_DEPRECATED:-DGIMP_protect_DISABLE_DEPRECATED:g' -i configure.ac || die #615144
|
|
||||||
|
|
||||||
gnome2_src_prepare # calls eautoreconf
|
|
||||||
|
|
||||||
sed 's:-DGIMP_protect_DISABLE_DEPRECATED:-DGIMP_DISABLE_DEPRECATED:g' -i configure || die #615144
|
|
||||||
fgrep -q GIMP_DISABLE_DEPRECATED configure || die #615144, self-test
|
|
||||||
|
|
||||||
export CC_FOR_BUILD="$(tc-getBUILD_CC)"
|
|
||||||
}
|
|
||||||
|
|
||||||
_adjust_sandbox() {
|
|
||||||
# Bugs #569738 and #591214
|
|
||||||
local nv
|
|
||||||
for nv in /dev/nvidia-uvm /dev/nvidiactl /dev/nvidia{0..9} ; do
|
|
||||||
# We do not check for existence as they may show up later
|
|
||||||
# https://bugs.gentoo.org/show_bug.cgi?id=569738#c21
|
|
||||||
addwrite "${nv}"
|
|
||||||
done
|
|
||||||
|
|
||||||
addwrite /dev/dri/ # bugs #574038 and #684886
|
|
||||||
addwrite /dev/ati/ # bug #589198
|
|
||||||
addwrite /proc/mtrr # bug #589198
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
_adjust_sandbox
|
|
||||||
|
|
||||||
local myconf=(
|
|
||||||
GEGL="${EPREFIX}"/usr/bin/gegl-0.4
|
|
||||||
GDBUS_CODEGEN="${EPREFIX}"/bin/false
|
|
||||||
|
|
||||||
--enable-default-binary
|
|
||||||
|
|
||||||
--disable-check-update
|
|
||||||
--disable-python
|
|
||||||
--enable-mp
|
|
||||||
--with-appdata-test
|
|
||||||
--with-bug-report-url=https://bugs.gentoo.org/
|
|
||||||
--with-xmc
|
|
||||||
--without-libbacktrace
|
|
||||||
--without-webkit
|
|
||||||
--without-xvfb-run
|
|
||||||
$(use_enable cpu_flags_ppc_altivec altivec)
|
|
||||||
$(use_enable cpu_flags_x86_mmx mmx)
|
|
||||||
$(use_enable cpu_flags_x86_sse sse)
|
|
||||||
$(use_enable vector-icons)
|
|
||||||
$(use_with aalib aa)
|
|
||||||
$(use_with alsa)
|
|
||||||
$(use_with !aqua x)
|
|
||||||
$(use_with heif libheif)
|
|
||||||
$(use_with jpeg2k jpeg2000)
|
|
||||||
$(use_with mng libmng)
|
|
||||||
$(use_with openexr)
|
|
||||||
$(use_with postscript gs)
|
|
||||||
$(use_with udev gudev)
|
|
||||||
$(use_with unwind libunwind)
|
|
||||||
$(use_with webp)
|
|
||||||
$(use_with wmf)
|
|
||||||
$(use_with xpm libxpm)
|
|
||||||
)
|
|
||||||
|
|
||||||
gnome2_src_configure "${myconf[@]}"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
export XDG_DATA_DIRS="${EPREFIX}"/usr/share # bug 587004
|
|
||||||
gnome2_src_compile
|
|
||||||
}
|
|
||||||
|
|
||||||
# for https://bugs.gentoo.org/664938
|
|
||||||
_rename_plugins() {
|
|
||||||
einfo 'Renaming plug-ins to not collide with pre-2.10.6 file layout (bug #664938)...'
|
|
||||||
local prepend=gimp-org-
|
|
||||||
(
|
|
||||||
cd "${ED}"/usr/$(get_libdir)/gimp/2.0/plug-ins || die
|
|
||||||
for plugin_slash in $(ls -d1 */); do
|
|
||||||
plugin=${plugin_slash%/}
|
|
||||||
if [[ -f ${plugin}/${plugin} ]]; then
|
|
||||||
# NOTE: Folder and file name need to match for Gimp to load that plug-in
|
|
||||||
# so "file-svg/file-svg" becomes "${prepend}file-svg/${prepend}file-svg"
|
|
||||||
mv ${plugin}/{,${prepend}}${plugin} || die
|
|
||||||
mv {,${prepend}}${plugin} || die
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
src_test() {
|
|
||||||
virtx emake check
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
gnome2_src_install
|
|
||||||
|
|
||||||
# Workaround for bug #321111 to give GIMP the least
|
|
||||||
# precedence on PDF documents by default
|
|
||||||
mv "${ED}"/usr/share/applications/{,zzz-}gimp.desktop || die
|
|
||||||
|
|
||||||
find "${D}" -name '*.la' -type f -delete || die
|
|
||||||
|
|
||||||
# Prevent dead symlink gimp-console.1 from downstream man page compression (bug #433527)
|
|
||||||
local gimp_app_version=$(ver_cut 1-2)
|
|
||||||
mv "${ED}"/usr/share/man/man1/gimp-console{-${gimp_app_version},}.1 || die
|
|
||||||
|
|
||||||
# Remove gimp devel-docs html files if user doesn't need it
|
|
||||||
if ! use doc; then
|
|
||||||
rm -r "${ED}"/usr/share/gtk-doc || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
_rename_plugins || die
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
gnome2_pkg_postinst
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postrm() {
|
|
||||||
gnome2_pkg_postrm
|
|
||||||
}
|
|
@ -1,211 +0,0 @@
|
|||||||
# Copyright 1999-2022 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=7
|
|
||||||
GNOME2_EAUTORECONF=yes
|
|
||||||
WANT_AUTOMAKE=
|
|
||||||
|
|
||||||
inherit autotools gnome2 toolchain-funcs virtualx
|
|
||||||
|
|
||||||
DESCRIPTION="GNU Image Manipulation Program"
|
|
||||||
HOMEPAGE="https://www.gimp.org/"
|
|
||||||
SRC_URI="mirror://gimp/v2.10/${P}.tar.bz2"
|
|
||||||
LICENSE="GPL-3 LGPL-3"
|
|
||||||
SLOT="0/2"
|
|
||||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~x86"
|
|
||||||
|
|
||||||
IUSE="aalib alsa aqua debug doc gnome heif jpeg2k mng openexr postscript udev unwind vector-icons webp wmf xpm cpu_flags_ppc_altivec cpu_flags_x86_mmx cpu_flags_x86_sse"
|
|
||||||
|
|
||||||
RESTRICT="!test? ( test )"
|
|
||||||
|
|
||||||
COMMON_DEPEND="
|
|
||||||
>=app-text/poppler-0.50[cairo]
|
|
||||||
>=app-text/poppler-data-0.4.7
|
|
||||||
>=dev-libs/atk-2.2.0
|
|
||||||
>=dev-libs/glib-2.56.2:2
|
|
||||||
>=dev-libs/json-glib-1.2.6
|
|
||||||
dev-libs/libxml2:2
|
|
||||||
dev-libs/libxslt
|
|
||||||
>=gnome-base/librsvg-2.40.6:2
|
|
||||||
>=media-gfx/mypaint-brushes-2.0.2:=
|
|
||||||
>=media-libs/babl-0.1.86
|
|
||||||
>=media-libs/fontconfig-2.12.4
|
|
||||||
>=media-libs/freetype-2.1.7
|
|
||||||
>=media-libs/gegl-0.4.30:0.4[cairo]
|
|
||||||
>=media-libs/gexiv2-0.10.6
|
|
||||||
>=media-libs/harfbuzz-0.9.19:=
|
|
||||||
>=media-libs/lcms-2.8:2
|
|
||||||
>=media-libs/libmypaint-1.6.1:=
|
|
||||||
>=media-libs/libpng-1.6.25:0=
|
|
||||||
>=media-libs/tiff-3.5.7:0
|
|
||||||
net-libs/glib-networking[ssl]
|
|
||||||
sys-libs/zlib
|
|
||||||
virtual/jpeg
|
|
||||||
>=x11-libs/cairo-1.12.2
|
|
||||||
>=x11-libs/gdk-pixbuf-2.31:2
|
|
||||||
>=x11-libs/gtk+-2.24.32:2
|
|
||||||
x11-libs/libXcursor
|
|
||||||
>=x11-libs/pango-1.29.4
|
|
||||||
aalib? ( media-libs/aalib )
|
|
||||||
alsa? ( >=media-libs/alsa-lib-1.0.0 )
|
|
||||||
aqua? ( >=x11-libs/gtk-mac-integration-2.0.0 )
|
|
||||||
heif? ( >=media-libs/libheif-1.9.1:= )
|
|
||||||
jpeg2k? ( >=media-libs/openjpeg-2.1.0:2= )
|
|
||||||
mng? ( media-libs/libmng:= )
|
|
||||||
openexr? ( >=media-libs/openexr-1.6.1:= )
|
|
||||||
postscript? ( app-text/ghostscript-gpl )
|
|
||||||
udev? ( dev-libs/libgudev:= )
|
|
||||||
unwind? ( >=sys-libs/libunwind-1.1.0:= )
|
|
||||||
webp? ( >=media-libs/libwebp-0.6.0:= )
|
|
||||||
wmf? ( >=media-libs/libwmf-0.2.8 )
|
|
||||||
xpm? ( x11-libs/libXpm )
|
|
||||||
"
|
|
||||||
|
|
||||||
RDEPEND="
|
|
||||||
${COMMON_DEPEND}
|
|
||||||
x11-themes/hicolor-icon-theme
|
|
||||||
gnome? ( gnome-base/gvfs )
|
|
||||||
"
|
|
||||||
|
|
||||||
DEPEND="
|
|
||||||
${COMMON_DEPEND}
|
|
||||||
>=dev-lang/perl-5.10.0
|
|
||||||
dev-libs/appstream-glib
|
|
||||||
dev-util/gtk-update-icon-cache
|
|
||||||
>=dev-util/intltool-0.40.1
|
|
||||||
>=sys-devel/gettext-0.19
|
|
||||||
>=sys-devel/libtool-2.2
|
|
||||||
virtual/pkgconfig
|
|
||||||
"
|
|
||||||
|
|
||||||
DOCS=( "AUTHORS" "ChangeLog" "HACKING" "NEWS" "README" "README.i18n" )
|
|
||||||
|
|
||||||
# Bugs 685210 (and duplicate 691070)
|
|
||||||
PATCHES=(
|
|
||||||
"${FILESDIR}/${PN}-2.10_fix_test-appdata.patch"
|
|
||||||
)
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
sed -i -e 's/mypaint-brushes-1.0/mypaint-brushes-2.0/' configure.ac || die #737794
|
|
||||||
|
|
||||||
sed -i -e 's/== "xquartz"/= "xquartz"/' configure.ac || die #494864
|
|
||||||
sed 's:-DGIMP_DISABLE_DEPRECATED:-DGIMP_protect_DISABLE_DEPRECATED:g' -i configure.ac || die #615144
|
|
||||||
|
|
||||||
gnome2_src_prepare # calls eautoreconf
|
|
||||||
|
|
||||||
sed 's:-DGIMP_protect_DISABLE_DEPRECATED:-DGIMP_DISABLE_DEPRECATED:g' -i configure || die #615144
|
|
||||||
fgrep -q GIMP_DISABLE_DEPRECATED configure || die #615144, self-test
|
|
||||||
|
|
||||||
export CC_FOR_BUILD="$(tc-getBUILD_CC)"
|
|
||||||
}
|
|
||||||
|
|
||||||
_adjust_sandbox() {
|
|
||||||
# Bugs #569738 and #591214
|
|
||||||
local nv
|
|
||||||
for nv in /dev/nvidia-uvm /dev/nvidiactl /dev/nvidia{0..9} ; do
|
|
||||||
# We do not check for existence as they may show up later
|
|
||||||
# https://bugs.gentoo.org/show_bug.cgi?id=569738#c21
|
|
||||||
addwrite "${nv}"
|
|
||||||
done
|
|
||||||
|
|
||||||
addwrite /dev/dri/ # bugs #574038 and #684886
|
|
||||||
addwrite /dev/ati/ # bug #589198
|
|
||||||
addwrite /proc/mtrr # bug #589198
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
_adjust_sandbox
|
|
||||||
|
|
||||||
local myconf=(
|
|
||||||
GEGL="${EPREFIX}"/usr/bin/gegl-0.4
|
|
||||||
GDBUS_CODEGEN="${EPREFIX}"/bin/false
|
|
||||||
|
|
||||||
--enable-default-binary
|
|
||||||
|
|
||||||
--disable-check-update
|
|
||||||
--disable-python
|
|
||||||
--enable-mp
|
|
||||||
--with-appdata-test
|
|
||||||
--with-bug-report-url=https://bugs.gentoo.org/
|
|
||||||
--with-xmc
|
|
||||||
--without-libbacktrace
|
|
||||||
--without-webkit
|
|
||||||
--without-xvfb-run
|
|
||||||
$(use_enable cpu_flags_ppc_altivec altivec)
|
|
||||||
$(use_enable cpu_flags_x86_mmx mmx)
|
|
||||||
$(use_enable cpu_flags_x86_sse sse)
|
|
||||||
$(use_enable debug)
|
|
||||||
$(use_enable vector-icons)
|
|
||||||
$(use_with aalib aa)
|
|
||||||
$(use_with alsa)
|
|
||||||
$(use_with !aqua x)
|
|
||||||
$(use_with heif libheif)
|
|
||||||
$(use_with jpeg2k jpeg2000)
|
|
||||||
$(use_with mng libmng)
|
|
||||||
$(use_with openexr)
|
|
||||||
$(use_with postscript gs)
|
|
||||||
$(use_with udev gudev)
|
|
||||||
$(use_with unwind libunwind)
|
|
||||||
$(use_with webp)
|
|
||||||
$(use_with wmf)
|
|
||||||
$(use_with xpm libxpm)
|
|
||||||
)
|
|
||||||
|
|
||||||
gnome2_src_configure "${myconf[@]}"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
export XDG_DATA_DIRS="${EPREFIX}"/usr/share # bug 587004
|
|
||||||
gnome2_src_compile
|
|
||||||
}
|
|
||||||
|
|
||||||
# for https://bugs.gentoo.org/664938
|
|
||||||
_rename_plugins() {
|
|
||||||
einfo 'Renaming plug-ins to not collide with pre-2.10.6 file layout (bug #664938)...'
|
|
||||||
local prepend=gimp-org-
|
|
||||||
(
|
|
||||||
cd "${ED}"/usr/$(get_libdir)/gimp/2.0/plug-ins || die
|
|
||||||
for plugin_slash in $(ls -d1 */); do
|
|
||||||
plugin=${plugin_slash%/}
|
|
||||||
if [[ -f ${plugin}/${plugin} ]]; then
|
|
||||||
# NOTE: Folder and file name need to match for Gimp to load that plug-in
|
|
||||||
# so "file-svg/file-svg" becomes "${prepend}file-svg/${prepend}file-svg"
|
|
||||||
mv ${plugin}/{,${prepend}}${plugin} || die
|
|
||||||
mv {,${prepend}}${plugin} || die
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
src_test() {
|
|
||||||
virtx emake check
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
gnome2_src_install
|
|
||||||
|
|
||||||
# Workaround for bug #321111 to give GIMP the least
|
|
||||||
# precedence on PDF documents by default
|
|
||||||
mv "${ED}"/usr/share/applications/{,zzz-}gimp.desktop || die
|
|
||||||
|
|
||||||
find "${D}" -name '*.la' -type f -delete || die
|
|
||||||
|
|
||||||
# Prevent dead symlink gimp-console.1 from downstream man page compression (bug #433527)
|
|
||||||
local gimp_app_version=$(ver_cut 1-2)
|
|
||||||
mv "${ED}"/usr/share/man/man1/gimp-console{-${gimp_app_version},}.1 || die
|
|
||||||
|
|
||||||
# Remove gimp devel-docs html files if user doesn't need it
|
|
||||||
if ! use doc; then
|
|
||||||
rm -r "${ED}"/usr/share/gtk-doc || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
_rename_plugins || die
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
gnome2_pkg_postinst
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postrm() {
|
|
||||||
gnome2_pkg_postrm
|
|
||||||
}
|
|
@ -1,262 +0,0 @@
|
|||||||
# Copyright 1999-2022 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=7
|
|
||||||
|
|
||||||
LUA_COMPAT=( luajit )
|
|
||||||
PYTHON_COMPAT=( python3_{8..10} )
|
|
||||||
GNOME2_EAUTORECONF=yes
|
|
||||||
VALA_MIN_API_VERSION="0.44"
|
|
||||||
VALA_USE_DEPEND=vapigen
|
|
||||||
|
|
||||||
inherit gnome2 lua-single python-single-r1 toolchain-funcs vala virtualx
|
|
||||||
|
|
||||||
DESCRIPTION="GNU Image Manipulation Program"
|
|
||||||
HOMEPAGE="https://www.gimp.org/"
|
|
||||||
SRC_URI="mirror://gimp/v2.99/${P}.tar.bz2"
|
|
||||||
LICENSE="GPL-3 LGPL-3"
|
|
||||||
SLOT="0/3"
|
|
||||||
|
|
||||||
IUSE="aalib alsa aqua doc gnome heif javascript jpeg2k lua mng openexr postscript python udev unwind vala vector-icons webp wmf xpm cpu_flags_ppc_altivec cpu_flags_x86_mmx cpu_flags_x86_sse"
|
|
||||||
REQUIRED_USE="
|
|
||||||
lua? ( ${LUA_REQUIRED_USE} )
|
|
||||||
python? ( ${PYTHON_REQUIRED_USE} )
|
|
||||||
"
|
|
||||||
|
|
||||||
RESTRICT="!test? ( test )"
|
|
||||||
|
|
||||||
# media-libs/{babl,gegl} are required to be built with USE="introspection"
|
|
||||||
# to fix the compilation checking of /usr/share/gir-1.0/{Babl-0.1gir,Gegl-0.4.gir}
|
|
||||||
COMMON_DEPEND="
|
|
||||||
>=app-text/poppler-0.90.1[cairo]
|
|
||||||
>=app-text/poppler-data-0.4.9
|
|
||||||
>=dev-libs/appstream-glib-0.7.16
|
|
||||||
>=dev-libs/atk-2.34.1
|
|
||||||
>=dev-libs/glib-2.62.6:2
|
|
||||||
>=dev-libs/json-glib-1.4.4
|
|
||||||
dev-libs/libxml2:2
|
|
||||||
dev-libs/libxslt
|
|
||||||
>=gnome-base/librsvg-2.40.21:2
|
|
||||||
>=media-gfx/mypaint-brushes-2.0.2:=
|
|
||||||
>=media-libs/babl-0.1.86[introspection,lcms,vala?]
|
|
||||||
>=media-libs/fontconfig-2.12.6
|
|
||||||
>=media-libs/freetype-2.10.2
|
|
||||||
>=media-libs/gegl-0.4.30:0.4[cairo,introspection,lcms,vala?]
|
|
||||||
>=media-libs/gexiv2-0.10.10
|
|
||||||
>=media-libs/harfbuzz-2.6.5:=
|
|
||||||
>=media-libs/lcms-2.9:2
|
|
||||||
>=media-libs/libmypaint-1.6.1:=
|
|
||||||
>=media-libs/libpng-1.6.37:0=
|
|
||||||
>=media-libs/tiff-4.1.0:0
|
|
||||||
net-libs/glib-networking[ssl]
|
|
||||||
sys-libs/zlib
|
|
||||||
virtual/jpeg
|
|
||||||
>=x11-libs/cairo-1.16.0
|
|
||||||
>=x11-libs/gdk-pixbuf-2.40.0:2[introspection]
|
|
||||||
>=x11-libs/gtk+-3.24.16:3[introspection]
|
|
||||||
x11-libs/libXcursor
|
|
||||||
>=x11-libs/pango-1.44.7
|
|
||||||
aalib? ( media-libs/aalib )
|
|
||||||
alsa? ( >=media-libs/alsa-lib-1.0.0 )
|
|
||||||
aqua? ( >=x11-libs/gtk-mac-integration-2.0.0 )
|
|
||||||
heif? ( >=media-libs/libheif-1.9.1:= )
|
|
||||||
javascript? ( dev-libs/gjs )
|
|
||||||
jpeg2k? ( >=media-libs/openjpeg-2.3.1:2= )
|
|
||||||
lua? (
|
|
||||||
${LUA_DEPS}
|
|
||||||
$(lua_gen_cond_dep '
|
|
||||||
dev-lua/lgi[${LUA_USEDEP}]
|
|
||||||
')
|
|
||||||
)
|
|
||||||
mng? ( media-libs/libmng:= )
|
|
||||||
openexr? ( >=media-libs/openexr-2.3.0:= )
|
|
||||||
postscript? ( app-text/ghostscript-gpl )
|
|
||||||
python? (
|
|
||||||
${PYTHON_DEPS}
|
|
||||||
$(python_gen_cond_dep '
|
|
||||||
>=dev-python/pygobject-3.0:3[${PYTHON_USEDEP}]
|
|
||||||
')
|
|
||||||
)
|
|
||||||
udev? ( >=dev-libs/libgudev-167:= )
|
|
||||||
unwind? ( >=sys-libs/libunwind-1.1.0:= )
|
|
||||||
webp? ( >=media-libs/libwebp-0.6.0:= )
|
|
||||||
wmf? ( >=media-libs/libwmf-0.2.8 )
|
|
||||||
xpm? ( x11-libs/libXpm )
|
|
||||||
"
|
|
||||||
|
|
||||||
RDEPEND="
|
|
||||||
${COMMON_DEPEND}
|
|
||||||
x11-themes/hicolor-icon-theme
|
|
||||||
gnome? ( gnome-base/gvfs )
|
|
||||||
"
|
|
||||||
|
|
||||||
DEPEND="
|
|
||||||
${COMMON_DEPEND}
|
|
||||||
>=dev-lang/perl-5.30.3
|
|
||||||
dev-util/gdbus-codegen
|
|
||||||
dev-util/gtk-update-icon-cache
|
|
||||||
>=dev-util/intltool-0.51.0
|
|
||||||
>=sys-devel/autoconf-2.54
|
|
||||||
>=sys-devel/automake-1.11
|
|
||||||
>=sys-devel/gettext-0.21
|
|
||||||
>=sys-devel/libtool-2.4.6
|
|
||||||
doc? (
|
|
||||||
app-text/yelp-tools
|
|
||||||
dev-libs/gobject-introspection[doctool]
|
|
||||||
>=dev-util/gtk-doc-1.32
|
|
||||||
dev-util/gtk-doc-am
|
|
||||||
)
|
|
||||||
vala? ( $(vala_depend) )
|
|
||||||
"
|
|
||||||
|
|
||||||
# TODO: there are probably more atoms in DEPEND which should be in BDEPEND now
|
|
||||||
BDEPEND="virtual/pkgconfig"
|
|
||||||
|
|
||||||
DOCS=( "AUTHORS" "HACKING" "NEWS" "README" "README.i18n" )
|
|
||||||
|
|
||||||
# Bugs 685210 (and duplicate 691070)
|
|
||||||
PATCHES=(
|
|
||||||
"${FILESDIR}/${PN}-2.10_fix_test-appdata.patch"
|
|
||||||
)
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
use lua && lua-single_pkg_setup
|
|
||||||
|
|
||||||
if use python; then
|
|
||||||
python-single-r1_pkg_setup
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
sed -i -e 's/mypaint-brushes-1.0/mypaint-brushes-2.0/' configure.ac || die #737794
|
|
||||||
|
|
||||||
sed -i -e 's/== "xquartz"/= "xquartz"/' configure.ac || die #494864
|
|
||||||
sed 's:-DGIMP_DISABLE_DEPRECATED:-DGIMP_protect_DISABLE_DEPRECATED:g' -i configure.ac || die #615144
|
|
||||||
|
|
||||||
gnome2_src_prepare # calls eautoreconf
|
|
||||||
|
|
||||||
use vala && vala_src_prepare
|
|
||||||
|
|
||||||
sed 's:-DGIMP_protect_DISABLE_DEPRECATED:-DGIMP_DISABLE_DEPRECATED:g' -i configure || die #615144
|
|
||||||
fgrep -q GIMP_DISABLE_DEPRECATED configure || die #615144, self-test
|
|
||||||
|
|
||||||
export CC_FOR_BUILD="$(tc-getBUILD_CC)"
|
|
||||||
}
|
|
||||||
|
|
||||||
_adjust_sandbox() {
|
|
||||||
# Bugs #569738 and #591214
|
|
||||||
local nv
|
|
||||||
for nv in /dev/nvidia-uvm /dev/nvidiactl /dev/nvidia{0..9} ; do
|
|
||||||
# We do not check for existence as they may show up later
|
|
||||||
# https://bugs.gentoo.org/show_bug.cgi?id=569738#c21
|
|
||||||
addwrite "${nv}"
|
|
||||||
done
|
|
||||||
|
|
||||||
addwrite /dev/dri/ # bugs #574038 and #684886
|
|
||||||
addwrite /dev/ati/ # bug #589198
|
|
||||||
addwrite /proc/mtrr # bug #589198
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
_adjust_sandbox
|
|
||||||
|
|
||||||
local myconf=(
|
|
||||||
GEGL="${EPREFIX}"/usr/bin/gegl-0.4
|
|
||||||
GDBUS_CODEGEN="${EPREFIX}"/usr/bin/gdbus-codegen
|
|
||||||
|
|
||||||
--enable-default-binary
|
|
||||||
|
|
||||||
--disable-check-update
|
|
||||||
--enable-mp
|
|
||||||
--with-appdata-test
|
|
||||||
--with-bug-report-url=https://bugs.gentoo.org/
|
|
||||||
--with-xmc
|
|
||||||
--without-libbacktrace
|
|
||||||
--without-webkit
|
|
||||||
--without-xvfb-run
|
|
||||||
$(use_enable cpu_flags_ppc_altivec altivec)
|
|
||||||
$(use_enable cpu_flags_x86_mmx mmx)
|
|
||||||
$(use_enable cpu_flags_x86_sse sse)
|
|
||||||
$(use_enable doc gtk_doc)
|
|
||||||
$(use_enable doc g-ir-doc)
|
|
||||||
$(use_enable vector-icons)
|
|
||||||
$(use_with aalib aa)
|
|
||||||
$(use_with alsa)
|
|
||||||
$(use_with !aqua x)
|
|
||||||
$(use_with heif libheif)
|
|
||||||
$(use_with javascript)
|
|
||||||
$(use_with jpeg2k jpeg2000)
|
|
||||||
$(use_with lua)
|
|
||||||
$(use_with mng libmng)
|
|
||||||
$(use_with openexr)
|
|
||||||
$(use_with postscript gs)
|
|
||||||
$(use_with python)
|
|
||||||
$(use_with udev gudev)
|
|
||||||
$(use_with unwind libunwind)
|
|
||||||
$(use_with vala)
|
|
||||||
$(use_with webp)
|
|
||||||
$(use_with wmf)
|
|
||||||
$(use_with xpm libxpm)
|
|
||||||
)
|
|
||||||
|
|
||||||
gnome2_src_configure "${myconf[@]}"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
export XDG_DATA_DIRS="${EPREFIX}"/usr/share # bug 587004
|
|
||||||
gnome2_src_compile
|
|
||||||
}
|
|
||||||
|
|
||||||
# for https://bugs.gentoo.org/664938
|
|
||||||
_rename_plugins() {
|
|
||||||
einfo 'Renaming plug-ins to not collide with pre-2.10.6 file layout (bug #664938)...'
|
|
||||||
local prepend=gimp-org-
|
|
||||||
(
|
|
||||||
cd "${ED}"/usr/$(get_libdir)/gimp/2.99/plug-ins || exit 1
|
|
||||||
for plugin_slash in $(ls -d1 */); do
|
|
||||||
plugin=${plugin_slash%/}
|
|
||||||
if [[ -f ${plugin}/${plugin} ]]; then
|
|
||||||
# NOTE: Folder and file name need to match for Gimp to load that plug-in
|
|
||||||
# so "file-svg/file-svg" becomes "${prepend}file-svg/${prepend}file-svg"
|
|
||||||
mv ${plugin}/{,${prepend}}${plugin} || exit 1
|
|
||||||
mv {,${prepend}}${plugin} || exit 1
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
src_test() {
|
|
||||||
virtx emake check
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
gnome2_src_install
|
|
||||||
|
|
||||||
if use python; then
|
|
||||||
python_optimize
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Workaround for bug #321111 to give GIMP the least
|
|
||||||
# precedence on PDF documents by default
|
|
||||||
mv "${ED}"/usr/share/applications/{,zzz-}gimp.desktop || die
|
|
||||||
|
|
||||||
find "${D}" -name '*.la' -type f -delete || die
|
|
||||||
|
|
||||||
# Prevent dead symlink gimp-console.1 from downstream man page compression (bug #433527)
|
|
||||||
mv "${ED}"/usr/share/man/man1/gimp-console{-*,}.1 || die
|
|
||||||
|
|
||||||
_rename_plugins || die
|
|
||||||
|
|
||||||
if use doc; then
|
|
||||||
mkdir "${ED}/usr/share/gtk-doc/html/gimp3_g-ir-docs" || die
|
|
||||||
cp -r "${S}/devel-docs/g-ir-docs/html/"{gjs,python} "${ED}/usr/share/gtk-doc/html/gimp3_g-ir-docs/" || die
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
gnome2_pkg_postinst
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postrm() {
|
|
||||||
gnome2_pkg_postrm
|
|
||||||
}
|
|
@ -1,262 +0,0 @@
|
|||||||
# Copyright 1999-2022 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=7
|
|
||||||
|
|
||||||
LUA_COMPAT=( luajit )
|
|
||||||
PYTHON_COMPAT=( python3_{8..10} )
|
|
||||||
GNOME2_EAUTORECONF=yes
|
|
||||||
VALA_MIN_API_VERSION="0.44"
|
|
||||||
VALA_USE_DEPEND=vapigen
|
|
||||||
|
|
||||||
inherit gnome2 lua-single python-single-r1 toolchain-funcs vala virtualx
|
|
||||||
|
|
||||||
DESCRIPTION="GNU Image Manipulation Program"
|
|
||||||
HOMEPAGE="https://www.gimp.org/"
|
|
||||||
SRC_URI="mirror://gimp/v2.99/${P}.tar.bz2"
|
|
||||||
LICENSE="GPL-3 LGPL-3"
|
|
||||||
SLOT="0/3"
|
|
||||||
|
|
||||||
IUSE="aalib alsa aqua doc gnome heif javascript jpeg2k lua mng openexr postscript python udev unwind vala vector-icons webp wmf xpm cpu_flags_ppc_altivec cpu_flags_x86_mmx cpu_flags_x86_sse"
|
|
||||||
REQUIRED_USE="
|
|
||||||
lua? ( ${LUA_REQUIRED_USE} )
|
|
||||||
python? ( ${PYTHON_REQUIRED_USE} )
|
|
||||||
"
|
|
||||||
|
|
||||||
RESTRICT="!test? ( test )"
|
|
||||||
|
|
||||||
# media-libs/{babl,gegl} are required to be built with USE="introspection"
|
|
||||||
# to fix the compilation checking of /usr/share/gir-1.0/{Babl-0.1gir,Gegl-0.4.gir}
|
|
||||||
COMMON_DEPEND="
|
|
||||||
>=app-text/poppler-0.90.1[cairo]
|
|
||||||
>=app-text/poppler-data-0.4.9
|
|
||||||
>=dev-libs/appstream-glib-0.7.16
|
|
||||||
>=dev-libs/atk-2.34.1
|
|
||||||
>=dev-libs/glib-2.68.0:2
|
|
||||||
>=dev-libs/json-glib-1.4.4
|
|
||||||
dev-libs/libxml2:2
|
|
||||||
dev-libs/libxslt
|
|
||||||
>=gnome-base/librsvg-2.40.21:2
|
|
||||||
>=media-gfx/mypaint-brushes-2.0.2:=
|
|
||||||
>=media-libs/babl-0.1.86[introspection,lcms,vala?]
|
|
||||||
>=media-libs/fontconfig-2.12.6
|
|
||||||
>=media-libs/freetype-2.10.2
|
|
||||||
>=media-libs/gegl-0.4.32:0.4[cairo,introspection,lcms,vala?]
|
|
||||||
>=media-libs/gexiv2-0.10.10
|
|
||||||
>=media-libs/harfbuzz-2.6.5:=
|
|
||||||
>=media-libs/lcms-2.9:2
|
|
||||||
>=media-libs/libmypaint-1.6.1:=
|
|
||||||
>=media-libs/libpng-1.6.37:0=
|
|
||||||
>=media-libs/tiff-4.1.0:0
|
|
||||||
net-libs/glib-networking[ssl]
|
|
||||||
sys-libs/zlib
|
|
||||||
virtual/jpeg
|
|
||||||
>=x11-libs/cairo-1.16.0
|
|
||||||
>=x11-libs/gdk-pixbuf-2.40.0:2[introspection]
|
|
||||||
>=x11-libs/gtk+-3.24.16:3[introspection]
|
|
||||||
x11-libs/libXcursor
|
|
||||||
>=x11-libs/pango-1.44.7
|
|
||||||
aalib? ( media-libs/aalib )
|
|
||||||
alsa? ( >=media-libs/alsa-lib-1.0.0 )
|
|
||||||
aqua? ( >=x11-libs/gtk-mac-integration-2.0.0 )
|
|
||||||
heif? ( >=media-libs/libheif-1.9.1:= )
|
|
||||||
javascript? ( dev-libs/gjs )
|
|
||||||
jpeg2k? ( >=media-libs/openjpeg-2.3.1:2= )
|
|
||||||
lua? (
|
|
||||||
${LUA_DEPS}
|
|
||||||
$(lua_gen_cond_dep '
|
|
||||||
dev-lua/lgi[${LUA_USEDEP}]
|
|
||||||
')
|
|
||||||
)
|
|
||||||
mng? ( media-libs/libmng:= )
|
|
||||||
openexr? ( >=media-libs/openexr-2.3.0:= )
|
|
||||||
postscript? ( app-text/ghostscript-gpl )
|
|
||||||
python? (
|
|
||||||
${PYTHON_DEPS}
|
|
||||||
$(python_gen_cond_dep '
|
|
||||||
>=dev-python/pygobject-3.0:3[${PYTHON_USEDEP}]
|
|
||||||
')
|
|
||||||
)
|
|
||||||
udev? ( >=dev-libs/libgudev-167:= )
|
|
||||||
unwind? ( >=sys-libs/libunwind-1.1.0:= )
|
|
||||||
webp? ( >=media-libs/libwebp-0.6.0:= )
|
|
||||||
wmf? ( >=media-libs/libwmf-0.2.8 )
|
|
||||||
xpm? ( x11-libs/libXpm )
|
|
||||||
"
|
|
||||||
|
|
||||||
RDEPEND="
|
|
||||||
${COMMON_DEPEND}
|
|
||||||
x11-themes/hicolor-icon-theme
|
|
||||||
gnome? ( gnome-base/gvfs )
|
|
||||||
"
|
|
||||||
|
|
||||||
DEPEND="
|
|
||||||
${COMMON_DEPEND}
|
|
||||||
>=dev-lang/perl-5.30.3
|
|
||||||
dev-util/gdbus-codegen
|
|
||||||
dev-util/gtk-update-icon-cache
|
|
||||||
>=dev-util/intltool-0.51.0
|
|
||||||
>=sys-devel/autoconf-2.54
|
|
||||||
>=sys-devel/automake-1.11
|
|
||||||
>=sys-devel/gettext-0.21
|
|
||||||
>=sys-devel/libtool-2.4.6
|
|
||||||
doc? (
|
|
||||||
app-text/yelp-tools
|
|
||||||
dev-libs/gobject-introspection[doctool]
|
|
||||||
>=dev-util/gtk-doc-1.32
|
|
||||||
dev-util/gtk-doc-am
|
|
||||||
)
|
|
||||||
vala? ( $(vala_depend) )
|
|
||||||
"
|
|
||||||
|
|
||||||
# TODO: there are probably more atoms in DEPEND which should be in BDEPEND now
|
|
||||||
BDEPEND="virtual/pkgconfig"
|
|
||||||
|
|
||||||
DOCS=( "AUTHORS" "HACKING" "NEWS" "README" "README.i18n" )
|
|
||||||
|
|
||||||
# Bugs 685210 (and duplicate 691070)
|
|
||||||
PATCHES=(
|
|
||||||
"${FILESDIR}/${PN}-2.10_fix_test-appdata.patch"
|
|
||||||
)
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
use lua && lua-single_pkg_setup
|
|
||||||
|
|
||||||
if use python; then
|
|
||||||
python-single-r1_pkg_setup
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
sed -i -e 's/mypaint-brushes-1.0/mypaint-brushes-2.0/' configure.ac || die #737794
|
|
||||||
|
|
||||||
sed -i -e 's/== "xquartz"/= "xquartz"/' configure.ac || die #494864
|
|
||||||
sed 's:-DGIMP_DISABLE_DEPRECATED:-DGIMP_protect_DISABLE_DEPRECATED:g' -i configure.ac || die #615144
|
|
||||||
|
|
||||||
gnome2_src_prepare # calls eautoreconf
|
|
||||||
|
|
||||||
use vala && vala_src_prepare
|
|
||||||
|
|
||||||
sed 's:-DGIMP_protect_DISABLE_DEPRECATED:-DGIMP_DISABLE_DEPRECATED:g' -i configure || die #615144
|
|
||||||
fgrep -q GIMP_DISABLE_DEPRECATED configure || die #615144, self-test
|
|
||||||
|
|
||||||
export CC_FOR_BUILD="$(tc-getBUILD_CC)"
|
|
||||||
}
|
|
||||||
|
|
||||||
_adjust_sandbox() {
|
|
||||||
# Bugs #569738 and #591214
|
|
||||||
local nv
|
|
||||||
for nv in /dev/nvidia-uvm /dev/nvidiactl /dev/nvidia{0..9} ; do
|
|
||||||
# We do not check for existence as they may show up later
|
|
||||||
# https://bugs.gentoo.org/show_bug.cgi?id=569738#c21
|
|
||||||
addwrite "${nv}"
|
|
||||||
done
|
|
||||||
|
|
||||||
addwrite /dev/dri/ # bugs #574038 and #684886
|
|
||||||
addwrite /dev/ati/ # bug #589198
|
|
||||||
addwrite /proc/mtrr # bug #589198
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
_adjust_sandbox
|
|
||||||
|
|
||||||
local myconf=(
|
|
||||||
GEGL="${EPREFIX}"/usr/bin/gegl-0.4
|
|
||||||
GDBUS_CODEGEN="${EPREFIX}"/usr/bin/gdbus-codegen
|
|
||||||
|
|
||||||
--enable-default-binary
|
|
||||||
|
|
||||||
--disable-check-update
|
|
||||||
--enable-mp
|
|
||||||
--with-appdata-test
|
|
||||||
--with-bug-report-url=https://bugs.gentoo.org/
|
|
||||||
--with-xmc
|
|
||||||
--without-libbacktrace
|
|
||||||
--without-webkit
|
|
||||||
--without-xvfb-run
|
|
||||||
$(use_enable cpu_flags_ppc_altivec altivec)
|
|
||||||
$(use_enable cpu_flags_x86_mmx mmx)
|
|
||||||
$(use_enable cpu_flags_x86_sse sse)
|
|
||||||
$(use_enable doc gtk_doc)
|
|
||||||
$(use_enable doc g-ir-doc)
|
|
||||||
$(use_enable vector-icons)
|
|
||||||
$(use_with aalib aa)
|
|
||||||
$(use_with alsa)
|
|
||||||
$(use_with !aqua x)
|
|
||||||
$(use_with heif libheif)
|
|
||||||
$(use_with javascript)
|
|
||||||
$(use_with jpeg2k jpeg2000)
|
|
||||||
$(use_with lua)
|
|
||||||
$(use_with mng libmng)
|
|
||||||
$(use_with openexr)
|
|
||||||
$(use_with postscript gs)
|
|
||||||
$(use_with python)
|
|
||||||
$(use_with udev gudev)
|
|
||||||
$(use_with unwind libunwind)
|
|
||||||
$(use_with vala)
|
|
||||||
$(use_with webp)
|
|
||||||
$(use_with wmf)
|
|
||||||
$(use_with xpm libxpm)
|
|
||||||
)
|
|
||||||
|
|
||||||
gnome2_src_configure "${myconf[@]}"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
export XDG_DATA_DIRS="${EPREFIX}"/usr/share # bug 587004
|
|
||||||
gnome2_src_compile
|
|
||||||
}
|
|
||||||
|
|
||||||
# for https://bugs.gentoo.org/664938
|
|
||||||
_rename_plugins() {
|
|
||||||
einfo 'Renaming plug-ins to not collide with pre-2.10.6 file layout (bug #664938)...'
|
|
||||||
local prepend=gimp-org-
|
|
||||||
(
|
|
||||||
cd "${ED}"/usr/$(get_libdir)/gimp/2.99/plug-ins || exit 1
|
|
||||||
for plugin_slash in $(ls -d1 */); do
|
|
||||||
plugin=${plugin_slash%/}
|
|
||||||
if [[ -f ${plugin}/${plugin} ]]; then
|
|
||||||
# NOTE: Folder and file name need to match for Gimp to load that plug-in
|
|
||||||
# so "file-svg/file-svg" becomes "${prepend}file-svg/${prepend}file-svg"
|
|
||||||
mv ${plugin}/{,${prepend}}${plugin} || exit 1
|
|
||||||
mv {,${prepend}}${plugin} || exit 1
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
src_test() {
|
|
||||||
virtx emake check
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
gnome2_src_install
|
|
||||||
|
|
||||||
if use python; then
|
|
||||||
python_optimize
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Workaround for bug #321111 to give GIMP the least
|
|
||||||
# precedence on PDF documents by default
|
|
||||||
mv "${ED}"/usr/share/applications/{,zzz-}gimp.desktop || die
|
|
||||||
|
|
||||||
find "${D}" -name '*.la' -type f -delete || die
|
|
||||||
|
|
||||||
# Prevent dead symlink gimp-console.1 from downstream man page compression (bug #433527)
|
|
||||||
mv "${ED}"/usr/share/man/man1/gimp-console{-*,}.1 || die
|
|
||||||
|
|
||||||
_rename_plugins || die
|
|
||||||
|
|
||||||
if use doc; then
|
|
||||||
mkdir "${ED}/usr/share/gtk-doc/html/gimp3_g-ir-docs" || die
|
|
||||||
cp -r "${S}/devel-docs/g-ir-docs/html/"{gjs,python} "${ED}/usr/share/gtk-doc/html/gimp3_g-ir-docs/" || die
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
gnome2_pkg_postinst
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postrm() {
|
|
||||||
gnome2_pkg_postrm
|
|
||||||
}
|
|
Binary file not shown.
@ -1,4 +1,2 @@
|
|||||||
DIST babl-0.1.84.tar.xz 299216 BLAKE2B 80db725230f5bee71a9e2056e40cfe9c4dda7669fe3004d73c2d1525c9a89362491edc5addef47f28a94938ab3cdefef0496b38404fc4ab11931e7b9e0daaebe SHA512 a8cba80bd3a434ee9bbd1a0d1fcd6e5e38f9c657b189a70631ff3fe4e4c270e64762d1be13d48e8514d4166ac4175745001499fcda68eb1ea93e03c18b2a5d06
|
|
||||||
DIST babl-0.1.86.tar.xz 299868 BLAKE2B 2189659ef5b3890bc78329808dcff5e7577a85c9728d54f848fa2f6ed085cea53deeaa734c600b1d73dcb5a8acd2f680800459c0a4c5b7dce61bc69a54ab9d3c SHA512 aff3b0069f7cdb515e6ace880500f4b89521062f9030ef452f0555b3cd993fffdd5f700c403a7be8e6758957073e7623360fc6ac41d86d5d31551c0fd0ff6048
|
|
||||||
DIST babl-0.1.88.tar.xz 299972 BLAKE2B a22811196e306e3b846da63f361ecf792715d461cd8af85017af8dd353a406a38130f3e675214edc261557b6a0f6d3ed5586bfe7ecdf9b08ed5b8e7bc4aeb7f7 SHA512 1260133e44aa1878e13e2c64387e8540ca93edd7a905e2f8eebc58679444ba8815b9b6801b538a759c9b7b60294d7d7c33418bb1feee1879dcb8381450fe1742
|
DIST babl-0.1.88.tar.xz 299972 BLAKE2B a22811196e306e3b846da63f361ecf792715d461cd8af85017af8dd353a406a38130f3e675214edc261557b6a0f6d3ed5586bfe7ecdf9b08ed5b8e7bc4aeb7f7 SHA512 1260133e44aa1878e13e2c64387e8540ca93edd7a905e2f8eebc58679444ba8815b9b6801b538a759c9b7b60294d7d7c33418bb1feee1879dcb8381450fe1742
|
||||||
DIST babl-0.1.90.tar.xz 309324 BLAKE2B 9fbbbe06539fd85007875e697529aa071d32a2d9e65f9750ceeb4a1f1ec1a3ac4a74dc40f932f7ff669bafdb1e9506df05414c7765f57b7d818901bffc55ccc2 SHA512 c0eac3c7d5eb328de2f97ccc9743bc2f78d79c23dc4d3465e979d98827b1643a0f2a257f0445e4acd09f15a9f95c79f67d09cb18c2c94b4f3d290944a0341e3c
|
DIST babl-0.1.90.tar.xz 309324 BLAKE2B 9fbbbe06539fd85007875e697529aa071d32a2d9e65f9750ceeb4a1f1ec1a3ac4a74dc40f932f7ff669bafdb1e9506df05414c7765f57b7d818901bffc55ccc2 SHA512 c0eac3c7d5eb328de2f97ccc9743bc2f78d79c23dc4d3465e979d98827b1643a0f2a257f0445e4acd09f15a9f95c79f67d09cb18c2c94b4f3d290944a0341e3c
|
||||||
|
@ -1,61 +0,0 @@
|
|||||||
# Copyright 1999-2021 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=7
|
|
||||||
|
|
||||||
VALA_USE_DEPEND=vapigen
|
|
||||||
|
|
||||||
inherit meson gnome2-utils vala
|
|
||||||
|
|
||||||
if [[ ${PV} == *9999* ]]; then
|
|
||||||
inherit git-r3
|
|
||||||
EGIT_REPO_URI="https://gitlab.gnome.org/GNOME/babl.git"
|
|
||||||
SRC_URI=""
|
|
||||||
else
|
|
||||||
SRC_URI="https://ftp.gimp.org/pub/${PN}/${PV:0:3}/${P}.tar.xz"
|
|
||||||
KEYWORDS="~alpha amd64 ~arm arm64 ~hppa ~ia64 ~mips ~ppc ppc64 -sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris ~x86-solaris"
|
|
||||||
fi
|
|
||||||
|
|
||||||
DESCRIPTION="A dynamic, any to any, pixel format conversion library"
|
|
||||||
HOMEPAGE="https://gegl.org/babl/"
|
|
||||||
|
|
||||||
LICENSE="LGPL-3"
|
|
||||||
SLOT="0"
|
|
||||||
IUSE="introspection lcms vala cpu_flags_x86_avx2 cpu_flags_x86_f16c cpu_flags_x86_mmx cpu_flags_x86_sse cpu_flags_x86_sse2 cpu_flags_x86_sse4_1"
|
|
||||||
REQUIRED_USE="vala? ( introspection )"
|
|
||||||
|
|
||||||
BDEPEND="
|
|
||||||
virtual/pkgconfig
|
|
||||||
vala? ( $(vala_depend) )
|
|
||||||
"
|
|
||||||
RDEPEND="
|
|
||||||
introspection? ( >=dev-libs/gobject-introspection-1.32:= )
|
|
||||||
lcms? ( >=media-libs/lcms-2.8:2 )
|
|
||||||
"
|
|
||||||
DEPEND="${RDEPEND}"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
default
|
|
||||||
gnome2_environment_reset
|
|
||||||
use vala && vala_src_prepare
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
# Automagic rsvg support is just for website generation we do not call,
|
|
||||||
# so we don't need to fix it
|
|
||||||
# w3m is used for dist target thus no issue for us that it is automagically
|
|
||||||
# detected
|
|
||||||
local emesonargs=(
|
|
||||||
-Dwith-docs=false
|
|
||||||
$(meson_use introspection enable-gir)
|
|
||||||
$(meson_use lcms with-lcms)
|
|
||||||
$(meson_use vala enable-vapi)
|
|
||||||
$(meson_use cpu_flags_x86_avx2 enable-avx2)
|
|
||||||
$(meson_use cpu_flags_x86_f16c enable-f16c)
|
|
||||||
$(meson_use cpu_flags_x86_mmx enable-mmx)
|
|
||||||
$(meson_use cpu_flags_x86_sse enable-sse)
|
|
||||||
$(meson_use cpu_flags_x86_sse2 enable-sse2)
|
|
||||||
$(meson_use cpu_flags_x86_sse4_1 enable-sse4_1)
|
|
||||||
)
|
|
||||||
meson_src_configure
|
|
||||||
}
|
|
@ -1,61 +0,0 @@
|
|||||||
# Copyright 1999-2021 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=7
|
|
||||||
|
|
||||||
VALA_USE_DEPEND=vapigen
|
|
||||||
|
|
||||||
inherit meson gnome2-utils vala
|
|
||||||
|
|
||||||
if [[ ${PV} == *9999* ]]; then
|
|
||||||
inherit git-r3
|
|
||||||
EGIT_REPO_URI="https://gitlab.gnome.org/GNOME/babl.git"
|
|
||||||
SRC_URI=""
|
|
||||||
else
|
|
||||||
SRC_URI="https://ftp.gimp.org/pub/${PN}/${PV:0:3}/${P}.tar.xz"
|
|
||||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv -sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris ~x86-solaris"
|
|
||||||
fi
|
|
||||||
|
|
||||||
DESCRIPTION="A dynamic, any to any, pixel format conversion library"
|
|
||||||
HOMEPAGE="https://gegl.org/babl/"
|
|
||||||
|
|
||||||
LICENSE="LGPL-3"
|
|
||||||
SLOT="0"
|
|
||||||
IUSE="introspection lcms vala cpu_flags_x86_avx2 cpu_flags_x86_f16c cpu_flags_x86_mmx cpu_flags_x86_sse cpu_flags_x86_sse2 cpu_flags_x86_sse4_1"
|
|
||||||
REQUIRED_USE="vala? ( introspection )"
|
|
||||||
|
|
||||||
BDEPEND="
|
|
||||||
virtual/pkgconfig
|
|
||||||
vala? ( $(vala_depend) )
|
|
||||||
"
|
|
||||||
RDEPEND="
|
|
||||||
introspection? ( >=dev-libs/gobject-introspection-1.32:= )
|
|
||||||
lcms? ( >=media-libs/lcms-2.8:2 )
|
|
||||||
"
|
|
||||||
DEPEND="${RDEPEND}"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
default
|
|
||||||
gnome2_environment_reset
|
|
||||||
use vala && vala_src_prepare
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
# Automagic rsvg support is just for website generation we do not call,
|
|
||||||
# so we don't need to fix it
|
|
||||||
# w3m is used for dist target thus no issue for us that it is automagically
|
|
||||||
# detected
|
|
||||||
local emesonargs=(
|
|
||||||
-Dwith-docs=false
|
|
||||||
$(meson_use introspection enable-gir)
|
|
||||||
$(meson_use lcms with-lcms)
|
|
||||||
$(meson_use vala enable-vapi)
|
|
||||||
$(meson_use cpu_flags_x86_avx2 enable-avx2)
|
|
||||||
$(meson_use cpu_flags_x86_f16c enable-f16c)
|
|
||||||
$(meson_use cpu_flags_x86_mmx enable-mmx)
|
|
||||||
$(meson_use cpu_flags_x86_sse enable-sse)
|
|
||||||
$(meson_use cpu_flags_x86_sse2 enable-sse2)
|
|
||||||
$(meson_use cpu_flags_x86_sse4_1 enable-sse4_1)
|
|
||||||
)
|
|
||||||
meson_src_configure
|
|
||||||
}
|
|
@ -1,6 +1,2 @@
|
|||||||
DIST gegl-0.4.26.tar.xz 4942492 BLAKE2B 656a9c0d339d136f3f2efbb1484fbfea27deab241821503b31d74b015fe8766ee8d931ea0bf1a354200581bc54fea307a2cfb9b469e73a211a77d109d33707f3 SHA512 634778df0060ffe630121c24044a6ddcc7f2de0ff61b02be24db4054c6f3def24373b28dd1152d62882d58383a3aa7a1f74cd5b743a299fd0719a2a2ff992d24
|
|
||||||
DIST gegl-0.4.28.tar.xz 4966580 BLAKE2B fcf4fb0e4fac0357d25987348c6abe2434db17bd974ab39f15c3e11a6a6ee8630469d0b53fe2cc76a3af90c9b3a6ba88972301d6fac8df693f5fa12919e0bfa0 SHA512 ad02dc4e4ff7c5beddb3cc8e1c05b6f858e7164dfd239bada70cc138a541a36f82c0e415c6fb81d4799ae8acdcb95ddb607c6b24481a73c5ae0d6e87c73fdbb7
|
|
||||||
DIST gegl-0.4.30.tar.xz 5398052 BLAKE2B c57b34ed64d3b9305d3e639b872c283bd4c9c798d13f7bde49b991044139bb4e433a3adb0a9e991b78b2905985496ca3bf4ed116333ceaaccc043b8a66426131 SHA512 73db2d18260ba061fbbc2adb3256ea9d5b822b57f5654cc3aefb59e7afeeb2e4f0fd7e95ac14603c0a549935df04d5744001089efb378511c914c68664dbd378
|
|
||||||
DIST gegl-0.4.32.tar.xz 5633796 BLAKE2B a4ba5d19291a61c6903dcc368e6cc3e1934e8d89b555e81afd22709504fbb8a7ed104890af5f1e7bfbdd5664caef8f5e015341c7882f2171ecb518afe32a65ef SHA512 68da02b8df0a1d234063958896f3678ead62772e611bddb39a6f21ec58cc744599d0a691224c057f2da4d04f2ccfb155a545deea92e77c728dbaeeb90e68cad6
|
|
||||||
DIST gegl-0.4.34.tar.xz 5647516 BLAKE2B 7d9e0c395e6bf38e407ed55f43c090789e29692254990a341e7b9a391ae67423a9948821c1b8a4dd156fb42c16fe6b8572de2ee7b5be09b9f802b892e82df580 SHA512 13bbc19c4fb1feee609d2191b09fe1d2f020da1be788f9dcf7ed89dfef8465ce77dc34a9cb74279c88336aa0f3d3a7a44ca35335a3c2374516f590a40edbc08e
|
DIST gegl-0.4.34.tar.xz 5647516 BLAKE2B 7d9e0c395e6bf38e407ed55f43c090789e29692254990a341e7b9a391ae67423a9948821c1b8a4dd156fb42c16fe6b8572de2ee7b5be09b9f802b892e82df580 SHA512 13bbc19c4fb1feee609d2191b09fe1d2f020da1be788f9dcf7ed89dfef8465ce77dc34a9cb74279c88336aa0f3d3a7a44ca35335a3c2374516f590a40edbc08e
|
||||||
DIST gegl-0.4.36.tar.xz 5680876 BLAKE2B e2051d21eadfd6ff5c4547d337e749ebb9526be0b45bf80116cfdd1bb98b0fd3b4cced83b4700ecb04c003f83074928ac0c7b4bc8929134c57950a1ac957d50b SHA512 4d681091b15e7911229f86bf22381d62268451da57bba072bcb8ee3f4db79e2719dd7e70ab208c2c021e5353f42a9f88c18f62132512b18fe78ed6ad279660f8
|
DIST gegl-0.4.36.tar.xz 5680876 BLAKE2B e2051d21eadfd6ff5c4547d337e749ebb9526be0b45bf80116cfdd1bb98b0fd3b4cced83b4700ecb04c003f83074928ac0c7b4bc8929134c57950a1ac957d50b SHA512 4d681091b15e7911229f86bf22381d62268451da57bba072bcb8ee3f4db79e2719dd7e70ab208c2c021e5353f42a9f88c18f62132512b18fe78ed6ad279660f8
|
||||||
|
@ -1,43 +0,0 @@
|
|||||||
From a1dd28e7e7c022c4e887006311c916fe5d9e4c0e Mon Sep 17 00:00:00 2001
|
|
||||||
From: Sebastian Pipping <sebastian@pipping.org>
|
|
||||||
Date: Sun, 27 Oct 2019 21:55:03 +0100
|
|
||||||
Subject: [PATCH] Drop failing tests
|
|
||||||
|
|
||||||
---
|
|
||||||
tests/compositions/meson.build | 2 ++
|
|
||||||
tests/python/meson.build | 2 --
|
|
||||||
2 files changed, 2 insertions(+), 2 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/tests/compositions/meson.build b/tests/compositions/meson.build
|
|
||||||
index 8699e7c..5e76e8c 100644
|
|
||||||
--- a/tests/compositions/meson.build
|
|
||||||
+++ b/tests/compositions/meson.build
|
|
||||||
@@ -87,6 +87,7 @@ test('compositions_with_opencl',
|
|
||||||
)
|
|
||||||
endif
|
|
||||||
|
|
||||||
+if false
|
|
||||||
test('compositions_without_opencl',
|
|
||||||
python,
|
|
||||||
args: [
|
|
||||||
@@ -100,3 +101,4 @@ test('compositions_without_opencl',
|
|
||||||
suite: 'compositions',
|
|
||||||
is_parallel: false,
|
|
||||||
)
|
|
||||||
+endif
|
|
||||||
diff --git a/tests/python/meson.build b/tests/python/meson.build
|
|
||||||
index c6782e6..47a160b 100644
|
|
||||||
--- a/tests/python/meson.build
|
|
||||||
+++ b/tests/python/meson.build
|
|
||||||
@@ -2,8 +2,6 @@
|
|
||||||
testnames = [
|
|
||||||
'gegl-buffer',
|
|
||||||
'gegl-color',
|
|
||||||
- 'gegl-format',
|
|
||||||
- 'gegl-node',
|
|
||||||
'gegl',
|
|
||||||
]
|
|
||||||
|
|
||||||
--
|
|
||||||
2.23.0
|
|
||||||
|
|
@ -1,39 +0,0 @@
|
|||||||
From eeecf286efb312709e43341eaadc64eb006bc6bf Mon Sep 17 00:00:00 2001
|
|
||||||
From: Sebastian Pipping <sebastian@pipping.org>
|
|
||||||
Date: Sun, 27 Oct 2019 22:05:58 +0100
|
|
||||||
Subject: [PATCH] Add suffix "-0.4" to installed programs
|
|
||||||
|
|
||||||
---
|
|
||||||
bin/meson.build | 2 +-
|
|
||||||
tools/meson.build | 2 +-
|
|
||||||
2 files changed, 2 insertions(+), 2 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/bin/meson.build b/bin/meson.build
|
|
||||||
index 4daf6cb..b77b692 100644
|
|
||||||
--- a/bin/meson.build
|
|
||||||
+++ b/bin/meson.build
|
|
||||||
@@ -42,7 +42,7 @@ if libspiro.found()
|
|
||||||
gegl_deps += [ libspiro, ]
|
|
||||||
endif
|
|
||||||
|
|
||||||
-gegl_bin = executable('gegl',
|
|
||||||
+gegl_bin = executable('gegl-0.4',
|
|
||||||
gegl_sources,
|
|
||||||
include_directories: [ rootInclude, geglInclude, ],
|
|
||||||
dependencies: gegl_deps,
|
|
||||||
diff --git a/tools/meson.build b/tools/meson.build
|
|
||||||
index 43c5495..c1b0d63 100644
|
|
||||||
--- a/tools/meson.build
|
|
||||||
+++ b/tools/meson.build
|
|
||||||
@@ -19,7 +19,7 @@ detect_opencl = executable(
|
|
||||||
install: false,
|
|
||||||
)
|
|
||||||
gegl_imgcmp = executable(
|
|
||||||
- 'gegl-imgcmp',
|
|
||||||
+ 'gegl-imgcmp-0.4',
|
|
||||||
'gegl-imgcmp.c',
|
|
||||||
include_directories: [ rootInclude, geglInclude, ],
|
|
||||||
dependencies: [ tools_deps, ],
|
|
||||||
--
|
|
||||||
2.23.0
|
|
||||||
|
|
@ -1,24 +0,0 @@
|
|||||||
From 130cd583530dc41adfdec76d6662302f833e6033 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Olivier Tilloy <olivier.tilloy@canonical.com>
|
|
||||||
Date: Fri, 5 Mar 2021 12:58:18 +0100
|
|
||||||
Subject: [PATCH] Fix build with glib 2.67.3 (see
|
|
||||||
https://gitlab.gnome.org/GNOME/glib/-/issues/2331).
|
|
||||||
|
|
||||||
---
|
|
||||||
operations/external/exr-load.cpp | 2 --
|
|
||||||
1 file changed, 2 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/operations/external/exr-load.cpp b/operations/external/exr-load.cpp
|
|
||||||
index e864f7e3e..28403639c 100644
|
|
||||||
--- a/operations/external/exr-load.cpp
|
|
||||||
+++ b/operations/external/exr-load.cpp
|
|
||||||
@@ -29,9 +29,7 @@ property_file_path (path, "File", "")
|
|
||||||
#define GEGL_OP_NAME exr_load
|
|
||||||
#define GEGL_OP_C_FILE "exr-load.cpp"
|
|
||||||
|
|
||||||
-extern "C" {
|
|
||||||
#include "gegl-op.h"
|
|
||||||
-}
|
|
||||||
|
|
||||||
#include <ImfInputFile.h>
|
|
||||||
#include <ImfChannelList.h>
|
|
@ -1,22 +0,0 @@
|
|||||||
From 499a239d158fadb3a04499255b5b282a8a6023bb Mon Sep 17 00:00:00 2001
|
|
||||||
From: Antonio Rojas <arojas@archlinux.org>
|
|
||||||
Date: Sat, 24 Apr 2021 10:51:09 +0000
|
|
||||||
Subject: [PATCH] Fix build with OpenEXR 3
|
|
||||||
|
|
||||||
Add a header that is no longer transitively included
|
|
||||||
---
|
|
||||||
operations/external/exr-save.cc | 1 +
|
|
||||||
1 file changed, 1 insertion(+)
|
|
||||||
|
|
||||||
diff --git a/operations/external/exr-save.cc b/operations/external/exr-save.cc
|
|
||||||
index 1e8c09d96..87abed511 100644
|
|
||||||
--- a/operations/external/exr-save.cc
|
|
||||||
+++ b/operations/external/exr-save.cc
|
|
||||||
@@ -45,6 +45,7 @@ extern "C" {
|
|
||||||
#include <ImfChromaticities.h>
|
|
||||||
#include <ImfStandardAttributes.h>
|
|
||||||
#include <ImfArray.h>
|
|
||||||
+#include <ImfFrameBuffer.h>
|
|
||||||
#include "ImathRandom.h"
|
|
||||||
|
|
||||||
|
|
@ -1,167 +0,0 @@
|
|||||||
# Copyright 1999-2021 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=7
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python3_{7,8,9} )
|
|
||||||
# vala and introspection support is broken, bug #468208
|
|
||||||
VALA_USE_DEPEND=vapigen
|
|
||||||
|
|
||||||
inherit meson gnome2-utils python-any-r1 vala
|
|
||||||
|
|
||||||
if [[ ${PV} == *9999* ]]; then
|
|
||||||
inherit git-r3
|
|
||||||
EGIT_REPO_URI="https://gitlab.gnome.org/GNOME/gegl.git"
|
|
||||||
SRC_URI=""
|
|
||||||
else
|
|
||||||
SRC_URI="https://download.gimp.org/pub/${PN}/${PV:0:3}/${P}.tar.xz"
|
|
||||||
KEYWORDS="~alpha amd64 ~arm arm64 ~hppa ~ia64 ~mips ~ppc ppc64 x86 ~amd64-linux ~x86-linux"
|
|
||||||
fi
|
|
||||||
|
|
||||||
DESCRIPTION="A graph based image processing framework"
|
|
||||||
HOMEPAGE="https://gegl.org/"
|
|
||||||
|
|
||||||
LICENSE="|| ( GPL-3+ LGPL-3 )"
|
|
||||||
SLOT="0.4"
|
|
||||||
|
|
||||||
IUSE="cairo debug ffmpeg introspection lcms lensfun openexr pdf raw sdl svg test tiff umfpack vala v4l webp"
|
|
||||||
REQUIRED_USE="
|
|
||||||
svg? ( cairo )
|
|
||||||
test? ( introspection )
|
|
||||||
vala? ( introspection )
|
|
||||||
"
|
|
||||||
|
|
||||||
RESTRICT="!test? ( test )"
|
|
||||||
|
|
||||||
# NOTE: Even current libav 11.4 does not have AV_CODEC_CAP_VARIABLE_FRAME_SIZE
|
|
||||||
# so there is no chance to support libav right now (Gentoo bug #567638)
|
|
||||||
# If it returns, please check prior GEGL ebuilds for how libav was integrated. Thanks!
|
|
||||||
RDEPEND="
|
|
||||||
>=dev-libs/glib-2.68.2:2
|
|
||||||
>=dev-libs/json-glib-1.2.6
|
|
||||||
>=media-libs/babl-0.1.78[introspection?,lcms?,vala?]
|
|
||||||
media-libs/libnsgif
|
|
||||||
>=media-libs/libpng-1.6.0:0=
|
|
||||||
>=sys-libs/zlib-1.2.0
|
|
||||||
virtual/jpeg:0=
|
|
||||||
>=x11-libs/gdk-pixbuf-2.32:2
|
|
||||||
>=x11-libs/pango-1.38.0
|
|
||||||
cairo? ( >=x11-libs/cairo-1.12.2 )
|
|
||||||
ffmpeg? ( media-video/ffmpeg:0= )
|
|
||||||
introspection? ( >=dev-libs/gobject-introspection-1.32:= )
|
|
||||||
lcms? ( >=media-libs/lcms-2.8:2 )
|
|
||||||
lensfun? ( >=media-libs/lensfun-0.2.5 )
|
|
||||||
openexr? ( >=media-libs/openexr-1.6.1:= )
|
|
||||||
pdf? ( >=app-text/poppler-0.71.0[cairo] )
|
|
||||||
raw? ( >=media-libs/libraw-0.15.4:0= )
|
|
||||||
sdl? ( >=media-libs/libsdl-1.2.0 )
|
|
||||||
svg? ( >=gnome-base/librsvg-2.40.6:2 )
|
|
||||||
tiff? ( >=media-libs/tiff-4:0 )
|
|
||||||
umfpack? ( sci-libs/umfpack )
|
|
||||||
v4l? ( >=media-libs/libv4l-1.0.1 )
|
|
||||||
webp? ( >=media-libs/libwebp-0.5.0:= )
|
|
||||||
"
|
|
||||||
DEPEND="${RDEPEND}"
|
|
||||||
BDEPEND="
|
|
||||||
${PYTHON_DEPS}
|
|
||||||
dev-lang/perl
|
|
||||||
>=dev-util/gtk-doc-am-1
|
|
||||||
>=sys-devel/gettext-0.19.8
|
|
||||||
>=sys-devel/libtool-2.2
|
|
||||||
virtual/pkgconfig
|
|
||||||
test? ( $(python_gen_any_dep '>=dev-python/pygobject-3.2:3[${PYTHON_USEDEP}]') )
|
|
||||||
vala? ( $(vala_depend) )
|
|
||||||
"
|
|
||||||
|
|
||||||
DOCS=( AUTHORS docs/ChangeLog docs/NEWS.txt )
|
|
||||||
|
|
||||||
PATCHES=(
|
|
||||||
"${FILESDIR}"/${PN}-0.4.18-drop-failing-tests.patch
|
|
||||||
"${FILESDIR}"/${PN}-0.4.18-program-suffix.patch
|
|
||||||
"${FILESDIR}"/${P}-fix-build-glib-2.67.3.patch
|
|
||||||
"${FILESDIR}"/${PN}-0.4.30-fix-build-openexr-3.patch
|
|
||||||
)
|
|
||||||
|
|
||||||
python_check_deps() {
|
|
||||||
use test || return 0
|
|
||||||
has_version -b ">=dev-python/pygobject-3.2:3[${PYTHON_USEDEP}]"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
default
|
|
||||||
|
|
||||||
# don't require Apple's OpenCL on versions of OSX that don't have it
|
|
||||||
if [[ ${CHOST} == *-darwin* && ${CHOST#*-darwin} -le 9 ]] ; then
|
|
||||||
sed -i -e 's/#ifdef __APPLE__/#if 0/' gegl/opencl/* || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
# commit 7c78497b : tests that use gegl.png are broken on non-amd64
|
|
||||||
sed -e '/clones.xml/d' \
|
|
||||||
-e '/composite-transform.xml/d' \
|
|
||||||
-i tests/compositions/meson.build || die
|
|
||||||
|
|
||||||
# fix skipping mipmap tests due to executable not found
|
|
||||||
for item in "invert-crop.sh" "invert.sh" "rotate-crop.sh" "rotate.sh" "unsharp-crop.sh" "unsharp.sh"; do
|
|
||||||
sed -i "s:/bin/gegl:/bin/gegl-0.4:g" "${S}/tests/mipmap/${item}" || die
|
|
||||||
sed -i "s:/tools/gegl-imgcmp:/tools/gegl-imgcmp-0.4:g" "${S}/tests/mipmap/${item}" || die
|
|
||||||
done
|
|
||||||
|
|
||||||
# fix 'build'headers from *.cl on gentoo-hardened, bug 739816
|
|
||||||
pushd "${S}/opencl/" || die
|
|
||||||
for file in *.cl; do
|
|
||||||
if [ -f "$file" ]; then
|
|
||||||
"${EPYTHON}" cltostring.py "${file}" || die
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
popd || die
|
|
||||||
|
|
||||||
gnome2_environment_reset
|
|
||||||
|
|
||||||
use vala && vala_src_prepare
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
local emesonargs=(
|
|
||||||
# - Disable documentation as the generating is bit automagic
|
|
||||||
# if anyone wants to work on it just create bug with patch
|
|
||||||
-Ddocs=false
|
|
||||||
-Dexiv2=disabled
|
|
||||||
-Dgdk-pixbuf=enabled
|
|
||||||
-Dgexiv2=disabled
|
|
||||||
# - There are two checks for dot, one controllable by --with(out)-graphviz
|
|
||||||
# which toggles HAVE_GRAPHVIZ that is not used anywhere. Yes.
|
|
||||||
-Dgraphviz=disabled
|
|
||||||
-Djasper=disabled
|
|
||||||
-Dlibjpeg=enabled
|
|
||||||
-Dlibpng=enabled
|
|
||||||
# - libspiro: not in portage main tree
|
|
||||||
-Dlibspiro=disabled
|
|
||||||
-Dlua=disabled
|
|
||||||
-Dmrg=disabled
|
|
||||||
-Dpango=enabled
|
|
||||||
-Dsdl2=disabled
|
|
||||||
# - Parameter -Dworkshop=false disables any use of Lua, effectivly
|
|
||||||
-Dworkshop=false
|
|
||||||
$(meson_feature cairo)
|
|
||||||
$(meson_feature cairo pangocairo)
|
|
||||||
$(meson_feature ffmpeg libav)
|
|
||||||
$(meson_feature lcms)
|
|
||||||
$(meson_feature lensfun)
|
|
||||||
$(meson_feature openexr)
|
|
||||||
$(meson_feature pdf poppler)
|
|
||||||
$(meson_feature raw libraw)
|
|
||||||
$(meson_feature sdl sdl1)
|
|
||||||
$(meson_feature svg librsvg)
|
|
||||||
$(meson_feature test pygobject)
|
|
||||||
$(meson_feature tiff libtiff)
|
|
||||||
$(meson_feature umfpack)
|
|
||||||
# - v4l support does not work with our media-libs/libv4l-0.8.9,
|
|
||||||
# upstream bug at https://bugzilla.gnome.org/show_bug.cgi?id=654675
|
|
||||||
$(meson_feature v4l libv4l)
|
|
||||||
$(meson_feature v4l libv4l2)
|
|
||||||
$(meson_feature vala vapigen)
|
|
||||||
$(meson_feature webp)
|
|
||||||
$(meson_use introspection)
|
|
||||||
)
|
|
||||||
meson_src_configure
|
|
||||||
}
|
|
@ -1,167 +0,0 @@
|
|||||||
# Copyright 1999-2021 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=7
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python3_{7,8,9} )
|
|
||||||
# vala and introspection support is broken, bug #468208
|
|
||||||
VALA_USE_DEPEND=vapigen
|
|
||||||
|
|
||||||
inherit meson gnome2-utils python-any-r1 vala
|
|
||||||
|
|
||||||
if [[ ${PV} == *9999* ]]; then
|
|
||||||
inherit git-r3
|
|
||||||
EGIT_REPO_URI="https://gitlab.gnome.org/GNOME/gegl.git"
|
|
||||||
SRC_URI=""
|
|
||||||
else
|
|
||||||
SRC_URI="https://download.gimp.org/pub/${PN}/${PV:0:3}/${P}.tar.xz"
|
|
||||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
|
|
||||||
fi
|
|
||||||
|
|
||||||
DESCRIPTION="A graph based image processing framework"
|
|
||||||
HOMEPAGE="https://gegl.org/"
|
|
||||||
|
|
||||||
LICENSE="|| ( GPL-3+ LGPL-3 )"
|
|
||||||
SLOT="0.4"
|
|
||||||
|
|
||||||
IUSE="cairo debug ffmpeg introspection lcms lensfun openexr pdf raw sdl svg test tiff umfpack vala v4l webp"
|
|
||||||
REQUIRED_USE="
|
|
||||||
svg? ( cairo )
|
|
||||||
test? ( introspection )
|
|
||||||
vala? ( introspection )
|
|
||||||
"
|
|
||||||
|
|
||||||
RESTRICT="!test? ( test )"
|
|
||||||
|
|
||||||
# NOTE: Even current libav 11.4 does not have AV_CODEC_CAP_VARIABLE_FRAME_SIZE
|
|
||||||
# so there is no chance to support libav right now (Gentoo bug #567638)
|
|
||||||
# If it returns, please check prior GEGL ebuilds for how libav was integrated. Thanks!
|
|
||||||
RDEPEND="
|
|
||||||
>=dev-libs/glib-2.68.2:2
|
|
||||||
>=dev-libs/json-glib-1.2.6
|
|
||||||
>=media-libs/babl-0.1.84[introspection?,lcms?,vala?]
|
|
||||||
media-libs/libnsgif
|
|
||||||
>=media-libs/libpng-1.6.0:0=
|
|
||||||
>=sys-libs/zlib-1.2.0
|
|
||||||
virtual/jpeg:0=
|
|
||||||
>=x11-libs/gdk-pixbuf-2.32:2
|
|
||||||
>=x11-libs/pango-1.38.0
|
|
||||||
cairo? ( >=x11-libs/cairo-1.12.2 )
|
|
||||||
ffmpeg? ( media-video/ffmpeg:0= )
|
|
||||||
introspection? ( >=dev-libs/gobject-introspection-1.32:= )
|
|
||||||
lcms? ( >=media-libs/lcms-2.8:2 )
|
|
||||||
lensfun? ( >=media-libs/lensfun-0.2.5 )
|
|
||||||
openexr? ( >=media-libs/openexr-1.6.1:= )
|
|
||||||
pdf? ( >=app-text/poppler-0.71.0[cairo] )
|
|
||||||
raw? ( >=media-libs/libraw-0.15.4:0= )
|
|
||||||
sdl? ( >=media-libs/libsdl-1.2.0 )
|
|
||||||
svg? ( >=gnome-base/librsvg-2.40.6:2 )
|
|
||||||
tiff? ( >=media-libs/tiff-4:0 )
|
|
||||||
umfpack? ( sci-libs/umfpack )
|
|
||||||
v4l? ( >=media-libs/libv4l-1.0.1 )
|
|
||||||
webp? ( >=media-libs/libwebp-0.5.0:= )
|
|
||||||
"
|
|
||||||
DEPEND="${RDEPEND}"
|
|
||||||
BDEPEND="
|
|
||||||
${PYTHON_DEPS}
|
|
||||||
dev-lang/perl
|
|
||||||
>=dev-util/gtk-doc-am-1
|
|
||||||
>=sys-devel/gettext-0.19.8
|
|
||||||
>=sys-devel/libtool-2.2
|
|
||||||
virtual/pkgconfig
|
|
||||||
test? ( $(python_gen_any_dep '>=dev-python/pygobject-3.2:3[${PYTHON_USEDEP}]') )
|
|
||||||
vala? ( $(vala_depend) )
|
|
||||||
"
|
|
||||||
|
|
||||||
DOCS=( AUTHORS docs/ChangeLog docs/NEWS.txt )
|
|
||||||
|
|
||||||
PATCHES=(
|
|
||||||
"${FILESDIR}"/${PN}-0.4.18-drop-failing-tests.patch
|
|
||||||
"${FILESDIR}"/${PN}-0.4.18-program-suffix.patch
|
|
||||||
"${FILESDIR}"/${PN}-0.4.26-fix-build-glib-2.67.3.patch
|
|
||||||
"${FILESDIR}"/${PN}-0.4.30-fix-build-openexr-3.patch
|
|
||||||
)
|
|
||||||
|
|
||||||
python_check_deps() {
|
|
||||||
use test || return 0
|
|
||||||
has_version -b ">=dev-python/pygobject-3.2:3[${PYTHON_USEDEP}]"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
default
|
|
||||||
|
|
||||||
# don't require Apple's OpenCL on versions of OSX that don't have it
|
|
||||||
if [[ ${CHOST} == *-darwin* && ${CHOST#*-darwin} -le 9 ]] ; then
|
|
||||||
sed -i -e 's/#ifdef __APPLE__/#if 0/' gegl/opencl/* || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
# commit 7c78497b : tests that use gegl.png are broken on non-amd64
|
|
||||||
sed -e '/clones.xml/d' \
|
|
||||||
-e '/composite-transform.xml/d' \
|
|
||||||
-i tests/compositions/meson.build || die
|
|
||||||
|
|
||||||
# fix skipping mipmap tests due to executable not found
|
|
||||||
for item in "invert-crop.sh" "invert.sh" "rotate-crop.sh" "rotate.sh" "unsharp-crop.sh" "unsharp.sh"; do
|
|
||||||
sed -i "s:/bin/gegl:/bin/gegl-0.4:g" "${S}/tests/mipmap/${item}" || die
|
|
||||||
sed -i "s:/tools/gegl-imgcmp:/tools/gegl-imgcmp-0.4:g" "${S}/tests/mipmap/${item}" || die
|
|
||||||
done
|
|
||||||
|
|
||||||
# fix 'build'headers from *.cl on gentoo-hardened, bug 739816
|
|
||||||
pushd "${S}/opencl/" || die
|
|
||||||
for file in *.cl; do
|
|
||||||
if [ -f "$file" ]; then
|
|
||||||
"${EPYTHON}" cltostring.py "${file}" || die
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
popd || die
|
|
||||||
|
|
||||||
gnome2_environment_reset
|
|
||||||
|
|
||||||
use vala && vala_src_prepare
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
local emesonargs=(
|
|
||||||
# - Disable documentation as the generating is bit automagic
|
|
||||||
# if anyone wants to work on it just create bug with patch
|
|
||||||
-Ddocs=false
|
|
||||||
-Dexiv2=disabled
|
|
||||||
-Dgdk-pixbuf=enabled
|
|
||||||
-Dgexiv2=disabled
|
|
||||||
# - There are two checks for dot, one controllable by --with(out)-graphviz
|
|
||||||
# which toggles HAVE_GRAPHVIZ that is not used anywhere. Yes.
|
|
||||||
-Dgraphviz=disabled
|
|
||||||
-Djasper=disabled
|
|
||||||
-Dlibjpeg=enabled
|
|
||||||
-Dlibpng=enabled
|
|
||||||
# - libspiro: not in portage main tree
|
|
||||||
-Dlibspiro=disabled
|
|
||||||
-Dlua=disabled
|
|
||||||
-Dmrg=disabled
|
|
||||||
-Dpango=enabled
|
|
||||||
-Dsdl2=disabled
|
|
||||||
# - Parameter -Dworkshop=false disables any use of Lua, effectivly
|
|
||||||
-Dworkshop=false
|
|
||||||
$(meson_feature cairo)
|
|
||||||
$(meson_feature cairo pangocairo)
|
|
||||||
$(meson_feature ffmpeg libav)
|
|
||||||
$(meson_feature lcms)
|
|
||||||
$(meson_feature lensfun)
|
|
||||||
$(meson_feature openexr)
|
|
||||||
$(meson_feature pdf poppler)
|
|
||||||
$(meson_feature raw libraw)
|
|
||||||
$(meson_feature sdl sdl1)
|
|
||||||
$(meson_feature svg librsvg)
|
|
||||||
$(meson_feature test pygobject)
|
|
||||||
$(meson_feature tiff libtiff)
|
|
||||||
$(meson_feature umfpack)
|
|
||||||
# - v4l support does not work with our media-libs/libv4l-0.8.9,
|
|
||||||
# upstream bug at https://bugzilla.gnome.org/show_bug.cgi?id=654675
|
|
||||||
$(meson_feature v4l libv4l)
|
|
||||||
$(meson_feature v4l libv4l2)
|
|
||||||
$(meson_feature vala vapigen)
|
|
||||||
$(meson_feature webp)
|
|
||||||
$(meson_use introspection)
|
|
||||||
)
|
|
||||||
meson_src_configure
|
|
||||||
}
|
|
@ -1,161 +0,0 @@
|
|||||||
# Copyright 1999-2021 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=7
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python3_{7..9} )
|
|
||||||
# vala and introspection support is broken, bug #468208
|
|
||||||
VALA_USE_DEPEND=vapigen
|
|
||||||
|
|
||||||
inherit meson optfeature python-any-r1 vala
|
|
||||||
|
|
||||||
if [[ ${PV} == *9999* ]]; then
|
|
||||||
inherit git-r3
|
|
||||||
EGIT_REPO_URI="https://gitlab.gnome.org/GNOME/gegl.git"
|
|
||||||
SRC_URI=""
|
|
||||||
else
|
|
||||||
SRC_URI="https://download.gimp.org/pub/${PN}/${PV:0:3}/${P}.tar.xz"
|
|
||||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux"
|
|
||||||
fi
|
|
||||||
|
|
||||||
DESCRIPTION="A graph based image processing framework"
|
|
||||||
HOMEPAGE="https://gegl.org/"
|
|
||||||
|
|
||||||
LICENSE="|| ( GPL-3+ LGPL-3 )"
|
|
||||||
SLOT="0.4"
|
|
||||||
|
|
||||||
IUSE="cairo debug ffmpeg introspection lcms lensfun openexr pdf raw sdl svg test tiff umfpack vala v4l webp"
|
|
||||||
REQUIRED_USE="
|
|
||||||
svg? ( cairo )
|
|
||||||
test? ( introspection )
|
|
||||||
vala? ( introspection )
|
|
||||||
"
|
|
||||||
|
|
||||||
RESTRICT="!test? ( test )"
|
|
||||||
|
|
||||||
# NOTE: Even current libav 11.4 does not have AV_CODEC_CAP_VARIABLE_FRAME_SIZE
|
|
||||||
# so there is no chance to support libav right now (Gentoo bug #567638)
|
|
||||||
# If it returns, please check prior GEGL ebuilds for how libav was integrated. Thanks!
|
|
||||||
RDEPEND="
|
|
||||||
>=dev-libs/glib-2.68.2:2
|
|
||||||
>=dev-libs/json-glib-1.2.6
|
|
||||||
>=media-libs/babl-0.1.84[introspection?,lcms?,vala?]
|
|
||||||
media-libs/libnsgif
|
|
||||||
>=media-libs/libpng-1.6.0:0=
|
|
||||||
>=sys-libs/zlib-1.2.0
|
|
||||||
virtual/jpeg:0=
|
|
||||||
>=x11-libs/gdk-pixbuf-2.32:2
|
|
||||||
>=x11-libs/pango-1.38.0
|
|
||||||
cairo? ( >=x11-libs/cairo-1.12.2 )
|
|
||||||
ffmpeg? ( media-video/ffmpeg:0= )
|
|
||||||
introspection? ( >=dev-libs/gobject-introspection-1.32:= )
|
|
||||||
lcms? ( >=media-libs/lcms-2.8:2 )
|
|
||||||
lensfun? ( >=media-libs/lensfun-0.2.5 )
|
|
||||||
openexr? ( >=media-libs/openexr-1.6.1:= )
|
|
||||||
pdf? ( >=app-text/poppler-0.71.0[cairo] )
|
|
||||||
raw? ( >=media-libs/libraw-0.15.4:0= )
|
|
||||||
sdl? ( >=media-libs/libsdl-1.2.0 )
|
|
||||||
svg? ( >=gnome-base/librsvg-2.40.6:2 )
|
|
||||||
tiff? ( >=media-libs/tiff-4:0 )
|
|
||||||
umfpack? ( sci-libs/umfpack )
|
|
||||||
v4l? ( >=media-libs/libv4l-1.0.1 )
|
|
||||||
webp? ( >=media-libs/libwebp-0.5.0:= )
|
|
||||||
"
|
|
||||||
DEPEND="${RDEPEND}"
|
|
||||||
BDEPEND="
|
|
||||||
${PYTHON_DEPS}
|
|
||||||
dev-lang/perl
|
|
||||||
>=dev-util/gtk-doc-am-1
|
|
||||||
>=sys-devel/gettext-0.19.8
|
|
||||||
>=sys-devel/libtool-2.2
|
|
||||||
virtual/pkgconfig
|
|
||||||
test? ( $(python_gen_any_dep '>=dev-python/pygobject-3.2:3[${PYTHON_USEDEP}]') )
|
|
||||||
vala? ( $(vala_depend) )
|
|
||||||
"
|
|
||||||
|
|
||||||
DOCS=( AUTHORS docs/ChangeLog docs/NEWS.txt )
|
|
||||||
|
|
||||||
PATCHES=(
|
|
||||||
"${FILESDIR}"/${P}-fix-build-openexr-3.patch
|
|
||||||
)
|
|
||||||
|
|
||||||
python_check_deps() {
|
|
||||||
use test || return 0
|
|
||||||
has_version -b ">=dev-python/pygobject-3.2:3[${PYTHON_USEDEP}]"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
default
|
|
||||||
# patch executables suffix
|
|
||||||
sed -i -e "s/'gegl'/'gegl-0.4'/" bin/meson.build || die
|
|
||||||
sed -i -e "s/'gegl-imgcmp'/'gegl-imgcmp-0.4'/" tools/meson.build || die
|
|
||||||
sed -i -e "s/gegl-imgcmp/gegl-imgcmp-0.4/" tests/simple/test-exp-combine.sh || die
|
|
||||||
# skip UNEXPECTED PASSED 'matting-levin' test
|
|
||||||
sed -i -e "s/composition_tests += 'matting-levin'//" \
|
|
||||||
-e "s/composition_tests_fail += 'matting-levin'//" tests/compositions/meson.build || die
|
|
||||||
|
|
||||||
# don't require Apple's OpenCL on versions of OSX that don't have it
|
|
||||||
if [[ ${CHOST} == *-darwin* && ${CHOST#*-darwin} -le 9 ]] ; then
|
|
||||||
sed -i -e 's/#ifdef __APPLE__/#if 0/' gegl/opencl/* || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
# commit 7c78497b : tests that use gegl.png are broken on non-amd64
|
|
||||||
sed -e '/clones.xml/d' \
|
|
||||||
-e '/composite-transform.xml/d' \
|
|
||||||
-i tests/compositions/meson.build || die
|
|
||||||
|
|
||||||
# fix 'build'headers from *.cl on gentoo-hardened, bug 739816
|
|
||||||
pushd "${S}/opencl/" || die
|
|
||||||
for file in *.cl; do
|
|
||||||
if [[ -f ${file} ]]; then
|
|
||||||
"${EPYTHON}" cltostring.py "${file}" || die
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
popd || die
|
|
||||||
|
|
||||||
use vala && vala_src_prepare
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
local emesonargs=(
|
|
||||||
# - Disable documentation as the generating is bit automagic
|
|
||||||
# if anyone wants to work on it just create bug with patch
|
|
||||||
-Ddocs=false
|
|
||||||
-Dexiv2=disabled
|
|
||||||
-Dgdk-pixbuf=enabled
|
|
||||||
-Djasper=disabled
|
|
||||||
# - libspiro: not in portage main tree
|
|
||||||
-Dlibspiro=disabled
|
|
||||||
-Dlua=disabled
|
|
||||||
-Dmrg=disabled
|
|
||||||
-Dpango=enabled
|
|
||||||
-Dsdl2=disabled
|
|
||||||
# - Parameter -Dworkshop=false disables any use of Lua, effectivly
|
|
||||||
-Dworkshop=false
|
|
||||||
$(meson_feature cairo)
|
|
||||||
$(meson_feature cairo pangocairo)
|
|
||||||
$(meson_feature ffmpeg libav)
|
|
||||||
$(meson_feature lcms)
|
|
||||||
$(meson_feature lensfun)
|
|
||||||
$(meson_feature openexr)
|
|
||||||
$(meson_feature pdf poppler)
|
|
||||||
$(meson_feature raw libraw)
|
|
||||||
$(meson_feature sdl sdl1)
|
|
||||||
$(meson_feature svg librsvg)
|
|
||||||
$(meson_feature test pygobject)
|
|
||||||
$(meson_feature tiff libtiff)
|
|
||||||
$(meson_feature umfpack)
|
|
||||||
# - v4l support does not work with our media-libs/libv4l-0.8.9,
|
|
||||||
# upstream bug at https://bugzilla.gnome.org/show_bug.cgi?id=654675
|
|
||||||
$(meson_feature v4l libv4l)
|
|
||||||
$(meson_feature v4l libv4l2)
|
|
||||||
$(meson_feature vala vapigen)
|
|
||||||
$(meson_feature webp)
|
|
||||||
$(meson_use introspection)
|
|
||||||
)
|
|
||||||
meson_src_configure
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
optfeature "'Show Image Graph' under GIMP[debug] menu 'File - Debug'" media-gfx/graphviz
|
|
||||||
}
|
|
@ -1,157 +0,0 @@
|
|||||||
# Copyright 1999-2021 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=7
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python3_{7..9} )
|
|
||||||
# vala and introspection support is broken, bug #468208
|
|
||||||
VALA_USE_DEPEND=vapigen
|
|
||||||
|
|
||||||
inherit meson optfeature python-any-r1 vala
|
|
||||||
|
|
||||||
if [[ ${PV} == *9999* ]]; then
|
|
||||||
inherit git-r3
|
|
||||||
EGIT_REPO_URI="https://gitlab.gnome.org/GNOME/gegl.git"
|
|
||||||
SRC_URI=""
|
|
||||||
else
|
|
||||||
SRC_URI="https://download.gimp.org/pub/${PN}/${PV:0:3}/${P}.tar.xz"
|
|
||||||
KEYWORDS="~alpha amd64 ~arm arm64 ~hppa ~ia64 ~mips ~ppc ppc64 ~riscv x86 ~amd64-linux ~x86-linux"
|
|
||||||
fi
|
|
||||||
|
|
||||||
DESCRIPTION="A graph based image processing framework"
|
|
||||||
HOMEPAGE="https://gegl.org/"
|
|
||||||
|
|
||||||
LICENSE="|| ( GPL-3+ LGPL-3 )"
|
|
||||||
SLOT="0.4"
|
|
||||||
|
|
||||||
IUSE="cairo debug ffmpeg introspection lcms lensfun openexr pdf raw sdl svg test tiff umfpack vala v4l webp"
|
|
||||||
REQUIRED_USE="
|
|
||||||
svg? ( cairo )
|
|
||||||
test? ( introspection )
|
|
||||||
vala? ( introspection )
|
|
||||||
"
|
|
||||||
|
|
||||||
RESTRICT="!test? ( test )"
|
|
||||||
|
|
||||||
# NOTE: Even current libav 11.4 does not have AV_CODEC_CAP_VARIABLE_FRAME_SIZE
|
|
||||||
# so there is no chance to support libav right now (Gentoo bug #567638)
|
|
||||||
# If it returns, please check prior GEGL ebuilds for how libav was integrated. Thanks!
|
|
||||||
RDEPEND="
|
|
||||||
>=dev-libs/glib-2.68.2:2
|
|
||||||
>=dev-libs/json-glib-1.2.6
|
|
||||||
>=media-libs/babl-0.1.88[introspection?,lcms?,vala?]
|
|
||||||
media-libs/libnsgif
|
|
||||||
>=media-libs/libpng-1.6.0:0=
|
|
||||||
>=sys-libs/zlib-1.2.0
|
|
||||||
virtual/jpeg:0=
|
|
||||||
>=x11-libs/gdk-pixbuf-2.32:2
|
|
||||||
>=x11-libs/pango-1.38.0
|
|
||||||
cairo? ( >=x11-libs/cairo-1.12.2 )
|
|
||||||
ffmpeg? ( media-video/ffmpeg:0= )
|
|
||||||
introspection? ( >=dev-libs/gobject-introspection-1.32:= )
|
|
||||||
lcms? ( >=media-libs/lcms-2.8:2 )
|
|
||||||
lensfun? ( >=media-libs/lensfun-0.2.5 )
|
|
||||||
openexr? ( >=media-libs/openexr-1.6.1:= )
|
|
||||||
pdf? ( >=app-text/poppler-0.71.0[cairo] )
|
|
||||||
raw? ( >=media-libs/libraw-0.15.4:0= )
|
|
||||||
sdl? ( >=media-libs/libsdl-1.2.0 )
|
|
||||||
svg? ( >=gnome-base/librsvg-2.40.6:2 )
|
|
||||||
tiff? ( >=media-libs/tiff-4:0 )
|
|
||||||
umfpack? ( sci-libs/umfpack )
|
|
||||||
v4l? ( >=media-libs/libv4l-1.0.1 )
|
|
||||||
webp? ( >=media-libs/libwebp-0.5.0:= )
|
|
||||||
"
|
|
||||||
DEPEND="${RDEPEND}"
|
|
||||||
BDEPEND="
|
|
||||||
${PYTHON_DEPS}
|
|
||||||
dev-lang/perl
|
|
||||||
>=dev-util/gtk-doc-am-1
|
|
||||||
>=sys-devel/gettext-0.19.8
|
|
||||||
>=sys-devel/libtool-2.2
|
|
||||||
virtual/pkgconfig
|
|
||||||
test? ( $(python_gen_any_dep '>=dev-python/pygobject-3.2:3[${PYTHON_USEDEP}]') )
|
|
||||||
vala? ( $(vala_depend) )
|
|
||||||
"
|
|
||||||
|
|
||||||
DOCS=( AUTHORS docs/ChangeLog docs/NEWS.adoc )
|
|
||||||
|
|
||||||
python_check_deps() {
|
|
||||||
use test || return 0
|
|
||||||
has_version -b ">=dev-python/pygobject-3.2:3[${PYTHON_USEDEP}]"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
default
|
|
||||||
# patch executables suffix
|
|
||||||
sed -i -e "s/'gegl'/'gegl-0.4'/" bin/meson.build || die
|
|
||||||
sed -i -e "s/'gegl-imgcmp'/'gegl-imgcmp-0.4'/" tools/meson.build || die
|
|
||||||
sed -i -e "s/gegl-imgcmp/gegl-imgcmp-0.4/" tests/simple/test-exp-combine.sh || die
|
|
||||||
# skip UNEXPECTED PASSED 'matting-levin' test
|
|
||||||
sed -i -e "s/composition_tests += 'matting-levin'//" \
|
|
||||||
-e "s/composition_tests_fail += 'matting-levin'//" tests/compositions/meson.build || die
|
|
||||||
|
|
||||||
# don't require Apple's OpenCL on versions of OSX that don't have it
|
|
||||||
if [[ ${CHOST} == *-darwin* && ${CHOST#*-darwin} -le 9 ]] ; then
|
|
||||||
sed -i -e 's/#ifdef __APPLE__/#if 0/' gegl/opencl/* || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
# commit 7c78497b : tests that use gegl.png are broken on non-amd64
|
|
||||||
sed -e '/clones.xml/d' \
|
|
||||||
-e '/composite-transform.xml/d' \
|
|
||||||
-i tests/compositions/meson.build || die
|
|
||||||
|
|
||||||
# fix 'build'headers from *.cl on gentoo-hardened, bug 739816
|
|
||||||
pushd "${S}/opencl/" || die
|
|
||||||
for file in *.cl; do
|
|
||||||
if [[ -f ${file} ]]; then
|
|
||||||
"${EPYTHON}" cltostring.py "${file}" || die
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
popd || die
|
|
||||||
|
|
||||||
use vala && vala_src_prepare
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
local emesonargs=(
|
|
||||||
# - Disable documentation as the generating is bit automagic
|
|
||||||
# if anyone wants to work on it just create bug with patch
|
|
||||||
-Ddocs=false
|
|
||||||
-Dexiv2=disabled
|
|
||||||
-Dgdk-pixbuf=enabled
|
|
||||||
-Djasper=disabled
|
|
||||||
# - libspiro: not in portage main tree
|
|
||||||
-Dlibspiro=disabled
|
|
||||||
-Dlua=disabled
|
|
||||||
-Dmrg=disabled
|
|
||||||
-Dpango=enabled
|
|
||||||
-Dsdl2=disabled
|
|
||||||
# - Parameter -Dworkshop=false disables any use of Lua, effectivly
|
|
||||||
-Dworkshop=false
|
|
||||||
$(meson_feature cairo)
|
|
||||||
$(meson_feature cairo pangocairo)
|
|
||||||
$(meson_feature ffmpeg libav)
|
|
||||||
$(meson_feature lcms)
|
|
||||||
$(meson_feature lensfun)
|
|
||||||
$(meson_feature openexr)
|
|
||||||
$(meson_feature pdf poppler)
|
|
||||||
$(meson_feature raw libraw)
|
|
||||||
$(meson_feature sdl sdl1)
|
|
||||||
$(meson_feature svg librsvg)
|
|
||||||
$(meson_feature test pygobject)
|
|
||||||
$(meson_feature tiff libtiff)
|
|
||||||
$(meson_feature umfpack)
|
|
||||||
# - v4l support does not work with our media-libs/libv4l-0.8.9,
|
|
||||||
# upstream bug at https://bugzilla.gnome.org/show_bug.cgi?id=654675
|
|
||||||
$(meson_feature v4l libv4l)
|
|
||||||
$(meson_feature v4l libv4l2)
|
|
||||||
$(meson_feature vala vapigen)
|
|
||||||
$(meson_feature webp)
|
|
||||||
$(meson_use introspection)
|
|
||||||
)
|
|
||||||
meson_src_configure
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
optfeature "'Show Image Graph' under GIMP[debug] menu 'File - Debug'" media-gfx/graphviz
|
|
||||||
}
|
|
@ -0,0 +1,40 @@
|
|||||||
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
inherit multilib-minimal
|
||||||
|
|
||||||
|
DESCRIPTION="Open implementation of the Advanced Access Content System (AACS) specification"
|
||||||
|
HOMEPAGE="https://www.videolan.org/developers/libaacs.html"
|
||||||
|
SRC_URI="https://downloads.videolan.org/pub/videolan/libaacs/${PV}/${P}.tar.bz2"
|
||||||
|
|
||||||
|
LICENSE="LGPL-2.1"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||||
|
|
||||||
|
RDEPEND=">=dev-libs/libgcrypt-1.5.3:0=[${MULTILIB_USEDEP}]
|
||||||
|
>=dev-libs/libgpg-error-1.12[${MULTILIB_USEDEP}]"
|
||||||
|
DEPEND="${RDEPEND}"
|
||||||
|
BDEPEND="sys-devel/flex
|
||||||
|
virtual/yacc"
|
||||||
|
|
||||||
|
DOCS=( ChangeLog KEYDB.cfg README.md )
|
||||||
|
|
||||||
|
multilib_src_configure() {
|
||||||
|
local myeconfargs=(
|
||||||
|
--disable-optimizations
|
||||||
|
--enable-shared
|
||||||
|
)
|
||||||
|
|
||||||
|
ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
|
||||||
|
|
||||||
|
# Workaround automake bug: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=54390
|
||||||
|
mkdir -p "${BUILD_DIR}"/src/file || die
|
||||||
|
}
|
||||||
|
|
||||||
|
multilib_src_install_all() {
|
||||||
|
einstalldocs
|
||||||
|
|
||||||
|
find "${ED}" -type f -name "*.la" -delete || die
|
||||||
|
}
|
Binary file not shown.
@ -1 +1 @@
|
|||||||
Mon, 14 Mar 2022 17:09:15 +0000
|
Tue, 15 Mar 2022 05:09:08 +0000
|
||||||
|
@ -1 +1 @@
|
|||||||
Mon, 14 Mar 2022 17:09:15 +0000
|
Tue, 15 Mar 2022 05:09:08 +0000
|
||||||
|
Binary file not shown.
Binary file not shown.
@ -0,0 +1,15 @@
|
|||||||
|
BDEPEND=test? ( dev-python/pytest-xdist[python_targets_python3_8(-)?,python_targets_python3_9(-)?,python_targets_python3_10(-)?] ) test? ( >=dev-python/botocore-1.24.19[python_targets_python3_8(-)?,python_targets_python3_9(-)?,python_targets_python3_10(-)?] dev-python/colorama[python_targets_python3_8(-)?,python_targets_python3_9(-)?,python_targets_python3_10(-)?] dev-python/docutils[python_targets_python3_8(-)?,python_targets_python3_9(-)?,python_targets_python3_10(-)?] dev-python/rsa[python_targets_python3_8(-)?,python_targets_python3_9(-)?,python_targets_python3_10(-)?] >=dev-python/s3transfer-0.4.0[python_targets_python3_8(-)?,python_targets_python3_9(-)?,python_targets_python3_10(-)?] dev-python/pyyaml[python_targets_python3_8(-)?,python_targets_python3_9(-)?,python_targets_python3_10(-)?] >=dev-python/pytest-6.2.5-r2[python_targets_python3_8(-)?,python_targets_python3_9(-)?,python_targets_python3_10(-)?] ) python_targets_python3_8? ( >=dev-lang/python-3.8.12_p1-r1:3.8 ) python_targets_python3_9? ( >=dev-lang/python-3.9.9-r1:3.9 ) python_targets_python3_10? ( >=dev-lang/python-3.10.0_p1-r1:3.10 ) >=dev-python/installer-0.4.0_p20220124[python_targets_python3_8(-)?,python_targets_python3_9(-)?,python_targets_python3_10(-)?] >=dev-python/tomli-1.2.3[python_targets_python3_8(-)?,python_targets_python3_9(-)?,python_targets_python3_10(-)?] >=dev-python/setuptools-60.5.0[python_targets_python3_8(-)?,python_targets_python3_9(-)?,python_targets_python3_10(-)?] dev-python/wheel[python_targets_python3_8(-)?,python_targets_python3_9(-)?,python_targets_python3_10(-)?]
|
||||||
|
DEFINED_PHASES=compile configure install prepare test
|
||||||
|
DESCRIPTION=Universal Command Line Environment for AWS
|
||||||
|
EAPI=8
|
||||||
|
HOMEPAGE=https://pypi.org/project/awscli/
|
||||||
|
IUSE=test python_targets_python3_8 python_targets_python3_9 python_targets_python3_10
|
||||||
|
KEYWORDS=~amd64 ~arm64 ~x86
|
||||||
|
LICENSE=Apache-2.0
|
||||||
|
RDEPEND=>=dev-python/botocore-1.24.19[python_targets_python3_8(-)?,python_targets_python3_9(-)?,python_targets_python3_10(-)?] dev-python/colorama[python_targets_python3_8(-)?,python_targets_python3_9(-)?,python_targets_python3_10(-)?] dev-python/docutils[python_targets_python3_8(-)?,python_targets_python3_9(-)?,python_targets_python3_10(-)?] dev-python/rsa[python_targets_python3_8(-)?,python_targets_python3_9(-)?,python_targets_python3_10(-)?] >=dev-python/s3transfer-0.4.0[python_targets_python3_8(-)?,python_targets_python3_9(-)?,python_targets_python3_10(-)?] dev-python/pyyaml[python_targets_python3_8(-)?,python_targets_python3_9(-)?,python_targets_python3_10(-)?] python_targets_python3_8? ( >=dev-lang/python-3.8.12_p1-r1:3.8 ) python_targets_python3_9? ( >=dev-lang/python-3.9.9-r1:3.9 ) python_targets_python3_10? ( >=dev-lang/python-3.10.0_p1-r1:3.10 )
|
||||||
|
REQUIRED_USE=|| ( python_targets_python3_8 python_targets_python3_9 python_targets_python3_10 )
|
||||||
|
RESTRICT=!test? ( test )
|
||||||
|
SLOT=0
|
||||||
|
SRC_URI=https://github.com/aws/aws-cli/archive/1.22.74.tar.gz -> awscli-1.22.74.tar.gz
|
||||||
|
_eclasses_=bash-completion-r1 d3a60385655d9b402be765a6de333245 distutils-r1 d540d96908dd5622f3dfa41d167e632d multibuild d79bd5b4bc4edcb1f5bc19591f8d4714 multilib de4beb52bfa93c4c5d96792a6b5e1784 multiprocessing 61c959fc55c15c00bbb1079d6a71370b python-r1 bcd408f1e4a9669198ef4dfcd5ab8696 python-utils-r1 d3d7da5aff94a677154819e0cb95ee36 toolchain-funcs badd6e329e1f3e6bee99b35bf8763ce8
|
||||||
|
_md5_=59519942ae5dec05b6326b5ab95639f7
|
Binary file not shown.
Binary file not shown.
@ -1,11 +0,0 @@
|
|||||||
DEFINED_PHASES=compile configure install prepare test
|
|
||||||
DEPEND=sys-devel/make >=dev-util/cmake-3.9.6
|
|
||||||
DESCRIPTION=CPU, RAM memory, and load monitor for use with tmux
|
|
||||||
EAPI=6
|
|
||||||
HOMEPAGE=https://github.com/thewtex/tmux-mem-cpu-load/
|
|
||||||
KEYWORDS=amd64 ~arm64 x86
|
|
||||||
LICENSE=Apache-2.0
|
|
||||||
SLOT=0
|
|
||||||
SRC_URI=https://github.com/thewtex/tmux-mem-cpu-load/archive/v3.4.0.tar.gz -> tmux-mem-cpu-load-3.4.0.tar.gz
|
|
||||||
_eclasses_=cmake-utils f40ef5c4fb8eda19cca8d6604bef497e desktop c0d27bf73aa08ca05b663dbd31fbef28 edos2unix 33e347e171066657f91f8b0c72ec8773 epatch 9f813bb3c47cf2e60619a663b87c5f4e estack 055c42df72f76a4f45ec92b35e83cd56 eutils dab5d8ec471d025b79c9e6906bcf3bff flag-o-matic a500d7cc40da3de38c361e889153bdf7 ltprune 4f3f2db5ce3ccbeeacdf3f94954043aa multilib de4beb52bfa93c4c5d96792a6b5e1784 multiprocessing 61c959fc55c15c00bbb1079d6a71370b ninja-utils a4dab848a4490e8e48cf0baab3e61bc2 preserve-libs dbc9f8d2d49c66467bc327fddd8317bd strip-linguas ac3ee41ee2d31d8c41a77c0838320cc7 toolchain-funcs badd6e329e1f3e6bee99b35bf8763ce8 vcs-clean d271b7bc7e6a009758d7d4ef749174e3 wrapper 4251d4c84c25f59094fd557e0063a974 xdg-utils 4f29a8b760a594a212abe9c2ba957c31
|
|
||||||
_md5_=438079fe9529b95145ef4ebe5ebdf5f9
|
|
Binary file not shown.
@ -1,16 +1,16 @@
|
|||||||
BDEPEND=app-text/docbook-xml-dtd:4.5 app-text/yelp-tools dev-util/gtk-doc-am >=dev-util/intltool-0.35.0 virtual/pkgconfig app-arch/xz-utils >=app-portage/elt-patches-20170815
|
BDEPEND=app-text/docbook-xml-dtd:4.5 app-text/yelp-tools dev-util/gtk-doc-am >=dev-util/intltool-0.35.0 virtual/pkgconfig app-arch/xz-utils >=app-portage/elt-patches-20170815
|
||||||
DEFINED_PHASES=configure install postinst postrm preinst prepare
|
DEFINED_PHASES=configure install postinst postrm preinst prepare
|
||||||
DEPEND=app-arch/bzip2 sys-libs/zlib >=dev-libs/glib-2.40.0:2 >=gnome-extra/libgsf-1.14.33:= >=x11-libs/goffice-0.10.51:0.10 >=dev-libs/libxml2-2.4.12:2 >=x11-libs/pango-1.24.0:= >=x11-libs/gtk+-3.8.7:3 x11-libs/cairo:=[svg] introspection? ( python_targets_python3_8? ( >=dev-lang/python-3.8.12_p1-r1:3.8 ) python_targets_python3_9? ( >=dev-lang/python-3.9.9-r1:3.9 ) >=dev-libs/gobject-introspection-1:= ) perl? ( dev-lang/perl:= ) libgda? ( gnome-extra/libgda:5[gtk] )
|
DEPEND=app-arch/bzip2 sys-libs/zlib >=dev-libs/glib-2.40.0:2 >=gnome-extra/libgsf-1.14.33:= >=x11-libs/goffice-0.10.51:0.10[introspection?] >=dev-libs/libxml2-2.4.12:2 >=x11-libs/pango-1.24.0:= >=x11-libs/gtk+-3.8.7:3 x11-libs/cairo:=[svg] introspection? ( python_targets_python3_8? ( >=dev-lang/python-3.8.12_p1-r1:3.8 ) python_targets_python3_9? ( >=dev-lang/python-3.9.9-r1:3.9 ) python_targets_python3_10? ( >=dev-lang/python-3.10.0_p1-r1:3.10 ) >=dev-libs/gobject-introspection-1:= ) perl? ( dev-lang/perl:= ) libgda? ( gnome-extra/libgda:5[gtk] )
|
||||||
DESCRIPTION=The GNOME Spreadsheet
|
DESCRIPTION=The GNOME Spreadsheet
|
||||||
EAPI=8
|
EAPI=8
|
||||||
HOMEPAGE=http://www.gnumeric.org/
|
HOMEPAGE=http://www.gnumeric.org/
|
||||||
IUSE=+introspection libgda perl python_targets_python3_8 python_targets_python3_9
|
IUSE=+introspection libgda perl python_targets_python3_8 python_targets_python3_9 python_targets_python3_10
|
||||||
KEYWORDS=~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86
|
KEYWORDS=~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86
|
||||||
LICENSE=GPL-2
|
LICENSE=GPL-2
|
||||||
RDEPEND=app-arch/bzip2 sys-libs/zlib >=dev-libs/glib-2.40.0:2 >=gnome-extra/libgsf-1.14.33:= >=x11-libs/goffice-0.10.51:0.10 >=dev-libs/libxml2-2.4.12:2 >=x11-libs/pango-1.24.0:= >=x11-libs/gtk+-3.8.7:3 x11-libs/cairo:=[svg] introspection? ( python_targets_python3_8? ( >=dev-lang/python-3.8.12_p1-r1:3.8 ) python_targets_python3_9? ( >=dev-lang/python-3.9.9-r1:3.9 ) >=dev-libs/gobject-introspection-1:= ) perl? ( dev-lang/perl:= ) libgda? ( gnome-extra/libgda:5[gtk] )
|
RDEPEND=app-arch/bzip2 sys-libs/zlib >=dev-libs/glib-2.40.0:2 >=gnome-extra/libgsf-1.14.33:= >=x11-libs/goffice-0.10.51:0.10[introspection?] >=dev-libs/libxml2-2.4.12:2 >=x11-libs/pango-1.24.0:= >=x11-libs/gtk+-3.8.7:3 x11-libs/cairo:=[svg] introspection? ( python_targets_python3_8? ( >=dev-lang/python-3.8.12_p1-r1:3.8 ) python_targets_python3_9? ( >=dev-lang/python-3.9.9-r1:3.9 ) python_targets_python3_10? ( >=dev-lang/python-3.10.0_p1-r1:3.10 ) >=dev-libs/gobject-introspection-1:= ) perl? ( dev-lang/perl:= ) libgda? ( gnome-extra/libgda:5[gtk] )
|
||||||
REQUIRED_USE=introspection? ( || ( python_targets_python3_8 python_targets_python3_9 ) )
|
REQUIRED_USE=introspection? ( || ( python_targets_python3_8 python_targets_python3_9 python_targets_python3_10 ) )
|
||||||
RESTRICT=test
|
RESTRICT=test
|
||||||
SLOT=0
|
SLOT=0
|
||||||
SRC_URI=mirror://gnome/sources/gnumeric/1.12/gnumeric-1.12.51.tar.xz
|
SRC_URI=mirror://gnome/sources/gnumeric/1.12/gnumeric-1.12.51.tar.xz
|
||||||
_eclasses_=gnome.org b5c48cddff1da36a205d924d722b28c9 libtool 241a8f577b9781a42a7421e53448a44e multibuild d79bd5b4bc4edcb1f5bc19591f8d4714 multilib de4beb52bfa93c4c5d96792a6b5e1784 multiprocessing 61c959fc55c15c00bbb1079d6a71370b python-r1 bcd408f1e4a9669198ef4dfcd5ab8696 python-utils-r1 d3d7da5aff94a677154819e0cb95ee36 toolchain-funcs badd6e329e1f3e6bee99b35bf8763ce8 xdg 6024fbc93167fad782e2032933654857 xdg-utils 4f29a8b760a594a212abe9c2ba957c31
|
_eclasses_=gnome.org b5c48cddff1da36a205d924d722b28c9 libtool 241a8f577b9781a42a7421e53448a44e multibuild d79bd5b4bc4edcb1f5bc19591f8d4714 multilib de4beb52bfa93c4c5d96792a6b5e1784 multiprocessing 61c959fc55c15c00bbb1079d6a71370b python-r1 bcd408f1e4a9669198ef4dfcd5ab8696 python-utils-r1 d3d7da5aff94a677154819e0cb95ee36 toolchain-funcs badd6e329e1f3e6bee99b35bf8763ce8 xdg 6024fbc93167fad782e2032933654857 xdg-utils 4f29a8b760a594a212abe9c2ba957c31
|
||||||
_md5_=20f0199e60a8dd32c56091684cb8e4c0
|
_md5_=e5bc5157772277bd601d7de92e9c781d
|
||||||
|
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