diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index e79a787878..e608398253 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -3,15 +3,15 @@
1. [Common Mistakes](#CommMist)
2. [Other Tips and Tricks](#tips)
-
-
-
## Common Mistakes
- #### Gentoo projects shouldn't be in the metadata files
Please don't put Gentoo projects (e.g. the proxy-maint project) in the metadata.xml files. Gentoo projects and developers are **not** responsible for the packages in GURU, as such they should not be listed in the metadata files.
+> "New maintainers can only be added with their consent. In particular, it is not acceptable to add generic projects (such as the Python project) as package maintainers without the approval of their members or against their explicit policy."
+> -- [Package Maintainers](https://devmanual.gentoo.org/general-concepts/package-maintainers/index.html#adding-and-removing-maintainers) section of the devmanual
+
When moving a package from a Pull Request in the [main Gentoo Repository](https://github.com/gentoo/gentoo) to GURU it is easy to forget to remove the [proxy-maint](https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers) project from the metadata.xml file. The same is true for moving from GURU to a ::gentoo Pull Request, if you forget to add proxy-maint to the metadata file the `gentoo-repo-qa-bot` will complain.
- #### Use repoman for committing
@@ -70,7 +70,7 @@ The xdg eclass will automatically export the correct functions to the `src_prepa
- #### Use the latest EAPI whenever possible
-Since the packages in GURU are all 'new packages' (not in ::gentoo). It is good practice to use the latest [EAPI](https://devmanual.gentoo.org/ebuild-writing/eapi/index.html) (7 at the moment), this makes your ebuilds more future proof.
+Since the packages in GURU are all 'new packages' (not in ::gentoo). It is good practice to use the latest [EAPI](https://devmanual.gentoo.org/ebuild-writing/eapi/index.html) (8 at the moment), this makes your ebuilds more future proof.
- #### `repoman -dx full` and `pkgcheck scan`
@@ -86,9 +86,9 @@ See the [dev manual](https://devmanual.gentoo.org/eclass-reference/distutils-r1.
- #### Avoid introducing USE flags for small files and optional runtime dependencies.
-Installation of small files, like documentation, completions, man pages, etc, does not have to be toggle-able with an USE flag. Instead, just install these files unconditionally. This avoids unnecessary recompilations when an user forgot to enable a flag that installs a small file.
+Installation of small files, like documentation, completions, man pages, etc, does not have to be toggle-able with an USE flag. Instead, just install these files unconditionally. This avoids unnecessary recompilations when an user forgot to enable a flag that installs a small file ([PG 0301](https://projects.gentoo.org/qa/policy-guide/installed-files.html#pg0301)).
-The same holds for optional runtime dependencies. It is not necessary to introduce a USE flag, that does not alter the compiled binary and just pulls in an extra optional runtime dependency. Instead, you can notify the user of these optional runtime dependencies with the `optfeature` function from the [optfeature](https://devmanual.gentoo.org/eclass-reference/optfeature.eclass/) eclass (early from currently deprecated [eutils](https://devmanual.gentoo.org/eclass-reference/eutils.eclass/) eclass). If, for whatever reason, it is still desired to introduce an USE flag for optional runtime dependencies, one can still use the `optfeature` function as well to allow the user to choose to avoid recompiling a package.
+The same holds for optional runtime dependencies ([PG 0001](https://projects.gentoo.org/qa/policy-guide/dependencies.html#pg0001)). It is not necessary to introduce a USE flag, that does not alter the compiled binary and just pulls in an extra optional runtime dependency. Instead, you can notify the user of these optional runtime dependencies with the `optfeature` function from the [optfeature](https://devmanual.gentoo.org/eclass-reference/optfeature.eclass/) eclass (early from currently deprecated [eutils](https://devmanual.gentoo.org/eclass-reference/eutils.eclass/) eclass). If, for whatever reason, it is still desired to introduce an USE flag for optional runtime dependencies, one can still use the `optfeature` function as well to allow the user to choose to avoid recompiling a package.
- #### Clean your patches
diff --git a/README.md b/README.md
index 4f9945534d..495d6f1894 100644
--- a/README.md
+++ b/README.md
@@ -43,7 +43,7 @@ The [GURU regulations](https://wiki.gentoo.org/wiki/Project:GURU#The_regulations
- https://devmanual.gentoo.org/function-reference
- https://devmanual.gentoo.org/function-reference/install-functions
- https://dev.gentoo.org/~mgorny/python-guide/eclass.html
-- [GURU outdated packages](https://repology.org/projects/?search=&maintainer=&category=&inrepo=gentoo_ovl_guru¬inrepo=&repos=&families=&repos_newest=&families_newest=&outdated=on)
+- [GURU outdated packages](https://repology.org/projects/?inrepo=gentoo_ovl_guru&outdated=on)
## Email Addresses
diff --git a/dev-cpp/wangle/wangle-2021.10.25.00.ebuild b/dev-cpp/wangle/wangle-2021.10.25.00.ebuild
index 2440a2f5c1..1fe53a582c 100644
--- a/dev-cpp/wangle/wangle-2021.10.25.00.ebuild
+++ b/dev-cpp/wangle/wangle-2021.10.25.00.ebuild
@@ -7,16 +7,13 @@ inherit cmake
DESCRIPTION="Framework providing common client/server abstractions"
HOMEPAGE="https://github.com/facebook/wangle"
-
SRC_URI="https://github.com/facebook/wangle/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64"
-CMAKE_USE_DIR="${S}/wangle"
-
-DEPEND="
+RDEPEND="
~dev-cpp/fizz-${PV}:=
~dev-cpp/folly-${PV}:=
dev-cpp/gflags
@@ -26,7 +23,12 @@ DEPEND="
dev-libs/libfmt
dev-libs/openssl:0=
"
-RDEPEND="${DEPEND}"
+DEPEND="
+ ${RDEPEND}
+ dev-cpp/gtest
+"
+
+CMAKE_USE_DIR="${S}/wangle"
src_configure() {
local mycmakeargs=(
diff --git a/dev-libs/dmd_core/dmd_core-0.6.2.ebuild b/dev-libs/dmd_core/dmd_core-0.6.2.ebuild
index 102995cba2..687299aebb 100644
--- a/dev-libs/dmd_core/dmd_core-0.6.2.ebuild
+++ b/dev-libs/dmd_core/dmd_core-0.6.2.ebuild
@@ -40,12 +40,12 @@ src_install() {
set_target_arch
dolib.a "${S}"/target/${target_arch}-unknown-linux-gnu/release/lib${PN}.a
insinto /usr/$(get_libdir)/pkgconfig
- cp "${FILESDIR}/dmd_core.pc" "${S}"
- sed -i "s/%VERSION%/${PV}/g" "${S}/dmd_core.pc"
+ cp "${FILESDIR}/dmd_core.pc" "${S}" || die "failed to copy pkgconfig file"
+ sed -i "s/%VERSION%/${PV}/g" "${S}/dmd_core.pc" || die "failed to set version in pkgconfig file"
doins "${S}/dmd_core.pc"
sed -e "s:^libdir.*:libdir=${EPREFIX}/usr/$(get_libdir):" \
- -i "${ED}"/usr/$(get_libdir)/pkgconfig/dmd_core.pc
+ -i "${ED}"/usr/$(get_libdir)/pkgconfig/dmd_core.pc || die "failed to set libdir in pkgconfig file"
dodoc "${S}/LICENSE.txt"
dodoc "${S}/README.md"
}
diff --git a/dev-libs/xqilla/xqilla-2.3.4.ebuild b/dev-libs/xqilla/xqilla-2.3.4.ebuild
index 8892c7f8c3..a165855403 100644
--- a/dev-libs/xqilla/xqilla-2.3.4.ebuild
+++ b/dev-libs/xqilla/xqilla-2.3.4.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -12,7 +12,7 @@ SLOT="0"
KEYWORDS="~amd64"
IUSE="static-libs tidy"
-DEPEND=">=dev-libs/xerces-c-3.2.1 tidy? ( app-text/tidy-html5 )"
+DEPEND=">=dev-libs/xerces-c-3.2.1 tidy? ( app-text/htmltidy )"
RDEPEND="${DEPEND}"
BDEPEND=""
@@ -22,6 +22,11 @@ PATCHES=(
S="${WORKDIR}"/XQilla-${PV}
+src_prepare() {
+ eapply -p1 "${FILESDIR}/lib_to_lib64.patch"
+ eapply_user
+ sed -i 's/buffio.h/tidybuffio.h/g' src/functions/FunctionParseHTML.cpp || die "sed failed"
+}
src_configure() {
econf $(use_enable static-libs static) \
--with-tidy=$(usex tidy /usr no) \
diff --git a/dev-python/WSME/WSME-0.11.0.ebuild b/dev-python/WSME/WSME-0.11.0.ebuild
index b8798554e3..ffb466fa5c 100644
--- a/dev-python/WSME/WSME-0.11.0.ebuild
+++ b/dev-python/WSME/WSME-0.11.0.ebuild
@@ -26,6 +26,7 @@ RDEPEND="
"
DEPEND="
${RDEPEND}
+ dev-python/pbr[${PYTHON_USEDEP}]
dev-python/wheel[${PYTHON_USEDEP}]
"
BDEPEND="
diff --git a/dev-python/oslo-middleware/Manifest b/dev-python/oslo-middleware/Manifest
index 1e31f3d0b8..416181c39d 100644
--- a/dev-python/oslo-middleware/Manifest
+++ b/dev-python/oslo-middleware/Manifest
@@ -1 +1 @@
-DIST oslo.middleware-4.1.1.tar.gz 55970 BLAKE2B 02b9fdeadfca183102601e8c765ec941c51ac15bb83af9b7d5682ba683a20cffbc478497c4b5391cf903923822cfd5c611ca0661d51c642e9089a71cc4c988d2 SHA512 53f0695da0c9bafa1d9cc18a723793a0e7a0ed09a1cd6d6a2aa0f158e6f2fb3a6b8c2ad2cc4fc248cc80ca4fc02997f586f82ca6f951c928f4efa9b2bc5d1a93
+DIST oslo.middleware-4.4.0.tar.gz 63935 BLAKE2B 36cd2f0c5e7ef17ae24eaa15fa64bbaf9e5d7e87475bea1d9170f7c29d1f6d946096638e5fc1d1af3a49137411654a73642a46ed47382bc77278ec24f59eb5c5 SHA512 6cbfb22ec4a513bed214de32924c370ac290ebc9c6dfd6e14b60035179695f49f623dffba9313d263f818c02eaed92596ba58912daf6289760570861307beaa5
diff --git a/dev-python/oslo-middleware/oslo-middleware-4.1.1.ebuild b/dev-python/oslo-middleware/oslo-middleware-4.4.0.ebuild
similarity index 55%
rename from dev-python/oslo-middleware/oslo-middleware-4.1.1.ebuild
rename to dev-python/oslo-middleware/oslo-middleware-4.4.0.ebuild
index 96bcf294ff..25d2907b82 100644
--- a/dev-python/oslo-middleware/oslo-middleware-4.1.1.ebuild
+++ b/dev-python/oslo-middleware/oslo-middleware-4.4.0.ebuild
@@ -1,30 +1,28 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=7
-PYTHON_COMPAT=( python3_8 )
+EAPI=8
+
DISTUTILS_USE_SETUPTOOLS=bdepend
+PYTHON_COMPAT=( python3_8 )
inherit distutils-r1
-DESCRIPTION="Components injected into wsgi pipelines to intercept request/response flows."
-HOMEPAGE="https://pypi.org/project/oslo.middleware/"
+DESCRIPTION="Components injected into wsgi pipelines to intercept request/response flows"
+HOMEPAGE="
+ https://pypi.org/project/oslo.middleware
+ https://launchpad.net/oslo.middleware
+ https://opendev.org/openstack/oslo.middleware
+"
SRC_URI="mirror://pypi/${PN:0:1}/oslo.middleware/oslo.middleware-${PV}.tar.gz"
S="${WORKDIR}/oslo.middleware-${PV}"
LICENSE="Apache-2.0"
SLOT="0"
-KEYWORDS="~amd64 ~arm64 ~x86"
-IUSE=""
-RESTRICT=""
+KEYWORDS="~amd64"
-DEPEND="
- >=dev-python/pbr-2.0.0[${PYTHON_USEDEP}]
- !~dev-python/pbr-2.1.0[${PYTHON_USEDEP}]
-"
RDEPEND="
>=dev-python/pbr-2.0.0[${PYTHON_USEDEP}]
- !~dev-python/pbr-2.1.0[${PYTHON_USEDEP}]
>=dev-python/jinja-2.10[${PYTHON_USEDEP}]
>=dev-python/oslo-config-5.2.0[${PYTHON_USEDEP}]
>=dev-python/oslo-context-2.19.2[${PYTHON_USEDEP}]
@@ -34,4 +32,19 @@ RDEPEND="
>=dev-python/webob-1.8.0[${PYTHON_USEDEP}]
>=dev-python/debtcollector-1.2.0[${PYTHON_USEDEP}]
>=dev-python/statsd-3.2.1[${PYTHON_USEDEP}]
+ >=dev-python/bcrypt-3.1.3[${PYTHON_USEDEP}]
"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ test? (
+ >=dev-python/fixtures-3.0.0[${PYTHON_USEDEP}]
+ >=dev-python/hacking-3.0.1[${PYTHON_USEDEP}]
+ >=dev-python/oslotest-3.2.0[${PYTHON_USEDEP}]
+ >=dev-python/testtools-2.2.0[${PYTHON_USEDEP}]
+ >=dev-python/oslo-serialization-2.18.0[${PYTHON_USEDEP}]
+ >=dev-python/bandit-1.1.0[${PYTHON_USEDEP}]
+ >=dev-python/stestr-2.0.0[${PYTHON_USEDEP}]
+ )
+"
+
+distutils_enable_tests pytest
diff --git a/dev-vcs/lazygit/Manifest b/dev-vcs/lazygit/Manifest
index f323f61434..40d23df71b 100644
--- a/dev-vcs/lazygit/Manifest
+++ b/dev-vcs/lazygit/Manifest
@@ -1,3 +1,3 @@
DIST lazygit-0.29.tar.gz 3385768 BLAKE2B 4968a45572d85a3af84fc8f459dbab1cfd3a70954c650f16ddd8e937a810b590c974642e94b26614f4b24166b6c4db2fc8dd2538052875d827fdecc8bf8acb18 SHA512 f24d63a01bc64e2704805a20437af7ad0304921c2b4084f64014f9a8d9d9711ef02f4cdcf09ee9955ea5f2ef4f94de58c9ecc55fa7cb05fc59a89c7d8c9237d7
-DIST lazygit-0.30.tar.gz 3521302 BLAKE2B 4d8bbf02aec124b89e2f05b8fd357aeb9ff75139b753d958ed61f4bd5298563c11736c1cf2dff70c55ff5eb86829a0283bee0ef56ba1327ff48a66e5234efb3c SHA512 16bd4b8fce43354aec9bc4da69e08843346527897fba85aff966a992f4d75b12d731aed9095b9f7d24a7def7f5b017a6dbaa63c44456f06d8dd5fe9760672663
DIST lazygit-0.30.1.tar.gz 3520967 BLAKE2B 442bec8a7ffc7246895966e57aebb0631f774cffacba451e63d0964b72eba307a520a56413c06f2debef61466379b0e94608df6194f9631bbfda0354026dab4d SHA512 428f49511de3c4fb00aaf28c0c095464ee367d64557e355b86c4ab995dd9285fc411f5f981e06a08d8a6cf30c04f9ee305bdc34bdbec46fe048b463d12eee8ab
+DIST lazygit-0.30.tar.gz 3521302 BLAKE2B 4d8bbf02aec124b89e2f05b8fd357aeb9ff75139b753d958ed61f4bd5298563c11736c1cf2dff70c55ff5eb86829a0283bee0ef56ba1327ff48a66e5234efb3c SHA512 16bd4b8fce43354aec9bc4da69e08843346527897fba85aff966a992f4d75b12d731aed9095b9f7d24a7def7f5b017a6dbaa63c44456f06d8dd5fe9760672663
diff --git a/media-fonts/linja-pona/Manifest b/media-fonts/linja-pona/Manifest
index c7df5003f1..7c6572aa45 100644
--- a/media-fonts/linja-pona/Manifest
+++ b/media-fonts/linja-pona/Manifest
@@ -1 +1,2 @@
DIST linja-pona-4.2.otf 81476 BLAKE2B e969077b3901168580005c63c9c7878ccde196fca2b8fd39d8e85a4d9270ab0d66334c026a56f47744a1429c4ae6287b61474a9cc59d8d0a7fd525499c9e0496 SHA512 1cedc5e20b2874ad36afb28e5cd95e568ba16eb227f35d686db517459ad43669c95ec4a31464f271527f4d27c49c8d19a2effa22b0942906ef7a554238c68ed3
+DIST linja-pona-4.9.otf 85784 BLAKE2B 4537a5ce399e63eadfcb24d6247bd44a5aa896d50eba8f84b81caf0c7645f0556d59a267b2d795e1e0ec7f64e009689ebb4c984a6b19fe6b3d13c38117afa935 SHA512 4189c19c6a8e6f96f6fd0490354c42c1f3cd4d957899f24771f8025f918a92f5ab25b560bc74c2f057412214cc72110f412059d16808aff134e58c3789e12f2b
diff --git a/media-fonts/linja-pona/linja-pona-4.9.ebuild b/media-fonts/linja-pona/linja-pona-4.9.ebuild
new file mode 100644
index 0000000000..f8ee37bb57
--- /dev/null
+++ b/media-fonts/linja-pona/linja-pona-4.9.ebuild
@@ -0,0 +1,21 @@
+# Copyright 2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit font
+
+DESCRIPTION="Font for sitelen pona, a script for toki pona"
+HOMEPAGE="http://musilili.net/linja-pona https://github.com/janSame/linja-pona"
+SRC_URI="https://drive.google.com/uc?export=download&id=1ukFvjXku_0Sdqq3u4oHlPLhTlR2J9b3I -> ${P}.otf"
+S="${WORKDIR}"
+
+LICENSE="OFL-1.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+FONT_SUFFIX="otf"
+
+src_unpack() {
+ cp "${DISTDIR}/${A}" "${S}/${PN}.${FONT_SUFFIX}" || die
+}
diff --git a/media-fonts/linja-pona/metadata.xml b/media-fonts/linja-pona/metadata.xml
index 01c244f63c..9a8e59c68f 100644
--- a/media-fonts/linja-pona/metadata.xml
+++ b/media-fonts/linja-pona/metadata.xml
@@ -1,5 +1,5 @@
-
+
janSame/linja-pona
diff --git a/media-libs/libjxl/files/libjxl-0.6-system-libs.patch b/media-libs/libjxl/files/libjxl-0.6-system-libs.patch
index 8ca51d6f8d..8b8d0a2699 100644
--- a/media-libs/libjxl/files/libjxl-0.6-system-libs.patch
+++ b/media-libs/libjxl/files/libjxl-0.6-system-libs.patch
@@ -18,6 +18,22 @@
# Headers for exporting/importing public headers
include(GenerateExportHeader)
set_target_properties(jxl_dec-obj PROPERTIES
+--- a/lib/jxl_extras.cmake
++++ b/lib/jxl_extras.cmake
+@@ -92,7 +92,7 @@
+ endif ()
+
+ if (JPEGXL_ENABLE_OPENEXR)
+-pkg_check_modules(OpenEXR IMPORTED_TARGET OpenEXR)
++pkg_check_modules(OpenEXR IMPORTED_TARGET OpenEXR-3)
+ if (OpenEXR_FOUND)
+ target_sources(jxl_extras-static PRIVATE
+ extras/codec_exr.cc
+@@ -114,3 +114,4 @@
+ endif()
+ endif() # OpenEXR_FOUND
+ endif() # JPEGXL_ENABLE_OPENEXR
++
--- a/plugins/gdk-pixbuf/CMakeLists.txt
+++ b/plugins/gdk-pixbuf/CMakeLists.txt
@@ -23,7 +23,7 @@
@@ -82,3 +98,28 @@
- ${PROJECT_BINARY_DIR}/LICENSE.sjpeg COPYONLY)
-endif ()
-
+--- a/tools/comparison_viewer/CMakeLists.txt
++++ b/tools/comparison_viewer/CMakeLists.txt
+@@ -24,9 +24,6 @@
+ image_loading.cc
+ image_loading.h
+ )
+-target_include_directories(image_loading PRIVATE
+- $
+-)
+ target_link_libraries(image_loading PUBLIC
+ Qt5::Widgets
+ jxl-static
+--- a/tools/viewer/CMakeLists.txt
++++ b/tools/viewer/CMakeLists.txt
+@@ -26,10 +26,6 @@
+ viewer_window.h
+ viewer_window.ui
+ )
+-target_include_directories(viewer PRIVATE
+- $
+- "${PROJECT_SOURCE_DIR}"
+-)
+ target_link_libraries(viewer
+ Qt5::Widgets
+ icc_detect
diff --git a/media-libs/libjxl/libjxl-0.6.ebuild b/media-libs/libjxl/libjxl-0.6-r2.ebuild
similarity index 55%
rename from media-libs/libjxl/libjxl-0.6.ebuild
rename to media-libs/libjxl/libjxl-0.6-r2.ebuild
index afd6ae0c0c..e2918d5b2b 100644
--- a/media-libs/libjxl/libjxl-0.6.ebuild
+++ b/media-libs/libjxl/libjxl-0.6-r2.ebuild
@@ -1,9 +1,9 @@
# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=8
+EAPI=7
-inherit xdg cmake
+inherit xdg cmake java-pkg-opt-2
DESCRIPTION="JPEG XL image format reference implementation"
HOMEPAGE="https://github.com/libjxl/libjxl"
@@ -12,17 +12,21 @@ SRC_URI="https://github.com/libjxl/libjxl/archive/refs/tags/v${PV}.tar.gz -> ${P
KEYWORDS="~amd64"
LICENSE="Apache-2.0"
SLOT="0"
-IUSE="abi_x86_64 cpu_flags_arm_neon benchmark devtools examples man +openexr plugins profile +sjpeg +skcms tcmalloc tools viewers" #java
+IUSE="abi_x86_64 cpu_flags_arm_neon benchmark devtools examples java man +openexr plugins profile +sjpeg +skcms tcmalloc tools viewers" #emscripten fuzzers
-RDEPEND="
+CDEPEND="
app-arch/brotli
dev-cpp/highway:=
media-libs/libpng
media-libs/lodepng:=
media-libs/giflib
sys-libs/zlib
- virtual/jpeg
+ benchmark? (
+ media-libs/libavif
+ media-libs/libwebp
+ virtual/jpeg
+ )
openexr? ( media-libs/openexr:= )
plugins? (
dev-libs/glib:2
@@ -37,17 +41,35 @@ RDEPEND="
!skcms? ( media-libs/lcms )
skcms? ( media-libs/skcms:= )
tcmalloc? ( dev-util/google-perftools )
- viewers? ( media-libs/lcms )
+ viewers? (
+ dev-qt/qtconcurrent
+ dev-qt/qtwidgets
+ dev-qt/qtx11extras
+ media-libs/lcms
+ x11-libs/libxcb
+ )
+"
+RDEPEND="
+ ${CDEPEND}
+ java? ( virtual/jre:1.8 )
"
DEPEND="
- ${RDEPEND}
+ ${CDEPEND}
dev-cpp/gtest
+ kde-frameworks/extra-cmake-modules
+ java? ( virtual/jdk:1.8 )
plugins? ( x11-misc/xdg-utils )
"
-BDEPEND="man? ( app-text/asciidoc )"
+BDEPEND="
+ virtual/pkgconfig
+ man? ( app-text/asciidoc )
+"
PATCHES=( "${FILESDIR}/${P}-system-libs.patch" )
REQUIRED_USE="tcmalloc? ( abi_x86_64 )"
+DOCS=( AUTHORS README.md SECURITY.md PATENTS CONTRIBUTORS CHANGELOG.md )
+
+CMAKE_IN_SOURCE_BUILD=1
src_prepare() {
# remove bundled libs cmake
@@ -60,6 +82,7 @@ src_configure() {
-DJPEGXL_ENABLE_BENCHMARK=$(usex benchmark)
-DJPEGXL_ENABLE_DEVTOOLS=$(usex devtools)
-DJPEGXL_ENABLE_EXAMPLES=$(usex examples)
+ -DJPEGXL_ENABLE_JNI=$(usex java)
-DJPEGXL_ENABLE_MANPAGES=$(usex man)
-DJPEGXL_ENABLE_OPENEXR=$(usex openexr)
-DJPEGXL_ENABLE_PLUGINS=$(usex plugins)
@@ -88,6 +111,46 @@ src_configure() {
src_install() {
cmake_src_install
- find "${D}" -name '*.a' -delete || die
+ einstalldocs
#TODO: install documentation
+ exeinto "/usr/libexec/${PN}"
+ if use examples; then
+ doexe {en,de}code_oneshot
+ dobin jxlinfo
+ fi
+ pushd "${BUILD_DIR}/tools" || die
+ insinto "/usr/share/${PN}"
+ doins progressive_saliency.conf example_tree.txt
+ if use java; then
+ dolib.so libjxl_jni.so
+ rm libjxl_jni.so || die
+ doins *.jar
+ fi
+ if use benchmark; then
+ docinto "/usr/share/doc/${PF}/benchmark/hm"
+ dodoc benchmark/hm/README.md
+ else
+ rm -r benchmark || die
+ fi
+ # remove non executable or non .m files
+ find . -type f \! -name '*.m' \! -executable -delete || die
+ # delete empty dirs
+ find . -type d -empty -print -delete || die
+ mkdir -p "${ED}/usr/libexec/${PN}/tools/" || die
+ # install tools
+ cp -r . "${ED}/usr/libexec/${PN}/tools/" || die
+
+ # keep in /usr/bin only the executables with jxl in the name
+ rm -f "${ED}"/usr/libexec/${PN}/tools/*jxl* || die
+ rm -f "${ED}"/usr/bin/{fuzzer_corpus,*_main,decode_and_encode,*_hlg,tone_map,xyb_range} || die
+
+ find "${D}" -name '*.a' -delete || die
+}
+
+pkg_postinst() {
+ xdg_mimeinfo_database_update
+}
+
+pkg_postrm() {
+ xdg_mimeinfo_database_update
}
diff --git a/media-libs/libjxl/metadata.xml b/media-libs/libjxl/metadata.xml
index ac94839231..5c6f84710f 100644
--- a/media-libs/libjxl/metadata.xml
+++ b/media-libs/libjxl/metadata.xml
@@ -8,6 +8,7 @@