parent
1c4998a78b
commit
b564426339
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1 +1,2 @@
|
||||
DIST calligraplan-3.2.2.tar.xz 3415816 BLAKE2B b02248ac51c4593434f234b574c23c68fe6777787451c5679985143ddd4845ed3b3eae246dc80ead9158ad98d1896e90ca298df443e9aafc536ee15ee9f2992d SHA512 9d4c32926bc4716d881a6c70ba3e53764cd578b7d31e8fde02d8feb70996e806561149d3f34a75deae7c408ad65f8de93f6afa1b00982bcf15c23db6e6992915
|
||||
DIST calligraplan-3.3.0.tar.xz 4500032 BLAKE2B 48983bcaad5f8bc60a9e689ab9347731eda6c82eae248df50fa3cdf4a2d9c1882a5f44cda503dcb7ba65452da874256ce4ec3ff2348cf0acd65a9b8a83b63aed SHA512 165bb1d846e8ac96789b5123bd8e352ad77a4ae607d7e06008916f7729a457351c35779b43774f73a6a35bf9401626852cb4dd2ccf16cbcfb38d2abce56bd936
|
||||
|
@ -0,0 +1,89 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
ECM_HANDBOOK="forceoptional"
|
||||
ECM_TEST="forceoptional"
|
||||
KFMIN=5.74.0
|
||||
QTMIN=5.15.2
|
||||
inherit ecm kde.org
|
||||
|
||||
DESCRIPTION="Project management application"
|
||||
HOMEPAGE="https://calligra.org/plan/"
|
||||
|
||||
if [[ ${KDE_BUILD_TYPE} == release ]]; then
|
||||
SRC_URI="mirror://kde/stable/calligra/${PV}/${PN}-${PV}.tar.xz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="5"
|
||||
IUSE="activities +holidays kwallet X"
|
||||
|
||||
# FIXME: Disabled by upstream for good reason
|
||||
# Crashes (https://bugs.kde.org/show_bug.cgi?id=311940)
|
||||
# $(add_kdeapps_dep akonadi)
|
||||
# $(add_kdeapps_dep akonadi-contacts)
|
||||
# Currently upstream-disabled:
|
||||
# =dev-libs/kproperty-3.0*:5
|
||||
# =dev-libs/kreport-3.0*:5
|
||||
DEPEND="
|
||||
dev-lang/perl
|
||||
>=dev-libs/kdiagram-2.8.0:5
|
||||
>=dev-qt/designer-${QTMIN}:5
|
||||
>=dev-qt/qtdbus-${QTMIN}:5
|
||||
>=dev-qt/qtgui-${QTMIN}:5
|
||||
>=dev-qt/qtprintsupport-${QTMIN}:5
|
||||
>=dev-qt/qtwidgets-${QTMIN}:5
|
||||
>=dev-qt/qtxml-${QTMIN}:5
|
||||
>=kde-frameworks/karchive-${KFMIN}:5
|
||||
>=kde-frameworks/kcalendarcore-${KFMIN}:5
|
||||
>=kde-frameworks/kconfig-${KFMIN}:5
|
||||
>=kde-frameworks/kconfigwidgets-${KFMIN}:5
|
||||
>=kde-frameworks/kcoreaddons-${KFMIN}:5
|
||||
>=kde-frameworks/kdbusaddons-${KFMIN}:5
|
||||
>=kde-frameworks/kglobalaccel-${KFMIN}:5
|
||||
>=kde-frameworks/kguiaddons-${KFMIN}:5
|
||||
>=kde-frameworks/ki18n-${KFMIN}:5
|
||||
>=kde-frameworks/kiconthemes-${KFMIN}:5
|
||||
>=kde-frameworks/kio-${KFMIN}:5
|
||||
>=kde-frameworks/kitemmodels-${KFMIN}:5
|
||||
>=kde-frameworks/kitemviews-${KFMIN}:5
|
||||
>=kde-frameworks/kjobwidgets-${KFMIN}:5
|
||||
>=kde-frameworks/knotifications-${KFMIN}:5
|
||||
>=kde-frameworks/kparts-${KFMIN}:5
|
||||
>=kde-frameworks/kservice-${KFMIN}:5
|
||||
>=kde-frameworks/ktextwidgets-${KFMIN}:5
|
||||
>=kde-frameworks/kwidgetsaddons-${KFMIN}:5
|
||||
>=kde-frameworks/kwindowsystem-${KFMIN}:5
|
||||
>=kde-frameworks/kxmlgui-${KFMIN}:5
|
||||
activities? ( >=kde-frameworks/kactivities-${KFMIN}:5 )
|
||||
holidays? ( >=kde-frameworks/kholidays-${KFMIN}:5 )
|
||||
kwallet? (
|
||||
>=app-crypt/qca-2.3.0:2
|
||||
>=kde-frameworks/kwallet-${KFMIN}:5
|
||||
)
|
||||
X? (
|
||||
>=dev-qt/qtx11extras-${QTMIN}:5
|
||||
x11-libs/libX11
|
||||
)
|
||||
"
|
||||
RDEPEND="${DEPEND}
|
||||
!app-office/calligra[calligra_features_plan(-)]
|
||||
>=dev-qt/qtsvg-${QTMIN}:5
|
||||
"
|
||||
|
||||
RESTRICT+=" test"
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
$(cmake_use_find_package activities KF5Activities)
|
||||
$(cmake_use_find_package holidays KF5Holidays)
|
||||
$(cmake_use_find_package kwallet Qca-qt5)
|
||||
$(cmake_use_find_package kwallet KF5Wallet)
|
||||
)
|
||||
# Qt5DBus can't be disabled because of KF5DBusAddons dependency
|
||||
|
||||
ecm_src_configure
|
||||
}
|
Binary file not shown.
@ -0,0 +1,59 @@
|
||||
--- a/byterun/caml/intext.h 2021-01-28 22:46:20.400224678 +0100
|
||||
+++ b/byterun/caml/intext.h 2021-01-28 22:46:49.312751054 +0100
|
||||
@@ -196,7 +196,7 @@
|
||||
|
||||
CAMLextern struct code_fragment * caml_extern_find_code(char *addr);
|
||||
|
||||
-struct ext_table caml_code_fragments_table;
|
||||
+extern struct ext_table caml_code_fragments_table;
|
||||
|
||||
#endif /* CAML_INTERNALS */
|
||||
|
||||
--- a/byterun/caml/major_gc.h 2021-01-28 22:44:12.193323457 +0100
|
||||
+++ b/byterun/caml/major_gc.h 2021-01-28 22:45:20.918198701 +0100
|
||||
@@ -64,9 +64,9 @@
|
||||
extern char *caml_gc_sweep_hp;
|
||||
|
||||
extern int caml_major_window;
|
||||
-double caml_major_ring[Max_major_window];
|
||||
-int caml_major_ring_index;
|
||||
-double caml_major_work_credit;
|
||||
+extern double caml_major_ring[Max_major_window];
|
||||
+extern int caml_major_ring_index;
|
||||
+extern double caml_major_work_credit;
|
||||
extern double caml_gc_clock;
|
||||
|
||||
/* [caml_major_gc_hook] is called just between the end of the mark
|
||||
--- a/byterun/meta.c 2021-01-28 22:47:34.148016359 +0100
|
||||
+++ b/byterun/meta.c 2021-01-28 22:47:56.048657393 +0100
|
||||
@@ -32,6 +32,8 @@
|
||||
#include "caml/prims.h"
|
||||
#include "caml/stacks.h"
|
||||
|
||||
+struct ext_table caml_code_fragments_table;
|
||||
+
|
||||
#ifndef NATIVE_CODE
|
||||
|
||||
CAMLprim value caml_get_global_data(value unit)
|
||||
--- a/byterun/backtrace.c 2021-01-28 22:50:25.275226598 +0100
|
||||
+++ b/byterun/backtrace.c 2021-01-28 22:50:37.541027290 +0100
|
||||
@@ -28,7 +28,7 @@
|
||||
#include "caml/fail.h"
|
||||
|
||||
/* The table of debug information fragments */
|
||||
-struct ext_table caml_debug_info;
|
||||
+extern struct ext_table caml_debug_info;
|
||||
|
||||
CAMLexport int32_t caml_backtrace_active = 0;
|
||||
CAMLexport int32_t caml_backtrace_pos = 0;
|
||||
--- a/asmrun/startup.c 2021-01-28 23:02:50.526072662 +0100
|
||||
+++ b/asmrun/startup.c 2021-01-28 23:03:09.977754311 +0100
|
||||
@@ -44,7 +44,7 @@
|
||||
#endif
|
||||
|
||||
extern int caml_parser_trace;
|
||||
-CAMLexport header_t caml_atom_table[256];
|
||||
+CAMLextern header_t caml_atom_table[256];
|
||||
char * caml_code_area_start, * caml_code_area_end;
|
||||
|
||||
/* Initialize the atom table and the static data and code area limits. */
|
@ -0,0 +1,132 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="5"
|
||||
|
||||
inherit flag-o-matic eutils multilib versionator toolchain-funcs
|
||||
|
||||
PATCHLEVEL="9"
|
||||
MY_P="${P/_/-}"
|
||||
DESCRIPTION="Type-inferring functional programming language descended from the ML family"
|
||||
HOMEPAGE="https://ocaml.org"
|
||||
SRC_URI="https://github.com/ocaml/ocaml/archive/${PV/_/+}.tar.gz -> ${MY_P}.tar.gz
|
||||
mirror://gentoo/${PN}-patches-${PATCHLEVEL}.tar.bz2"
|
||||
|
||||
LICENSE="QPL-1.0 LGPL-2"
|
||||
# Everytime ocaml is updated to a new version, everything ocaml must be rebuilt,
|
||||
# so here we go with the subslot.
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~x86-solaris"
|
||||
IUSE="emacs flambda latex ncurses +ocamlopt spacetime X xemacs"
|
||||
|
||||
RDEPEND="
|
||||
sys-libs/binutils-libs:=
|
||||
ncurses? ( sys-libs/ncurses:0= )
|
||||
spacetime? ( sys-libs/libunwind:= )
|
||||
X? ( x11-libs/libX11 )
|
||||
!dev-ml/num"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig"
|
||||
|
||||
PDEPEND="emacs? ( app-emacs/ocaml-mode )
|
||||
xemacs? ( app-xemacs/ocaml )"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
pkg_setup() {
|
||||
# dev-lang/ocaml creates its own objects but calls gcc for linking, which will
|
||||
# results in relocations if gcc wants to create a PIE executable
|
||||
if gcc-specs-pie ; then
|
||||
append-ldflags -nopie
|
||||
ewarn "Ocaml generates its own native asm, you're using a PIE compiler"
|
||||
ewarn "We have appended -nopie to ocaml build options"
|
||||
ewarn "because linking an executable with pie while the objects are not pic will not work"
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
EPATCH_SUFFIX="patch" epatch "${WORKDIR}/patches"
|
||||
epatch "${FILESDIR}/${PN}-4.04.2-tinfo.patch" #459512
|
||||
epatch "${FILESDIR}"/${P}-gcc10.patch
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
export LC_ALL=C
|
||||
local myconf=""
|
||||
|
||||
# Causes build failures because it builds some programs with -pg,
|
||||
# bug #270920
|
||||
filter-flags -fomit-frame-pointer
|
||||
# Bug #285993
|
||||
filter-mfpmath sse
|
||||
|
||||
# -ggdb3 & co makes it behave weirdly, breaks sexplib
|
||||
replace-flags -ggdb* -ggdb
|
||||
|
||||
# It doesn't compile on alpha without this LDFLAGS
|
||||
use alpha && append-ldflags "-Wl,--no-relax"
|
||||
|
||||
use ncurses || myconf="${myconf} -no-curses"
|
||||
use X || myconf="${myconf} -no-graph"
|
||||
use flambda && myconf="${myconf} -flambda"
|
||||
use spacetime && myconf="${myconf} -spacetime"
|
||||
|
||||
# ocaml uses a home-brewn configure script, preventing it to use econf.
|
||||
RAW_LDFLAGS="$(raw-ldflags)" ./configure \
|
||||
--prefix "${EPREFIX}"/usr \
|
||||
--bindir "${EPREFIX}"/usr/bin \
|
||||
--target-bindir "${EPREFIX}"/usr/bin \
|
||||
--libdir "${EPREFIX}"/usr/$(get_libdir)/ocaml \
|
||||
--mandir "${EPREFIX}"/usr/share/man \
|
||||
-target "${CHOST}" \
|
||||
-host "${CBUILD}" \
|
||||
-cc "$(tc-getCC)" \
|
||||
-as "$(tc-getAS)" \
|
||||
-aspp "$(tc-getCC) -c" \
|
||||
-partialld "$(tc-getLD) -r" \
|
||||
--with-pthread ${myconf} || die "configure failed!"
|
||||
|
||||
# http://caml.inria.fr/mantis/view.php?id=4698
|
||||
export CCLINKFLAGS="${LDFLAGS}"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake world
|
||||
|
||||
# Native code generation can be disabled now
|
||||
if use ocamlopt ; then
|
||||
# bug #279968
|
||||
emake opt
|
||||
emake -j1 opt.opt
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
if use ocamlopt ; then
|
||||
emake -j1 tests
|
||||
else
|
||||
ewarn "${PN} testsuite requires ocamlopt useflag"
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake BINDIR="${ED}"/usr/bin \
|
||||
LIBDIR="${ED}"/usr/$(get_libdir)/ocaml \
|
||||
MANDIR="${ED}"/usr/share/man \
|
||||
install
|
||||
|
||||
# Symlink the headers to the right place
|
||||
dodir /usr/include
|
||||
dosym /usr/$(get_libdir)/ocaml/caml /usr/include/caml
|
||||
|
||||
dodoc Changes README.adoc
|
||||
|
||||
# Create and envd entry for latex input files
|
||||
if use latex ; then
|
||||
echo "TEXINPUTS=${EPREFIX}/usr/$(get_libdir)/ocaml/ocamldoc:" > "${T}"/99ocamldoc
|
||||
doenvd "${T}"/99ocamldoc
|
||||
fi
|
||||
|
||||
# Install ocaml-rebuild portage set
|
||||
insinto /usr/share/portage/config/sets
|
||||
doins "${FILESDIR}/ocaml.conf"
|
||||
}
|
Binary file not shown.
@ -1,5 +1,2 @@
|
||||
DIST simdjson-0.4.7.tar.gz 4119328 BLAKE2B f19a603b83282081457f548bd9b609f4fc4b9b0e32c868c8d4ecc15fbc359e6463576c24f38b6623cd72cc4681a1db42ec45ee605df6096876982caa9f96be91 SHA512 023e8b75652cb29c41eb1e01ebc6c484b28ff5f6736c885fb5d8c639b1047660fd0eb24d131dabc035fc7fc824e15fe49b177bc3613e329f1d8cd956173a490f
|
||||
DIST simdjson-0.6.0-ppc64.patch.xz 23704 BLAKE2B ab26e93960d3e3cc2c7782516ef2e6e36fb259c1bd83b967f32b0ba899ca9f80468a47cc3344dd9dc392898626a88b4a1de42899502a989511945e573bf7f259 SHA512 c8e1233c7e6f92cf0c92206ae1023cd30067004e4e53fed86d11e105490f281bf1b8a0806880d02427485fbade24aeb7a7b027b17c9f05552089cf867f3029eb
|
||||
DIST simdjson-0.6.1.tar.gz 7889048 BLAKE2B 35b40e5e278e5093f5f07ad9e27ae23417f206bf2f4f624a6130931882db49632fc5141d027deca4977a3efa1fdfc7d8fc0bc2149d938a985a850eff4250f5bf SHA512 df5f6c717b3c4cfcde7757dff74d51c93f4682729fdbcdaae89d82db13bba006fe0378bc601d5bdf1d4cf2f0fafce56eb88aba8ca9648787a64cf160cab479e4
|
||||
DIST simdjson-0.7.1.tar.gz 7972319 BLAKE2B c06b1db95b5d826babf7c673b8ef390c2169d975bbec585f6ea98a53455643b4ec462683d312fabbf8a1155309ba9fdd20977ba813e0fbfad5cbe45363ef7189 SHA512 f2ed21db24a8c80c48194e875680ee27dcb87ce1ee52d7f7466e3096661ccee179986bdc15d93e2a3d8d9f2f659f3bd678c908cfbde4905afd95e5e767f84e1c
|
||||
DIST simdjson-0.8.0.tar.gz 7993692 BLAKE2B f2f04b3f9815645fcb4fcf2d10b0a234177042a0f4e306b0e130d5136c627344201a1f7c4d1ba6cb1ce30debf44f00694bc9a5bb646040bb614e91ae31bf43bb SHA512 8c41e07dbc3668105131c5a22060891c54f7663ec512d6c12f18eed0971fe245c3adb8d27c27305827314ebff39d2c940bd3715fa12e1ce9332d9bf3693424f2
|
||||
DIST simdjson-0.8.1.tar.gz 7994048 BLAKE2B 800fbec2b8d20394a894407dea09e3b61302cf6c772dc459b73a97f5ec1e29feb082366d202f5bd835fd54802435e8f437dddbe3ec6db449812b849cd02639b2 SHA512 c4861901595b574e5f1a17abb58f30072bc16e90dc245304019890cd59f172a56c2661410653ff3e4472670541ef2291b3661765f6d64b5f8f70c562b90a3bd0
|
||||
|
@ -1,34 +0,0 @@
|
||||
# Copyright 2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit toolchain-funcs cmake
|
||||
|
||||
DESCRIPTION="SIMD accelerated C++ JSON library"
|
||||
HOMEPAGE="
|
||||
https://simdjson.org/
|
||||
https://github.com/simdjson/simdjson
|
||||
"
|
||||
SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0 Boost-1.0"
|
||||
SLOT="0/2"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="test"
|
||||
|
||||
BDEPEND="
|
||||
sys-apps/file
|
||||
sys-apps/findutils
|
||||
sys-apps/grep
|
||||
"
|
||||
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
$(usex test '' '-DSIMDJSON_JUST_LIBRARY=ON')
|
||||
)
|
||||
|
||||
cmake_src_configure
|
||||
}
|
@ -1,45 +0,0 @@
|
||||
# Copyright 2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit toolchain-funcs cmake
|
||||
|
||||
DESCRIPTION="SIMD accelerated C++ JSON library"
|
||||
HOMEPAGE="
|
||||
https://simdjson.org/
|
||||
https://github.com/simdjson/simdjson
|
||||
"
|
||||
SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
|
||||
https://dev.gentoo.org/~gyakovlev/distfiles/${PN}-0.6.0-ppc64.patch.xz"
|
||||
|
||||
LICENSE="Apache-2.0 Boost-1.0"
|
||||
SLOT="0/4"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
|
||||
IUSE="test"
|
||||
|
||||
BDEPEND="
|
||||
sys-apps/file
|
||||
sys-apps/findutils
|
||||
sys-apps/grep
|
||||
"
|
||||
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
PATCHES=(
|
||||
# applies cleanly from master, can be dropped on next release
|
||||
"${WORKDIR}/simdjson-0.6.0-ppc64.patch"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
sed -e 's:-Werror ::' -i cmake/simdjson-flags.cmake || die
|
||||
cmake_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
$(usex test '' '-DSIMDJSON_JUST_LIBRARY=ON')
|
||||
)
|
||||
|
||||
cmake_src_configure
|
||||
}
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,2 +1,2 @@
|
||||
DIST pdfrw-0.4.tar.gz 95402 BLAKE2B 00f01f8d4cca9c5306d08094639d4cb10c53aca1c81b6c65f5639c8862a067e562c164523cc58abddb06b39dabcc50c2fbcdcf04a291309cac709cbfd0cf4673 SHA512 6c0b629e837f9bd479a288bcd040952b98920da345113bf90167becbdf2f90a9d6c082c5e7988c68118bd62a2a5a0d22f98523407996531bb5d3031e847e10b0
|
||||
DIST pdfrw-0.4-1.tar.gz 143615 BLAKE2B 281dc94c762dcc776e2c9c84609b59ca32387510bcfbec39271a6073533f9ad5d416cf4250b3dcd8564973d197ce090719c5561f58b972c89d463b90723ac8e6 SHA512 f2ef6a966cb1b947425679e6c16e658b5d1dbc13d62fb2e1edc278508b03f6c6847b3c83dab8bcd7df3438e587df066bc16b653461ae402bb8688ddb05f4e886
|
||||
DIST pdfrw-static_pdfs-d646009a0e3e71daf13a52ab1029e2230920ebf4.tar.gz 25243391 BLAKE2B 5c491d56c9731352907787bbe10b8b3ac362f0c7892ddcd15a1299d3b2b4bb604662f6231aa22478290992a345e769af2e2c2459a25a16c370ea05fa68101f80 SHA512 9bf1d5ddc8f55b40b50041e745579406bb0036fb7795ac40064aad7cdf592869051ba84a5ab080042e237690bb2f1811b86b2a4424535aa4c367f6e29a0c34eb
|
||||
|
@ -1,53 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{6,7,8} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
PDFS_COMMIT=d646009a0e3e71daf13a52ab1029e2230920ebf4
|
||||
DESCRIPTION="PDF file reader/writer library"
|
||||
HOMEPAGE="https://github.com/pmaupin/pdfrw"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz
|
||||
test? (
|
||||
https://github.com/pmaupin/static_pdfs/archive/${PDFS_COMMIT}.tar.gz
|
||||
-> pdfrw-static_pdfs-${PDFS_COMMIT}.tar.gz
|
||||
)"
|
||||
|
||||
LICENSE="BSD MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ppc ppc64 sparc x86"
|
||||
|
||||
BDEPEND="
|
||||
test? ( dev-python/reportlab[${PYTHON_USEDEP}] )"
|
||||
|
||||
# unittest would be sufficient but its output is unreadable
|
||||
distutils_enable_tests pytest
|
||||
|
||||
src_unpack() {
|
||||
default
|
||||
if use test; then
|
||||
mv "static_pdfs-${PDFS_COMMIT}"/* "${P}"/tests/static_pdfs/ || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# broken upstream (sensitive to reportlab version?)
|
||||
sed -e 's:test_rl1_platypus:_&:' \
|
||||
-i tests/test_examples.py || die
|
||||
# fails with py3
|
||||
sed -e '/repaginate\/7037/s:[0-9a-f]*$:skip:' \
|
||||
-e '/.*\/72eb/s:[0-9a-f]*$:skip:' \
|
||||
-i tests/expected.txt || die
|
||||
# fix py3.7+ some
|
||||
sed -i -e 's:raise StopIteration:return:' pdfrw/tokens.py || die
|
||||
|
||||
distutils-r1_src_prepare
|
||||
}
|
||||
|
||||
src_test() {
|
||||
cd tests || die
|
||||
distutils-r1_src_test
|
||||
}
|
@ -0,0 +1,58 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{6..9} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
PDFS_COMMIT=d646009a0e3e71daf13a52ab1029e2230920ebf4
|
||||
DESCRIPTION="PDF file reader/writer library"
|
||||
HOMEPAGE="https://github.com/pmaupin/pdfrw"
|
||||
|
||||
if [[ ${PV} = 9999* ]]; then
|
||||
EGIT_REPO_URI="https://github.com/sarnold/hexdump.git"
|
||||
EGIT_BRANCH="main"
|
||||
inherit git-r3
|
||||
KEYWORDS=""
|
||||
else
|
||||
MY_PV="${PV/_p/-}"
|
||||
MY_P="${PN}-${MY_PV}"
|
||||
SRC_URI="https://github.com/sarnold/${PN}/archive/${MY_PV}.tar.gz -> ${PN}-${MY_PV}.tar.gz
|
||||
test? ( https://github.com/pmaupin/static_pdfs/archive/${PDFS_COMMIT}.tar.gz
|
||||
-> pdfrw-static_pdfs-${PDFS_COMMIT}.tar.gz )"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
fi
|
||||
|
||||
LICENSE="BSD MIT"
|
||||
SLOT="0"
|
||||
IUSE="crypt test"
|
||||
|
||||
BDEPEND="dev-python/pillow[${PYTHON_USEDEP}]
|
||||
crypt? ( dev-python/pycryptodome[${PYTHON_USEDEP}] )
|
||||
test? ( dev-python/reportlab[${PYTHON_USEDEP}]
|
||||
>=dev-python/pytest-3.0.3[${PYTHON_USEDEP}] )"
|
||||
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
# unittest would be sufficient but its output is unreadable
|
||||
distutils_enable_tests pytest
|
||||
|
||||
src_unpack() {
|
||||
default
|
||||
if use test; then
|
||||
mv "static_pdfs-${PDFS_COMMIT}"/* "${MY_P}"/tests/static_pdfs || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# broken upstream (sensitive to reportlab version?)
|
||||
#sed -e 's:test_rl1_platypus:_&:' \
|
||||
# -i tests/test_examples.py || die
|
||||
eapply "${FILESDIR}/pdfrw-fix-import-collections-warning.patch"
|
||||
use test && eapply "${FILESDIR}/pdfrw-static-fix-import-collections-warning.patch"
|
||||
|
||||
distutils-r1_src_prepare
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST python3-saml-1.10.0.tar.gz 503005 BLAKE2B 88be9b00082d00c86081432dd6789c0f040e8e210d3d1de218f8bf7a41cf32acce6aa90f92b6e083142a2a5c8f820eb9f8b6e880e742400b8bb83e7eb28db392 SHA512 82d15ef4315d25b38506177cbb4ef095a0546705035491847597b353486e119026c700f5d4d22764c93646f645e13d93d75bd3541c2c5b31343bcee35a42ead3
|
||||
DIST python3-saml-1.10.1.tar.gz 503178 BLAKE2B 6c87f26db03799ee92211baf1216751c293ae6182d8f8abb094fcc47c2c28ca7be933b64b0dc3cbd52ea55a0cd19c4fc96a71bb89839d41fdd3eb3daee21d293 SHA512 64bd3fc11749ef8340fa59788277e5213edec6d93f7924e412e517846623dce88b97c407ca7ae0d58172cc78a8b713c2916fe5c29df3419fa10f34b84bdb549c
|
||||
DIST python3-saml-1.9.0.tar.gz 497106 BLAKE2B c3b282be835dcd0590125563ed0380bbb5d486aeffd60fa0d6a1e7d22b25ffaa03a1bea555520b1465b27b352df0936d21b919ce73a3671d63f07a52b3efdb37 SHA512 a5171258b917c02f10a0c420a19fe6829a034df1dfd87135351b9c187314dca2f973012f49056f391444aba76306adfd48cd77a859274d5cbd2a8c23a00af78d
|
||||
|
@ -0,0 +1,36 @@
|
||||
# Copyright 2020-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{7..9} )
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="OneLogin's SAML Python Toolkit"
|
||||
HOMEPAGE="https://github.com/onelogin/python3-saml
|
||||
https://pypi.org/project/python3-saml/"
|
||||
SRC_URI="https://github.com/onelogin/python3-saml/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc64 ~x86"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/isodate-0.5.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/lxml-3.3.5[${PYTHON_USEDEP}]
|
||||
>=dev-python/python-xmlsec-1.0.5[${PYTHON_USEDEP}]
|
||||
>=dev-python/defusedxml-0.6.0[${PYTHON_USEDEP}]
|
||||
"
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-python/freezegun[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
distutils_enable_tests setup.py
|
||||
|
||||
src_prepare() {
|
||||
# unpin deps
|
||||
sed -i -e 's:==:>=:' setup.py || die
|
||||
distutils-r1_src_prepare
|
||||
}
|
Binary file not shown.
@ -0,0 +1,230 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
CMAKE_MAKEFILE_GENERATOR="emake" # TODO RunCMake.LinkWhatYouUse fails consistently w/ ninja
|
||||
CMAKE_REMOVE_MODULES_LIST=( none )
|
||||
inherit bash-completion-r1 cmake elisp-common flag-o-matic multiprocessing \
|
||||
toolchain-funcs virtualx xdg-utils
|
||||
|
||||
MY_P="${P/_/-}"
|
||||
|
||||
DESCRIPTION="Cross platform Make"
|
||||
HOMEPAGE="https://cmake.org/"
|
||||
SRC_URI="https://cmake.org/files/v$(ver_cut 1-2)/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="CMake"
|
||||
SLOT="0"
|
||||
[[ "${PV}" = *_rc* ]] || \
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="doc emacs ncurses qt5 test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="
|
||||
>=app-arch/libarchive-3.3.3:=
|
||||
app-crypt/rhash
|
||||
>=dev-libs/expat-2.0.1
|
||||
>=dev-libs/jsoncpp-1.9.2-r2:0=
|
||||
>=dev-libs/libuv-1.10.0:=
|
||||
>=net-misc/curl-7.21.5[ssl]
|
||||
sys-libs/zlib
|
||||
virtual/pkgconfig
|
||||
emacs? ( >=app-editors/emacs-23.1:* )
|
||||
ncurses? ( sys-libs/ncurses:0= )
|
||||
qt5? (
|
||||
dev-qt/qtcore:5
|
||||
dev-qt/qtgui:5
|
||||
dev-qt/qtwidgets:5
|
||||
)
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="
|
||||
doc? (
|
||||
dev-python/requests
|
||||
dev-python/sphinx
|
||||
)
|
||||
test? ( app-arch/libarchive[zstd] )
|
||||
"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
SITEFILE="50${PN}-gentoo.el"
|
||||
|
||||
PATCHES=(
|
||||
# prefix
|
||||
"${FILESDIR}"/${PN}-3.16.0_rc4-darwin-bundle.patch
|
||||
"${FILESDIR}"/${PN}-3.14.0_rc3-prefix-dirs.patch
|
||||
"${FILESDIR}"/${PN}-3.19.1-darwin-gcc.patch
|
||||
|
||||
# handle gentoo packaging in find modules
|
||||
"${FILESDIR}"/${PN}-3.17.0_rc1-FindBLAS.patch
|
||||
# Next patch needs to be reworked
|
||||
#"${FILESDIR}"/${PN}-3.17.0_rc1-FindLAPACK.patch
|
||||
"${FILESDIR}"/${PN}-3.5.2-FindQt4.patch
|
||||
|
||||
# respect python eclasses
|
||||
"${FILESDIR}"/${PN}-2.8.10.2-FindPythonLibs.patch
|
||||
"${FILESDIR}"/${PN}-3.9.0_rc2-FindPythonInterp.patch
|
||||
|
||||
"${FILESDIR}"/${PN}-3.18.0-filter_distcc_warning.patch # bug 691544
|
||||
|
||||
# upstream fixes (can usually be removed with a version bump)
|
||||
)
|
||||
|
||||
cmake_src_bootstrap() {
|
||||
# disable running of cmake in bootstrap command
|
||||
sed -i \
|
||||
-e '/"${cmake_bootstrap_dir}\/cmake"/s/^/#DONOTRUN /' \
|
||||
bootstrap || die "sed failed"
|
||||
|
||||
# execinfo.h on Solaris isn't quite what it is on Darwin
|
||||
if [[ ${CHOST} == *-solaris* ]] ; then
|
||||
sed -i -e 's/execinfo\.h/blablabla.h/' \
|
||||
Source/kwsys/CMakeLists.txt || die
|
||||
fi
|
||||
|
||||
# bootstrap script isn't exactly /bin/sh compatible
|
||||
tc-env_build ${CONFIG_SHELL:-sh} ./bootstrap \
|
||||
--prefix="${T}/cmakestrap/" \
|
||||
--parallel=$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)") \
|
||||
|| die "Bootstrap failed"
|
||||
}
|
||||
|
||||
cmake_src_test() {
|
||||
# fix OutDir and SelectLibraryConfigurations tests
|
||||
# these are altered thanks to our eclass
|
||||
sed -i -e 's:^#_cmake_modify_IGNORE ::g' \
|
||||
"${S}"/Tests/{OutDir,CMakeOnly/SelectLibraryConfigurations}/CMakeLists.txt \
|
||||
|| die
|
||||
|
||||
pushd "${BUILD_DIR}" > /dev/null
|
||||
|
||||
local ctestargs
|
||||
[[ -n ${TEST_VERBOSE} ]] && ctestargs="--extra-verbose --output-on-failure"
|
||||
|
||||
# Excluded tests:
|
||||
# BootstrapTest: we actually bootstrap it every time so why test it.
|
||||
# BundleUtilities: bundle creation broken
|
||||
# CMakeOnly.AllFindModules: pthread issues
|
||||
# CTest.updatecvs: fails to commit as root
|
||||
# Fortran: requires fortran
|
||||
# RunCMake.CompilerLauncher: also requires fortran
|
||||
# RunCMake.CPack_RPM: breaks if app-arch/rpm is installed because
|
||||
# debugedit binary is not in the expected location
|
||||
# RunCMake.CPack_DEB: breaks if app-arch/dpkg is installed because
|
||||
# it can't find a deb package that owns libc
|
||||
# RunCMake.{IncompatibleQt,ObsoleteQtMacros}: Require Qt4
|
||||
# TestUpload: requires network access
|
||||
"${BUILD_DIR}"/bin/ctest \
|
||||
-j "$(makeopts_jobs)" \
|
||||
--test-load "$(makeopts_loadavg)" \
|
||||
${ctestargs} \
|
||||
-E "(BootstrapTest|BundleUtilities|CMakeOnly.AllFindModules|CompileOptions|CTest.UpdateCVS|DependencyGraph|Fortran|RunCMake.CompilerLauncher|RunCMake.IncompatibleQt|RunCMake.ObsoleteQtMacros|RunCMake.PrecompileHeaders|RunCMake.CPack_(DEB|RPM)|TestUpload)" \
|
||||
|| die "Tests failed"
|
||||
|
||||
popd > /dev/null
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
cmake_src_prepare
|
||||
|
||||
if [[ ${CHOST} == *-darwin* ]] ; then
|
||||
# disable Xcode hooks, bug #652134
|
||||
sed -i -e 's/cm\(\|Global\|Local\)XCode[^.]\+\.\(cxx\|h\)//' \
|
||||
Source/CMakeLists.txt || die
|
||||
sed -i -e '/define CMAKE_USE_XCODE/s/XCODE/NO_XCODE/' \
|
||||
-e '/cmGlobalXCodeGenerator.h/d' \
|
||||
Source/cmake.cxx || die
|
||||
# disable isysroot usage with GCC, we've properly instructed
|
||||
# where things are via GCC configuration and ldwrapper
|
||||
sed -i -e '/cmake_gnu_set_sysroot_flag/d' \
|
||||
Modules/Platform/Apple-GNU-*.cmake || die
|
||||
# disable isysroot usage with clang as well
|
||||
sed -i -e '/_SYSROOT_FLAG/d' \
|
||||
Modules/Platform/Apple-Clang.cmake || die
|
||||
# don't set a POSIX standard, system headers don't like that, #757426
|
||||
sed -i -e 's/^#if !defined(_WIN32) && !defined(__sun)/& \&\& !defined(__APPLE__)/' \
|
||||
Source/cmLoadCommandCommand.cxx \
|
||||
Source/cmStandardLexer.h \
|
||||
Source/cmSystemTools.cxx \
|
||||
Source/cmTimestamp.cxx
|
||||
fi
|
||||
|
||||
# Add gcc libs to the default link paths
|
||||
sed -i \
|
||||
-e "s|@GENTOO_PORTAGE_GCCLIBDIR@|${EPREFIX}/usr/${CHOST}/lib/|g" \
|
||||
-e "$(usex prefix-guest "s|@GENTOO_HOST@||" "/@GENTOO_HOST@/d")" \
|
||||
-e "s|@GENTOO_PORTAGE_EPREFIX@|${EPREFIX}/|g" \
|
||||
Modules/Platform/{UnixPaths,Darwin}.cmake || die "sed failed"
|
||||
if ! has_version -b \>=${CATEGORY}/${PN}-3.4.0_rc1 || ! cmake --version &>/dev/null ; then
|
||||
CMAKE_BINARY="${S}/Bootstrap.cmk/cmake"
|
||||
cmake_src_bootstrap
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# Fix linking on Solaris
|
||||
[[ ${CHOST} == *-solaris* ]] && append-ldflags -lsocket -lnsl
|
||||
|
||||
local mycmakeargs=(
|
||||
-DCMAKE_USE_SYSTEM_LIBRARIES=ON
|
||||
-DCMAKE_DOC_DIR=/share/doc/${PF}
|
||||
-DCMAKE_MAN_DIR=/share/man
|
||||
-DCMAKE_DATA_DIR=/share/${PN}
|
||||
-DSPHINX_MAN=$(usex doc)
|
||||
-DSPHINX_HTML=$(usex doc)
|
||||
-DBUILD_CursesDialog="$(usex ncurses)"
|
||||
-DBUILD_TESTING=$(usex test)
|
||||
)
|
||||
use qt5 && mycmakeargs+=( -DBUILD_QtDialog=ON )
|
||||
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cmake_src_compile
|
||||
use emacs && elisp-compile Auxiliary/cmake-mode.el
|
||||
}
|
||||
|
||||
src_test() {
|
||||
virtx cmake_src_test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake_src_install
|
||||
|
||||
if use emacs; then
|
||||
elisp-install ${PN} Auxiliary/cmake-mode.el Auxiliary/cmake-mode.elc
|
||||
elisp-site-file-install "${FILESDIR}/${SITEFILE}"
|
||||
fi
|
||||
|
||||
insinto /usr/share/vim/vimfiles/syntax
|
||||
doins Auxiliary/vim/syntax/cmake.vim
|
||||
|
||||
insinto /usr/share/vim/vimfiles/indent
|
||||
doins Auxiliary/vim/indent/cmake.vim
|
||||
|
||||
insinto /usr/share/vim/vimfiles/ftdetect
|
||||
doins "${FILESDIR}/${PN}.vim"
|
||||
|
||||
dobashcomp Auxiliary/bash-completion/{${PN},ctest,cpack}
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
use emacs && elisp-site-regen
|
||||
if use qt5; then
|
||||
xdg_icon_cache_update
|
||||
xdg_desktop_database_update
|
||||
xdg_mimeinfo_database_update
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
use emacs && elisp-site-regen
|
||||
if use qt5; then
|
||||
xdg_icon_cache_update
|
||||
xdg_desktop_database_update
|
||||
xdg_mimeinfo_database_update
|
||||
fi
|
||||
}
|
Binary file not shown.
Binary file not shown.
@ -1,66 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
ECM_HANDBOOK="forceoptional"
|
||||
ECM_TEST="forceoptional"
|
||||
PVCUT=$(ver_cut 1-3)
|
||||
KFMIN=5.75.0
|
||||
QTMIN=5.15.1
|
||||
inherit ecm kde.org
|
||||
|
||||
DESCRIPTION="Screenshot capture utility"
|
||||
HOMEPAGE="https://apps.kde.org/en/spectacle"
|
||||
|
||||
LICENSE="LGPL-2+ handbook? ( FDL-1.3 ) kipi? ( GPL-2+ )"
|
||||
SLOT="5"
|
||||
KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
|
||||
IUSE="kipi share"
|
||||
|
||||
# TODO: mv guru.git -> gentoo.git
|
||||
# IUSE+=" annotate"
|
||||
# DEPEND+="
|
||||
# dev-qt/qtsvg-${QTMIN}:5
|
||||
# x11-libs/kimageannotator
|
||||
# "
|
||||
|
||||
DEPEND="
|
||||
>=dev-qt/qdbus-${QTMIN}:5
|
||||
>=dev-qt/qtdbus-${QTMIN}:5
|
||||
>=dev-qt/qtgui-${QTMIN}:5
|
||||
>=dev-qt/qtprintsupport-${QTMIN}:5
|
||||
>=dev-qt/qtwidgets-${QTMIN}:5
|
||||
>=dev-qt/qtx11extras-${QTMIN}:5
|
||||
>=kde-frameworks/kconfig-${KFMIN}:5
|
||||
>=kde-frameworks/kconfigwidgets-${KFMIN}:5
|
||||
>=kde-frameworks/kcoreaddons-${KFMIN}:5
|
||||
>=kde-frameworks/kdbusaddons-${KFMIN}:5
|
||||
>=kde-frameworks/kglobalaccel-${KFMIN}:5
|
||||
>=kde-frameworks/ki18n-${KFMIN}:5
|
||||
>=kde-frameworks/kio-${KFMIN}:5
|
||||
>=kde-frameworks/knewstuff-${KFMIN}:5
|
||||
>=kde-frameworks/knotifications-${KFMIN}:5
|
||||
>=kde-frameworks/kservice-${KFMIN}:5
|
||||
>=kde-frameworks/kwayland-${KFMIN}:5
|
||||
>=kde-frameworks/kwidgetsaddons-${KFMIN}:5
|
||||
>=kde-frameworks/kwindowsystem-${KFMIN}:5
|
||||
>=kde-frameworks/kxmlgui-${KFMIN}:5
|
||||
x11-libs/libxcb
|
||||
x11-libs/xcb-util
|
||||
x11-libs/xcb-util-cursor
|
||||
x11-libs/xcb-util-image
|
||||
kipi? ( >=kde-apps/libkipi-${PVCUT}:5= )
|
||||
share? ( >=kde-frameworks/purpose-${KFMIN}:5 )
|
||||
"
|
||||
RDEPEND="${DEPEND}
|
||||
kipi? ( >=kde-apps/kipi-plugins-${PVCUT}:5 )
|
||||
"
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
$(cmake_use_find_package kipi KF5Kipi)
|
||||
$(cmake_use_find_package share KF5Purpose)
|
||||
)
|
||||
ecm_src_configure
|
||||
}
|
Binary file not shown.
Binary file not shown.
@ -0,0 +1,75 @@
|
||||
diff --git a/common.pri b/common.pri
|
||||
index 523aa7c..33be789 100644
|
||||
--- a/common.pri
|
||||
+++ b/common.pri
|
||||
@@ -212,37 +212,7 @@ defineReplace(enable_ccache){
|
||||
}
|
||||
|
||||
defineReplace(FindBuildRevision){
|
||||
-CONFIG(debug, debug|release){
|
||||
- # Debug mode
|
||||
- return(\\\"unknown\\\")
|
||||
-}else{
|
||||
- # Release mode
|
||||
-
|
||||
- macx{
|
||||
- HG = /usr/local/bin/hg # Can't defeat PATH variable on Mac OS.
|
||||
- }else {
|
||||
- HG = hg # All other platforms are OK.
|
||||
- }
|
||||
-
|
||||
- #build revision number for using in version
|
||||
- unix {
|
||||
- DVCS_HESH=$$system("$${HG} log -r. --template '{node|short}'")
|
||||
- } else {
|
||||
- # Use escape character before "|" on Windows
|
||||
- DVCS_HESH=$$system($${HG} log -r. --template "{node^|short}")
|
||||
- }
|
||||
- isEmpty(DVCS_HESH){
|
||||
- DVCS_HESH=$$system("git rev-parse --short HEAD")
|
||||
- isEmpty(DVCS_HESH){
|
||||
- DVCS_HESH = \\\"unknown\\\" # if we can't find build revision left unknown.
|
||||
- } else {
|
||||
- DVCS_HESH=\\\"Git:$${DVCS_HESH}\\\"
|
||||
- }
|
||||
- } else {
|
||||
- DVCS_HESH=\\\"Hg:$${DVCS_HESH}\\\"
|
||||
- }
|
||||
- return($${DVCS_HESH})
|
||||
-}
|
||||
+return(\\\"unknown\\\")
|
||||
}
|
||||
|
||||
# Default prefix. Use for creation install path.
|
||||
diff --git a/src/libs/vmisc/vmisc.pro b/src/libs/vmisc/vmisc.pro
|
||||
index cf8db51..fff1c0e 100644
|
||||
--- a/src/libs/vmisc/vmisc.pro
|
||||
+++ b/src/libs/vmisc/vmisc.pro
|
||||
@@ -98,10 +98,7 @@ CONFIG(debug, debug|release){
|
||||
HG = hg # All other platforms all OK.
|
||||
}
|
||||
#latest tag distance number for using in version
|
||||
- HG_DISTANCE=$$system($${HG} log -r. --template '{latesttagdistance}')
|
||||
- isEmpty(HG_DISTANCE){
|
||||
- HG_DISTANCE = 0 # if we can't find local revision left 0.
|
||||
- }
|
||||
+ HG_DISTANCE = 0 # if we can't find local revision left 0.
|
||||
message("Latest tag distance:" $${HG_DISTANCE})
|
||||
DEFINES += "LATEST_TAG_DISTANCE=$${HG_DISTANCE}" # Make available latest tag distance number in sources.
|
||||
}
|
||||
diff --git a/src/libs/vtest/vtest.pro b/src/libs/vtest/vtest.pro
|
||||
index a336d48..c943fc5 100644
|
||||
--- a/src/libs/vtest/vtest.pro
|
||||
+++ b/src/libs/vtest/vtest.pro
|
||||
@@ -92,10 +92,7 @@ CONFIG(debug, debug|release){
|
||||
HG = hg # All other platforms all OK.
|
||||
}
|
||||
#latest tag distance number for using in version
|
||||
- HG_DISTANCE=$$system($${HG} log -r. --template '{latesttagdistance}')
|
||||
- isEmpty(HG_DISTANCE){
|
||||
- HG_DISTANCE = 0 # if we can't find local revision left 0.
|
||||
- }
|
||||
+ HG_DISTANCE = 0 # if we can't find local revision left 0.
|
||||
message("Latest tag distance:" $${HG_DISTANCE})
|
||||
DEFINES += "LATEST_TAG_DISTANCE=$${HG_DISTANCE}" # Make available latest tag distance number in sources.
|
||||
}
|
Binary file not shown.
@ -1,5 +1,3 @@
|
||||
DIST mesa-20.2.4.tar.xz 13869928 BLAKE2B 078dc88be08d3b41d5144c4d72b0044512dc77c7afcbc6366dc7b9d435886afc65009277b215f6e2898cef98a7c52fb232d8b36bd6e6d1114326302d5acc9216 SHA512 e60decb867a3ca08b99e72aa62db8c5515696bf4a9e2642c1703479167a79b0828192f6dcca688263f5786cd524308a4410e47111fa7b97c091473e4ac4ee799
|
||||
DIST mesa-20.2.6.tar.xz 13886924 BLAKE2B 2bc5d680979b58a77105a8058da5dfea81afe05166a44d08cf243e5760b8c66e418fd78046a2c88243f56aa85a610d052f3aaf259938668cd0f4a184e9edca46 SHA512 347b275d88c0d14cacef570ed736cac07f2e607bc4c89a16b915ec01ac57dbbe698ddf9a0ad70f034e00318403351e3c728e74c72c653acf1fc99720887fa888
|
||||
DIST mesa-20.3.2.tar.xz 14194120 BLAKE2B 545073b7f3f9dd54e087402b599ffa55e37a6a0b2422a52fc22cbe8de0b91a88603bd2241e2308f6891cdab731f0e01c9c9683028819aebcf3251ef3ae3db9bf SHA512 0cabf8ddfd20b56098c8f4c081a3c2d4741ef42f40c929645e74284db99cf2a81137d7d279b7b6a0c15dea83905119ddf612411b36344dc22a488de9f311f5ed
|
||||
DIST mesa-20.3.3.tar.xz 14222700 BLAKE2B 02996b9f784f4c4a4502f8d5a1ef9763799b36206cfbfb56aeeb84837a119457fcfdd2d2efc3bf87fe945bd4dd4747b77fe9af51b290311b86e850fa4d6ac8c6 SHA512 77735462f4ccbe865d0cf7e9db47c42f8bc2600b9a030dca11066d29e43f73c18ca0422e6356129fc14ac1b1018ed752ae4ee45bd31ae706fea58f573a14d346
|
||||
DIST mesa-21.0.0-rc1.tar.xz 14452448 BLAKE2B 1c5738a1ce16fa79931cb57cf2d1605970d95d1f7b635aa73f35ac78da27909c5d651491df64f90c4cd667df5b01550b0eba952d4f768cf862e8121cc75cfa4c SHA512 7157c5fbc9f545836e6b9d81805084450730aaab183466f1c19ef6b0d65ae1b4f04882a87f90982dbfec38da991732b9e0ddba9350be55d675dd409d7c142ed4
|
||||
DIST mesa-21.0.0-rc3.tar.xz 14488732 BLAKE2B f459fde39b7a1a62166b1d58df309e6295c489eef1324649478a6e21139317068b7cc5fb9ab6d54a31bbfc8c696df81ebc9531e14c40020380f342dc5948036d SHA512 b51495e8ef3a4a2f1b98ad3c4f5037c21b4b7df375138bcc02b24cb4b7ffd7b807d76ac0853d0ecc81c09ceca2a97e5c402352700f297ed7f4369f98d03a0810
|
||||
|
@ -1,556 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{6,7,8,9} )
|
||||
|
||||
inherit llvm meson multilib-minimal python-any-r1 linux-info
|
||||
|
||||
OPENGL_DIR="xorg-x11"
|
||||
|
||||
MY_P="${P/_/-}"
|
||||
|
||||
DESCRIPTION="OpenGL-like graphic library for Linux"
|
||||
HOMEPAGE="https://www.mesa3d.org/ https://mesa.freedesktop.org/"
|
||||
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
EGIT_REPO_URI="https://gitlab.freedesktop.org/mesa/mesa.git"
|
||||
inherit git-r3
|
||||
else
|
||||
SRC_URI="https://archive.mesa3d.org/${MY_P}.tar.xz"
|
||||
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~s390 sparc x86 ~amd64-linux ~x86-linux ~sparc-solaris ~x64-solaris ~x86-solaris"
|
||||
fi
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
RESTRICT="
|
||||
!test? ( test )
|
||||
"
|
||||
|
||||
RADEON_CARDS="r100 r200 r300 r600 radeon radeonsi"
|
||||
VIDEO_CARDS="${RADEON_CARDS} freedreno i915 i965 intel iris lima nouveau panfrost v3d vc4 virgl vivante vmware"
|
||||
for card in ${VIDEO_CARDS}; do
|
||||
IUSE_VIDEO_CARDS+=" video_cards_${card}"
|
||||
done
|
||||
|
||||
IUSE="${IUSE_VIDEO_CARDS}
|
||||
+classic d3d9 debug +dri3 +egl +gallium +gbm gles1 +gles2 +llvm
|
||||
lm-sensors opencl osmesa selinux test unwind vaapi valgrind vdpau vulkan
|
||||
vulkan-overlay wayland +X xa xvmc zink +zstd"
|
||||
|
||||
REQUIRED_USE="
|
||||
d3d9? ( dri3 || ( video_cards_iris video_cards_r300 video_cards_r600 video_cards_radeonsi video_cards_nouveau video_cards_vmware ) )
|
||||
gles1? ( egl )
|
||||
gles2? ( egl )
|
||||
vulkan? ( dri3
|
||||
video_cards_radeonsi? ( llvm ) )
|
||||
vulkan-overlay? ( vulkan )
|
||||
wayland? ( egl gbm )
|
||||
video_cards_freedreno? ( gallium )
|
||||
video_cards_intel? ( classic )
|
||||
video_cards_i915? ( || ( classic gallium ) )
|
||||
video_cards_i965? ( classic )
|
||||
video_cards_iris? ( gallium )
|
||||
video_cards_lima? ( gallium )
|
||||
video_cards_nouveau? ( || ( classic gallium ) )
|
||||
video_cards_panfrost? ( gallium )
|
||||
video_cards_radeon? ( || ( classic gallium )
|
||||
gallium? ( x86? ( llvm ) amd64? ( llvm ) ) )
|
||||
video_cards_r100? ( classic )
|
||||
video_cards_r200? ( classic )
|
||||
video_cards_r300? ( gallium x86? ( llvm ) amd64? ( llvm ) )
|
||||
video_cards_r600? ( gallium )
|
||||
video_cards_radeonsi? ( gallium llvm )
|
||||
video_cards_v3d? ( gallium )
|
||||
video_cards_vc4? ( gallium )
|
||||
video_cards_virgl? ( gallium )
|
||||
video_cards_vivante? ( gallium gbm )
|
||||
video_cards_vmware? ( gallium )
|
||||
xa? ( X )
|
||||
xvmc? ( X )
|
||||
zink? ( gallium vulkan )
|
||||
"
|
||||
|
||||
LIBDRM_DEPSTRING=">=x11-libs/libdrm-2.4.100"
|
||||
RDEPEND="
|
||||
>=dev-libs/expat-2.1.0-r3:=[${MULTILIB_USEDEP}]
|
||||
>=media-libs/libglvnd-1.3.2[X?,${MULTILIB_USEDEP}]
|
||||
>=sys-libs/zlib-1.2.8[${MULTILIB_USEDEP}]
|
||||
gallium? (
|
||||
unwind? ( sys-libs/libunwind[${MULTILIB_USEDEP}] )
|
||||
llvm? (
|
||||
video_cards_radeonsi? (
|
||||
virtual/libelf:0=[${MULTILIB_USEDEP}]
|
||||
)
|
||||
video_cards_r600? (
|
||||
virtual/libelf:0=[${MULTILIB_USEDEP}]
|
||||
)
|
||||
video_cards_radeon? (
|
||||
virtual/libelf:0=[${MULTILIB_USEDEP}]
|
||||
)
|
||||
)
|
||||
lm-sensors? ( sys-apps/lm-sensors:=[${MULTILIB_USEDEP}] )
|
||||
opencl? (
|
||||
>=virtual/opencl-3[${MULTILIB_USEDEP}]
|
||||
dev-libs/libclc
|
||||
virtual/libelf:0=[${MULTILIB_USEDEP}]
|
||||
)
|
||||
vaapi? (
|
||||
>=x11-libs/libva-1.7.3:=[${MULTILIB_USEDEP}]
|
||||
)
|
||||
vdpau? ( >=x11-libs/libvdpau-1.1:=[${MULTILIB_USEDEP}] )
|
||||
xvmc? ( >=x11-libs/libXvMC-1.0.8:=[${MULTILIB_USEDEP}] )
|
||||
)
|
||||
selinux? ( sys-libs/libselinux[${MULTILIB_USEDEP}] )
|
||||
wayland? (
|
||||
>=dev-libs/wayland-1.15.0:=[${MULTILIB_USEDEP}]
|
||||
>=dev-libs/wayland-protocols-1.8
|
||||
)
|
||||
${LIBDRM_DEPSTRING}[video_cards_freedreno?,video_cards_nouveau?,video_cards_vc4?,video_cards_vivante?,video_cards_vmware?,${MULTILIB_USEDEP}]
|
||||
video_cards_intel? (
|
||||
!video_cards_i965? ( ${LIBDRM_DEPSTRING}[video_cards_intel] )
|
||||
)
|
||||
video_cards_i915? ( ${LIBDRM_DEPSTRING}[video_cards_intel] )
|
||||
vulkan-overlay? ( dev-util/glslang:0=[${MULTILIB_USEDEP}] )
|
||||
X? (
|
||||
>=x11-libs/libX11-1.6.2:=[${MULTILIB_USEDEP}]
|
||||
>=x11-libs/libxshmfence-1.1:=[${MULTILIB_USEDEP}]
|
||||
>=x11-libs/libXdamage-1.1.4-r1:=[${MULTILIB_USEDEP}]
|
||||
>=x11-libs/libXext-1.3.2:=[${MULTILIB_USEDEP}]
|
||||
>=x11-libs/libXxf86vm-1.1.3:=[${MULTILIB_USEDEP}]
|
||||
>=x11-libs/libxcb-1.13:=[${MULTILIB_USEDEP}]
|
||||
x11-libs/libXfixes:=[${MULTILIB_USEDEP}]
|
||||
)
|
||||
zink? ( media-libs/vulkan-loader:=[${MULTILIB_USEDEP}] )
|
||||
zstd? ( app-arch/zstd:=[${MULTILIB_USEDEP}] )
|
||||
"
|
||||
for card in ${RADEON_CARDS}; do
|
||||
RDEPEND="${RDEPEND}
|
||||
video_cards_${card}? ( ${LIBDRM_DEPSTRING}[video_cards_radeon] )
|
||||
"
|
||||
done
|
||||
RDEPEND="${RDEPEND}
|
||||
video_cards_radeonsi? ( ${LIBDRM_DEPSTRING}[video_cards_amdgpu] )
|
||||
"
|
||||
|
||||
# Please keep the LLVM dependency block separate. Since LLVM is slotted,
|
||||
# we need to *really* make sure we're not pulling one than more slot
|
||||
# simultaneously.
|
||||
#
|
||||
# How to use it:
|
||||
# 1. List all the working slots (with min versions) in ||, newest first.
|
||||
# 2. Update the := to specify *max* version, e.g. < 10.
|
||||
# 3. Specify LLVM_MAX_SLOT, e.g. 9.
|
||||
LLVM_MAX_SLOT="11"
|
||||
LLVM_DEPSTR="
|
||||
|| (
|
||||
sys-devel/llvm:11[${MULTILIB_USEDEP}]
|
||||
sys-devel/llvm:10[${MULTILIB_USEDEP}]
|
||||
sys-devel/llvm:9[${MULTILIB_USEDEP}]
|
||||
)
|
||||
<sys-devel/llvm-$((LLVM_MAX_SLOT + 1)):=[${MULTILIB_USEDEP}]
|
||||
"
|
||||
LLVM_DEPSTR_AMDGPU=${LLVM_DEPSTR//]/,llvm_targets_AMDGPU(-)]}
|
||||
CLANG_DEPSTR=${LLVM_DEPSTR//llvm/clang}
|
||||
CLANG_DEPSTR_AMDGPU=${CLANG_DEPSTR//]/,llvm_targets_AMDGPU(-)]}
|
||||
RDEPEND="${RDEPEND}
|
||||
gallium? (
|
||||
llvm? (
|
||||
opencl? (
|
||||
video_cards_r600? (
|
||||
${CLANG_DEPSTR_AMDGPU}
|
||||
)
|
||||
!video_cards_r600? (
|
||||
video_cards_radeonsi? (
|
||||
${CLANG_DEPSTR_AMDGPU}
|
||||
)
|
||||
)
|
||||
!video_cards_r600? (
|
||||
!video_cards_radeonsi? (
|
||||
video_cards_radeon? (
|
||||
${CLANG_DEPSTR_AMDGPU}
|
||||
)
|
||||
)
|
||||
)
|
||||
!video_cards_r600? (
|
||||
!video_cards_radeon? (
|
||||
!video_cards_radeonsi? (
|
||||
${CLANG_DEPSTR}
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
!opencl? (
|
||||
video_cards_r600? (
|
||||
${LLVM_DEPSTR_AMDGPU}
|
||||
)
|
||||
!video_cards_r600? (
|
||||
video_cards_radeonsi? (
|
||||
${LLVM_DEPSTR_AMDGPU}
|
||||
)
|
||||
)
|
||||
!video_cards_r600? (
|
||||
!video_cards_radeonsi? (
|
||||
video_cards_radeon? (
|
||||
${LLVM_DEPSTR_AMDGPU}
|
||||
)
|
||||
)
|
||||
)
|
||||
!video_cards_r600? (
|
||||
!video_cards_radeon? (
|
||||
!video_cards_radeonsi? (
|
||||
${LLVM_DEPSTR}
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
"
|
||||
unset {LLVM,CLANG}_DEPSTR{,_AMDGPU}
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
valgrind? ( dev-util/valgrind )
|
||||
X? (
|
||||
x11-libs/libXrandr[${MULTILIB_USEDEP}]
|
||||
x11-base/xorg-proto
|
||||
)
|
||||
"
|
||||
BDEPEND="
|
||||
${PYTHON_DEPS}
|
||||
opencl? (
|
||||
>=sys-devel/gcc-4.6
|
||||
)
|
||||
sys-devel/bison
|
||||
sys-devel/flex
|
||||
virtual/pkgconfig
|
||||
$(python_gen_any_dep ">=dev-python/mako-0.8.0[\${PYTHON_USEDEP}]")
|
||||
"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
EGIT_CHECKOUT_DIR=${S}
|
||||
|
||||
QA_WX_LOAD="
|
||||
x86? (
|
||||
usr/lib*/libglapi.so.0.0.0
|
||||
usr/lib*/libGLESv1_CM.so.1.1.0
|
||||
usr/lib*/libGLESv2.so.2.0.0
|
||||
usr/lib*/libGL.so.1.2.0
|
||||
usr/lib*/libOSMesa.so.8.0.0
|
||||
usr/lib/libGLX_mesa.so.0.0.0
|
||||
)"
|
||||
|
||||
llvm_check_deps() {
|
||||
local flags=${MULTILIB_USEDEP}
|
||||
if use video_cards_r600 || use video_cards_radeon || use video_cards_radeonsi
|
||||
then
|
||||
flags+=",llvm_targets_AMDGPU(-)"
|
||||
fi
|
||||
|
||||
if use opencl; then
|
||||
has_version "sys-devel/clang:${LLVM_SLOT}[${flags}]" || return 1
|
||||
fi
|
||||
has_version "sys-devel/llvm:${LLVM_SLOT}[${flags}]"
|
||||
}
|
||||
|
||||
pkg_pretend() {
|
||||
if use vulkan; then
|
||||
if ! use video_cards_i965 &&
|
||||
! use video_cards_iris &&
|
||||
! use video_cards_radeonsi; then
|
||||
ewarn "Ignoring USE=vulkan since VIDEO_CARDS does not contain i965, iris, or radeonsi"
|
||||
fi
|
||||
fi
|
||||
|
||||
if use opencl; then
|
||||
if ! use video_cards_r600 &&
|
||||
! use video_cards_radeonsi; then
|
||||
ewarn "Ignoring USE=opencl since VIDEO_CARDS does not contain r600 or radeonsi"
|
||||
fi
|
||||
fi
|
||||
|
||||
if use vaapi; then
|
||||
if ! use video_cards_r600 &&
|
||||
! use video_cards_radeonsi &&
|
||||
! use video_cards_nouveau; then
|
||||
ewarn "Ignoring USE=vaapi since VIDEO_CARDS does not contain r600, radeonsi, or nouveau"
|
||||
fi
|
||||
fi
|
||||
|
||||
if use vdpau; then
|
||||
if ! use video_cards_r300 &&
|
||||
! use video_cards_r600 &&
|
||||
! use video_cards_radeonsi &&
|
||||
! use video_cards_nouveau; then
|
||||
ewarn "Ignoring USE=vdpau since VIDEO_CARDS does not contain r300, r600, radeonsi, or nouveau"
|
||||
fi
|
||||
fi
|
||||
|
||||
if use xa; then
|
||||
if ! use video_cards_freedreno &&
|
||||
! use video_cards_nouveau &&
|
||||
! use video_cards_vmware; then
|
||||
ewarn "Ignoring USE=xa since VIDEO_CARDS does not contain freedreno, nouveau, or vmware"
|
||||
fi
|
||||
fi
|
||||
|
||||
if use xvmc; then
|
||||
if ! use video_cards_r600 &&
|
||||
! use video_cards_nouveau; then
|
||||
ewarn "Ignoring USE=xvmc since VIDEO_CARDS does not contain r600 or nouveau"
|
||||
fi
|
||||
fi
|
||||
|
||||
if ! use gallium; then
|
||||
use lm-sensors && ewarn "Ignoring USE=lm-sensors since USE does not contain gallium"
|
||||
use llvm && ewarn "Ignoring USE=llvm since USE does not contain gallium"
|
||||
use opencl && ewarn "Ignoring USE=opencl since USE does not contain gallium"
|
||||
use vaapi && ewarn "Ignoring USE=vaapi since USE does not contain gallium"
|
||||
use vdpau && ewarn "Ignoring USE=vdpau since USE does not contain gallium"
|
||||
use unwind && ewarn "Ignoring USE=unwind since USE does not contain gallium"
|
||||
use xa && ewarn "Ignoring USE=xa since USE does not contain gallium"
|
||||
use xvmc && ewarn "Ignoring USE=xvmc since USE does not contain gallium"
|
||||
fi
|
||||
|
||||
if ! use llvm; then
|
||||
use opencl && ewarn "Ignoring USE=opencl since USE does not contain llvm"
|
||||
fi
|
||||
}
|
||||
|
||||
python_check_deps() {
|
||||
has_version -b ">=dev-python/mako-0.8.0[${PYTHON_USEDEP}]"
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
# warning message for bug 459306
|
||||
if use llvm && has_version sys-devel/llvm[!debug=]; then
|
||||
ewarn "Mismatch between debug USE flags in media-libs/mesa and sys-devel/llvm"
|
||||
ewarn "detected! This can cause problems. For details, see bug 459306."
|
||||
fi
|
||||
|
||||
if use video_cards_i965 ||
|
||||
use video_cards_iris ||
|
||||
use video_cards_radeonsi; then
|
||||
CONFIG_CHECK="~CHECKPOINT_RESTORE"
|
||||
linux-info_pkg_setup
|
||||
fi
|
||||
|
||||
if use gallium && use llvm; then
|
||||
llvm_pkg_setup
|
||||
fi
|
||||
python-any-r1_pkg_setup
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
local emesonargs=()
|
||||
|
||||
if use classic; then
|
||||
# Intel code
|
||||
dri_driver_enable video_cards_i915 i915
|
||||
dri_driver_enable video_cards_i965 i965
|
||||
if ! use video_cards_i915 && \
|
||||
! use video_cards_i965; then
|
||||
dri_driver_enable video_cards_intel i915 i965
|
||||
fi
|
||||
|
||||
# Nouveau code
|
||||
dri_driver_enable video_cards_nouveau nouveau
|
||||
|
||||
# ATI code
|
||||
dri_driver_enable video_cards_r100 r100
|
||||
dri_driver_enable video_cards_r200 r200
|
||||
if ! use video_cards_r100 && \
|
||||
! use video_cards_r200; then
|
||||
dri_driver_enable video_cards_radeon r100 r200
|
||||
fi
|
||||
fi
|
||||
|
||||
local platforms
|
||||
use X && platforms+="x11"
|
||||
use wayland && platforms+=",wayland"
|
||||
emesonargs+=(-Dplatforms=${platforms#,})
|
||||
|
||||
if use X || use egl; then
|
||||
emesonargs+=(-Dglvnd=true)
|
||||
else
|
||||
emesonargs+=(-Dglvnd=false)
|
||||
fi
|
||||
|
||||
if use gallium; then
|
||||
emesonargs+=(
|
||||
$(meson_feature llvm)
|
||||
$(meson_feature lm-sensors lmsensors)
|
||||
$(meson_feature unwind libunwind)
|
||||
)
|
||||
|
||||
if use video_cards_iris ||
|
||||
use video_cards_r300 ||
|
||||
use video_cards_r600 ||
|
||||
use video_cards_radeonsi ||
|
||||
use video_cards_nouveau ||
|
||||
use video_cards_vmware; then
|
||||
emesonargs+=($(meson_use d3d9 gallium-nine))
|
||||
else
|
||||
emesonargs+=(-Dgallium-nine=false)
|
||||
fi
|
||||
|
||||
if use video_cards_r600 ||
|
||||
use video_cards_radeonsi ||
|
||||
use video_cards_nouveau; then
|
||||
emesonargs+=($(meson_feature vaapi gallium-va))
|
||||
use vaapi && emesonargs+=( -Dva-libs-path="${EPREFIX}"/usr/$(get_libdir)/va/drivers )
|
||||
else
|
||||
emesonargs+=(-Dgallium-va=disabled)
|
||||
fi
|
||||
|
||||
if use video_cards_r300 ||
|
||||
use video_cards_r600 ||
|
||||
use video_cards_radeonsi ||
|
||||
use video_cards_nouveau; then
|
||||
emesonargs+=($(meson_feature vdpau gallium-vdpau))
|
||||
else
|
||||
emesonargs+=(-Dgallium-vdpau=disabled)
|
||||
fi
|
||||
|
||||
if use video_cards_freedreno ||
|
||||
use video_cards_nouveau ||
|
||||
use video_cards_vmware; then
|
||||
emesonargs+=($(meson_feature xa gallium-xa))
|
||||
else
|
||||
emesonargs+=(-Dgallium-xa=disabled)
|
||||
fi
|
||||
|
||||
if use video_cards_r600 ||
|
||||
use video_cards_nouveau; then
|
||||
emesonargs+=($(meson_feature xvmc gallium-xvmc))
|
||||
else
|
||||
emesonargs+=(-Dgallium-xvmc=disabled)
|
||||
fi
|
||||
|
||||
if use video_cards_freedreno ||
|
||||
use video_cards_lima ||
|
||||
use video_cards_panfrost ||
|
||||
use video_cards_v3d ||
|
||||
use video_cards_vc4 ||
|
||||
use video_cards_vivante; then
|
||||
gallium_enable -- kmsro
|
||||
fi
|
||||
|
||||
gallium_enable video_cards_lima lima
|
||||
gallium_enable video_cards_panfrost panfrost
|
||||
gallium_enable video_cards_v3d v3d
|
||||
gallium_enable video_cards_vc4 vc4
|
||||
gallium_enable video_cards_vivante etnaviv
|
||||
gallium_enable video_cards_vmware svga
|
||||
gallium_enable video_cards_nouveau nouveau
|
||||
gallium_enable zink zink
|
||||
|
||||
# Only one i915 driver (classic vs gallium). Default to classic.
|
||||
if ! use classic; then
|
||||
gallium_enable video_cards_i915 i915
|
||||
if ! use video_cards_i915 && \
|
||||
! use video_cards_i965; then
|
||||
gallium_enable video_cards_intel i915
|
||||
fi
|
||||
fi
|
||||
|
||||
gallium_enable video_cards_iris iris
|
||||
|
||||
gallium_enable video_cards_r300 r300
|
||||
gallium_enable video_cards_r600 r600
|
||||
gallium_enable video_cards_radeonsi radeonsi
|
||||
if ! use video_cards_r300 && \
|
||||
! use video_cards_r600; then
|
||||
gallium_enable video_cards_radeon r300 r600
|
||||
fi
|
||||
|
||||
gallium_enable video_cards_freedreno freedreno
|
||||
gallium_enable video_cards_virgl virgl
|
||||
|
||||
# opencl stuff
|
||||
emesonargs+=(
|
||||
-Dgallium-opencl="$(usex opencl icd disabled)"
|
||||
)
|
||||
fi
|
||||
|
||||
if use vulkan; then
|
||||
vulkan_enable video_cards_i965 intel
|
||||
vulkan_enable video_cards_iris intel
|
||||
vulkan_enable video_cards_radeonsi amd
|
||||
fi
|
||||
|
||||
if use gallium; then
|
||||
gallium_enable -- swrast
|
||||
emesonargs+=( -Dosmesa=$(usex osmesa gallium none) )
|
||||
else
|
||||
dri_driver_enable -- swrast
|
||||
emesonargs+=( -Dosmesa=$(usex osmesa classic none) )
|
||||
fi
|
||||
|
||||
driver_list() {
|
||||
local drivers="$(sort -u <<< "${1// /$'\n'}")"
|
||||
echo "${drivers//$'\n'/,}"
|
||||
}
|
||||
|
||||
emesonargs+=(
|
||||
$(meson_use test build-tests)
|
||||
-Dglx=$(usex X dri disabled)
|
||||
-Dshared-glapi=enabled
|
||||
$(meson_feature dri3)
|
||||
$(meson_feature egl)
|
||||
$(meson_feature gbm)
|
||||
$(meson_feature gles1)
|
||||
$(meson_feature gles2)
|
||||
$(meson_use selinux)
|
||||
$(meson_feature zstd)
|
||||
-Dvalgrind=$(usex valgrind auto false)
|
||||
-Ddri-drivers=$(driver_list "${DRI_DRIVERS[*]}")
|
||||
-Dgallium-drivers=$(driver_list "${GALLIUM_DRIVERS[*]}")
|
||||
-Dvulkan-drivers=$(driver_list "${VULKAN_DRIVERS[*]}")
|
||||
$(meson_use vulkan vulkan-device-select-layer)
|
||||
$(meson_use vulkan-overlay vulkan-overlay-layer)
|
||||
--buildtype $(usex debug debug plain)
|
||||
-Db_ndebug=$(usex debug false true)
|
||||
)
|
||||
meson_src_configure
|
||||
}
|
||||
|
||||
multilib_src_compile() {
|
||||
meson_src_compile
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
meson_src_install
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
einstalldocs
|
||||
}
|
||||
|
||||
multilib_src_test() {
|
||||
meson_src_test -t 100
|
||||
}
|
||||
|
||||
# $1 - VIDEO_CARDS flag (check skipped for "--")
|
||||
# other args - names of DRI drivers to enable
|
||||
dri_driver_enable() {
|
||||
if [[ $1 == -- ]] || use $1; then
|
||||
shift
|
||||
DRI_DRIVERS+=("$@")
|
||||
fi
|
||||
}
|
||||
|
||||
gallium_enable() {
|
||||
if [[ $1 == -- ]] || use $1; then
|
||||
shift
|
||||
GALLIUM_DRIVERS+=("$@")
|
||||
fi
|
||||
}
|
||||
|
||||
vulkan_enable() {
|
||||
if [[ $1 == -- ]] || use $1; then
|
||||
shift
|
||||
VULKAN_DRIVERS+=("$@")
|
||||
fi
|
||||
}
|
@ -1,558 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{6,7,8,9} )
|
||||
|
||||
inherit llvm meson multilib-minimal python-any-r1 linux-info
|
||||
|
||||
OPENGL_DIR="xorg-x11"
|
||||
|
||||
MY_P="${P/_/-}"
|
||||
|
||||
DESCRIPTION="OpenGL-like graphic library for Linux"
|
||||
HOMEPAGE="https://www.mesa3d.org/ https://mesa.freedesktop.org/"
|
||||
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
EGIT_REPO_URI="https://gitlab.freedesktop.org/mesa/mesa.git"
|
||||
inherit git-r3
|
||||
else
|
||||
SRC_URI="https://archive.mesa3d.org/${MY_P}.tar.xz"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~sparc-solaris ~x64-solaris ~x86-solaris"
|
||||
fi
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
RESTRICT="
|
||||
!test? ( test )
|
||||
"
|
||||
|
||||
RADEON_CARDS="r100 r200 r300 r600 radeon radeonsi"
|
||||
VIDEO_CARDS="${RADEON_CARDS} freedreno i915 i965 intel iris lima nouveau panfrost v3d vc4 virgl vivante vmware"
|
||||
for card in ${VIDEO_CARDS}; do
|
||||
IUSE_VIDEO_CARDS+=" video_cards_${card}"
|
||||
done
|
||||
|
||||
IUSE="${IUSE_VIDEO_CARDS}
|
||||
+classic d3d9 debug +dri3 +egl +gallium +gbm gles1 +gles2 +llvm
|
||||
lm-sensors opencl osmesa selinux test unwind vaapi valgrind vdpau vulkan
|
||||
vulkan-overlay wayland +X xa xvmc zink +zstd"
|
||||
|
||||
REQUIRED_USE="
|
||||
d3d9? ( dri3 || ( video_cards_iris video_cards_r300 video_cards_r600 video_cards_radeonsi video_cards_nouveau video_cards_vmware ) )
|
||||
gles1? ( egl )
|
||||
gles2? ( egl )
|
||||
vulkan? ( dri3
|
||||
video_cards_radeonsi? ( llvm ) )
|
||||
vulkan-overlay? ( vulkan )
|
||||
wayland? ( egl gbm )
|
||||
video_cards_freedreno? ( gallium )
|
||||
video_cards_intel? ( classic )
|
||||
video_cards_i915? ( || ( classic gallium ) )
|
||||
video_cards_i965? ( classic )
|
||||
video_cards_iris? ( gallium )
|
||||
video_cards_lima? ( gallium )
|
||||
video_cards_nouveau? ( || ( classic gallium ) )
|
||||
video_cards_panfrost? ( gallium )
|
||||
video_cards_radeon? ( || ( classic gallium )
|
||||
gallium? ( x86? ( llvm ) amd64? ( llvm ) ) )
|
||||
video_cards_r100? ( classic )
|
||||
video_cards_r200? ( classic )
|
||||
video_cards_r300? ( gallium x86? ( llvm ) amd64? ( llvm ) )
|
||||
video_cards_r600? ( gallium )
|
||||
video_cards_radeonsi? ( gallium llvm )
|
||||
video_cards_v3d? ( gallium )
|
||||
video_cards_vc4? ( gallium )
|
||||
video_cards_virgl? ( gallium )
|
||||
video_cards_vivante? ( gallium gbm )
|
||||
video_cards_vmware? ( gallium )
|
||||
xa? ( X )
|
||||
xvmc? ( X )
|
||||
zink? ( gallium vulkan )
|
||||
"
|
||||
|
||||
LIBDRM_DEPSTRING=">=x11-libs/libdrm-2.4.100"
|
||||
RDEPEND="
|
||||
>=dev-libs/expat-2.1.0-r3:=[${MULTILIB_USEDEP}]
|
||||
>=media-libs/libglvnd-1.3.2[X?,${MULTILIB_USEDEP}]
|
||||
>=sys-libs/zlib-1.2.8[${MULTILIB_USEDEP}]
|
||||
gallium? (
|
||||
unwind? ( sys-libs/libunwind[${MULTILIB_USEDEP}] )
|
||||
llvm? (
|
||||
video_cards_radeonsi? (
|
||||
virtual/libelf:0=[${MULTILIB_USEDEP}]
|
||||
)
|
||||
video_cards_r600? (
|
||||
virtual/libelf:0=[${MULTILIB_USEDEP}]
|
||||
)
|
||||
video_cards_radeon? (
|
||||
virtual/libelf:0=[${MULTILIB_USEDEP}]
|
||||
)
|
||||
)
|
||||
lm-sensors? ( sys-apps/lm-sensors:=[${MULTILIB_USEDEP}] )
|
||||
opencl? (
|
||||
>=virtual/opencl-3[${MULTILIB_USEDEP}]
|
||||
dev-libs/libclc
|
||||
virtual/libelf:0=[${MULTILIB_USEDEP}]
|
||||
)
|
||||
vaapi? (
|
||||
>=x11-libs/libva-1.7.3:=[${MULTILIB_USEDEP}]
|
||||
)
|
||||
vdpau? ( >=x11-libs/libvdpau-1.1:=[${MULTILIB_USEDEP}] )
|
||||
xvmc? ( >=x11-libs/libXvMC-1.0.8:=[${MULTILIB_USEDEP}] )
|
||||
)
|
||||
selinux? ( sys-libs/libselinux[${MULTILIB_USEDEP}] )
|
||||
wayland? (
|
||||
>=dev-libs/wayland-1.15.0:=[${MULTILIB_USEDEP}]
|
||||
>=dev-libs/wayland-protocols-1.8
|
||||
)
|
||||
${LIBDRM_DEPSTRING}[video_cards_freedreno?,video_cards_nouveau?,video_cards_vc4?,video_cards_vivante?,video_cards_vmware?,${MULTILIB_USEDEP}]
|
||||
video_cards_intel? (
|
||||
!video_cards_i965? ( ${LIBDRM_DEPSTRING}[video_cards_intel] )
|
||||
)
|
||||
video_cards_i915? ( ${LIBDRM_DEPSTRING}[video_cards_intel] )
|
||||
vulkan-overlay? ( dev-util/glslang:0=[${MULTILIB_USEDEP}] )
|
||||
X? (
|
||||
>=x11-libs/libX11-1.6.2:=[${MULTILIB_USEDEP}]
|
||||
>=x11-libs/libxshmfence-1.1:=[${MULTILIB_USEDEP}]
|
||||
>=x11-libs/libXdamage-1.1.4-r1:=[${MULTILIB_USEDEP}]
|
||||
>=x11-libs/libXext-1.3.2:=[${MULTILIB_USEDEP}]
|
||||
>=x11-libs/libXxf86vm-1.1.3:=[${MULTILIB_USEDEP}]
|
||||
>=x11-libs/libxcb-1.13:=[${MULTILIB_USEDEP}]
|
||||
x11-libs/libXfixes:=[${MULTILIB_USEDEP}]
|
||||
)
|
||||
zink? ( media-libs/vulkan-loader:=[${MULTILIB_USEDEP}] )
|
||||
zstd? ( app-arch/zstd:=[${MULTILIB_USEDEP}] )
|
||||
"
|
||||
for card in ${RADEON_CARDS}; do
|
||||
RDEPEND="${RDEPEND}
|
||||
video_cards_${card}? ( ${LIBDRM_DEPSTRING}[video_cards_radeon] )
|
||||
"
|
||||
done
|
||||
RDEPEND="${RDEPEND}
|
||||
video_cards_radeonsi? ( ${LIBDRM_DEPSTRING}[video_cards_amdgpu] )
|
||||
"
|
||||
|
||||
# Please keep the LLVM dependency block separate. Since LLVM is slotted,
|
||||
# we need to *really* make sure we're not pulling one than more slot
|
||||
# simultaneously.
|
||||
#
|
||||
# How to use it:
|
||||
# 1. List all the working slots (with min versions) in ||, newest first.
|
||||
# 2. Update the := to specify *max* version, e.g. < 10.
|
||||
# 3. Specify LLVM_MAX_SLOT, e.g. 9.
|
||||
LLVM_MAX_SLOT="11"
|
||||
LLVM_DEPSTR="
|
||||
|| (
|
||||
sys-devel/llvm:11[${MULTILIB_USEDEP}]
|
||||
sys-devel/llvm:10[${MULTILIB_USEDEP}]
|
||||
sys-devel/llvm:9[${MULTILIB_USEDEP}]
|
||||
)
|
||||
<sys-devel/llvm-$((LLVM_MAX_SLOT + 1)):=[${MULTILIB_USEDEP}]
|
||||
"
|
||||
LLVM_DEPSTR_AMDGPU=${LLVM_DEPSTR//]/,llvm_targets_AMDGPU(-)]}
|
||||
CLANG_DEPSTR=${LLVM_DEPSTR//llvm/clang}
|
||||
CLANG_DEPSTR_AMDGPU=${CLANG_DEPSTR//]/,llvm_targets_AMDGPU(-)]}
|
||||
RDEPEND="${RDEPEND}
|
||||
gallium? (
|
||||
llvm? (
|
||||
opencl? (
|
||||
video_cards_r600? (
|
||||
${CLANG_DEPSTR_AMDGPU}
|
||||
)
|
||||
!video_cards_r600? (
|
||||
video_cards_radeonsi? (
|
||||
${CLANG_DEPSTR_AMDGPU}
|
||||
)
|
||||
)
|
||||
!video_cards_r600? (
|
||||
!video_cards_radeonsi? (
|
||||
video_cards_radeon? (
|
||||
${CLANG_DEPSTR_AMDGPU}
|
||||
)
|
||||
)
|
||||
)
|
||||
!video_cards_r600? (
|
||||
!video_cards_radeon? (
|
||||
!video_cards_radeonsi? (
|
||||
${CLANG_DEPSTR}
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
!opencl? (
|
||||
video_cards_r600? (
|
||||
${LLVM_DEPSTR_AMDGPU}
|
||||
)
|
||||
!video_cards_r600? (
|
||||
video_cards_radeonsi? (
|
||||
${LLVM_DEPSTR_AMDGPU}
|
||||
)
|
||||
)
|
||||
!video_cards_r600? (
|
||||
!video_cards_radeonsi? (
|
||||
video_cards_radeon? (
|
||||
${LLVM_DEPSTR_AMDGPU}
|
||||
)
|
||||
)
|
||||
)
|
||||
!video_cards_r600? (
|
||||
!video_cards_radeon? (
|
||||
!video_cards_radeonsi? (
|
||||
${LLVM_DEPSTR}
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
"
|
||||
unset {LLVM,CLANG}_DEPSTR{,_AMDGPU}
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
valgrind? ( dev-util/valgrind )
|
||||
X? (
|
||||
x11-libs/libXrandr[${MULTILIB_USEDEP}]
|
||||
x11-base/xorg-proto
|
||||
)
|
||||
"
|
||||
BDEPEND="
|
||||
${PYTHON_DEPS}
|
||||
opencl? (
|
||||
>=sys-devel/gcc-4.6
|
||||
)
|
||||
sys-devel/bison
|
||||
sys-devel/flex
|
||||
virtual/pkgconfig
|
||||
$(python_gen_any_dep ">=dev-python/mako-0.8.0[\${PYTHON_USEDEP}]")
|
||||
"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
EGIT_CHECKOUT_DIR=${S}
|
||||
|
||||
QA_WX_LOAD="
|
||||
x86? (
|
||||
usr/lib*/libglapi.so.0.0.0
|
||||
usr/lib*/libGLESv1_CM.so.1.1.0
|
||||
usr/lib*/libGLESv2.so.2.0.0
|
||||
usr/lib*/libGL.so.1.2.0
|
||||
usr/lib*/libOSMesa.so.8.0.0
|
||||
usr/lib/libGLX_mesa.so.0.0.0
|
||||
)"
|
||||
|
||||
llvm_check_deps() {
|
||||
local flags=${MULTILIB_USEDEP}
|
||||
if use video_cards_r600 || use video_cards_radeon || use video_cards_radeonsi
|
||||
then
|
||||
flags+=",llvm_targets_AMDGPU(-)"
|
||||
fi
|
||||
|
||||
if use opencl; then
|
||||
has_version "sys-devel/clang:${LLVM_SLOT}[${flags}]" || return 1
|
||||
fi
|
||||
has_version "sys-devel/llvm:${LLVM_SLOT}[${flags}]"
|
||||
}
|
||||
|
||||
pkg_pretend() {
|
||||
if use vulkan; then
|
||||
if ! use video_cards_i965 &&
|
||||
! use video_cards_iris &&
|
||||
! use video_cards_radeonsi &&
|
||||
! use video_cards_v3d; then
|
||||
ewarn "Ignoring USE=vulkan since VIDEO_CARDS does not contain i965, iris, radeonsi, or v3d"
|
||||
fi
|
||||
fi
|
||||
|
||||
if use opencl; then
|
||||
if ! use video_cards_r600 &&
|
||||
! use video_cards_radeonsi; then
|
||||
ewarn "Ignoring USE=opencl since VIDEO_CARDS does not contain r600 or radeonsi"
|
||||
fi
|
||||
fi
|
||||
|
||||
if use vaapi; then
|
||||
if ! use video_cards_r600 &&
|
||||
! use video_cards_radeonsi &&
|
||||
! use video_cards_nouveau; then
|
||||
ewarn "Ignoring USE=vaapi since VIDEO_CARDS does not contain r600, radeonsi, or nouveau"
|
||||
fi
|
||||
fi
|
||||
|
||||
if use vdpau; then
|
||||
if ! use video_cards_r300 &&
|
||||
! use video_cards_r600 &&
|
||||
! use video_cards_radeonsi &&
|
||||
! use video_cards_nouveau; then
|
||||
ewarn "Ignoring USE=vdpau since VIDEO_CARDS does not contain r300, r600, radeonsi, or nouveau"
|
||||
fi
|
||||
fi
|
||||
|
||||
if use xa; then
|
||||
if ! use video_cards_freedreno &&
|
||||
! use video_cards_nouveau &&
|
||||
! use video_cards_vmware; then
|
||||
ewarn "Ignoring USE=xa since VIDEO_CARDS does not contain freedreno, nouveau, or vmware"
|
||||
fi
|
||||
fi
|
||||
|
||||
if use xvmc; then
|
||||
if ! use video_cards_r600 &&
|
||||
! use video_cards_nouveau; then
|
||||
ewarn "Ignoring USE=xvmc since VIDEO_CARDS does not contain r600 or nouveau"
|
||||
fi
|
||||
fi
|
||||
|
||||
if ! use gallium; then
|
||||
use lm-sensors && ewarn "Ignoring USE=lm-sensors since USE does not contain gallium"
|
||||
use llvm && ewarn "Ignoring USE=llvm since USE does not contain gallium"
|
||||
use opencl && ewarn "Ignoring USE=opencl since USE does not contain gallium"
|
||||
use vaapi && ewarn "Ignoring USE=vaapi since USE does not contain gallium"
|
||||
use vdpau && ewarn "Ignoring USE=vdpau since USE does not contain gallium"
|
||||
use unwind && ewarn "Ignoring USE=unwind since USE does not contain gallium"
|
||||
use xa && ewarn "Ignoring USE=xa since USE does not contain gallium"
|
||||
use xvmc && ewarn "Ignoring USE=xvmc since USE does not contain gallium"
|
||||
fi
|
||||
|
||||
if ! use llvm; then
|
||||
use opencl && ewarn "Ignoring USE=opencl since USE does not contain llvm"
|
||||
fi
|
||||
}
|
||||
|
||||
python_check_deps() {
|
||||
has_version -b ">=dev-python/mako-0.8.0[${PYTHON_USEDEP}]"
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
# warning message for bug 459306
|
||||
if use llvm && has_version sys-devel/llvm[!debug=]; then
|
||||
ewarn "Mismatch between debug USE flags in media-libs/mesa and sys-devel/llvm"
|
||||
ewarn "detected! This can cause problems. For details, see bug 459306."
|
||||
fi
|
||||
|
||||
if use video_cards_i965 ||
|
||||
use video_cards_iris ||
|
||||
use video_cards_radeonsi; then
|
||||
CONFIG_CHECK="~CHECKPOINT_RESTORE"
|
||||
linux-info_pkg_setup
|
||||
fi
|
||||
|
||||
if use gallium && use llvm; then
|
||||
llvm_pkg_setup
|
||||
fi
|
||||
python-any-r1_pkg_setup
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
local emesonargs=()
|
||||
|
||||
if use classic; then
|
||||
# Intel code
|
||||
dri_driver_enable video_cards_i915 i915
|
||||
dri_driver_enable video_cards_i965 i965
|
||||
if ! use video_cards_i915 && \
|
||||
! use video_cards_i965; then
|
||||
dri_driver_enable video_cards_intel i915 i965
|
||||
fi
|
||||
|
||||
# Nouveau code
|
||||
dri_driver_enable video_cards_nouveau nouveau
|
||||
|
||||
# ATI code
|
||||
dri_driver_enable video_cards_r100 r100
|
||||
dri_driver_enable video_cards_r200 r200
|
||||
if ! use video_cards_r100 && \
|
||||
! use video_cards_r200; then
|
||||
dri_driver_enable video_cards_radeon r100 r200
|
||||
fi
|
||||
fi
|
||||
|
||||
local platforms
|
||||
use X && platforms+="x11"
|
||||
use wayland && platforms+=",wayland"
|
||||
emesonargs+=(-Dplatforms=${platforms#,})
|
||||
|
||||
if use X || use egl; then
|
||||
emesonargs+=(-Dglvnd=true)
|
||||
else
|
||||
emesonargs+=(-Dglvnd=false)
|
||||
fi
|
||||
|
||||
if use gallium; then
|
||||
emesonargs+=(
|
||||
$(meson_feature llvm)
|
||||
$(meson_feature lm-sensors lmsensors)
|
||||
$(meson_feature unwind libunwind)
|
||||
)
|
||||
|
||||
if use video_cards_iris ||
|
||||
use video_cards_r300 ||
|
||||
use video_cards_r600 ||
|
||||
use video_cards_radeonsi ||
|
||||
use video_cards_nouveau ||
|
||||
use video_cards_vmware; then
|
||||
emesonargs+=($(meson_use d3d9 gallium-nine))
|
||||
else
|
||||
emesonargs+=(-Dgallium-nine=false)
|
||||
fi
|
||||
|
||||
if use video_cards_r600 ||
|
||||
use video_cards_radeonsi ||
|
||||
use video_cards_nouveau; then
|
||||
emesonargs+=($(meson_feature vaapi gallium-va))
|
||||
use vaapi && emesonargs+=( -Dva-libs-path="${EPREFIX}"/usr/$(get_libdir)/va/drivers )
|
||||
else
|
||||
emesonargs+=(-Dgallium-va=disabled)
|
||||
fi
|
||||
|
||||
if use video_cards_r300 ||
|
||||
use video_cards_r600 ||
|
||||
use video_cards_radeonsi ||
|
||||
use video_cards_nouveau; then
|
||||
emesonargs+=($(meson_feature vdpau gallium-vdpau))
|
||||
else
|
||||
emesonargs+=(-Dgallium-vdpau=disabled)
|
||||
fi
|
||||
|
||||
if use video_cards_freedreno ||
|
||||
use video_cards_nouveau ||
|
||||
use video_cards_vmware; then
|
||||
emesonargs+=($(meson_feature xa gallium-xa))
|
||||
else
|
||||
emesonargs+=(-Dgallium-xa=disabled)
|
||||
fi
|
||||
|
||||
if use video_cards_r600 ||
|
||||
use video_cards_nouveau; then
|
||||
emesonargs+=($(meson_feature xvmc gallium-xvmc))
|
||||
else
|
||||
emesonargs+=(-Dgallium-xvmc=disabled)
|
||||
fi
|
||||
|
||||
if use video_cards_freedreno ||
|
||||
use video_cards_lima ||
|
||||
use video_cards_panfrost ||
|
||||
use video_cards_v3d ||
|
||||
use video_cards_vc4 ||
|
||||
use video_cards_vivante; then
|
||||
gallium_enable -- kmsro
|
||||
fi
|
||||
|
||||
gallium_enable video_cards_lima lima
|
||||
gallium_enable video_cards_panfrost panfrost
|
||||
gallium_enable video_cards_v3d v3d
|
||||
gallium_enable video_cards_vc4 vc4
|
||||
gallium_enable video_cards_vivante etnaviv
|
||||
gallium_enable video_cards_vmware svga
|
||||
gallium_enable video_cards_nouveau nouveau
|
||||
gallium_enable zink zink
|
||||
|
||||
# Only one i915 driver (classic vs gallium). Default to classic.
|
||||
if ! use classic; then
|
||||
gallium_enable video_cards_i915 i915
|
||||
if ! use video_cards_i915 && \
|
||||
! use video_cards_i965; then
|
||||
gallium_enable video_cards_intel i915
|
||||
fi
|
||||
fi
|
||||
|
||||
gallium_enable video_cards_iris iris
|
||||
|
||||
gallium_enable video_cards_r300 r300
|
||||
gallium_enable video_cards_r600 r600
|
||||
gallium_enable video_cards_radeonsi radeonsi
|
||||
if ! use video_cards_r300 && \
|
||||
! use video_cards_r600; then
|
||||
gallium_enable video_cards_radeon r300 r600
|
||||
fi
|
||||
|
||||
gallium_enable video_cards_freedreno freedreno
|
||||
gallium_enable video_cards_virgl virgl
|
||||
|
||||
# opencl stuff
|
||||
emesonargs+=(
|
||||
-Dgallium-opencl="$(usex opencl icd disabled)"
|
||||
)
|
||||
fi
|
||||
|
||||
if use vulkan; then
|
||||
vulkan_enable video_cards_i965 intel
|
||||
vulkan_enable video_cards_iris intel
|
||||
vulkan_enable video_cards_radeonsi amd
|
||||
vulkan_enable video_cards_v3d broadcom
|
||||
fi
|
||||
|
||||
if use gallium; then
|
||||
gallium_enable -- swrast
|
||||
emesonargs+=( -Dosmesa=$(usex osmesa gallium none) )
|
||||
else
|
||||
dri_driver_enable -- swrast
|
||||
emesonargs+=( -Dosmesa=$(usex osmesa classic none) )
|
||||
fi
|
||||
|
||||
driver_list() {
|
||||
local drivers="$(sort -u <<< "${1// /$'\n'}")"
|
||||
echo "${drivers//$'\n'/,}"
|
||||
}
|
||||
|
||||
emesonargs+=(
|
||||
$(meson_use test build-tests)
|
||||
-Dglx=$(usex X dri disabled)
|
||||
-Dshared-glapi=enabled
|
||||
$(meson_feature dri3)
|
||||
$(meson_feature egl)
|
||||
$(meson_feature gbm)
|
||||
$(meson_feature gles1)
|
||||
$(meson_feature gles2)
|
||||
$(meson_use selinux)
|
||||
$(meson_feature zstd)
|
||||
-Dvalgrind=$(usex valgrind auto false)
|
||||
-Ddri-drivers=$(driver_list "${DRI_DRIVERS[*]}")
|
||||
-Dgallium-drivers=$(driver_list "${GALLIUM_DRIVERS[*]}")
|
||||
-Dvulkan-drivers=$(driver_list "${VULKAN_DRIVERS[*]}")
|
||||
$(meson_use vulkan vulkan-device-select-layer)
|
||||
$(meson_use vulkan-overlay vulkan-overlay-layer)
|
||||
--buildtype $(usex debug debug plain)
|
||||
-Db_ndebug=$(usex debug false true)
|
||||
)
|
||||
meson_src_configure
|
||||
}
|
||||
|
||||
multilib_src_compile() {
|
||||
meson_src_compile
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
meson_src_install
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
einstalldocs
|
||||
}
|
||||
|
||||
multilib_src_test() {
|
||||
meson_src_test -t 100
|
||||
}
|
||||
|
||||
# $1 - VIDEO_CARDS flag (check skipped for "--")
|
||||
# other args - names of DRI drivers to enable
|
||||
dri_driver_enable() {
|
||||
if [[ $1 == -- ]] || use $1; then
|
||||
shift
|
||||
DRI_DRIVERS+=("$@")
|
||||
fi
|
||||
}
|
||||
|
||||
gallium_enable() {
|
||||
if [[ $1 == -- ]] || use $1; then
|
||||
shift
|
||||
GALLIUM_DRIVERS+=("$@")
|
||||
fi
|
||||
}
|
||||
|
||||
vulkan_enable() {
|
||||
if [[ $1 == -- ]] || use $1; then
|
||||
shift
|
||||
VULKAN_DRIVERS+=("$@")
|
||||
fi
|
||||
}
|
Binary file not shown.
Binary file not shown.
@ -1 +1 @@
|
||||
Thu, 28 Jan 2021 12:38:22 +0000
|
||||
Fri, 29 Jan 2021 06:38:36 +0000
|
||||
|
Binary file not shown.
@ -0,0 +1,47 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE glsa SYSTEM "http://www.gentoo.org/dtd/glsa.dtd">
|
||||
<glsa id="202101-37">
|
||||
<title>VLC: Buffer overflow</title>
|
||||
<synopsis>A buffer overflow in VLC might allow remote attacker(s) to execute
|
||||
arbitrary code.
|
||||
</synopsis>
|
||||
<product type="ebuild">vlc</product>
|
||||
<announced>2021-01-29</announced>
|
||||
<revised count="1">2021-01-29</revised>
|
||||
<bug>765040</bug>
|
||||
<access>remote</access>
|
||||
<affected>
|
||||
<package name="media-video/vlc" auto="yes" arch="*">
|
||||
<unaffected range="ge">3.0.12.1</unaffected>
|
||||
<vulnerable range="lt">3.0.12.1</vulnerable>
|
||||
</package>
|
||||
</affected>
|
||||
<background>
|
||||
<p>VLC is a cross-platform media player and streaming server.</p>
|
||||
</background>
|
||||
<description>
|
||||
<p>VLC was found to have a buffer overflow when handling crafted MKV files.</p>
|
||||
</description>
|
||||
<impact type="normal">
|
||||
<p>A remote attacker could entice a user to open a specially crafted MKV
|
||||
file using VLC possibly resulting in execution of arbitrary code with the
|
||||
privileges of the process or a Denial of Service condition.
|
||||
</p>
|
||||
</impact>
|
||||
<workaround>
|
||||
<p>There is no known workaround at this time.</p>
|
||||
</workaround>
|
||||
<resolution>
|
||||
<p>All VLC users should upgrade to the latest version:</p>
|
||||
|
||||
<code>
|
||||
# emerge --sync
|
||||
# emerge --ask --oneshot --verbose ">=media-video/vlc-3.0.12.1"
|
||||
</code>
|
||||
</resolution>
|
||||
<references>
|
||||
<uri link="https://nvd.nist.gov/vuln/detail/CVE-2020-26664">CVE-2020-26664</uri>
|
||||
</references>
|
||||
<metadata tag="requester" timestamp="2021-01-28T02:32:59Z">sam_c</metadata>
|
||||
<metadata tag="submitter" timestamp="2021-01-29T00:04:09Z">sam_c</metadata>
|
||||
</glsa>
|
@ -0,0 +1,49 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE glsa SYSTEM "http://www.gentoo.org/dtd/glsa.dtd">
|
||||
<glsa id="202101-38">
|
||||
<title>NSD: Symbolic link traversal</title>
|
||||
<synopsis>A vulnerability was discovered in NSD which could allow a local
|
||||
attacker to cause a Denial of Service condition.
|
||||
</synopsis>
|
||||
<product type="ebuild">nsd</product>
|
||||
<announced>2021-01-29</announced>
|
||||
<revised count="1">2021-01-29</revised>
|
||||
<bug>758977</bug>
|
||||
<access>local</access>
|
||||
<affected>
|
||||
<package name="net-dns/nsd" auto="yes" arch="*">
|
||||
<unaffected range="ge">4.3.4</unaffected>
|
||||
<vulnerable range="lt">4.3.4</vulnerable>
|
||||
</package>
|
||||
</affected>
|
||||
<background>
|
||||
<p>An authoritative only, high performance, open source name server</p>
|
||||
</background>
|
||||
<description>
|
||||
<p>A local vulnerability was discovered that would allow for a local
|
||||
symlink attack due to how NSD handles PID files.
|
||||
</p>
|
||||
</description>
|
||||
<impact type="normal">
|
||||
<p>A local attacker could cause a Denial of Service condition.</p>
|
||||
</impact>
|
||||
<workaround>
|
||||
<p>There is no known workaround at this time.</p>
|
||||
</workaround>
|
||||
<resolution>
|
||||
<p>All NSD users should upgrade to the latest version:</p>
|
||||
|
||||
<code>
|
||||
# emerge --sync
|
||||
# emerge --ask --oneshot --verbose ">=net-dns/nsd-4.3.4"
|
||||
</code>
|
||||
</resolution>
|
||||
<references>
|
||||
<uri link="https://nvd.nist.gov/vuln/detail/CVE-2020-28935">CVE-2020-28935</uri>
|
||||
<uri link="https://www.nlnetlabs.nl/downloads/nsd/CVE-2020-28935.txt">
|
||||
Upstream advisory
|
||||
</uri>
|
||||
</references>
|
||||
<metadata tag="requester" timestamp="2020-04-22T15:47:22Z">whissi</metadata>
|
||||
<metadata tag="submitter" timestamp="2021-01-29T00:05:16Z">b-man</metadata>
|
||||
</glsa>
|
@ -1 +1 @@
|
||||
Thu, 28 Jan 2021 12:38:22 +0000
|
||||
Fri, 29 Jan 2021 06:38:36 +0000
|
||||
|
@ -1 +1 @@
|
||||
7e6d036e771fdecf584e23fb74ebed7b736c1ccb 1611764096 2021-01-27T16:14:56+00:00
|
||||
efd0aa32fd2ca278747b075a2c8f414bb8aadead 1611878727 2021-01-29T00:05:27+00:00
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,15 @@
|
||||
BDEPEND=dev-util/ninja dev-util/cmake handbook? ( >=kde-frameworks/kdoctools-5.74.0:5 ) >=kde-frameworks/extra-cmake-modules-5.74.0:5
|
||||
DEFINED_PHASES=compile configure install nofetch postinst postrm preinst prepare setup test unpack
|
||||
DEPEND=dev-lang/perl >=dev-libs/kdiagram-2.8.0:5 >=dev-qt/designer-5.15.2:5 >=dev-qt/qtdbus-5.15.2:5 >=dev-qt/qtgui-5.15.2:5 >=dev-qt/qtprintsupport-5.15.2:5 >=dev-qt/qtwidgets-5.15.2:5 >=dev-qt/qtxml-5.15.2:5 >=kde-frameworks/karchive-5.74.0:5 >=kde-frameworks/kcalendarcore-5.74.0:5 >=kde-frameworks/kconfig-5.74.0:5 >=kde-frameworks/kconfigwidgets-5.74.0:5 >=kde-frameworks/kcoreaddons-5.74.0:5 >=kde-frameworks/kdbusaddons-5.74.0:5 >=kde-frameworks/kglobalaccel-5.74.0:5 >=kde-frameworks/kguiaddons-5.74.0:5 >=kde-frameworks/ki18n-5.74.0:5 >=kde-frameworks/kiconthemes-5.74.0:5 >=kde-frameworks/kio-5.74.0:5 >=kde-frameworks/kitemmodels-5.74.0:5 >=kde-frameworks/kitemviews-5.74.0:5 >=kde-frameworks/kjobwidgets-5.74.0:5 >=kde-frameworks/knotifications-5.74.0:5 >=kde-frameworks/kparts-5.74.0:5 >=kde-frameworks/kservice-5.74.0:5 >=kde-frameworks/ktextwidgets-5.74.0:5 >=kde-frameworks/kwidgetsaddons-5.74.0:5 >=kde-frameworks/kwindowsystem-5.74.0:5 >=kde-frameworks/kxmlgui-5.74.0:5 activities? ( >=kde-frameworks/kactivities-5.74.0:5 ) holidays? ( >=kde-frameworks/kholidays-5.74.0:5 ) kwallet? ( >=app-crypt/qca-2.3.0:2 >=kde-frameworks/kwallet-5.74.0:5 ) X? ( >=dev-qt/qtx11extras-5.15.2:5 x11-libs/libX11 ) dev-util/desktop-file-utils x11-misc/shared-mime-info test? ( dev-qt/qttest:5 ) dev-qt/qtcore:5
|
||||
DESCRIPTION=Project management application
|
||||
EAPI=7
|
||||
HOMEPAGE=https://calligra.org/plan/
|
||||
IUSE=activities +holidays kwallet X debug +handbook test
|
||||
KEYWORDS=~amd64 ~x86
|
||||
LICENSE=GPL-2
|
||||
RDEPEND=dev-lang/perl >=dev-libs/kdiagram-2.8.0:5 >=dev-qt/designer-5.15.2:5 >=dev-qt/qtdbus-5.15.2:5 >=dev-qt/qtgui-5.15.2:5 >=dev-qt/qtprintsupport-5.15.2:5 >=dev-qt/qtwidgets-5.15.2:5 >=dev-qt/qtxml-5.15.2:5 >=kde-frameworks/karchive-5.74.0:5 >=kde-frameworks/kcalendarcore-5.74.0:5 >=kde-frameworks/kconfig-5.74.0:5 >=kde-frameworks/kconfigwidgets-5.74.0:5 >=kde-frameworks/kcoreaddons-5.74.0:5 >=kde-frameworks/kdbusaddons-5.74.0:5 >=kde-frameworks/kglobalaccel-5.74.0:5 >=kde-frameworks/kguiaddons-5.74.0:5 >=kde-frameworks/ki18n-5.74.0:5 >=kde-frameworks/kiconthemes-5.74.0:5 >=kde-frameworks/kio-5.74.0:5 >=kde-frameworks/kitemmodels-5.74.0:5 >=kde-frameworks/kitemviews-5.74.0:5 >=kde-frameworks/kjobwidgets-5.74.0:5 >=kde-frameworks/knotifications-5.74.0:5 >=kde-frameworks/kparts-5.74.0:5 >=kde-frameworks/kservice-5.74.0:5 >=kde-frameworks/ktextwidgets-5.74.0:5 >=kde-frameworks/kwidgetsaddons-5.74.0:5 >=kde-frameworks/kwindowsystem-5.74.0:5 >=kde-frameworks/kxmlgui-5.74.0:5 activities? ( >=kde-frameworks/kactivities-5.74.0:5 ) holidays? ( >=kde-frameworks/kholidays-5.74.0:5 ) kwallet? ( >=app-crypt/qca-2.3.0:2 >=kde-frameworks/kwallet-5.74.0:5 ) X? ( >=dev-qt/qtx11extras-5.15.2:5 x11-libs/libX11 ) !app-office/calligra[calligra_features_plan(-)] >=dev-qt/qtsvg-5.15.2:5 || ( kde-frameworks/breeze-icons:* kde-frameworks/oxygen-icons:* ) >=kde-frameworks/kf-env-4 dev-qt/qtcore:5
|
||||
RESTRICT=!test? ( test ) test
|
||||
SLOT=5
|
||||
SRC_URI=mirror://kde/stable/calligra/3.3.0/calligraplan-3.3.0.tar.xz
|
||||
_eclasses_=cmake ac7cb516f6a288b6a82bc0649ce49878 ecm 23462b13731a265a5d99e493ec4a7720 edos2unix 33e347e171066657f91f8b0c72ec8773 eutils 2d5b3f4b315094768576b6799e4f926e flag-o-matic 09a8beb8e6a8e02dc1e1bd83ac353741 kde.org 8a81008797ecdb979e3100d782ab5513 l10n 8cdd85e169b835d518bc2fd59f780d8e multilib d410501a125f99ffb560b0c523cd3d1e multiprocessing cac3169468f893670dac3e7cb940e045 ninja-utils 132cbb376048d079b5a012f5467c4e7f toolchain-funcs 24921b57d6561d87cbef4916a296ada4 virtualx 7e60d3b10c791ab996f717bc1f30072f wrapper 4251d4c84c25f59094fd557e0063a974 xdg c7ba313ea1eaf266f95cc6235f7d6a07 xdg-utils ff2ff954e6b17929574eee4efc5152ba
|
||||
_md5_=38dc336da711a8e9a4f5a037b18fb12b
|
Binary file not shown.
@ -0,0 +1,14 @@
|
||||
DEFINED_PHASES=compile configure install prepare setup test
|
||||
DEPEND=sys-libs/binutils-libs:= ncurses? ( sys-libs/ncurses:0= ) spacetime? ( sys-libs/libunwind:= ) X? ( x11-libs/libX11 ) !dev-ml/num virtual/pkgconfig
|
||||
DESCRIPTION=Type-inferring functional programming language descended from the ML family
|
||||
EAPI=5
|
||||
HOMEPAGE=https://ocaml.org
|
||||
IUSE=emacs flambda latex ncurses +ocamlopt spacetime X xemacs
|
||||
KEYWORDS=~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~x86-solaris
|
||||
LICENSE=QPL-1.0 LGPL-2
|
||||
PDEPEND=emacs? ( app-emacs/ocaml-mode ) xemacs? ( app-xemacs/ocaml )
|
||||
RDEPEND=sys-libs/binutils-libs:= ncurses? ( sys-libs/ncurses:0= ) spacetime? ( sys-libs/libunwind:= ) X? ( x11-libs/libX11 ) !dev-ml/num
|
||||
SLOT=0/4.05.0
|
||||
SRC_URI=https://github.com/ocaml/ocaml/archive/4.05.0.tar.gz -> ocaml-4.05.0.tar.gz mirror://gentoo/ocaml-patches-9.tar.bz2
|
||||
_eclasses_=desktop 7fd20552ce4cc97e8acb132a499a7dd8 edos2unix 33e347e171066657f91f8b0c72ec8773 epatch e8f1ec13660dc2f44b32775765d85e42 estack 055c42df72f76a4f45ec92b35e83cd56 eutils 2d5b3f4b315094768576b6799e4f926e flag-o-matic 09a8beb8e6a8e02dc1e1bd83ac353741 l10n 8cdd85e169b835d518bc2fd59f780d8e ltprune 4f3f2db5ce3ccbeeacdf3f94954043aa multilib d410501a125f99ffb560b0c523cd3d1e preserve-libs ef207dc62baddfddfd39a164d9797648 toolchain-funcs 24921b57d6561d87cbef4916a296ada4 vcs-clean 2a0f74a496fa2b1552c4f3398258b7bf versionator d3fb3ba33acc3bbbdc4d7970227c100d wrapper 4251d4c84c25f59094fd557e0063a974
|
||||
_md5_=49df08157bcd050920e5cdc31bfffa11
|
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