commit:     d0843f9f7e0d6ca4a3956ae314a5adc0c82376a7
Author:     Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
AuthorDate: Sun Jul 13 10:04:11 2025 +0000
Commit:     Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
CommitDate: Sun Jul 13 10:04:27 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d0843f9f

dev-db/pg_background: fixed installation in 1.4

Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>

 dev-db/pg_background/files/pg_background-1.4-fix-install.patch   | 9 +++++++++
 .../{pg_background-1.4.ebuild => pg_background-1.4-r1.ebuild}    | 9 ++++++++-
 2 files changed, 17 insertions(+), 1 deletion(-)

diff --git a/dev-db/pg_background/files/pg_background-1.4-fix-install.patch 
b/dev-db/pg_background/files/pg_background-1.4-fix-install.patch
new file mode 100644
index 000000000000..49e4c80cfabe
--- /dev/null
+++ b/dev-db/pg_background/files/pg_background-1.4-fix-install.patch
@@ -0,0 +1,9 @@
+--- a/Makefile
++++ b/Makefile
+@@ -5,6 +5,5 @@ EXTENSION = pg_background
+ DATA = pg_background--1.4.sql pg_background--1.0--1.4.sql 
pg_background--1.1--1.4.sql pg_background--1.2--1.4.sql 
pg_background--1.3--1.4.sql
+ REGRESS = pg_background
+ 
+-PG_CONFIG = pg_config
+ PGXS := $(shell $(PG_CONFIG) --pgxs)
+ include $(PGXS)

diff --git a/dev-db/pg_background/pg_background-1.4.ebuild 
b/dev-db/pg_background/pg_background-1.4-r1.ebuild
similarity index 82%
rename from dev-db/pg_background/pg_background-1.4.ebuild
rename to dev-db/pg_background/pg_background-1.4-r1.ebuild
index e368cf58dd49..20daa0c2f5e8 100644
--- a/dev-db/pg_background/pg_background-1.4.ebuild
+++ b/dev-db/pg_background/pg_background-1.4-r1.ebuild
@@ -14,13 +14,20 @@ 
SRC_URI="https://github.com/vibhorkum/pg_background/archive/refs/tags/v${PV}.tar
 LICENSE="GPL-3"
 
 SLOT=0
-KEYWORDS=""
+KEYWORDS="~amd64"
 
 RESTRICT="test"
 
 DEPEND="${POSTGRES_DEP}"
 RDEPEND="${DEPEND}"
 
+PATCHES=( "${FILESDIR}/${P}-fix-install.patch" )
+
+src_prepare() {
+       default
+       postgres-multi_src_prepare
+}
+
 src_compile() {
        postgres-multi_foreach emake || die "emake failed"
 }

Reply via email to