* [gentoo-commits] repo/gentoo:master commit in: dev-cpp/pystring/files/, dev-cpp/pystring/
@ 2021-06-12 12:55 Sam James
0 siblings, 0 replies; 4+ messages in thread
From: Sam James @ 2021-06-12 12:55 UTC (permalink / raw
To: gentoo-commits
commit: 91773fd1eb57d4c080c0151f5899f1631ddf2aac
Author: Sebastian Parborg <darkdefende <AT> gmail <DOT> com>
AuthorDate: Sat Jun 12 12:00:18 2021 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Jun 12 12:54:54 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=91773fd1
dev-cpp/pystring: Don't use hardcoded g++ (convert to CMake)
Convert the project into cmake so we get compiler switching for free.
Closes: https://bugs.gentoo.org/795156
Closes: https://bugs.gentoo.org/795168
Signed-off-by: Sebastian Parborg <darkdefende <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/21209
Signed-off-by: Sam James <sam <AT> gentoo.org>
dev-cpp/pystring/files/cmake.patch | 84 ++++++++++++++++++++++
...tring-1.1.3.ebuild => pystring-1.1.3-r1.ebuild} | 20 ++----
2 files changed, 91 insertions(+), 13 deletions(-)
diff --git a/dev-cpp/pystring/files/cmake.patch b/dev-cpp/pystring/files/cmake.patch
new file mode 100644
index 00000000000..bd4e01e6658
--- /dev/null
+++ b/dev-cpp/pystring/files/cmake.patch
@@ -0,0 +1,84 @@
+From 4f653fc35421129eae8a2c424901ca7170059370 Mon Sep 17 00:00:00 2001
+From: Harry Mallon <harry.mallon@codex.online>
+Date: Thu, 15 Apr 2021 15:50:22 +0100
+Subject: [PATCH] Add a CMake configuration
+
+---
+ CMakeLists.txt | 56 +++++++++++++++++++++++++++++++++++
+ cmake/pystringConfig.cmake.in | 4 +++
+ 2 files changed, 60 insertions(+)
+ create mode 100644 CMakeLists.txt
+ create mode 100644 cmake/pystringConfig.cmake.in
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+new file mode 100644
+index 0000000..0081a83
+--- /dev/null
++++ b/CMakeLists.txt
+@@ -0,0 +1,56 @@
++cmake_minimum_required(VERSION 3.2)
++
++option(BUILD_SHARED_LIBS "Create shared libraries if ON" OFF)
++
++project(pystring LANGUAGES CXX)
++
++# pystring library ======
++
++add_library(pystring
++ pystring.cpp
++ pystring.h
++)
++set_target_properties(pystring
++ PROPERTIES
++ PUBLIC_HEADER pystring.h
++ SOVERSION 0.0)
++
++set(EXPORT_NAME "${PROJECT_NAME}Targets")
++set(NAMESPACE "${PROJECT_NAME}::")
++
++# test ======
++
++include(CTest)
++
++if(BUILD_TESTING)
++ add_executable(pystring_test
++ test.cpp
++ unittest.h
++ )
++
++ target_link_libraries(pystring_test pystring)
++
++ add_test(NAME pystring_test COMMAND pystring_test)
++endif()
++
++# install and cmake configs ======
++
++include(GNUInstallDirs)
++install(TARGETS pystring
++ EXPORT "${EXPORT_NAME}"
++ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
++ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
++ INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
++ PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/pystring)
++
++include(CMakePackageConfigHelpers)
++configure_package_config_file(cmake/pystringConfig.cmake.in
++ ${CMAKE_CURRENT_BINARY_DIR}/pystringConfig.cmake
++ INSTALL_DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/pystring)
++
++install(FILES ${CMAKE_CURRENT_BINARY_DIR}/pystringConfig.cmake
++ DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/pystring)
++
++install(EXPORT "${EXPORT_NAME}"
++ DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/pystring
++ NAMESPACE "${NAMESPACE}")
+diff --git a/cmake/pystringConfig.cmake.in b/cmake/pystringConfig.cmake.in
+new file mode 100644
+index 0000000..82e3995
+--- /dev/null
++++ b/cmake/pystringConfig.cmake.in
+@@ -0,0 +1,4 @@
++@PACKAGE_INIT@
++
++include("${CMAKE_CURRENT_LIST_DIR}/@EXPORT_NAME@.cmake")
++check_required_components("@PROJECT_NAME@")
diff --git a/dev-cpp/pystring/pystring-1.1.3.ebuild b/dev-cpp/pystring/pystring-1.1.3-r1.ebuild
similarity index 67%
rename from dev-cpp/pystring/pystring-1.1.3.ebuild
rename to dev-cpp/pystring/pystring-1.1.3-r1.ebuild
index 65cd43ca763..808484d4a23 100644
--- a/dev-cpp/pystring/pystring-1.1.3.ebuild
+++ b/dev-cpp/pystring/pystring-1.1.3-r1.ebuild
@@ -3,6 +3,8 @@
EAPI=7
+inherit cmake
+
DESCRIPTION="C++ functions matching the interface and behavior of python string methods"
HOMEPAGE="https://github.com/imageworks/pystring"
@@ -23,16 +25,8 @@ RESTRICT="mirror"
LICENSE="BSD"
SLOT="0"
-src_compile() {
- sed -i -e "s|-O3|${CXXFLAGS}|g" Makefile || die
- emake LIBDIR="${S}" install
-
- # Fix header location
- mkdir ${S}/pystring || die
- mv ${S}/pystring.h ${S}/pystring || die
-}
-
-src_install() {
- dolib.so ${S}/libpystring.so{,.0{,.0.0}}
- doheader -r ${S}/pystring
-}
+PATCHES=(
+ # Patch to convert the project into cmake. Taken from:
+ # https://github.com/imageworks/pystring/pull/29
+ "${FILESDIR}/cmake.patch"
+)
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-cpp/pystring/files/, dev-cpp/pystring/
@ 2024-12-22 1:30 Sam James
0 siblings, 0 replies; 4+ messages in thread
From: Sam James @ 2024-12-22 1:30 UTC (permalink / raw
To: gentoo-commits
commit: 4b6bedcedfc6a2e7b8c59262dea3d3e42f248427
Author: Sebastian Parborg <sebastian <AT> blender <DOT> org>
AuthorDate: Tue Dec 17 17:31:34 2024 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Dec 22 01:27:54 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4b6bedce
dev-cpp/pystring: Bump to 1.1.4
Closes: https://bugs.gentoo.org/943179
Signed-off-by: Sebastian Parborg <darkdefende <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/39761
Signed-off-by: Sam James <sam <AT> gentoo.org>
dev-cpp/pystring/Manifest | 1 +
| 15 +++++++++++++
dev-cpp/pystring/pystring-1.1.4.ebuild | 27 ++++++++++++++++++++++++
3 files changed, 43 insertions(+)
diff --git a/dev-cpp/pystring/Manifest b/dev-cpp/pystring/Manifest
index eb3773a17b36..b9b2b58cb8f5 100644
--- a/dev-cpp/pystring/Manifest
+++ b/dev-cpp/pystring/Manifest
@@ -1 +1,2 @@
DIST pystring-1.1.3.tar.gz 18364 BLAKE2B caab1a3b1dc688ad6ecbb32e5e8139bb883a88b78ce8a021229924d57376e94b17d89277e2fccf4f7ec478c81ee9259c5e56848f4388c44b2eab9cfb841bcfb8 SHA512 a46bb2e96d6eb351a4a8097cde46ac2877d28e88f9e57e0ac36c42e8fc8543517c4be70306a01e2f88a891fc53c612494aeb37f47a200d94b8e1b050ed16eff6
+DIST pystring-1.1.4.tar.gz 19184 BLAKE2B 299e6feb10e2f12fa1e92fd1a7309b482769b4d0edea65f5f4bac06c6ae318d3464cf8acc2d6a899c28eb9073a396402b6d28e0950b51ac7f214da1a0a7ca521 SHA512 9c0460fea67885492f9b0d29a9ba312d960fd5e43577cdcfd47faf04397ff4b7e456ed68f1948b923d2f63f9922d576b93e4ca1a27376bcb6d29c683828acb01
--git a/dev-cpp/pystring/files/install_header_file.patch b/dev-cpp/pystring/files/install_header_file.patch
new file mode 100644
index 000000000000..634a1efc050b
--- /dev/null
+++ b/dev-cpp/pystring/files/install_header_file.patch
@@ -0,0 +1,15 @@
+Modify Cmake so that it installs the header file
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index fed418f..0354c36 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -19,4 +19,8 @@ include(GNUInstallDirs)
+ install(TARGETS pystring
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
+ )
++install (FILES pystring.h
++ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/${PROJECT_NAME}
++ COMPONENT developer
++)
+
diff --git a/dev-cpp/pystring/pystring-1.1.4.ebuild b/dev-cpp/pystring/pystring-1.1.4.ebuild
new file mode 100644
index 000000000000..749a5769169b
--- /dev/null
+++ b/dev-cpp/pystring/pystring-1.1.4.ebuild
@@ -0,0 +1,27 @@
+# Copyright 2020-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+DESCRIPTION="C++ functions matching the interface and behavior of python string methods"
+HOMEPAGE="https://github.com/imageworks/pystring"
+
+if [[ "${PV}" == "9999" ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/imageworks/pystring.git"
+else
+ SRC_URI="https://github.com/imageworks/pystring/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86"
+fi
+
+LICENSE="BSD"
+SLOT="0"
+
+BDEPEND="dev-build/libtool"
+
+PATCHES=(
+ # This release doesn't install the header file.
+ "${FILESDIR}/install_header_file.patch"
+)
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-cpp/pystring/files/, dev-cpp/pystring/
@ 2025-05-20 19:12 Andreas Sturmlechner
0 siblings, 0 replies; 4+ messages in thread
From: Andreas Sturmlechner @ 2025-05-20 19:12 UTC (permalink / raw
To: gentoo-commits
commit: 11f8d162c46490832e9eec125ec98279363a9ec6
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Mon May 19 20:25:09 2025 +0000
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Tue May 20 19:12:21 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=11f8d162
dev-cpp/pystring: drop 1.1.3-r1
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
dev-cpp/pystring/Manifest | 1 -
dev-cpp/pystring/files/cmake.patch | 84 -------------------------------
dev-cpp/pystring/pystring-1.1.3-r1.ebuild | 26 ----------
3 files changed, 111 deletions(-)
diff --git a/dev-cpp/pystring/Manifest b/dev-cpp/pystring/Manifest
index b9b2b58cb8f5..f3fe371aabc1 100644
--- a/dev-cpp/pystring/Manifest
+++ b/dev-cpp/pystring/Manifest
@@ -1,2 +1 @@
-DIST pystring-1.1.3.tar.gz 18364 BLAKE2B caab1a3b1dc688ad6ecbb32e5e8139bb883a88b78ce8a021229924d57376e94b17d89277e2fccf4f7ec478c81ee9259c5e56848f4388c44b2eab9cfb841bcfb8 SHA512 a46bb2e96d6eb351a4a8097cde46ac2877d28e88f9e57e0ac36c42e8fc8543517c4be70306a01e2f88a891fc53c612494aeb37f47a200d94b8e1b050ed16eff6
DIST pystring-1.1.4.tar.gz 19184 BLAKE2B 299e6feb10e2f12fa1e92fd1a7309b482769b4d0edea65f5f4bac06c6ae318d3464cf8acc2d6a899c28eb9073a396402b6d28e0950b51ac7f214da1a0a7ca521 SHA512 9c0460fea67885492f9b0d29a9ba312d960fd5e43577cdcfd47faf04397ff4b7e456ed68f1948b923d2f63f9922d576b93e4ca1a27376bcb6d29c683828acb01
diff --git a/dev-cpp/pystring/files/cmake.patch b/dev-cpp/pystring/files/cmake.patch
deleted file mode 100644
index bd4e01e6658b..000000000000
--- a/dev-cpp/pystring/files/cmake.patch
+++ /dev/null
@@ -1,84 +0,0 @@
-From 4f653fc35421129eae8a2c424901ca7170059370 Mon Sep 17 00:00:00 2001
-From: Harry Mallon <harry.mallon@codex.online>
-Date: Thu, 15 Apr 2021 15:50:22 +0100
-Subject: [PATCH] Add a CMake configuration
-
----
- CMakeLists.txt | 56 +++++++++++++++++++++++++++++++++++
- cmake/pystringConfig.cmake.in | 4 +++
- 2 files changed, 60 insertions(+)
- create mode 100644 CMakeLists.txt
- create mode 100644 cmake/pystringConfig.cmake.in
-
-diff --git a/CMakeLists.txt b/CMakeLists.txt
-new file mode 100644
-index 0000000..0081a83
---- /dev/null
-+++ b/CMakeLists.txt
-@@ -0,0 +1,56 @@
-+cmake_minimum_required(VERSION 3.2)
-+
-+option(BUILD_SHARED_LIBS "Create shared libraries if ON" OFF)
-+
-+project(pystring LANGUAGES CXX)
-+
-+# pystring library ======
-+
-+add_library(pystring
-+ pystring.cpp
-+ pystring.h
-+)
-+set_target_properties(pystring
-+ PROPERTIES
-+ PUBLIC_HEADER pystring.h
-+ SOVERSION 0.0)
-+
-+set(EXPORT_NAME "${PROJECT_NAME}Targets")
-+set(NAMESPACE "${PROJECT_NAME}::")
-+
-+# test ======
-+
-+include(CTest)
-+
-+if(BUILD_TESTING)
-+ add_executable(pystring_test
-+ test.cpp
-+ unittest.h
-+ )
-+
-+ target_link_libraries(pystring_test pystring)
-+
-+ add_test(NAME pystring_test COMMAND pystring_test)
-+endif()
-+
-+# install and cmake configs ======
-+
-+include(GNUInstallDirs)
-+install(TARGETS pystring
-+ EXPORT "${EXPORT_NAME}"
-+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
-+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
-+ INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
-+ PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/pystring)
-+
-+include(CMakePackageConfigHelpers)
-+configure_package_config_file(cmake/pystringConfig.cmake.in
-+ ${CMAKE_CURRENT_BINARY_DIR}/pystringConfig.cmake
-+ INSTALL_DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/pystring)
-+
-+install(FILES ${CMAKE_CURRENT_BINARY_DIR}/pystringConfig.cmake
-+ DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/pystring)
-+
-+install(EXPORT "${EXPORT_NAME}"
-+ DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/pystring
-+ NAMESPACE "${NAMESPACE}")
-diff --git a/cmake/pystringConfig.cmake.in b/cmake/pystringConfig.cmake.in
-new file mode 100644
-index 0000000..82e3995
---- /dev/null
-+++ b/cmake/pystringConfig.cmake.in
-@@ -0,0 +1,4 @@
-+@PACKAGE_INIT@
-+
-+include("${CMAKE_CURRENT_LIST_DIR}/@EXPORT_NAME@.cmake")
-+check_required_components("@PROJECT_NAME@")
diff --git a/dev-cpp/pystring/pystring-1.1.3-r1.ebuild b/dev-cpp/pystring/pystring-1.1.3-r1.ebuild
deleted file mode 100644
index ccc4e19d1a1d..000000000000
--- a/dev-cpp/pystring/pystring-1.1.3-r1.ebuild
+++ /dev/null
@@ -1,26 +0,0 @@
-# Copyright 2020-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit cmake
-
-DESCRIPTION="C++ functions matching the interface and behavior of python string methods"
-HOMEPAGE="https://github.com/imageworks/pystring"
-
-if [[ "${PV}" == "9999" ]]; then
- inherit git-r3
- EGIT_REPO_URI="https://github.com/imageworks/pystring.git"
-else
- SRC_URI="https://github.com/imageworks/pystring/archive/v${PV}.tar.gz -> ${P}.tar.gz"
- KEYWORDS="amd64 ~arm ~arm64 ~ppc64 ~riscv x86"
-fi
-
-LICENSE="BSD"
-SLOT="0"
-
-PATCHES=(
- # Patch to convert the project into cmake. Taken from:
- # https://github.com/imageworks/pystring/pull/29
- "${FILESDIR}/cmake.patch"
-)
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-cpp/pystring/files/, dev-cpp/pystring/
@ 2025-05-26 10:27 Sam James
0 siblings, 0 replies; 4+ messages in thread
From: Sam James @ 2025-05-26 10:27 UTC (permalink / raw
To: gentoo-commits
commit: 213921a0eb2101fb629fa7881284e19f9d465ff0
Author: Sebastian Parborg <sebastian <AT> blender <DOT> org>
AuthorDate: Thu May 22 17:21:46 2025 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon May 26 10:26:40 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=213921a0
dev-cpp/pystring: Fix compliation with cmake 4
Closes: https://bugs.gentoo.org/952037
Signed-off-by: Sebastian Parborg <sebastian <AT> blender.org>
Part-of: https://github.com/gentoo/gentoo/pull/42213
Closes: https://github.com/gentoo/gentoo/pull/42213
Signed-off-by: Sam James <sam <AT> gentoo.org>
dev-cpp/pystring/files/fix_cmake4.patch | 19 +++++++++++++++++++
dev-cpp/pystring/pystring-1.1.4-r2.ebuild | 26 ++++++++++++++++++++++++++
2 files changed, 45 insertions(+)
diff --git a/dev-cpp/pystring/files/fix_cmake4.patch b/dev-cpp/pystring/files/fix_cmake4.patch
new file mode 100644
index 000000000000..e59be7131771
--- /dev/null
+++ b/dev-cpp/pystring/files/fix_cmake4.patch
@@ -0,0 +1,19 @@
+From e5df7dd77f239889713ab54fa5f23504759e252f Mon Sep 17 00:00:00 2001
+From: Timo Gurr <timo.gurr@gmail.com>
+Date: Tue, 13 May 2025 16:30:22 +0200
+Subject: [PATCH] cmake: fix build with cmake 4.0.0
+
+---
+ CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 0354c36..758b20a 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -1,4 +1,4 @@
+-cmake_minimum_required(VERSION 3.2)
++cmake_minimum_required(VERSION 3.5)
+ project(pystring CXX)
+
+ option (BUILD_SHARED_LIBS "Build shared libraries (set to OFF to build static libs)" ON)
diff --git a/dev-cpp/pystring/pystring-1.1.4-r2.ebuild b/dev-cpp/pystring/pystring-1.1.4-r2.ebuild
new file mode 100644
index 000000000000..0182d29885e2
--- /dev/null
+++ b/dev-cpp/pystring/pystring-1.1.4-r2.ebuild
@@ -0,0 +1,26 @@
+# Copyright 2020-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+DESCRIPTION="C++ functions matching the interface and behavior of python string methods"
+HOMEPAGE="https://github.com/imageworks/pystring"
+
+if [[ "${PV}" == "9999" ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/imageworks/pystring.git"
+else
+ SRC_URI="https://github.com/imageworks/pystring/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86"
+fi
+
+LICENSE="BSD"
+SLOT="0/0.fudge"
+
+PATCHES=(
+ "${FILESDIR}/fix_cmake4.patch"
+ # This release doesn't install the header file.
+ "${FILESDIR}/install_header_file.patch"
+)
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-05-26 10:27 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-26 10:27 [gentoo-commits] repo/gentoo:master commit in: dev-cpp/pystring/files/, dev-cpp/pystring/ Sam James
-- strict thread matches above, loose matches on Subject: below --
2025-05-20 19:12 Andreas Sturmlechner
2024-12-22 1:30 Sam James
2021-06-12 12:55 Sam James
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox