1 |
commit: ee9ac56b728a77a8a6b62b983c13c85342ef0f38 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Apr 19 15:29:46 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat May 14 00:46:57 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ee9ac56b |
7 |
|
8 |
dev-db/plr: add 8.4.5, inline ESYSROOT |
9 |
|
10 |
(ESYSROOT is SYSROOT/EPREFIX in >= EAPI 7) |
11 |
|
12 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
13 |
|
14 |
dev-db/plr/Manifest | 1 + |
15 |
dev-db/plr/plr-8.4.5.ebuild | 70 +++++++++++++++++++++++++++++++++++++++++++++ |
16 |
2 files changed, 71 insertions(+) |
17 |
|
18 |
diff --git a/dev-db/plr/Manifest b/dev-db/plr/Manifest |
19 |
index 92687bf21aa4..9098fc212b61 100644 |
20 |
--- a/dev-db/plr/Manifest |
21 |
+++ b/dev-db/plr/Manifest |
22 |
@@ -1,2 +1,3 @@ |
23 |
DIST plr-8.3.0.17.tar.gz 74017 BLAKE2B 314b4cfa2c3ca8ed31e80a72233a6dc8cdb9f3811dad6e9f3eb5147c17cdf5a039436598b0fc2b30c6702b02dd3cb2da33543764aee3199c6864aae22be875ce SHA512 d7080c62349d1dcdd17008a7be3643b54678e0f66bf721068df73057394496d025c4fe01e52945c3acf9cc21eb90241512667772ef3fe519a3c9081efe92dd40 |
24 |
DIST plr-8.4.1.tar.gz 265142 BLAKE2B 859913ba14d3e6876eb5a3d7593346b98ab2e1b6c70d9fd9cc7e1810fe11ecb3c552305485735cf975cc41ce2de6cbd7bcf407c9e373fc4024230be797c9899a SHA512 0db407355271009bad95c21f81e544839322f0fa0a63d2abd8edbf9eab8f61e208a3e4f7083729cc8247411885197ff3569c88264db0a29b34523dc83bbed7ec |
25 |
+DIST plr-8.4.5.tar.gz 273711 BLAKE2B 666941f1cbc7e74dee532b928102afda4684b344f3c69a6ac4e3449c057e8f4dbb74b765f4222bb06e61940fa1e4ba888cc60bac193ca43989b557da9d02ceaa SHA512 bb04a8956d1cdc7acb20c89ea3b17be6ee385dac52381ab0f8af7446480fa9b8d163ff6697a05b439a75f57841b203e65bea78db8a7c3d55c1118bebbf4ac81a |
26 |
|
27 |
diff --git a/dev-db/plr/plr-8.4.5.ebuild b/dev-db/plr/plr-8.4.5.ebuild |
28 |
new file mode 100644 |
29 |
index 000000000000..a75eb62a0b0f |
30 |
--- /dev/null |
31 |
+++ b/dev-db/plr/plr-8.4.5.ebuild |
32 |
@@ -0,0 +1,70 @@ |
33 |
+# Copyright 1999-2022 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+ |
38 |
+POSTGRES_COMPAT=( 9.6 {10..14} ) |
39 |
+POSTGRES_USEDEP="server" |
40 |
+ |
41 |
+inherit postgres-multi |
42 |
+ |
43 |
+DESCRIPTION="R language extension for postgresql database" |
44 |
+HOMEPAGE="http://www.joeconway.com/plr/" |
45 |
+SRC_URI="https://github.com/postgres-plr/plr/archive/REL${PV//./_}.tar.gz -> ${P}.tar.gz" |
46 |
+ |
47 |
+LICENSE="GPL-2" |
48 |
+SLOT="0" |
49 |
+KEYWORDS="~amd64" |
50 |
+ |
51 |
+RDEPEND="dev-lang/R |
52 |
+ ${POSTGRES_DEP}" |
53 |
+DEPEND="${RDEPEND}" |
54 |
+BDEPEND="virtual/pkgconfig" |
55 |
+ |
56 |
+REQUIRED_USE="${POSTGRES_REQ_USE}" |
57 |
+ |
58 |
+S="${WORKDIR}"/contrib/${PN} |
59 |
+ |
60 |
+src_unpack() { |
61 |
+ unpack ${A} |
62 |
+ |
63 |
+ # the build system wants 'contrib' to be part of the path |
64 |
+ mkdir -p "${WORKDIR}/contrib" || die |
65 |
+ mv "${WORKDIR}/${PN}-REL${PV//./_}" "${S}" || die |
66 |
+} |
67 |
+ |
68 |
+src_prepare() { |
69 |
+ local BUILD_DIR="${S}" |
70 |
+ postgres-multi_src_prepare |
71 |
+} |
72 |
+ |
73 |
+src_compile() { |
74 |
+ pg_src_compile() { |
75 |
+ cd "${BUILD_DIR}" |
76 |
+ PG_CONFIG="${ESYSROOT}/usr/$(get_libdir)/postgresql-${MULTIBUILD_ID}/bin/pg_config" \ |
77 |
+ USE_PGXS=1 \ |
78 |
+ emake -j1 |
79 |
+ } |
80 |
+ postgres-multi_foreach pg_src_compile |
81 |
+} |
82 |
+ |
83 |
+src_install() { |
84 |
+ pg_src_install() { |
85 |
+ cd "${BUILD_DIR}" |
86 |
+ PG_CONFIG="${ESYSROOT}/usr/$(get_libdir)/postgresql-${MULTIBUILD_ID}/bin/pg_config" \ |
87 |
+ USE_PGXS=1 \ |
88 |
+ emake -j1 DESTDIR="${D}" install |
89 |
+ } |
90 |
+ postgres-multi_foreach pg_src_install |
91 |
+} |
92 |
+ |
93 |
+pkg_postinst() { |
94 |
+ elog "The plr extension needs to be explicitly added (or 'created') on each database" |
95 |
+ elog "you wish to use it with. As of postgresql-9.1 the easiest way to do this is" |
96 |
+ elog "with the proprietary SQL statement:" |
97 |
+ elog |
98 |
+ elog "\tCREATE EXTENSION plr;" |
99 |
+ elog |
100 |
+ elog "For more info on how to add PL/R to your postgresql database(s), please visit" |
101 |
+ elog "http://www.joeconway.com/doc/plr-install.html" |
102 |
+} |