Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Jan 2024 06:47:31 GMT
From:      Gleb Popov <arrowd@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 55a723139b6c - main - devel/libasyncplusplus: Remove duplicated port
Message-ID:  <202401270647.40R6lV3c060786@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by arrowd:

URL: https://cgit.FreeBSD.org/ports/commit/?id=55a723139b6cac8457ffc829da64821fb271862f

commit 55a723139b6cac8457ffc829da64821fb271862f
Author:     Peter <peter@flytrace.com>
AuthorDate: 2024-01-24 18:49:19 +0000
Commit:     Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2024-01-27 06:46:52 +0000

    devel/libasyncplusplus: Remove duplicated port
---
 MOVED                                              |   1 +
 devel/libasyncplusplus/Makefile                    |  32 ---
 devel/libasyncplusplus/distinfo                    |   3 -
 .../files/patch-Async++Config.cmake.in             |   7 -
 devel/libasyncplusplus/files/patch-CMakeLists.txt  | 243 ---------------------
 devel/libasyncplusplus/pkg-descr                   |   3 -
 devel/libasyncplusplus/pkg-plist                   |  21 --
 7 files changed, 1 insertion(+), 309 deletions(-)

diff --git a/MOVED b/MOVED
index 22eced175e25..23aa0c39988c 100644
--- a/MOVED
+++ b/MOVED
@@ -2977,3 +2977,4 @@ x11-themes/kde-icons-graphite-rade8||2024-01-25|Has expired: Upstream WWW return
 x11-themes/kde-icons-lime-rade8||2024-01-25|Has expired: Upstream WWW returns Not Found
 x11-themes/kde-icons-lush||2024-01-25|Has expired: Upstream WWW returns Not Found
 audio/sphinxbase||2024-01-25|Has expired: Upstream last release was in 2012
+devel/libasyncplusplus|devel/asyncplusplus|2024-01-27|Remove duplicated port
diff --git a/devel/libasyncplusplus/Makefile b/devel/libasyncplusplus/Makefile
deleted file mode 100644
index d2a6aceed6c7..000000000000
--- a/devel/libasyncplusplus/Makefile
+++ /dev/null
@@ -1,32 +0,0 @@
-PORTNAME=	libasyncplusplus
-DISTVERSIONPREFIX=	v
-DISTVERSION=	1.1
-PORTREVISION=	1
-CATEGORIES=	devel
-
-MAINTAINER=	peter@flytrace.com
-COMMENT=	Lightweight concurrency framework for C++
-WWW=		https://github.com/Amanieu/asyncplusplus
-
-LICENSE=	MIT
-LICENSE_FILE=	${WRKSRC}/LICENSE
-
-USES=	cmake compiler:c++11-lang
-
-USE_LDCONFIG=	yes
-
-USE_GITHUB=	yes
-GH_ACCOUNT=	Amanieu
-GH_PROJECT=	asyncplusplus
-
-OPTIONS_DEFINE=		STATIC
-OPTIONS_DEFAULT=	STATIC
-OPTIONS_SUB=	yes
-
-STATIC_DESC=	Build static library
-
-CMAKE_ON=	ASYNCXX_BUILD_SHARED
-
-STATIC_CMAKE_BOOL=	ASYNCXX_BUILD_STATIC
-
-.include <bsd.port.mk>
diff --git a/devel/libasyncplusplus/distinfo b/devel/libasyncplusplus/distinfo
deleted file mode 100644
index bbbc013ecb91..000000000000
--- a/devel/libasyncplusplus/distinfo
+++ /dev/null
@@ -1,3 +0,0 @@
-TIMESTAMP = 1702137089
-SHA256 (Amanieu-asyncplusplus-v1.1_GH0.tar.gz) = d160d3a433a1e08f51c785742843182c2b81a7bc872766f57bf5f3108377b858
-SIZE (Amanieu-asyncplusplus-v1.1_GH0.tar.gz) = 34095
diff --git a/devel/libasyncplusplus/files/patch-Async++Config.cmake.in b/devel/libasyncplusplus/files/patch-Async++Config.cmake.in
deleted file mode 100644
index 69fa3144894f..000000000000
--- a/devel/libasyncplusplus/files/patch-Async++Config.cmake.in
+++ /dev/null
@@ -1,7 +0,0 @@
---- Async++Config.cmake.in.orig	2020-02-01 15:43:41 UTC
-+++ Async++Config.cmake.in
-@@ -1,3 +1,3 @@
- include(CMakeFindDependencyMacro)
- find_dependency(Threads)
--include("${CMAKE_CURRENT_LIST_DIR}/Async++.cmake")
-+include("${CMAKE_CURRENT_LIST_DIR}/asyncxx-targets.cmake")
diff --git a/devel/libasyncplusplus/files/patch-CMakeLists.txt b/devel/libasyncplusplus/files/patch-CMakeLists.txt
deleted file mode 100644
index 6c050d3d6bc3..000000000000
--- a/devel/libasyncplusplus/files/patch-CMakeLists.txt
+++ /dev/null
@@ -1,243 +0,0 @@
---- CMakeLists.txt.orig	2020-02-01 15:43:41 UTC
-+++ CMakeLists.txt
-@@ -21,17 +21,21 @@
- cmake_minimum_required(VERSION 3.1)
- project(Async++ C CXX)
- 
--option(BUILD_SHARED_LIBS "Build Async++ as a shared library" ON)
-+option(ASYNCXX_BUILD_SHARED "Build shared library" ON)
-+option(ASYNCXX_BUILD_STATIC "Build static library" OFF)
- option(USE_CXX_EXCEPTIONS "Enable C++ exception support" ON)
- if (APPLE)
- 	option(BUILD_FRAMEWORK "Build a Mac OS X framework instead of a library" OFF)
--	if (BUILD_FRAMEWORK AND NOT BUILD_SHARED_LIBS)
-+	if (BUILD_FRAMEWORK AND NOT ASYNCXX_BUILD_SHARED)
- 		message(FATAL_ERROR "Can't build a framework with static libraries")
- 	endif()
- endif()
- 
- set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
- 
-+set(ASYNCXX_SHARED_LIBRARY async++)
-+set(ASYNCXX_STATIC_LIBRARY async++-static)
-+
- # Add all source and header files so IDEs can see them
- set(ASYNCXX_INCLUDE
- 	${PROJECT_SOURCE_DIR}/include/async++/aligned_alloc.h
-@@ -61,59 +65,147 @@ set(ASYNCXX_SRC
- )
- source_group(include FILES ${PROJECT_SOURCE_DIR}/include/async++.h ${ASYNCXX_INCLUDE})
- source_group(src FILES ${ASYNCXX_SRC})
--add_library(Async++ ${PROJECT_SOURCE_DIR}/include/async++.h ${ASYNCXX_INCLUDE} ${ASYNCXX_SRC})
- 
--# Async++ only depends on the C++11 standard libraries, but some implementations
--# require the -pthread compiler flag to enable threading functionality.
--if (NOT MSVC)
--	target_compile_options(Async++ PRIVATE -std=c++11)
-+if(${ASYNCXX_BUILD_SHARED})
-+	list(APPEND ASYNCXX_TARGETS ${ASYNCXX_SHARED_LIBRARY})
- endif()
--if (APPLE)
--	# Use libc++ on Mac because the shipped libstdc++ version is ancient
--	target_compile_options(Async++ PRIVATE -stdlib=libc++)
--	set_target_properties(Async++ PROPERTIES LINK_FLAGS -stdlib=libc++)
-+
-+if(${ASYNCXX_BUILD_STATIC})
-+	list(APPEND ASYNCXX_TARGETS ${ASYNCXX_STATIC_LIBRARY})
- endif()
-+
-+if(NOT ASYNCXX_TARGETS)
-+	message(FATAL_ERROR "No targets are specified")
-+endif()
-+
- set(THREADS_PREFER_PTHREAD_FLAG ON)
- find_package(Threads REQUIRED)
--target_link_libraries(Async++ PUBLIC Threads::Threads)
- 
--# Set up preprocessor definitions
--target_include_directories(Async++ PRIVATE ${PROJECT_SOURCE_DIR}/include)
--set_target_properties(Async++ PROPERTIES DEFINE_SYMBOL LIBASYNC_BUILD)
--if (BUILD_SHARED_LIBS)
--	# Minimize the set of symbols exported by libraries
--	set_target_properties(Async++ PROPERTIES CXX_VISIBILITY_PRESET hidden VISIBILITY_INLINES_HIDDEN ON)
--else()
--	target_compile_definitions(Async++ PUBLIC LIBASYNC_STATIC)
--endif()
-+if(${ASYNCXX_BUILD_SHARED})
-+	message(STATUS "Creating shared library: ${ASYNCXX_SHARED_LIBRARY}")
-+	add_library(${ASYNCXX_SHARED_LIBRARY} SHARED ${PROJECT_SOURCE_DIR}/include/async++.h ${ASYNCXX_INCLUDE} ${ASYNCXX_SRC})
-+	target_compile_features(${ASYNCXX_SHARED_LIBRARY} PUBLIC cxx_std_14)
- 
-+# Async++ only depends on the C++11 standard libraries, but some implementations
-+# require the -pthread compiler flag to enable threading functionality.
-+	if (NOT MSVC)
-+		target_compile_options(${ASYNCXX_SHARED_LIBRARY} PRIVATE -std=c++11)
-+	endif()
-+	if (APPLE)
-+	# Use libc++ on Mac because the shipped libstdc++ version is ancient
-+		target_compile_options(${ASYNCXX_SHARED_LIBRARY} PRIVATE -stdlib=libc++)
-+		set_target_properties(${ASYNCXX_SHARED_LIBRARY} PROPERTIES LINK_FLAGS -stdlib=libc++)
-+	endif()
-+	target_link_libraries(${ASYNCXX_SHARED_LIBRARY} PUBLIC Threads::Threads)
-+# Set up preprocessor definitions
-+	target_include_directories(${ASYNCXX_SHARED_LIBRARY} PRIVATE ${PROJECT_SOURCE_DIR}/include)
-+	set_target_properties(${ASYNCXX_SHARED_LIBRARY} PROPERTIES DEFINE_SYMBOL LIBASYNC_BUILD)
-+	set_target_properties(${ASYNCXX_SHARED_LIBRARY} PROPERTIES CXX_VISIBILITY_PRESET hidden VISIBILITY_INLINES_HIDDEN ON)
- # Enable warnings for strict C++ standard conformance
--if (NOT MSVC)
--	target_compile_options(Async++ PRIVATE -Wall -Wextra -pedantic)
--endif()
--
-+	if (NOT MSVC)
-+		target_compile_options(${ASYNCXX_SHARED_LIBRARY} PRIVATE -Wall -Wextra -pedantic)
-+	endif()
- # Async++ doesn't make use of RTTI information, so don't generate it.
- # There are issues on Apple platforms with exceptions and -fno-rtti, so keep it
- # enabled there.
- # See https://stackoverflow.com/questions/21737201/problems-throwing-and-catching-exceptions-on-os-x-with-fno-rtti
--if (MSVC)
--	target_compile_options(Async++ PRIVATE /GR-)
--elseif(NOT APPLE)
--	target_compile_options(Async++ PRIVATE -fno-rtti)
-+	if (MSVC)
-+		target_compile_options(${ASYNCXX_SHARED_LIBRARY} PRIVATE /GR-)
-+	elseif(NOT APPLE)
-+		target_compile_options(${ASYNCXX_SHARED_LIBRARY} PRIVATE -fno-rtti)
-+	endif()
-+# Allow disabling exceptions, but warn the user about the consequences
-+	if (NOT USE_CXX_EXCEPTIONS)
-+		message(WARNING "Exceptions have been disabled. Any operation that would "
-+				"throw an exception will result in a call to std::abort() instead.")
-+		target_compile_definitions(${ASYNCXX_SHARED_LIBRARY} PUBLIC LIBASYNC_NO_EXCEPTIONS)
-+		if (MSVC)
-+			target_compile_options(${ASYNCXX_SHARED_LIBRARY} PUBLIC /EHs-c-)
-+		else()
-+			target_compile_options(${ASYNCXX_SHARED_LIBRARY} PUBLIC -fno-exceptions)
-+		endif()
-+	endif()
-+# /Zc:__cplusplus is required to make __cplusplus accurate
-+# /Zc:__cplusplus is available starting with Visual Studio 2017 version 15.7
-+# (according to https://docs.microsoft.com/en-us/cpp/build/reference/zc-cplusplus)
-+# That version is equivalent to _MSC_VER==1914
-+# (according to https://docs.microsoft.com/en-us/cpp/preprocessor/predefined-macros?view=vs-2019)
-+# CMake's ${MSVC_VERSION} is equivalent to _MSC_VER
-+# (according to https://cmake.org/cmake/help/latest/variable/MSVC_VERSION.html#variable:MSVC_VERSION)
-+# GREATER and EQUAL are used because GREATER_EQUAL is available starting with CMake 3.7
-+# (according to https://cmake.org/cmake/help/v3.7/release/3.7.html#commands)
-+	if ((MSVC) AND ((MSVC_VERSION GREATER 1914) OR (MSVC_VERSION EQUAL 1914)))
-+		target_compile_options(${ASYNCXX_SHARED_LIBRARY} PUBLIC /Zc:__cplusplus)
-+	endif()
-+	list(APPEND TARGET_FILES ${ASYNCXX_SHARED_LIBRARY})
- endif()
- 
--# Allow disabling exceptions, but warn the user about the consequences
--if (NOT USE_CXX_EXCEPTIONS)
--	message(WARNING "Exceptions have been disabled. Any operation that would "
--	        "throw an exception will result in a call to std::abort() instead.")
--	target_compile_definitions(Async++ PUBLIC LIBASYNC_NO_EXCEPTIONS)
-+if(${ASYNCXX_BUILD_STATIC})
-+	message(STATUS "Creating static library: ${ASYNCXX_STATIC_LIBRARY}")
-+	add_library(${ASYNCXX_STATIC_LIBRARY} STATIC ${PROJECT_SOURCE_DIR}/include/async++.h ${ASYNCXX_INCLUDE} ${ASYNCXX_SRC})
-+	target_compile_features(${ASYNCXX_STATIC_LIBRARY} PUBLIC cxx_std_14)
-+# Async++ only depends on the C++11 standard libraries, but some implementations
-+# require the -pthread compiler flag to enable threading functionality.
-+	if (NOT MSVC)
-+		target_compile_options(${ASYNCXX_STATIC_LIBRARY} PRIVATE -std=c++11)
-+	endif()
-+	if (APPLE)
-+	# Use libc++ on Mac because the shipped libstdc++ version is ancient
-+		target_compile_options(${ASYNCXX_STATIC_LIBRARY} PRIVATE -stdlib=libc++)
-+		set_target_properties(${ASYNCXX_STATIC_LIBRARY} PROPERTIES LINK_FLAGS -stdlib=libc++)
-+	endif()
-+	target_link_libraries(${ASYNCXX_STATIC_LIBRARY} PUBLIC Threads::Threads)
-+# Set up preprocessor definitions
-+	target_include_directories(${ASYNCXX_STATIC_LIBRARY} PRIVATE ${PROJECT_SOURCE_DIR}/include)
-+	set_target_properties(${ASYNCXX_STATIC_LIBRARY} PROPERTIES DEFINE_SYMBOL LIBASYNC_BUILD)
-+	target_compile_definitions(${ASYNCXX_STATIC_LIBRARY} PUBLIC LIBASYNC_STATIC)
-+# Enable warnings for strict C++ standard conformance
-+	if (NOT MSVC)
-+		target_compile_options(${ASYNCXX_STATIC_LIBRARY} PRIVATE -Wall -Wextra -pedantic)
-+	endif()
-+# Async++ doesn't make use of RTTI information, so don't generate it.
-+# There are issues on Apple platforms with exceptions and -fno-rtti, so keep it
-+# enabled there.
-+# See https://stackoverflow.com/questions/21737201/problems-throwing-and-catching-exceptions-on-os-x-with-fno-rtti
- 	if (MSVC)
--		target_compile_options(Async++ PUBLIC /EHs-c-)
--	else()
--		target_compile_options(Async++ PUBLIC -fno-exceptions)
-+		target_compile_options(${ASYNCXX_STATIC_LIBRARY} PRIVATE /GR-)
-+	elseif(NOT APPLE)
-+		target_compile_options(${ASYNCXX_STATIC_LIBRARY} PRIVATE -fno-rtti)
- 	endif()
-+# Allow disabling exceptions, but warn the user about the consequences
-+	if (NOT USE_CXX_EXCEPTIONS)
-+		message(WARNING "Exceptions have been disabled. Any operation that would "
-+				"throw an exception will result in a call to std::abort() instead.")
-+		target_compile_definitions(${ASYNCXX_STATIC_LIBRARY} PUBLIC LIBASYNC_NO_EXCEPTIONS)
-+		if (MSVC)
-+			target_compile_options(${ASYNCXX_STATIC_LIBRARY} PUBLIC /EHs-c-)
-+		else()
-+			target_compile_options(${ASYNCXX_STATIC_LIBRARY} PUBLIC -fno-exceptions)
-+		endif()
-+	endif()
-+# /Zc:__cplusplus is required to make __cplusplus accurate
-+# /Zc:__cplusplus is available starting with Visual Studio 2017 version 15.7
-+# (according to https://docs.microsoft.com/en-us/cpp/build/reference/zc-cplusplus)
-+# That version is equivalent to _MSC_VER==1914
-+# (according to https://docs.microsoft.com/en-us/cpp/preprocessor/predefined-macros?view=vs-2019)
-+# CMake's ${MSVC_VERSION} is equivalent to _MSC_VER
-+# (according to https://cmake.org/cmake/help/latest/variable/MSVC_VERSION.html#variable:MSVC_VERSION)
-+# GREATER and EQUAL are used because GREATER_EQUAL is available starting with CMake 3.7
-+# (according to https://cmake.org/cmake/help/v3.7/release/3.7.html#commands)
-+	if ((MSVC) AND ((MSVC_VERSION GREATER 1914) OR (MSVC_VERSION EQUAL 1914)))
-+		target_compile_options(${ASYNCXX_STATIC_LIBRARY} PUBLIC /Zc:__cplusplus)
-+	endif()
-+# In *nix systems, the static library can have the same base filename
-+# In Windows they need different names
-+	if(UNIX)
-+		set_target_properties(${ASYNCXX_STATIC_LIBRARY} PROPERTIES 
-+			OUTPUT_NAME ${ASYNCXX_SHARED_LIBRARY}
-+		)
-+	endif()
-+	list(APPEND TARGET_FILES ${ASYNCXX_STATIC_LIBRARY})
- endif()
- 
-+# Produce find_package helper config file
- include(CMakePackageConfigHelpers)
- configure_package_config_file("${CMAKE_CURRENT_LIST_DIR}/Async++Config.cmake.in"
- 	"${PROJECT_BINARY_DIR}/Async++Config.cmake"
-@@ -126,22 +218,26 @@ install(FILES "${PROJECT_BINARY_DIR}/Async++Config.cma
- 
- # Install the library and produce a CMake export script
- include(GNUInstallDirs)
--install(TARGETS Async++
--	EXPORT Async++
-+install(TARGETS ${TARGET_FILES}
-+	EXPORT asyncxx-targets
- 	RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
- 	LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
- 	ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
- 	FRAMEWORK DESTINATION Frameworks
- )
--export(EXPORT Async++)
--install(EXPORT Async++ DESTINATION cmake)
-+export(EXPORT asyncxx-targets)
-+install(EXPORT asyncxx-targets DESTINATION cmake)
- if (APPLE AND BUILD_FRAMEWORK)
--	set_target_properties(Async++ PROPERTIES OUTPUT_NAME Async++ FRAMEWORK ON)
-+	set_target_properties(${ASYNCXX_SHARED_LIBRARY} PROPERTIES OUTPUT_NAME Async++ FRAMEWORK ON)
- 	set_source_files_properties(${ASYNCXX_INCLUDE} PROPERTIES MACOSX_PACKAGE_LOCATION Headers/async++)
- 	set_source_files_properties(${PROJECT_SOURCE_DIR}/include/async++.h PROPERTIES MACOSX_PACKAGE_LOCATION Headers)
- else()
--	set_target_properties(Async++ PROPERTIES OUTPUT_NAME async++)
--	target_include_directories(Async++ INTERFACE $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include> $<INSTALL_INTERFACE:include>)
-+	if(${ASYNCXX_BUILD_SHARED})
-+		target_include_directories(${ASYNCXX_SHARED_LIBRARY} INTERFACE $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include> $<INSTALL_INTERFACE:include>)
-+	endif()
-+	if(${ASYNCXX_BUILD_STATIC})
-+		target_include_directories(${ASYNCXX_STATIC_LIBRARY} INTERFACE $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include> $<INSTALL_INTERFACE:include>)
-+	endif()	
- 	install(FILES ${PROJECT_SOURCE_DIR}/include/async++.h DESTINATION include)
- 	install(FILES ${ASYNCXX_INCLUDE} DESTINATION include/async++)
- endif()
diff --git a/devel/libasyncplusplus/pkg-descr b/devel/libasyncplusplus/pkg-descr
deleted file mode 100644
index ed9ba5d6fca9..000000000000
--- a/devel/libasyncplusplus/pkg-descr
+++ /dev/null
@@ -1,3 +0,0 @@
-Async++ is a lightweight concurrency framework for C++11.
-The concept was inspired by the Microsoft PPL library
-and the N3428 C++ standard proposal.
diff --git a/devel/libasyncplusplus/pkg-plist b/devel/libasyncplusplus/pkg-plist
deleted file mode 100644
index ebef4a6c9589..000000000000
--- a/devel/libasyncplusplus/pkg-plist
+++ /dev/null
@@ -1,21 +0,0 @@
-cmake/asyncxx-targets-%%CMAKE_BUILD_TYPE%%.cmake
-cmake/asyncxx-targets.cmake
-cmake/Async++Config.cmake
-include/async++.h
-include/async++/aligned_alloc.h
-include/async++/cancel.h
-include/async++/continuation_vector.h
-include/async++/parallel_for.h
-include/async++/parallel_invoke.h
-include/async++/parallel_reduce.h
-include/async++/partitioner.h
-include/async++/range.h
-include/async++/ref_count.h
-include/async++/scheduler.h
-include/async++/scheduler_fwd.h
-include/async++/task.h
-include/async++/task_base.h
-include/async++/traits.h
-include/async++/when_all_any.h
-lib/libasync++.so
-%%STATIC%%lib/libasync++.a



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202401270647.40R6lV3c060786>