diff --git a/security/helib/Makefile b/security/helib/Makefile index f5e105c5a8c2..0338805ad3d1 100644 --- a/security/helib/Makefile +++ b/security/helib/Makefile @@ -1,31 +1,31 @@ PORTNAME= helib DISTVERSIONPREFIX= v -DISTVERSION= 2.1.0 +DISTVERSION= 2.2.0 CATEGORIES= security MAINTAINER= yuri@FreeBSD.org COMMENT= Implementation of homomorphic encryption LICENSE= APACHE20 NOT_FOR_ARCHS= armv6 armv7 i386 mips powerpc powerpcspe LIB_DEPENDS= libgmp.so:math/gmp \ libntl.so:math/ntl USES= cmake compiler:c++17-lang USE_GITHUB= yes GH_ACCOUNT= homenc GH_PROJECT= HElib USE_LDCONFIG= yes CMAKE_ON= BUILD_SHARED CMAKE_ARGS= -DNTL_DIR=${LOCALBASE} do-test: @cd ${BUILD_WRKSRC} && \ ${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DENABLE_TEST:BOOL=ON ${CMAKE_SOURCE_PATH} && \ ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \ ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} test .include diff --git a/security/helib/distinfo b/security/helib/distinfo index 1b197a034f8c..b172ea874c1a 100644 --- a/security/helib/distinfo +++ b/security/helib/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1615019915 -SHA256 (homenc-HElib-v2.1.0_GH0.tar.gz) = 641af0f602cfc7f5f5b1cfde0652252def2dfaf5f7962c2595cf598663637951 -SIZE (homenc-HElib-v2.1.0_GH0.tar.gz) = 2403353 +TIMESTAMP = 1631464121 +SHA256 (homenc-HElib-v2.2.0_GH0.tar.gz) = e5f82fb0520a76eafdf5044a1f17f512999479d899da8c34335da5e193699b94 +SIZE (homenc-HElib-v2.2.0_GH0.tar.gz) = 2415583 diff --git a/security/helib/files/patch-CMakeLists.txt b/security/helib/files/patch-CMakeLists.txt index bd282f610bbc..2d444cd8f22b 100644 --- a/security/helib/files/patch-CMakeLists.txt +++ b/security/helib/files/patch-CMakeLists.txt @@ -1,29 +1,27 @@ ---- CMakeLists.txt.orig 2020-10-21 10:59:03 UTC +--- CMakeLists.txt.orig 2021-09-12 16:33:58 UTC +++ CMakeLists.txt -@@ -87,18 +87,6 @@ set_property(CACHE +@@ -101,6 +101,7 @@ set_property(CACHE PROPERTY STRINGS "Debug" "RelWithDebInfo" "Release" "MinSizeRel") --# Creating and documenting TARGET_ARCHITECTURE cmake property --set(TARGET_ARCHITECTURE "${TARGET_ARCHITECTURE}" -- CACHE -- STRING "Target architecture used for -march (default is native)") --# If TARGET_ARCHITECTURE is not set use default --if (NOT TARGET_ARCHITECTURE) -- set(TARGET_ARCHITECTURE "native" -- CACHE -- STRING "Target architecture used for -march (default is native)" -- FORCE) --endif (NOT TARGET_ARCHITECTURE) -- - # Path containing FindGMP.cmake and FindNTL.cmake - list(APPEND CMAKE_MODULE_PATH "${HELIB_CMAKE_EXTRA_DIR}") ++if (FALSE) + # Creating and documenting TARGET_ARCHITECTURE cmake property + set(TARGET_ARCHITECTURE "${TARGET_ARCHITECTURE}" + CACHE +@@ -112,6 +113,7 @@ if (NOT TARGET_ARCHITECTURE) + STRING "Target architecture used for -march (default is native)" + FORCE) + endif (NOT TARGET_ARCHITECTURE) ++endif() -@@ -150,7 +138,6 @@ endif (NOT PACKAGE_BUILD) + set(HELIB_SP_NBITS "0" + CACHE +@@ -176,7 +178,7 @@ endif (NOT PACKAGE_BUILD) # Setting flag lists to avoid polluting CMAKE_CXX_FLAGS. # PUBLIC_HELIB_CXX_FLAGS will be exported to the installed target. -set(PRIVATE_HELIB_CXX_FLAGS "-march=${TARGET_ARCHITECTURE}") ++#set(PRIVATE_HELIB_CXX_FLAGS "-march=${TARGET_ARCHITECTURE}") set(PUBLIC_HELIB_CXX_FLAGS "") # Add extra checks during build if (PEDANTIC_BUILD) diff --git a/security/helib/pkg-plist b/security/helib/pkg-plist index ae0a4d9cc5a7..a384abcf60eb 100644 --- a/security/helib/pkg-plist +++ b/security/helib/pkg-plist @@ -1,65 +1,65 @@ include/helib/ArgMap.h include/helib/CModulus.h include/helib/ClonedPtr.h include/helib/Context.h include/helib/CtPtrs.h include/helib/Ctxt.h include/helib/DoubleCRT.h include/helib/EncodedPtxt.h include/helib/EncryptedArray.h include/helib/EvalMap.h include/helib/FHE.h include/helib/IndexMap.h include/helib/IndexSet.h include/helib/JsonWrapper.h include/helib/Matrix.h include/helib/NumbTh.h include/helib/PAlgebra.h include/helib/PGFFT.h include/helib/PolyMod.h include/helib/PolyModRing.h include/helib/PtrMatrix.h include/helib/PtrVector.h include/helib/Ptxt.h include/helib/SumRegister.h include/helib/apiAttributes.h include/helib/assertions.h include/helib/binaryArith.h include/helib/binaryCompare.h include/helib/bluestein.h include/helib/debugging.h include/helib/exceptions.h include/helib/fhe_stats.h include/helib/helib.h include/helib/hypercube.h include/helib/intraSlot.h include/helib/keySwitching.h include/helib/keys.h include/helib/log.h include/helib/matching.h include/helib/matmul.h include/helib/multicore.h include/helib/norms.h include/helib/partialMatch.h include/helib/permutations.h include/helib/polyEval.h include/helib/powerful.h include/helib/primeChain.h include/helib/randomMatrices.h include/helib/range.h include/helib/recryption.h include/helib/replicate.h include/helib/sample.h include/helib/scheme.h include/helib/set.h include/helib/tableLookup.h include/helib/timing.h include/helib/version.h include/helib/zeroValue.h include/helib/zzX.h lib/libhelib.so -lib/libhelib.so.2.1.0 +lib/libhelib.so.2.2.0 share/cmake/helib/helibConfig.cmake share/cmake/helib/helibConfigVersion.cmake share/cmake/helib/helibTargets-%%CMAKE_BUILD_TYPE%%.cmake share/cmake/helib/helibTargets.cmake