* [gentoo-commits] repo/proj/guru:dev commit in: dev-cpp/highway/, dev-cpp/highway/files/
@ 2021-10-24 2:56 Alessandro Barbieri
0 siblings, 0 replies; 2+ messages in thread
From: Alessandro Barbieri @ 2021-10-24 2:56 UTC (permalink / raw
To: gentoo-commits
commit: 98811d8232be969c0fb7003456cabcd3cd231f57
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Sun Oct 24 02:55:49 2021 +0000
Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
CommitDate: Sun Oct 24 02:56:44 2021 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=98811d82
dev-cpp/highway: add versioned ebuild, EAPI 8
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
dev-cpp/highway/Manifest | 1 +
.../highway/files/highway-shared-libraries.patch | 21 +++++++++++++++++++++
.../{highway-9999.ebuild => highway-0.14.2.ebuild} | 16 +++++++++-------
dev-cpp/highway/highway-9999.ebuild | 16 +++++++++-------
4 files changed, 40 insertions(+), 14 deletions(-)
diff --git a/dev-cpp/highway/Manifest b/dev-cpp/highway/Manifest
new file mode 100644
index 000000000..1512a640d
--- /dev/null
+++ b/dev-cpp/highway/Manifest
@@ -0,0 +1 @@
+DIST highway-0.14.2.tar.gz 1545892 BLAKE2B c19d040ea7bf6d5ee0ff87213f36bfe77759cc4cec514b972379490dbac5e8d55f99490b998f73133ca0ba3b34a98f2684b85206ae32d655aa574aeaabeaeb27 SHA512 fc1a35463c95c45b646c53f91a9996112726de1d588dcd4d25a7d366840f704ad9a4c0bb6e0a001e929409f04aad6922cbffcf93774a0c360aff875956c7cc8d
diff --git a/dev-cpp/highway/files/highway-shared-libraries.patch b/dev-cpp/highway/files/highway-shared-libraries.patch
new file mode 100644
index 000000000..28149eba8
--- /dev/null
+++ b/dev-cpp/highway/files/highway-shared-libraries.patch
@@ -0,0 +1,21 @@
+--- a/CMakeLists.txt 2021-10-24 04:46:57.475685128 +0200
++++ b/CMakeLists.txt 2021-10-24 04:45:56.218467838 +0200
+@@ -182,15 +182,16 @@
+
+ endif() # !MSVC
+
+-add_library(hwy STATIC ${HWY_SOURCES})
++add_library(hwy SHARED ${HWY_SOURCES})
+ target_compile_options(hwy PRIVATE ${HWY_FLAGS})
+ set_property(TARGET hwy PROPERTY POSITION_INDEPENDENT_CODE ON)
+ target_include_directories(hwy PUBLIC ${CMAKE_CURRENT_LIST_DIR})
+
+-add_library(hwy_contrib STATIC ${HWY_CONTRIB_SOURCES})
++add_library(hwy_contrib SHARED ${HWY_CONTRIB_SOURCES})
+ target_compile_options(hwy_contrib PRIVATE ${HWY_FLAGS})
+ set_property(TARGET hwy_contrib PROPERTY POSITION_INDEPENDENT_CODE ON)
+ target_include_directories(hwy_contrib PUBLIC ${CMAKE_CURRENT_LIST_DIR})
++target_link_libraries(hwy_contrib hwy)
+
+ # -------------------------------------------------------- hwy_list_targets
+ # Generate a tool to print the compiled-in targets as defined by the current
diff --git a/dev-cpp/highway/highway-9999.ebuild b/dev-cpp/highway/highway-0.14.2.ebuild
similarity index 69%
copy from dev-cpp/highway/highway-9999.ebuild
copy to dev-cpp/highway/highway-0.14.2.ebuild
index 8d96668d7..683729d58 100644
--- a/dev-cpp/highway/highway-9999.ebuild
+++ b/dev-cpp/highway/highway-0.14.2.ebuild
@@ -1,7 +1,7 @@
# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI="7"
+EAPI=8
inherit cmake
@@ -18,18 +18,20 @@ fi
LICENSE="Apache-2.0"
SLOT="0"
-IUSE=""
+IUSE="test"
-DEPEND=""
+DEPEND="test? ( dev-cpp/gtest )"
-BDEPEND=""
-
-RDEPEND="${DEPEND}"
+PATCHES=( "${FILESDIR}/${PN}-shared-libraries.patch" )
+RESTRICT="!test? ( test )"
src_configure() {
local mycmakeargs=(
- -DBUILD_TESTING=OFF
+ -DBUILD_TESTING=$(usex test)
+ -DHWY_WARNINGS_ARE_ERRORS=OFF
)
+ use test && mycmakeargs+=( "-DHWY_SYSTEM_GTEST=ON" )
+
cmake_src_configure
}
diff --git a/dev-cpp/highway/highway-9999.ebuild b/dev-cpp/highway/highway-9999.ebuild
index 8d96668d7..683729d58 100644
--- a/dev-cpp/highway/highway-9999.ebuild
+++ b/dev-cpp/highway/highway-9999.ebuild
@@ -1,7 +1,7 @@
# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI="7"
+EAPI=8
inherit cmake
@@ -18,18 +18,20 @@ fi
LICENSE="Apache-2.0"
SLOT="0"
-IUSE=""
+IUSE="test"
-DEPEND=""
+DEPEND="test? ( dev-cpp/gtest )"
-BDEPEND=""
-
-RDEPEND="${DEPEND}"
+PATCHES=( "${FILESDIR}/${PN}-shared-libraries.patch" )
+RESTRICT="!test? ( test )"
src_configure() {
local mycmakeargs=(
- -DBUILD_TESTING=OFF
+ -DBUILD_TESTING=$(usex test)
+ -DHWY_WARNINGS_ARE_ERRORS=OFF
)
+ use test && mycmakeargs+=( "-DHWY_SYSTEM_GTEST=ON" )
+
cmake_src_configure
}
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: dev-cpp/highway/, dev-cpp/highway/files/
@ 2022-03-24 13:25 Daniel Novomesky
0 siblings, 0 replies; 2+ messages in thread
From: Daniel Novomesky @ 2022-03-24 13:25 UTC (permalink / raw
To: gentoo-commits
commit: 93dc67e07e638322d528535fc41628d52e8aaebf
Author: Daniel Novomesky <dnovomesky <AT> gmail <DOT> com>
AuthorDate: Thu Mar 24 13:21:56 2022 +0000
Commit: Daniel Novomesky <dnovomesky <AT> gmail <DOT> com>
CommitDate: Thu Mar 24 13:25:12 2022 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=93dc67e0
dev-cpp/highway: remove package, moved to ::gentoo
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Daniel Novomesky <dnovomesky <AT> gmail.com>
dev-cpp/highway/Manifest | 2 --
.../highway/files/highway-shared-libraries.patch | 21 -----------
dev-cpp/highway/highway-0.14.2.ebuild | 42 ----------------------
dev-cpp/highway/highway-0.15.0.ebuild | 42 ----------------------
dev-cpp/highway/highway-9999.ebuild | 37 -------------------
dev-cpp/highway/metadata.xml | 12 -------
6 files changed, 156 deletions(-)
diff --git a/dev-cpp/highway/Manifest b/dev-cpp/highway/Manifest
deleted file mode 100644
index ac2de0f25..000000000
--- a/dev-cpp/highway/Manifest
+++ /dev/null
@@ -1,2 +0,0 @@
-DIST highway-0.14.2.tar.gz 1545892 BLAKE2B c19d040ea7bf6d5ee0ff87213f36bfe77759cc4cec514b972379490dbac5e8d55f99490b998f73133ca0ba3b34a98f2684b85206ae32d655aa574aeaabeaeb27 SHA512 fc1a35463c95c45b646c53f91a9996112726de1d588dcd4d25a7d366840f704ad9a4c0bb6e0a001e929409f04aad6922cbffcf93774a0c360aff875956c7cc8d
-DIST highway-0.15.0.tar.gz 1598512 BLAKE2B f0ee61b5f19591d88d6fd3950072c9302b13e589ac9e8759444c0bcde2c804438313b1b37c2e3d9c40296898c8fc938a2ae57eba3e17d73a9388c21f20b97b59 SHA512 ed07e855721f87ea67d762b30e001643a76bd16d70372415023c8e6f1a43c58759a14a638e8eb20566863d8358d994153bf7a660fcf604e808adfea5f938a013
diff --git a/dev-cpp/highway/files/highway-shared-libraries.patch b/dev-cpp/highway/files/highway-shared-libraries.patch
deleted file mode 100644
index 28149eba8..000000000
--- a/dev-cpp/highway/files/highway-shared-libraries.patch
+++ /dev/null
@@ -1,21 +0,0 @@
---- a/CMakeLists.txt 2021-10-24 04:46:57.475685128 +0200
-+++ b/CMakeLists.txt 2021-10-24 04:45:56.218467838 +0200
-@@ -182,15 +182,16 @@
-
- endif() # !MSVC
-
--add_library(hwy STATIC ${HWY_SOURCES})
-+add_library(hwy SHARED ${HWY_SOURCES})
- target_compile_options(hwy PRIVATE ${HWY_FLAGS})
- set_property(TARGET hwy PROPERTY POSITION_INDEPENDENT_CODE ON)
- target_include_directories(hwy PUBLIC ${CMAKE_CURRENT_LIST_DIR})
-
--add_library(hwy_contrib STATIC ${HWY_CONTRIB_SOURCES})
-+add_library(hwy_contrib SHARED ${HWY_CONTRIB_SOURCES})
- target_compile_options(hwy_contrib PRIVATE ${HWY_FLAGS})
- set_property(TARGET hwy_contrib PROPERTY POSITION_INDEPENDENT_CODE ON)
- target_include_directories(hwy_contrib PUBLIC ${CMAKE_CURRENT_LIST_DIR})
-+target_link_libraries(hwy_contrib hwy)
-
- # -------------------------------------------------------- hwy_list_targets
- # Generate a tool to print the compiled-in targets as defined by the current
diff --git a/dev-cpp/highway/highway-0.14.2.ebuild b/dev-cpp/highway/highway-0.14.2.ebuild
deleted file mode 100644
index 46b5278c3..000000000
--- a/dev-cpp/highway/highway-0.14.2.ebuild
+++ /dev/null
@@ -1,42 +0,0 @@
-# Copyright 2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit cmake
-
-DESCRIPTION="Performance-portable, length-agnostic SIMD with runtime dispatch"
-HOMEPAGE="https://github.com/google/highway"
-
-if [[ "${PV}" == *9999* ]]; then
- inherit git-r3
- EGIT_REPO_URI="https://github.com/google/highway.git"
-else
- SRC_URI="https://github.com/google/highway/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
- KEYWORDS="~amd64"
-fi
-
-LICENSE="Apache-2.0"
-SLOT="0"
-IUSE="test"
-
-DEPEND="test? ( dev-cpp/gtest )"
-
-PATCHES=( "${FILESDIR}/${PN}-shared-libraries.patch" )
-RESTRICT="!test? ( test )"
-
-src_configure() {
- local mycmakeargs=(
- -DBUILD_TESTING=$(usex test)
- -DHWY_WARNINGS_ARE_ERRORS=OFF
- )
-
- use test && mycmakeargs+=( "-DHWY_SYSTEM_GTEST=ON" )
-
- cmake_src_configure
-}
-
-src_install() {
- dodoc g3doc/*
- cmake_src_install
-}
diff --git a/dev-cpp/highway/highway-0.15.0.ebuild b/dev-cpp/highway/highway-0.15.0.ebuild
deleted file mode 100644
index 46b5278c3..000000000
--- a/dev-cpp/highway/highway-0.15.0.ebuild
+++ /dev/null
@@ -1,42 +0,0 @@
-# Copyright 2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit cmake
-
-DESCRIPTION="Performance-portable, length-agnostic SIMD with runtime dispatch"
-HOMEPAGE="https://github.com/google/highway"
-
-if [[ "${PV}" == *9999* ]]; then
- inherit git-r3
- EGIT_REPO_URI="https://github.com/google/highway.git"
-else
- SRC_URI="https://github.com/google/highway/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
- KEYWORDS="~amd64"
-fi
-
-LICENSE="Apache-2.0"
-SLOT="0"
-IUSE="test"
-
-DEPEND="test? ( dev-cpp/gtest )"
-
-PATCHES=( "${FILESDIR}/${PN}-shared-libraries.patch" )
-RESTRICT="!test? ( test )"
-
-src_configure() {
- local mycmakeargs=(
- -DBUILD_TESTING=$(usex test)
- -DHWY_WARNINGS_ARE_ERRORS=OFF
- )
-
- use test && mycmakeargs+=( "-DHWY_SYSTEM_GTEST=ON" )
-
- cmake_src_configure
-}
-
-src_install() {
- dodoc g3doc/*
- cmake_src_install
-}
diff --git a/dev-cpp/highway/highway-9999.ebuild b/dev-cpp/highway/highway-9999.ebuild
deleted file mode 100644
index 4371d5e0b..000000000
--- a/dev-cpp/highway/highway-9999.ebuild
+++ /dev/null
@@ -1,37 +0,0 @@
-# Copyright 2021-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-CMAKE_ECLASS=cmake
-inherit cmake-multilib
-
-DESCRIPTION="Performance-portable, length-agnostic SIMD with runtime dispatch"
-HOMEPAGE="https://github.com/google/highway"
-
-if [[ "${PV}" == *9999* ]]; then
- inherit git-r3
- EGIT_REPO_URI="https://github.com/google/highway.git"
-else
- SRC_URI="https://github.com/google/highway/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
- KEYWORDS="~amd64 ~x86"
-fi
-
-LICENSE="Apache-2.0"
-SLOT="0"
-IUSE="test"
-
-DEPEND="test? ( dev-cpp/gtest[${MULTILIB_USEDEP}] )"
-
-RESTRICT="!test? ( test )"
-
-multilib_src_configure() {
- local mycmakeargs=(
- -DBUILD_TESTING=$(usex test)
- -DHWY_WARNINGS_ARE_ERRORS=OFF
- )
-
- use test && mycmakeargs+=( "-DHWY_SYSTEM_GTEST=ON" )
-
- cmake_src_configure
-}
diff --git a/dev-cpp/highway/metadata.xml b/dev-cpp/highway/metadata.xml
deleted file mode 100644
index 3252651cf..000000000
--- a/dev-cpp/highway/metadata.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM 'http://www.gentoo.org/dtd/metadata.dtd'>
-<pkgmetadata>
- <maintainer type="person">
- <email>dnovomesky@gmail.com</email>
- <name>Daniel Novomesky</name>
- </maintainer>
- <longdescription>
- Highway is a C++ library for SIMD (Single Instruction, Multiple Data),
- i.e. applying the same operation to multiple 'lanes' using a single CPU instruction.
- </longdescription>
-</pkgmetadata>
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-03-24 13:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-24 2:56 [gentoo-commits] repo/proj/guru:dev commit in: dev-cpp/highway/, dev-cpp/highway/files/ Alessandro Barbieri
-- strict thread matches above, loose matches on Subject: below --
2022-03-24 13:25 Daniel Novomesky
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox