mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 00:48:18 -07:00
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@gentoo.org>
This commit is contained in:
@@ -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
|
||||
|
||||
12
dev-db/pgagent/files/pgagent-4.2.3-cmake-4.patch
Normal file
12
dev-db/pgagent/files/pgagent-4.2.3-cmake-4.patch
Normal file
@@ -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)
|
||||
48
dev-db/pgagent/pgagent-4.2.3.ebuild
Normal file
48
dev-db/pgagent/pgagent-4.2.3.ebuild
Normal file
@@ -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"
|
||||
}
|
||||
Reference in New Issue
Block a user