commit: 7a0a6922e746fcea02a151f9ee7fdf1c5ce680a3 Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Wed May 21 20:24:55 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Wed May 21 20:27:44 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7a0a6922
dev-db/pgagent: add 4.2.3 Bug: https://bugs.gentoo.org/956398 Closes: https://bugs.gentoo.org/884711 Closes: https://bugs.gentoo.org/954002 Signed-off-by: Sam James <sam <AT> gentoo.org> dev-db/pgagent/Manifest | 1 + dev-db/pgagent/files/pgagent-4.2.3-cmake-4.patch | 12 ++++++ dev-db/pgagent/pgagent-4.2.3.ebuild | 48 ++++++++++++++++++++++++ 3 files changed, 61 insertions(+) diff --git a/dev-db/pgagent/Manifest b/dev-db/pgagent/Manifest index 9e64e509a8e8..896754a76129 100644 --- a/dev-db/pgagent/Manifest +++ b/dev-db/pgagent/Manifest @@ -1 +1,2 @@ DIST pgAgent-4.2.1-Source.tar.gz 65583 BLAKE2B ee75803475dfbb751f1a81da5c3a6bec82aee80e9ce7d0413f94395069b5c0cbb6ff8770083078ce0e3a571a4c1b6d2e6adf6af8f0bfa9e8adfc862fff38d0d3 SHA512 778ca020ec23b3d042760cdcf84d3c2da8da48c8a648a9999812c2e79edfcc8912ab23cc1a1c29f379d6a56960cdd876164397b8fe6b21dd386a917a80eaa71c +DIST pgagent-4.2.3.tar.gz 53108 BLAKE2B ed51c0da86794674c09242bb87398ad9cac836fac7d88b72939257a277fcb8b96a3adc9c06598eefae0dee1e7c7f759231fb8dc306371755747e9b575cd52cd3 SHA512 f255c414f28b6f5e46162584919c6cc7da010c652827780ba350d19225f69539ab28144e3dde57879487c8c713d54001db890528e69926dd3823f122b91d3d7f diff --git a/dev-db/pgagent/files/pgagent-4.2.3-cmake-4.patch b/dev-db/pgagent/files/pgagent-4.2.3-cmake-4.patch new file mode 100644 index 000000000000..c667fb3f7250 --- /dev/null +++ b/dev-db/pgagent/files/pgagent-4.2.3-cmake-4.patch @@ -0,0 +1,12 @@ +https://bugs.gentoo.org/954002 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -11,7 +11,7 @@ + ################################################################################ + # Initial setup + ################################################################################ +-CMAKE_MINIMUM_REQUIRED(VERSION 3.0) ++CMAKE_MINIMUM_REQUIRED(VERSION 3.5) + + IF(COMMAND cmake_policy) + CMAKE_POLICY(SET CMP0003 NEW) diff --git a/dev-db/pgagent/pgagent-4.2.3.ebuild b/dev-db/pgagent/pgagent-4.2.3.ebuild new file mode 100644 index 000000000000..b09e6bb6801c --- /dev/null +++ b/dev-db/pgagent/pgagent-4.2.3.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CMAKE_IN_SOURCE_BUILD=1 +inherit cmake + +DESCRIPTION="pgAgent is a job scheduler for PostgreSQL" +HOMEPAGE="https://www.pgadmin.org/download/pgagent-source-code/" +SRC_URI="https://github.com/pgadmin-org/${PN}/archive/refs/tags/${P}.tar.gz" +S="${WORKDIR}/${PN}-${P}" + +LICENSE="POSTGRESQL GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + acct-user/pgagent + dev-db/postgresql:* + dev-libs/boost +" +DEPEND="${RDEPEND}" + +PATCHES=( + "${FILESDIR}"/${PN}-4.2.3-cmake-4.patch +) + +src_prepare() { + cmake_src_prepare + + sed -e "s:share):share/${P}):" \ + -i CMakeLists.txt || die "failed to patch CMakeLists.txt" +} + +src_configure() { + local mycmakeargs=( "-DSTATIC_BUILD:BOOLEAN=FALSE" ) + cmake_src_configure +} + +src_install() { + cmake_src_install + + newinitd "${FILESDIR}/pgagent.initd-r1" "${PN}" + newconfd "${FILESDIR}/pgagent.confd" "${PN}" + + rm "${ED}"/usr/{LICENSE,README} || die "failed to remove useless docs" +}
