From d391beeada109800a946f1ce7556cc2f6b7da74d Mon Sep 17 00:00:00 2001 From: Maciej Barć Date: Thu, 2 Nov 2023 20:57:10 +0100 Subject: dev-libs/libpsl-native: bump to 7.4.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maciej Barć --- dev-libs/libpsl-native/Manifest | 1 + .../files/libpsl-native-7.4.0-cmake.patch | 11 ++++++ dev-libs/libpsl-native/libpsl-native-7.4.0.ebuild | 41 ++++++++++++++++++++++ 3 files changed, 53 insertions(+) create mode 100644 dev-libs/libpsl-native/files/libpsl-native-7.4.0-cmake.patch create mode 100644 dev-libs/libpsl-native/libpsl-native-7.4.0.ebuild (limited to 'dev-libs/libpsl-native') diff --git a/dev-libs/libpsl-native/Manifest b/dev-libs/libpsl-native/Manifest index f8c66e45101a..60ff7aec2d55 100644 --- a/dev-libs/libpsl-native/Manifest +++ b/dev-libs/libpsl-native/Manifest @@ -1 +1,2 @@ DIST libpsl-native-7.3.2.tar.gz 288949 BLAKE2B 9547d0144ec1bd48d4f9272ae7c7237fbc052a852908a535047f2f9a41a7a0f7c36868fe697c77ec37d4705a119ac3f4f6961f7ff8ad7c80f8ec176839e34dd3 SHA512 5ff7c730c000e1d8ccbf48e01a1233889df3ddda3c280cbf37298a1731354dde30f0637b62567a8679dec4ea27a2184d9559026c3a86c793c6c8c12ec629c90d +DIST libpsl-native-7.4.0.tar.gz 288919 BLAKE2B b38b35d3f1ebf2b7deeb90ff78c7c00e2e51f7b115a1622a878e7870de4dae53458a16b325fe7059b6faf7157701f14e179c8cb12648ff5ffd44694ce9a6ead2 SHA512 bfd1c00834bfd2a7fdba0cf5ae3bb82efb959fdc2f538d05bde150b98d417012647115c6893fc53db0b20170ea40be238ef017044a8076798c02578bd14884f9 diff --git a/dev-libs/libpsl-native/files/libpsl-native-7.4.0-cmake.patch b/dev-libs/libpsl-native/files/libpsl-native-7.4.0-cmake.patch new file mode 100644 index 000000000000..1515e4cda7a1 --- /dev/null +++ b/dev-libs/libpsl-native/files/libpsl-native-7.4.0-cmake.patch @@ -0,0 +1,11 @@ +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -3,7 +3,7 @@ project(PSL-NATIVE) + + # Can't use add_compile_options with 2.8.11 + set(CMAKE_BUILD_TYPE "Release") +-set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall -Werror -fstack-protector-strong -fpie -D_FORTIFY_SOURCE=2") ++set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}") + + if (${CMAKE_SYSTEM_NAME} MATCHES "Linux") + set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-z,relro,-z,now") diff --git a/dev-libs/libpsl-native/libpsl-native-7.4.0.ebuild b/dev-libs/libpsl-native/libpsl-native-7.4.0.ebuild new file mode 100644 index 000000000000..41a8ae927cc9 --- /dev/null +++ b/dev-libs/libpsl-native/libpsl-native-7.4.0.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +MY_PN="PowerShell-Native" +CMAKE_IN_SOURCE_BUILD="ON" + +inherit cmake + +DESCRIPTION="Functionality missing from .NET Core via system calls" +HOMEPAGE="https://github.com/PowerShell/PowerShell-Native/" + +if [[ "${PV}" == *9999* ]] ; then + inherit git-r3 + + EGIT_REPO_URI="https://github.com/PowerShell/${MY_PN}.git" + S="${WORKDIR}/${P}/src/${PN}" +else + SRC_URI="https://github.com/PowerShell/${MY_PN}/archive/v${PV}.tar.gz + -> ${P}.tar.gz" + S="${WORKDIR}/${MY_PN}-${PV}/src/${PN}" + + KEYWORDS="~amd64 ~arm ~arm64 ~x86" +fi + +LICENSE="MIT" +SLOT="0/$(ver_cut 1-2)" + +BDEPEND="dev-cpp/gtest" + +PATCHES=( + "${FILESDIR}/${PN}-7.4.0-cmake.patch" + "${FILESDIR}/${PN}-7.3.2-test-cmake.patch" +) + +src_install() { + dolib.so "${S}/../powershell-unix/libpsl-native.so" + + einstalldocs +} -- cgit v1.2.3-65-gdbad