Diff pgpool2-4.4.4 with a pgpool2-9999

/usr/portage/dev-db/pgpool2/pgpool2-9999.ebuild 2023-10-09 14:52:29.332368346 +0300
1
# Copyright 1999-2023 Gentoo Authors
1
# Copyright 1999-2022 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4 4
EAPI=7
5 5

  
6
POSTGRES_COMPAT=( {10..16} )
6
EGIT_REPO_URI="https://git.postgresql.org/git/pgpool2.git"
7 7

  
8
inherit autotools postgres-multi
8
POSTGRES_COMPAT=( 9.6 {10..15} )
9 9

  
10
MY_P="${PN/2/-II}-${PV}"
10
inherit autotools git-r3 postgres-multi
11 11

  
12 12
DESCRIPTION="Connection pool server for PostgreSQL"
13 13
HOMEPAGE="https://www.pgpool.net/"
14
SRC_URI="https://www.pgpool.net/download.php?f=${MY_P}.tar.gz -> ${MY_P}.tar.gz"
14

  
15 15
LICENSE="BSD"
16 16
SLOT="0"
17

  
18
KEYWORDS="~amd64 ~x86"
19

  
20 17
IUSE="doc memcached pam ssl static-libs"
21 18

  
22 19
RDEPEND="
23 20
	${POSTGRES_DEP}
21
	acct-group/postgres
24 22
	acct-user/pgpool
25 23
	net-libs/libnsl:0=
26 24
	virtual/libcrypt:=
27 25
	memcached? ( dev-libs/libmemcached )
28 26
	pam? ( sys-auth/pambase )
29
	ssl? ( dev-libs/openssl:0= )
27
	ssl? ( dev-libs/openssl:= )
30 28
"
31 29
DEPEND="${RDEPEND}
32 30
	sys-devel/bison
33 31
	virtual/pkgconfig
32
	doc? (
33
		app-text/openjade
34
		dev-libs/libxml2
35
		dev-libs/libxslt
36
	)
34 37
"
35 38

  
36
S=${WORKDIR}/${MY_P}
39
pkg_setup() {
40
	postgres-multi_pkg_setup
41
}
37 42

  
38 43
src_prepare() {
39 44
	eapply \
40 45
		"${FILESDIR}/pgpool-4.2.0-configure-memcached.patch" \
41 46
		"${FILESDIR}/pgpool-configure-pam.patch" \
42 47
		"${FILESDIR}/pgpool-4.2.0-configure-pthread.patch" \
43
		"${FILESDIR}/pgpool-4.4.4-run_paths.patch"
48
		"${FILESDIR}/pgpool-9999-run_paths.patch"
44 49

  
45 50
	eautoreconf
46 51

  
......
65 70
	# of that directory built, too.
66 71
	postgres-multi_foreach emake
67 72
	postgres-multi_foreach emake -C src/sql
73
	use doc && postgres-multi_forbest emake -C doc
68 74
}
69 75

  
70 76
src_install() {
......
79 85

  
80 86
	# Documentation!
81 87
	dodoc NEWS TODO
82
	doman doc/src/sgml/man{1,8}/*
83
	use doc && dodoc -r doc/src/sgml/html
88
	use doc && postgres-multi_forbest emake DESTDIR="${D}" -C doc install
84 89

  
85 90
	# mv some files that get installed to /usr/share/pgpool-II so that
86 91
	# they all wind up in the same place
Thank you!