diff --git a/net-p2p/pika/Makefile b/net-p2p/pika/Makefile new file mode 100644 index 000000000000..df2b0bad78fa --- /dev/null +++ b/net-p2p/pika/Makefile @@ -0,0 +1,27 @@ +PORTNAME= pika +DISTVERSION= g20220627 +CATEGORIES= net-p2p + +MAINTAINER= diizzy@FreeBSD.org +COMMENT= Light bittorrent client/server + +LICENSE= BSD +#LICENSE_FILE= ${WRKSRC}/COPYING + +BUILD_DEPENDS= nlohmann-json>0:devel/nlohmann-json +LIB_DEPENDS= libtorrent-rasterbar.so:net-p2p/libtorrent-rasterbar \ + libboost_system.so:devel/boost-libs \ + libgtest.so:devel/googletest + +USES= cmake localbase:ldflags sqlite ssl +USE_LDCONFIG= yes + +USE_GITHUB= yes +GH_ACCOUNT= picotorrent +GH_PROJECT= server +GH_TAGNAME= 30ea02cb +GH_TUPLE= svaarala:duktape-releases:v2.7.0:duktape/vendor/duktape + +do-install: + +.include diff --git a/net-p2p/pika/distinfo b/net-p2p/pika/distinfo new file mode 100644 index 000000000000..0a13b938cf42 --- /dev/null +++ b/net-p2p/pika/distinfo @@ -0,0 +1,5 @@ +TIMESTAMP = 1657060917 +SHA256 (picotorrent-server-g20220627-30ea02cb_GH0.tar.gz) = 1a365944e62d0848f702f98e627748523c501cd0e405f51a59aecee53a7582af +SIZE (picotorrent-server-g20220627-30ea02cb_GH0.tar.gz) = 30985 +SHA256 (svaarala-duktape-releases-v2.7.0_GH0.tar.gz) = 38ce0698e4d6837cadbd83fe5d6a5323f532c34962fd7e6f5cf3c71e5542f5e0 +SIZE (svaarala-duktape-releases-v2.7.0_GH0.tar.gz) = 4194779 diff --git a/net-p2p/pika/files/patch-CMakeLists.txt b/net-p2p/pika/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..60db36d50ec9 --- /dev/null +++ b/net-p2p/pika/files/patch-CMakeLists.txt @@ -0,0 +1,56 @@ +--- CMakeLists.txt.orig 2022-06-27 05:45:09 UTC ++++ CMakeLists.txt +@@ -2,8 +2,6 @@ cmake_minimum_required(VERSION 3.18 FATAL_ERROR) + + cmake_policy(SET CMP0092 NEW) # don't add /W3 as default + +-set(CMAKE_TOOLCHAIN_FILE ${CMAKE_CURRENT_SOURCE_DIR}/vendor/vcpkg/scripts/buildsystems/vcpkg.cmake CACHE STRING "Vcpkg toolchain file") +- + project(pika) + + set(CMAKE_CXX_STANDARD 20) +@@ -13,8 +11,10 @@ find_package(GTest CONFIG REQUIRED) + find_package(LibtorrentRasterbar CONFIG REQUIRED) + find_package(nlohmann_json CONFIG REQUIRED) + find_package(tomlplusplus CONFIG REQUIRED) +-find_package(unofficial-sqlite3 CONFIG REQUIRED) ++find_package(SQLite3 REQUIRED) + ++add_definitions(-DBOOST_LOG_DYN_LINK=1) ++ + add_library( + duktape + STATIC +@@ -109,7 +109,7 @@ target_link_libraries( + duktape + nlohmann_json::nlohmann_json + LibtorrentRasterbar::torrent-rasterbar +- unofficial::sqlite3::sqlite3 ++ SQLite::SQLite3 + tomlplusplus::tomlplusplus + ) + +@@ -121,23 +121,4 @@ add_executable( + target_link_libraries( + pika + pikacore +-) +- +-add_executable( +- pikatests +- tests/main.cpp +- tests/data/models.cpp +- tests/rpc/configget.cpp +- tests/rpc/configset.cpp +- tests/rpc/torrentspause.cpp +- tests/rpc/torrentsresume.cpp +-) +- +-target_link_libraries( +- pikatests +- PRIVATE +- pikacore +- GTest::gmock +- GTest::gtest +- GTest::gmock_main + ) diff --git a/net-p2p/pika/pkg-descr b/net-p2p/pika/pkg-descr new file mode 100644 index 000000000000..e3d941c2ac70 --- /dev/null +++ b/net-p2p/pika/pkg-descr @@ -0,0 +1,3 @@ +sadfasffdfdgfsd + +WWW: https://github.com/picotorrent/server