shells/libpowershell-native: Support library for PowerShell

This commit is contained in:
Gleb Popov
2025-02-21 21:00:00 +03:00
parent 8c145c704e
commit 9b1c65d078
6 changed files with 59 additions and 0 deletions
+1
View File
@@ -30,6 +30,7 @@
SUBDIR += ksh
SUBDIR += ksh-devel
SUBDIR += ksh93
SUBDIR += libpowershell-native
SUBDIR += mksh
SUBDIR += modernish
SUBDIR += murex
+28
View File
@@ -0,0 +1,28 @@
PORTNAME= libpowershell-native
DISTVERSIONPREFIX=v
DISTVERSION= 7.4.0
CATEGORIES= shells devel
MAINTAINER= arrowd@FreeBSD.org
COMMENT= Support library for PowerShell
WWW= https://microsoft.com/PowerShell
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
USES= cmake
USE_GITHUB= yes
GH_ACCOUNT= PowerShell
GH_PROJECT= PowerShell-Native
CMAKE_SOURCE_PATH= ${WRKSRC}/src/libpsl-native
PLIST_FILES= lib/powershell/libpsl-native.so
do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/powershell
${INSTALL_LIB} ${WRKSRC}/src/powershell-unix/libpsl-native.so \
${STAGEDIR}${PREFIX}/lib/powershell
.include <bsd.port.mk>
+3
View File
@@ -0,0 +1,3 @@
TIMESTAMP = 1739806036
SHA256 (PowerShell-PowerShell-Native-v7.4.0_GH0.tar.gz) = 5220f99755442720486e20682269fecdabbbabff9e082c1a51250b66465f40cf
SIZE (PowerShell-PowerShell-Native-v7.4.0_GH0.tar.gz) = 288919
@@ -0,0 +1,11 @@
--- src/libpsl-native/CMakeLists.txt.orig 2023-10-31 22:12:48 UTC
+++ src/libpsl-native/CMakeLists.txt
@@ -18,8 +18,5 @@ else ()
add_subdirectory(src)
else ()
# test in BUILD_DIR
- message(STATUS "Tests enabled")
- enable_testing()
add_subdirectory(src)
- add_subdirectory(test)
endif ()
@@ -0,0 +1,11 @@
--- src/libpsl-native/src/getuserfrompid.cpp.orig 2025-02-17 15:44:35 UTC
+++ src/libpsl-native/src/getuserfrompid.cpp
@@ -13,8 +13,6 @@
#if __APPLE__
#include <sys/sysctl.h>
-#elif HAVE_SYSCONF
-// do nothing
#elif HAVE_SYS_SYSCTL_H
#include <sys/sysctl.h>
#endif
+5
View File
@@ -0,0 +1,5 @@
PowerShell is a modern command shell that includes the best features of other
popular shells. Unlike most shells that only accept and return text,
PowerShell accepts and returns .NET objects.
This package provides platform-dependent bits of PowerShell implementation.