diff options
author | Alex Xu (Hello71) <alex_y_xu@yahoo.ca> | 2021-06-25 21:31:09 -0400 |
---|---|---|
committer | Alex Xu (Hello71) <alex_y_xu@yahoo.ca> | 2021-06-25 21:31:56 -0400 |
commit | fad053addbbd3f0768a6c68506c9e78f24d0b7f4 (patch) | |
tree | 874f3b14573b6dd097a82c293565ca83bd453914 | |
parent | 598041ffdb7ad132a7d295aa57b49fbf70d6cf2e (diff) | |
download | gentoo-overlay-fad053addbbd3f0768a6c68506c9e78f24d0b7f4.tar.xz gentoo-overlay-fad053addbbd3f0768a6c68506c9e78f24d0b7f4.zip |
dev-libs/highway, media-libs/libjxl: new packages
-rw-r--r-- | dev-libs/highway/Manifest | 1 | ||||
-rw-r--r-- | dev-libs/highway/highway-0.12.2.ebuild | 27 | ||||
-rw-r--r-- | media-libs/libjxl/libjxl-9999.ebuild | 63 |
3 files changed, 91 insertions, 0 deletions
diff --git a/dev-libs/highway/Manifest b/dev-libs/highway/Manifest new file mode 100644 index 0000000..30461b0 --- /dev/null +++ b/dev-libs/highway/Manifest @@ -0,0 +1 @@ +DIST highway-0.12.2.tar.gz 1487685 BLAKE2B 7304dc2b3b8c704aa0f138f24d7118a3d364ad5a7f1ae359dcad16444c3f02a12d1454855459290a3d0bfae5b25e7d6baec2a8c5fd00d6165cb0f6695e02b479 SHA512 857a3ecbeaf13d69b9807d6f7daf0a1dc791008c7ce0413cb20457eb057f60fa9a5836eff7cf28c884566bae746d9b7d850b3cf88767bb299f10fd1440a56e06 diff --git a/dev-libs/highway/highway-0.12.2.ebuild b/dev-libs/highway/highway-0.12.2.ebuild new file mode 100644 index 0000000..7f21cc2 --- /dev/null +++ b/dev-libs/highway/highway-0.12.2.ebuild @@ -0,0 +1,27 @@ +# Copyright 2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake + +DESCRIPTION="Performance-portable, length-agnostic SIMD with runtime dispatch" +HOMEPAGE="https://github.com/google/highway" +SRC_URI="https://github.com/google/highway/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" + +DEPEND="test? ( dev-cpp/gtest )" +RDEPEND="" +BDEPEND="" + +src_configure() { + local mycmakeargs=( + -DBUILD_TESTING=$(usex test ON OFF) + -DHWY_SYSTEM_GTEST=ON + ) + cmake_src_configure +} diff --git a/media-libs/libjxl/libjxl-9999.ebuild b/media-libs/libjxl/libjxl-9999.ebuild new file mode 100644 index 0000000..f9b22f7 --- /dev/null +++ b/media-libs/libjxl/libjxl-9999.ebuild @@ -0,0 +1,63 @@ +# Copyright 2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +inherit xdg cmake git-r3 + +DESCRIPTION="JPEG XL image format reference implementation" +HOMEPAGE="https://github.com/libjxl/libjxl" + +EGIT_REPO_URI="https://github.com/libjxl/libjxl.git" +EGIT_SUBMODULES=(third_party/lodepng third_party/skcms) + +LICENSE="Apache-2.0" +SLOT="0" +IUSE="apng doc gif jpeg +man openexr test viewers" + +DEPEND="app-arch/brotli + dev-libs/highway + virtual/opengl + apng? ( + media-libs/libpng + sys-libs/zlib + ) + doc? ( app-doc/doxygen ) + gif? ( media-libs/giflib ) + jpeg? ( virtual/jpeg ) + man? ( app-text/asciidoc ) + openexr? ( media-libs/openexr ) + test? ( dev-cpp/gtest ) + viewers? ( + dev-qt/qtwidgets + dev-qt/qtx11extras + ) +" + +BDEPEND="" + +RDEPEND="${DEPEND}" + +src_configure() { + local mycmakeargs=( + -DBUILD_TESTING=$(usex test ON OFF) + -DJPEGXL_ENABLE_BENCHMARK=OFF + -DJPEGXL_ENABLE_COVERAGE=OFF + -DJPEGXL_ENABLE_EXAMPLES=ON + -DJPEGXL_ENABLE_FUZZERS=OFF + -DJPEGXL_ENABLE_MANPAGES=$(usex man ON OFF) + -DJPEGXL_ENABLE_OPENEXR=$(usex openexr ON OFF) + -DJPEGXL_ENABLE_PLUGINS=OFF + -DJPEGXL_ENABLE_SJPEG=OFF + -DJPEGXL_ENABLE_VIEWERS=$(usex viewers ON OFF) + -DJPEGXL_FORCE_SYSTEM_BROTLI=ON + -DJPEGXL_WARNINGS_AS_ERRORS=OFF + + $(cmake_use_find_package gif GIF) + $(cmake_use_find_package jpeg JPEG) + $(cmake_use_find_package png PNG) + $(cmake_use_find_package doc Doxygen) + ) + + cmake_src_configure +} |