diff --git a/editors/bee-host/Makefile b/editors/bee-host/Makefile index 0c414f8285cf..11e07ad7b7d1 100644 --- a/editors/bee-host/Makefile +++ b/editors/bee-host/Makefile @@ -1,26 +1,26 @@ PORTNAME= bee-host -PORTVERSION= 1.3.5 +PORTVERSION= 1.3.6 CATEGORIES= editors www MAINTAINER= thierry@FreeBSD.org COMMENT= Host application for Browser's Exernal Editor extension WWW= https://github.com/rosmanov/bee-host LICENSE= MIT LIB_DEPENDS= libcjson.so:devel/libcjson USE_GITHUB= yes GH_ACCOUNT= rosmanov USES= cmake:noninja localbase:ldflags shebangfix SHEBANG_GLOB= *.sh LDFLAGS+= -lcjson -lcjson_utils CMAKE_ARGS= -DCMAKE_DOC_DIR:PATH=${DOCSDIR_REL} OPTIONS_DEFINE= DOCS pre-configure: ${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE:C|/||}|' ${WRKSRC}/vars.sh .include diff --git a/editors/bee-host/distinfo b/editors/bee-host/distinfo index 31bb974c9212..f9334b244348 100644 --- a/editors/bee-host/distinfo +++ b/editors/bee-host/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1665133328 -SHA256 (rosmanov-bee-host-1.3.5_GH0.tar.gz) = 9e505aa37d3ff8b5c0ff2f5191fc5a1d73b8dab6c52f08472899a97ef1ba039e -SIZE (rosmanov-bee-host-1.3.5_GH0.tar.gz) = 30909 +TIMESTAMP = 1678895956 +SHA256 (rosmanov-bee-host-1.3.6_GH0.tar.gz) = e45bb1ff96a0e2899b0ed47164b36073cb03a10b6386ba8ce8126c1091dc8037 +SIZE (rosmanov-bee-host-1.3.6_GH0.tar.gz) = 31239 diff --git a/editors/bee-host/files/patch-CMakeLists.txt b/editors/bee-host/files/patch-CMakeLists.txt index f95d6119f9ff..e5040671000d 100644 --- a/editors/bee-host/files/patch-CMakeLists.txt +++ b/editors/bee-host/files/patch-CMakeLists.txt @@ -1,78 +1,78 @@ ---- CMakeLists.txt.orig 2022-10-05 15:32:24 UTC +--- CMakeLists.txt.orig 2023-03-12 06:35:07 UTC +++ CMakeLists.txt -@@ -33,27 +33,7 @@ endif() +@@ -38,27 +38,7 @@ endif() set(EXTERNAL_DIR ${CMAKE_CURRENT_BINARY_DIR}/external) -# cJSON and cJSONUtils -ExternalProject_Add(cjson - GIT_REPOSITORY "https://github.com/DaveGamble/cJSON" -- GIT_TAG "v1.7.14" +- GIT_TAG "v1.7.15" - PREFIX "${EXTERNAL_DIR}/cJSON" - BUILD_IN_SOURCE 1 - TEST_COMMAND "" - INSTALL_COMMAND "" - CMAKE_ARGS -DCMAKE_INSTALL_PREFIX:PATH= - -DBUILD_SHARED_AND_STATIC_LIBS=On - -DBUILD_SHARED_LIBS=Off - -DENABLE_CJSON_TEST=Off - -DENABLE_CJSON_UTILS=On - -DENABLE_TARGET_EXPORT=On - ) -ExternalProject_Get_Property(cjson source_dir) -ExternalProject_Get_Property(cjson binary_dir) -ExternalProject_Get_Property(cjson download_dir) -set(CJSON_SOURCE_DIR "${source_dir}") -set(CJSON_BINARY_DIR "${binary_dir}") -set(CJSON_DOWNLOAD_DIR "${download_dir}") +# cJSON and cJSONUtils installed from devel/libcjson # beectl set(BEECTL_SRCS -@@ -64,21 +44,13 @@ set(BEECTL_SRCS +@@ -69,21 +49,13 @@ set(BEECTL_SRCS src/mkstemps.c # This is nasty, but I couldn't find a way to use CMAKE_TOOLCHAIN_FILE # for the external project (see comments below.) - "${CJSON_SOURCE_DIR}/cJSON.c" ) add_executable(beectl ${BEECTL_SRCS}) -# Workaround for CMake versions which require the cJSON.c file to exist before -# downloading the external project. -add_custom_command(TARGET beectl PRE_BUILD - BYPRODUCTS "${CJSON_SOURCE_DIR}/cJSON.c" - COMMAND touch "${CJSON_SOURCE_DIR}/cJSON.c") - target_compile_features(beectl PRIVATE c_variadic_macros) target_include_directories(beectl PRIVATE "${CJSON_DOWNLOAD_DIR}") set_property(TARGET beectl PROPERTY C_STANDARD 11) # C11 -add_dependencies(beectl cjson) # The following would be better approach than including cJSON files in our # source list. But the build fails when cross-compiling, since -@@ -105,13 +77,13 @@ string(TOUPPER "${CMAKE_SYSTEM_NAME}" uppercase_CMAKE_ +@@ -110,13 +82,13 @@ string(TOUPPER "${CMAKE_SYSTEM_NAME}" uppercase_CMAKE_ message(STATUS "CMAKE_INSTALL_PREFIX: ${CMAKE_INSTALL_PREFIX}") set(BEECTL_MANIFEST_TARGET_PATH "${CMAKE_INSTALL_PREFIX}/bin/beectl") -set(BEECTL_CHROME_MANIFEST_DIR "etc/opt/chrome/native-messaging-hosts") +set(BEECTL_CHROME_MANIFEST_DIR "etc/chrome/native-messaging-hosts") if(uppercase_CMAKE_SYSTEM_NAME MATCHES LINUX AND CMAKE_SYSTEM_PROCESSOR MATCHES "^(amd|x86_)64$") # Fedora 36 amd64 may have a separate /usr/lib64 dir different from /usr/lib. set(BEECTL_FIREFOX_MANIFEST_DIR "usr/lib64/mozilla/native-messaging-hosts") else() - set(BEECTL_FIREFOX_MANIFEST_DIR "usr/lib/mozilla/native-messaging-hosts") + set(BEECTL_FIREFOX_MANIFEST_DIR "lib/mozilla/native-messaging-hosts") endif() # RPM package properties -@@ -233,7 +205,7 @@ elseif(uppercase_CMAKE_SYSTEM_NAME MATCHES DARWIN) +@@ -238,7 +210,7 @@ elseif(uppercase_CMAKE_SYSTEM_NAME MATCHES DARWIN) COMPONENT config) else(uppercase_CMAKE_SYSTEM_NAME MATCHES WINDOWS) # Install host app - install(TARGETS beectl RUNTIME DESTINATION usr/local/bin COMPONENT applications) + install(TARGETS beectl RUNTIME DESTINATION bin COMPONENT applications) configure_file( chrome-com.ruslan_osmanov.bee.json.in