[gentoo-commits] repo/gentoo:master commit in: dev-db/plr/

2024-01-19 Thread 罗百科
commit: 9a8438f6717e506db4af00c80cbe098e2e44a5ef
Author: Patrick Lauer  gentoo  org>
AuthorDate: Fri Jan 19 13:22:49 2024 +
Commit: 罗百科  gentoo  org>
CommitDate: Fri Jan 19 13:24:44 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9a8438f6

dev-db/plr: add 8.4.6

Signed-off-by: Patrick Lauer  gentoo.org>

 dev-db/plr/Manifest |  1 +
 dev-db/plr/plr-8.4.6.ebuild | 70 +
 2 files changed, 71 insertions(+)

diff --git a/dev-db/plr/Manifest b/dev-db/plr/Manifest
index 6b8423543b46..e3e94a94bb3c 100644
--- a/dev-db/plr/Manifest
+++ b/dev-db/plr/Manifest
@@ -1 +1,2 @@
 DIST plr-8.4.5.tar.gz 273711 BLAKE2B 
666941f1cbc7e74dee532b928102afda4684b344f3c69a6ac4e3449c057e8f4dbb74b765f4222bb06e61940fa1e4ba888cc60bac193ca43989b557da9d02ceaa
 SHA512 
bb04a8956d1cdc7acb20c89ea3b17be6ee385dac52381ab0f8af7446480fa9b8d163ff6697a05b439a75f57841b203e65bea78db8a7c3d55c1118bebbf4ac81a
+DIST plr-8.4.6.tar.gz 277578 BLAKE2B 
575426e44e553f52dfe9b4bd1eb8de1b72e9023abe086c6b1570dabcda1b5e99a8eebce9c5b0e97019aec969b369e15a83801d51b8531695026e1a9bdc79d5c0
 SHA512 
de5f6b094f4eb6f88df6134142c461bc4ebd6a692c3db03cf04e1d0f04b71d63a26bce22defc1f25fa627c7bc4ba63c533dd2df1f571b58cb04d29c7eada2e42

diff --git a/dev-db/plr/plr-8.4.6.ebuild b/dev-db/plr/plr-8.4.6.ebuild
new file mode 100644
index ..bb10bae54f14
--- /dev/null
+++ b/dev-db/plr/plr-8.4.6.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+POSTGRES_COMPAT=( {12..16} )
+POSTGRES_USEDEP="server"
+
+inherit postgres-multi
+
+DESCRIPTION="R language extension for postgresql database"
+HOMEPAGE="http://www.joeconway.com/plr/;
+SRC_URI="https://github.com/postgres-plr/plr/archive/REL${PV//./_}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="dev-lang/R
+   ${POSTGRES_DEP}"
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+REQUIRED_USE="${POSTGRES_REQ_USE}"
+
+S="${WORKDIR}"/contrib/${PN}
+
+src_unpack() {
+   unpack ${A}
+
+   # the build system wants 'contrib' to be part of the path
+   mkdir -p "${WORKDIR}/contrib" || die
+   mv "${WORKDIR}/${PN}-REL${PV//./_}" "${S}" || die
+}
+
+src_prepare() {
+   local BUILD_DIR="${S}"
+   postgres-multi_src_prepare
+}
+
+src_compile() {
+   pg_src_compile() {
+   cd "${BUILD_DIR}"
+   
PG_CONFIG="${ESYSROOT}/usr/$(get_libdir)/postgresql-${MULTIBUILD_ID}/bin/pg_config"
 \
+   USE_PGXS=1 \
+   emake -j1
+   }
+   postgres-multi_foreach pg_src_compile
+}
+
+src_install() {
+   pg_src_install() {
+   cd "${BUILD_DIR}"
+   
PG_CONFIG="${ESYSROOT}/usr/$(get_libdir)/postgresql-${MULTIBUILD_ID}/bin/pg_config"
 \
+   USE_PGXS=1 \
+   emake -j1 DESTDIR="${D}" install
+   }
+   postgres-multi_foreach pg_src_install
+}
+
+pkg_postinst() {
+   elog "The plr extension needs to be explicitly added (or 'created') on 
each database"
+   elog "you wish to use it with.  As of postgresql-9.1 the easiest way to 
do this is"
+   elog "with the proprietary SQL statement:"
+   elog
+   elog "\tCREATE EXTENSION plr;"
+   elog
+   elog "For more info on how to add PL/R to your postgresql database(s), 
please visit"
+   elog "http://www.joeconway.com/doc/plr-install.html;
+}



[gentoo-commits] repo/gentoo:master commit in: dev-db/plr/

2024-01-19 Thread 罗百科
commit: a935e65ae76c4add9e0719a53c67e8702145c130
Author: Patrick Lauer  gentoo  org>
AuthorDate: Fri Jan 19 13:24:22 2024 +
Commit: 罗百科  gentoo  org>
CommitDate: Fri Jan 19 13:24:45 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a935e65a

dev-db/plr: add github upstream metadata

Signed-off-by: Patrick Lauer  gentoo.org>

 dev-db/plr/metadata.xml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/dev-db/plr/metadata.xml b/dev-db/plr/metadata.xml
index a4942cba46ae..7290965385bf 100644
--- a/dev-db/plr/metadata.xml
+++ b/dev-db/plr/metadata.xml
@@ -8,4 +8,7 @@
 An extension for postgresql databases to allow direct usage of
 dev-lang/R in SQL queries and database functions
   
+  
+postgres-plr/plr
+  
 



[gentoo-commits] repo/gentoo:master commit in: dev-db/plr/

2022-09-24 Thread Andreas Sturmlechner
commit: 0623ecd7939ebe5aaec6053c7dfa2dbf7ac69021
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Tue Aug 16 21:35:59 2022 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Sat Sep 24 20:41:55 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0623ecd7

dev-db/plr: drop 8.3.0.17, 8.4.1, EAPI-6--

Signed-off-by: Andreas Sturmlechner  gentoo.org>

 dev-db/plr/Manifest|  2 --
 dev-db/plr/plr-8.3.0.17.ebuild | 69 --
 dev-db/plr/plr-8.4.1.ebuild| 69 --
 3 files changed, 140 deletions(-)

diff --git a/dev-db/plr/Manifest b/dev-db/plr/Manifest
index 9098fc212b61..6b8423543b46 100644
--- a/dev-db/plr/Manifest
+++ b/dev-db/plr/Manifest
@@ -1,3 +1 @@
-DIST plr-8.3.0.17.tar.gz 74017 BLAKE2B 
314b4cfa2c3ca8ed31e80a72233a6dc8cdb9f3811dad6e9f3eb5147c17cdf5a039436598b0fc2b30c6702b02dd3cb2da33543764aee3199c6864aae22be875ce
 SHA512 
d7080c62349d1dcdd17008a7be3643b54678e0f66bf721068df73057394496d025c4fe01e52945c3acf9cc21eb90241512667772ef3fe519a3c9081efe92dd40
-DIST plr-8.4.1.tar.gz 265142 BLAKE2B 
859913ba14d3e6876eb5a3d7593346b98ab2e1b6c70d9fd9cc7e1810fe11ecb3c552305485735cf975cc41ce2de6cbd7bcf407c9e373fc4024230be797c9899a
 SHA512 
0db407355271009bad95c21f81e544839322f0fa0a63d2abd8edbf9eab8f61e208a3e4f7083729cc8247411885197ff3569c88264db0a29b34523dc83bbed7ec
 DIST plr-8.4.5.tar.gz 273711 BLAKE2B 
666941f1cbc7e74dee532b928102afda4684b344f3c69a6ac4e3449c057e8f4dbb74b765f4222bb06e61940fa1e4ba888cc60bac193ca43989b557da9d02ceaa
 SHA512 
bb04a8956d1cdc7acb20c89ea3b17be6ee385dac52381ab0f8af7446480fa9b8d163ff6697a05b439a75f57841b203e65bea78db8a7c3d55c1118bebbf4ac81a

diff --git a/dev-db/plr/plr-8.3.0.17.ebuild b/dev-db/plr/plr-8.3.0.17.ebuild
deleted file mode 100644
index 1b8acb6f6737..
--- a/dev-db/plr/plr-8.3.0.17.ebuild
+++ /dev/null
@@ -1,69 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-POSTGRES_COMPAT=( 9.6 10 )
-POSTGRES_USEDEP="server"
-
-inherit postgres-multi
-
-DESCRIPTION="R language extension for postgresql database"
-HOMEPAGE="http://www.joeconway.com/plr/;
-SRC_URI="https://github.com/postgres-plr/plr/archive/REL${PV//./_}.tar.gz -> 
${P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64"
-
-RDEPEND="dev-lang/R
-   ${POSTGRES_DEP}"
-DEPEND="${RDEPEND}
-   virtual/pkgconfig"
-
-REQUIRED_USE="${POSTGRES_REQ_USE}"
-
-S=${WORKDIR}/contrib/${PN}
-
-src_unpack() {
-   unpack ${A}
-   # the build system wants 'contrib' to be part of the path
-   mkdir -p "${WORKDIR}/contrib"
-   mv "${WORKDIR}/${PN}-REL${PV//./_}" "${S}"
-}
-
-src_prepare() {
-   local BUILD_DIR="${S}"
-   postgres-multi_src_prepare
-}
-
-src_compile() {
-   pg_src_compile() {
-   cd "${BUILD_DIR}"
-   
PG_CONFIG="${SYSROOT}${EPREFIX}/usr/$(get_libdir)/postgresql-${MULTIBUILD_ID}/bin/pg_config"
 \
-   USE_PGXS=1 \
-   emake -j1
-   }
-   postgres-multi_foreach pg_src_compile
-}
-
-src_install() {
-   pg_src_install() {
-   cd "${BUILD_DIR}"
-   
PG_CONFIG="${SYSROOT}${EPREFIX}/usr/$(get_libdir)/postgresql-${MULTIBUILD_ID}/bin/pg_config"
 \
-   USE_PGXS=1 \
-   emake -j1 DESTDIR="${D}" install
-   }
-   postgres-multi_foreach pg_src_install
-}
-
-pkg_postinst() {
-   elog "The plr extension needs to be explicitly added (or 'created') on 
each database"
-   elog "you wish to use it with.  As of postgresql-9.1 the easiest way to 
do this is"
-   elog "with the proprietary SQL statement:"
-   elog
-   elog "\tCREATE EXTENSION plr;"
-   elog
-   elog "For more info on how to add PL/R to your postgresql database(s), 
please visit"
-   elog "http://www.joeconway.com/doc/plr-install.html;
-}

diff --git a/dev-db/plr/plr-8.4.1.ebuild b/dev-db/plr/plr-8.4.1.ebuild
deleted file mode 100644
index 5f1fb15e848a..
--- a/dev-db/plr/plr-8.4.1.ebuild
+++ /dev/null
@@ -1,69 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-POSTGRES_COMPAT=( 9.6 {10..13} )
-POSTGRES_USEDEP="server"
-
-inherit postgres-multi
-
-DESCRIPTION="R language extension for postgresql database"
-HOMEPAGE="http://www.joeconway.com/plr/;
-SRC_URI="https://github.com/postgres-plr/plr/archive/REL${PV//./_}.tar.gz -> 
${P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64"
-
-RDEPEND="dev-lang/R
-   ${POSTGRES_DEP}"
-DEPEND="${RDEPEND}
-   virtual/pkgconfig"
-
-REQUIRED_USE="${POSTGRES_REQ_USE}"
-
-S=${WORKDIR}/contrib/${PN}
-
-src_unpack() {
-   unpack ${A}
-   # the build system wants 'contrib' to be part of the path
-   mkdir -p "${WORKDIR}/contrib"
-   mv "${WORKDIR}/${PN}-REL${PV//./_}" "${S}"
-}
-
-src_prepare() {
-   local BUILD_DIR="${S}"
-   

[gentoo-commits] repo/gentoo:master commit in: dev-db/plr/

2022-05-13 Thread Sam James
commit: ee9ac56b728a77a8a6b62b983c13c85342ef0f38
Author: Sam James  gentoo  org>
AuthorDate: Tue Apr 19 15:29:46 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Sat May 14 00:46:57 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ee9ac56b

dev-db/plr: add 8.4.5, inline ESYSROOT

(ESYSROOT is SYSROOT/EPREFIX in >= EAPI 7)

Signed-off-by: Sam James  gentoo.org>

 dev-db/plr/Manifest |  1 +
 dev-db/plr/plr-8.4.5.ebuild | 70 +
 2 files changed, 71 insertions(+)

diff --git a/dev-db/plr/Manifest b/dev-db/plr/Manifest
index 92687bf21aa4..9098fc212b61 100644
--- a/dev-db/plr/Manifest
+++ b/dev-db/plr/Manifest
@@ -1,2 +1,3 @@
 DIST plr-8.3.0.17.tar.gz 74017 BLAKE2B 
314b4cfa2c3ca8ed31e80a72233a6dc8cdb9f3811dad6e9f3eb5147c17cdf5a039436598b0fc2b30c6702b02dd3cb2da33543764aee3199c6864aae22be875ce
 SHA512 
d7080c62349d1dcdd17008a7be3643b54678e0f66bf721068df73057394496d025c4fe01e52945c3acf9cc21eb90241512667772ef3fe519a3c9081efe92dd40
 DIST plr-8.4.1.tar.gz 265142 BLAKE2B 
859913ba14d3e6876eb5a3d7593346b98ab2e1b6c70d9fd9cc7e1810fe11ecb3c552305485735cf975cc41ce2de6cbd7bcf407c9e373fc4024230be797c9899a
 SHA512 
0db407355271009bad95c21f81e544839322f0fa0a63d2abd8edbf9eab8f61e208a3e4f7083729cc8247411885197ff3569c88264db0a29b34523dc83bbed7ec
+DIST plr-8.4.5.tar.gz 273711 BLAKE2B 
666941f1cbc7e74dee532b928102afda4684b344f3c69a6ac4e3449c057e8f4dbb74b765f4222bb06e61940fa1e4ba888cc60bac193ca43989b557da9d02ceaa
 SHA512 
bb04a8956d1cdc7acb20c89ea3b17be6ee385dac52381ab0f8af7446480fa9b8d163ff6697a05b439a75f57841b203e65bea78db8a7c3d55c1118bebbf4ac81a

diff --git a/dev-db/plr/plr-8.4.5.ebuild b/dev-db/plr/plr-8.4.5.ebuild
new file mode 100644
index ..a75eb62a0b0f
--- /dev/null
+++ b/dev-db/plr/plr-8.4.5.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+POSTGRES_COMPAT=( 9.6 {10..14} )
+POSTGRES_USEDEP="server"
+
+inherit postgres-multi
+
+DESCRIPTION="R language extension for postgresql database"
+HOMEPAGE="http://www.joeconway.com/plr/;
+SRC_URI="https://github.com/postgres-plr/plr/archive/REL${PV//./_}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="dev-lang/R
+   ${POSTGRES_DEP}"
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+REQUIRED_USE="${POSTGRES_REQ_USE}"
+
+S="${WORKDIR}"/contrib/${PN}
+
+src_unpack() {
+   unpack ${A}
+
+   # the build system wants 'contrib' to be part of the path
+   mkdir -p "${WORKDIR}/contrib" || die
+   mv "${WORKDIR}/${PN}-REL${PV//./_}" "${S}" || die
+}
+
+src_prepare() {
+   local BUILD_DIR="${S}"
+   postgres-multi_src_prepare
+}
+
+src_compile() {
+   pg_src_compile() {
+   cd "${BUILD_DIR}"
+   
PG_CONFIG="${ESYSROOT}/usr/$(get_libdir)/postgresql-${MULTIBUILD_ID}/bin/pg_config"
 \
+   USE_PGXS=1 \
+   emake -j1
+   }
+   postgres-multi_foreach pg_src_compile
+}
+
+src_install() {
+   pg_src_install() {
+   cd "${BUILD_DIR}"
+   
PG_CONFIG="${ESYSROOT}/usr/$(get_libdir)/postgresql-${MULTIBUILD_ID}/bin/pg_config"
 \
+   USE_PGXS=1 \
+   emake -j1 DESTDIR="${D}" install
+   }
+   postgres-multi_foreach pg_src_install
+}
+
+pkg_postinst() {
+   elog "The plr extension needs to be explicitly added (or 'created') on 
each database"
+   elog "you wish to use it with.  As of postgresql-9.1 the easiest way to 
do this is"
+   elog "with the proprietary SQL statement:"
+   elog
+   elog "\tCREATE EXTENSION plr;"
+   elog
+   elog "For more info on how to add PL/R to your postgresql database(s), 
please visit"
+   elog "http://www.joeconway.com/doc/plr-install.html;
+}



[gentoo-commits] repo/gentoo:master commit in: dev-db/plr/

2021-08-22 Thread David Seifert
commit: 0c5ac5da570bdd877913a9e15b575215e6362917
Author: Jakov Smolic  sartura  hr>
AuthorDate: Sun Aug 22 21:53:35 2021 +
Commit: David Seifert  gentoo  org>
CommitDate: Sun Aug 22 21:53:35 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0c5ac5da

dev-db/plr: Remove postgres9_5

Signed-off-by: Jakov Smolic  sartura.hr>
Signed-off-by: David Seifert  gentoo.org>

 dev-db/plr/plr-8.3.0.17.ebuild | 4 ++--
 dev-db/plr/plr-8.4.1.ebuild| 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/dev-db/plr/plr-8.3.0.17.ebuild b/dev-db/plr/plr-8.3.0.17.ebuild
index 01de417db49..1b8acb6f673 100644
--- a/dev-db/plr/plr-8.3.0.17.ebuild
+++ b/dev-db/plr/plr-8.3.0.17.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
 
-POSTGRES_COMPAT=( 9.{5..6} 10 )
+POSTGRES_COMPAT=( 9.6 10 )
 POSTGRES_USEDEP="server"
 
 inherit postgres-multi

diff --git a/dev-db/plr/plr-8.4.1.ebuild b/dev-db/plr/plr-8.4.1.ebuild
index b78d06bcddf..5f1fb15e848 100644
--- a/dev-db/plr/plr-8.4.1.ebuild
+++ b/dev-db/plr/plr-8.4.1.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
 
-POSTGRES_COMPAT=( 9.{5..6} {10..13} )
+POSTGRES_COMPAT=( 9.6 {10..13} )
 POSTGRES_USEDEP="server"
 
 inherit postgres-multi



[gentoo-commits] repo/gentoo:master commit in: dev-db/plr/

2020-12-10 Thread Aaron W. Swenson
commit: 742c96f8422f8b3fa833a83efce4af2eed7cf2f1
Author: Aaron W. Swenson  gentoo  org>
AuthorDate: Thu Dec 10 13:09:25 2020 +
Commit: Aaron W. Swenson  gentoo  org>
CommitDate: Thu Dec 10 13:09:25 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=742c96f8

dev-db/plr: Assign Pg project as maintainer

Signed-off-by: Aaron W. Swenson  gentoo.org>

 dev-db/plr/metadata.xml | 22 +++---
 1 file changed, 7 insertions(+), 15 deletions(-)

diff --git a/dev-db/plr/metadata.xml b/dev-db/plr/metadata.xml
index c3edd841180..60798fb9b76 100644
--- a/dev-db/plr/metadata.xml
+++ b/dev-db/plr/metadata.xml
@@ -1,20 +1,12 @@
 
 http://www.gentoo.org/dtd/metadata.dtd;>
-
 
-
-
-An extension for postgresql databases to allow direct usage of 
dev-lang/R
-in SQL queries and database functions
-
+  
+pgsql-b...@gentoo.org
+  
+  
+An extension for postgresql databases to allow direct usage of
+dev-lang/R in SQL queries and database functions
+  
 



[gentoo-commits] repo/gentoo:master commit in: dev-db/plr/

2020-09-27 Thread 罗百科
commit: 6e5293f1f31dc213a280a125ebc3babc6fd0e859
Author: Patrick Lauer  gentoo  org>
AuthorDate: Sun Sep 27 10:56:36 2020 +
Commit: 罗百科  gentoo  org>
CommitDate: Sun Sep 27 10:56:50 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6e5293f1

dev-db/plr: Bump, add more postgres targets

Package-Manager: Portage-3.0.8, Repoman-3.0.1
Signed-off-by: Patrick Lauer  gentoo.org>

 dev-db/plr/Manifest |  1 +
 dev-db/plr/plr-8.4.1.ebuild | 69 +
 2 files changed, 70 insertions(+)

diff --git a/dev-db/plr/Manifest b/dev-db/plr/Manifest
index afd497d93f1..92687bf21aa 100644
--- a/dev-db/plr/Manifest
+++ b/dev-db/plr/Manifest
@@ -1 +1,2 @@
 DIST plr-8.3.0.17.tar.gz 74017 BLAKE2B 
314b4cfa2c3ca8ed31e80a72233a6dc8cdb9f3811dad6e9f3eb5147c17cdf5a039436598b0fc2b30c6702b02dd3cb2da33543764aee3199c6864aae22be875ce
 SHA512 
d7080c62349d1dcdd17008a7be3643b54678e0f66bf721068df73057394496d025c4fe01e52945c3acf9cc21eb90241512667772ef3fe519a3c9081efe92dd40
+DIST plr-8.4.1.tar.gz 265142 BLAKE2B 
859913ba14d3e6876eb5a3d7593346b98ab2e1b6c70d9fd9cc7e1810fe11ecb3c552305485735cf975cc41ce2de6cbd7bcf407c9e373fc4024230be797c9899a
 SHA512 
0db407355271009bad95c21f81e544839322f0fa0a63d2abd8edbf9eab8f61e208a3e4f7083729cc8247411885197ff3569c88264db0a29b34523dc83bbed7ec

diff --git a/dev-db/plr/plr-8.4.1.ebuild b/dev-db/plr/plr-8.4.1.ebuild
new file mode 100644
index 000..b78d06bcddf
--- /dev/null
+++ b/dev-db/plr/plr-8.4.1.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+POSTGRES_COMPAT=( 9.{5..6} {10..13} )
+POSTGRES_USEDEP="server"
+
+inherit postgres-multi
+
+DESCRIPTION="R language extension for postgresql database"
+HOMEPAGE="http://www.joeconway.com/plr/;
+SRC_URI="https://github.com/postgres-plr/plr/archive/REL${PV//./_}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="dev-lang/R
+   ${POSTGRES_DEP}"
+DEPEND="${RDEPEND}
+   virtual/pkgconfig"
+
+REQUIRED_USE="${POSTGRES_REQ_USE}"
+
+S=${WORKDIR}/contrib/${PN}
+
+src_unpack() {
+   unpack ${A}
+   # the build system wants 'contrib' to be part of the path
+   mkdir -p "${WORKDIR}/contrib"
+   mv "${WORKDIR}/${PN}-REL${PV//./_}" "${S}"
+}
+
+src_prepare() {
+   local BUILD_DIR="${S}"
+   postgres-multi_src_prepare
+}
+
+src_compile() {
+   pg_src_compile() {
+   cd "${BUILD_DIR}"
+   
PG_CONFIG="${SYSROOT}${EPREFIX}/usr/$(get_libdir)/postgresql-${MULTIBUILD_ID}/bin/pg_config"
 \
+   USE_PGXS=1 \
+   emake -j1
+   }
+   postgres-multi_foreach pg_src_compile
+}
+
+src_install() {
+   pg_src_install() {
+   cd "${BUILD_DIR}"
+   
PG_CONFIG="${SYSROOT}${EPREFIX}/usr/$(get_libdir)/postgresql-${MULTIBUILD_ID}/bin/pg_config"
 \
+   USE_PGXS=1 \
+   emake -j1 DESTDIR="${D}" install
+   }
+   postgres-multi_foreach pg_src_install
+}
+
+pkg_postinst() {
+   elog "The plr extension needs to be explicitly added (or 'created') on 
each database"
+   elog "you wish to use it with.  As of postgresql-9.1 the easiest way to 
do this is"
+   elog "with the proprietary SQL statement:"
+   elog
+   elog "\tCREATE EXTENSION plr;"
+   elog
+   elog "For more info on how to add PL/R to your postgresql database(s), 
please visit"
+   elog "http://www.joeconway.com/doc/plr-install.html;
+}



[gentoo-commits] repo/gentoo:master commit in: dev-db/plr/

2020-08-13 Thread Aaron W. Swenson
commit: 65c5b22f372490e3b7e18d455ab48520768786a8
Author: Aaron W. Swenson  gentoo  org>
AuthorDate: Fri Aug 14 00:47:28 2020 +
Commit: Aaron W. Swenson  gentoo  org>
CommitDate: Fri Aug 14 00:47:33 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=65c5b22f

dev-db/plr: Dropping Pg 9.4 Support

Package-Manager: Portage-2.3.103, Repoman-2.3.23
Signed-off-by: Aaron W. Swenson  gentoo.org>

 dev-db/plr/plr-8.3.0.17.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev-db/plr/plr-8.3.0.17.ebuild b/dev-db/plr/plr-8.3.0.17.ebuild
index e6b36b80a86..01de417db49 100644
--- a/dev-db/plr/plr-8.3.0.17.ebuild
+++ b/dev-db/plr/plr-8.3.0.17.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
 
-POSTGRES_COMPAT=( 9.{4..6} 10 )
+POSTGRES_COMPAT=( 9.{5..6} 10 )
 POSTGRES_USEDEP="server"
 
 inherit postgres-multi



[gentoo-commits] repo/gentoo:master commit in: dev-db/plr/

2019-06-15 Thread Aaron W. Swenson
commit: 364dcdff9675ea5f85e462bc8de8cccd6952900b
Author: Aaron W. Swenson  gentoo  org>
AuthorDate: Sat Jun 15 10:40:56 2019 +
Commit: Aaron W. Swenson  gentoo  org>
CommitDate: Sat Jun 15 10:40:56 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=364dcdff

dev-db/plr: Remove POSTGRES_COMPAT 9.3

Signed-off-by: Aaron W. Swenson  gentoo.org>

 dev-db/plr/plr-8.3.0.17.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev-db/plr/plr-8.3.0.17.ebuild b/dev-db/plr/plr-8.3.0.17.ebuild
index 355b915ed2d..e6b36b80a86 100644
--- a/dev-db/plr/plr-8.3.0.17.ebuild
+++ b/dev-db/plr/plr-8.3.0.17.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
 
-POSTGRES_COMPAT=( 9.{3..6} 10 )
+POSTGRES_COMPAT=( 9.{4..6} 10 )
 POSTGRES_USEDEP="server"
 
 inherit postgres-multi



[gentoo-commits] repo/gentoo:master commit in: dev-db/plr/

2018-05-13 Thread Aaron Swenson
commit: a47c9e989cc3e9eec193ae88e31671a367594a77
Author: Aaron W. Swenson  gentoo  org>
AuthorDate: Sun May 13 16:45:28 2018 +
Commit: Aaron Swenson  gentoo  org>
CommitDate: Sun May 13 16:45:28 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a47c9e98

dev-db/plr: Remove <9.3 from POSTGRES_COMPAT

Package-Manager: Portage-2.3.24, Repoman-2.3.6

 dev-db/plr/plr-8.3.0.17.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev-db/plr/plr-8.3.0.17.ebuild b/dev-db/plr/plr-8.3.0.17.ebuild
index 53ecfa0ff06..355b915ed2d 100644
--- a/dev-db/plr/plr-8.3.0.17.ebuild
+++ b/dev-db/plr/plr-8.3.0.17.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
 
-POSTGRES_COMPAT=( 9.{1..6} 10 )
+POSTGRES_COMPAT=( 9.{3..6} 10 )
 POSTGRES_USEDEP="server"
 
 inherit postgres-multi



[gentoo-commits] repo/gentoo:master commit in: dev-db/plr/

2017-12-28 Thread Ian Stakenvicius
commit: d27c6cbeee1abb654b6304c8c4c5e253fd45166e
Author: Ian Stakenvicius  gentoo  org>
AuthorDate: Thu Dec 14 19:28:52 2017 +
Commit: Ian Stakenvicius  gentoo  org>
CommitDate: Thu Dec 28 20:56:08 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d27c6cbe

dev-db/plr: new package

Finally decided to add this to the gentoo repo.  PL/R is a
postgresql server extension that allows R scripts (dev-lang/R)
to be used directly in postgresql queries and functions.

Bug: http://bugs.gentoo.org/272610
Package-Manager: Portage-2.3.13, Repoman-2.3.3

 dev-db/plr/Manifest|  1 +
 dev-db/plr/metadata.xml| 24 +++
 dev-db/plr/plr-8.3.0.17.ebuild | 69 ++
 3 files changed, 94 insertions(+)

diff --git a/dev-db/plr/Manifest b/dev-db/plr/Manifest
new file mode 100644
index 000..afd497d93f1
--- /dev/null
+++ b/dev-db/plr/Manifest
@@ -0,0 +1 @@
+DIST plr-8.3.0.17.tar.gz 74017 BLAKE2B 
314b4cfa2c3ca8ed31e80a72233a6dc8cdb9f3811dad6e9f3eb5147c17cdf5a039436598b0fc2b30c6702b02dd3cb2da33543764aee3199c6864aae22be875ce
 SHA512 
d7080c62349d1dcdd17008a7be3643b54678e0f66bf721068df73057394496d025c4fe01e52945c3acf9cc21eb90241512667772ef3fe519a3c9081efe92dd40

diff --git a/dev-db/plr/metadata.xml b/dev-db/plr/metadata.xml
new file mode 100644
index 000..7eb0ae4794b
--- /dev/null
+++ b/dev-db/plr/metadata.xml
@@ -0,0 +1,24 @@
+
+http://www.gentoo.org/dtd/metadata.dtd;>
+
+
+
+   a...@gentoo.org
+   Ian Stakenvicius
+   Primary maintainer
+
+
+An extension for postgresql databases to allow direct usage of 
dev-lang/R
+in SQL queries and database functions
+
+

diff --git a/dev-db/plr/plr-8.3.0.17.ebuild b/dev-db/plr/plr-8.3.0.17.ebuild
new file mode 100644
index 000..53ecfa0ff06
--- /dev/null
+++ b/dev-db/plr/plr-8.3.0.17.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+POSTGRES_COMPAT=( 9.{1..6} 10 )
+POSTGRES_USEDEP="server"
+
+inherit postgres-multi
+
+DESCRIPTION="R language extension for postgresql database"
+HOMEPAGE="http://www.joeconway.com/plr/;
+SRC_URI="https://github.com/postgres-plr/plr/archive/REL${PV//./_}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="dev-lang/R
+   ${POSTGRES_DEP}"
+DEPEND="${RDEPEND}
+   virtual/pkgconfig"
+
+REQUIRED_USE="${POSTGRES_REQ_USE}"
+
+S=${WORKDIR}/contrib/${PN}
+
+src_unpack() {
+   unpack ${A}
+   # the build system wants 'contrib' to be part of the path
+   mkdir -p "${WORKDIR}/contrib"
+   mv "${WORKDIR}/${PN}-REL${PV//./_}" "${S}"
+}
+
+src_prepare() {
+   local BUILD_DIR="${S}"
+   postgres-multi_src_prepare
+}
+
+src_compile() {
+   pg_src_compile() {
+   cd "${BUILD_DIR}"
+   
PG_CONFIG="${SYSROOT}${EPREFIX}/usr/$(get_libdir)/postgresql-${MULTIBUILD_ID}/bin/pg_config"
 \
+   USE_PGXS=1 \
+   emake -j1
+   }
+   postgres-multi_foreach pg_src_compile
+}
+
+src_install() {
+   pg_src_install() {
+   cd "${BUILD_DIR}"
+   
PG_CONFIG="${SYSROOT}${EPREFIX}/usr/$(get_libdir)/postgresql-${MULTIBUILD_ID}/bin/pg_config"
 \
+   USE_PGXS=1 \
+   emake -j1 DESTDIR="${D}" install
+   }
+   postgres-multi_foreach pg_src_install
+}
+
+pkg_postinst() {
+   elog "The plr extension needs to be explicitly added (or 'created') on 
each database"
+   elog "you wish to use it with.  As of postgresql-9.1 the easiest way to 
do this is"
+   elog "with the proprietary SQL statement:"
+   elog
+   elog "\tCREATE EXTENSION plr;"
+   elog
+   elog "For more info on how to add PL/R to your postgresql database(s), 
please visit"
+   elog "http://www.joeconway.com/doc/plr-install.html;
+}