Gentoo Archives: gentoo-commits

From: Brian Evans <grknight@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: mail-filter/gld/
Date: Wed, 13 Feb 2019 14:37:40
Message-Id: 1550068635.f38788fcdf958c19576ddd561c6746172a973b07.grknight@gentoo
1 commit: f38788fcdf958c19576ddd561c6746172a973b07
2 Author: Brian Evans <grknight <AT> gentoo <DOT> org>
3 AuthorDate: Wed Feb 13 14:37:15 2019 +0000
4 Commit: Brian Evans <grknight <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 13 14:37:15 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f38788fc
7
8 mail-filter/gld: Revbump for EAPI and dependency change
9
10 Non-maintainer commit
11
12 Bug: https://bugs.gentoo.org/665912
13 Closes: https://bugs.gentoo.org/589472
14 Package-Manager: Portage-2.3.59, Repoman-2.3.12
15 Signed-off-by: Brian Evans <grknight <AT> gentoo.org>
16
17 .../gld/{gld-1.7-r3.ebuild => gld-1.7-r4.ebuild} | 29 +++++++++++++---------
18 1 file changed, 17 insertions(+), 12 deletions(-)
19
20 diff --git a/mail-filter/gld/gld-1.7-r3.ebuild b/mail-filter/gld/gld-1.7-r4.ebuild
21 similarity index 76%
22 rename from mail-filter/gld/gld-1.7-r3.ebuild
23 rename to mail-filter/gld/gld-1.7-r4.ebuild
24 index 90926c4222a..c367f5ee96a 100644
25 --- a/mail-filter/gld/gld-1.7-r3.ebuild
26 +++ b/mail-filter/gld/gld-1.7-r4.ebuild
27 @@ -1,7 +1,7 @@
28 # Copyright 1999-2019 Gentoo Authors
29 # Distributed under the terms of the GNU General Public License v2
30
31 -EAPI="5"
32 +EAPI="7"
33
34 inherit toolchain-funcs
35
36 @@ -17,7 +17,7 @@ IUSE="libressl postgres"
37 DEPEND="sys-libs/zlib
38 !libressl? ( dev-libs/openssl:0= )
39 libressl? ( dev-libs/libressl )
40 - !postgres? ( virtual/mysql )
41 + !postgres? ( dev-db/mysql-connector-c:0= )
42 postgres? ( dev-db/postgresql:*[server] )"
43 RDEPEND="${DEPEND}"
44
45 @@ -37,17 +37,19 @@ src_prepare() {
46 sed -i tables.{my,pg}sql \
47 -e '/ip char/s/16/39/' \
48 || die "sed sql tables failed"
49 +
50 + sed -i configure \
51 + -e "/SQL_LIBS/{s~/lib~/$(get_libdir)~g}" || die
52 +
53 + default
54 }
55
56 src_configure() {
57 tc-export CC
58 +
59 # It's kind of weird. $(use_with postgres pgsql) won't work if you don't
60 # use it...
61 - if use postgres ; then
62 - myconf="${myconf} --with-pgsql"
63 - fi
64 -
65 - econf ${myconf}
66 + econf $(usex postgres '--with-pgsql' '')
67 }
68
69 src_install() {
70 @@ -69,9 +71,12 @@ pkg_preinst() {
71 elog "details on how to setup gld."
72 elog
73 elog "The sql files have been installed to /usr/share/${PN}/sql."
74 - if [[ $REPLACING_VERSIONS == "1.7-r1" ]]; then
75 - elog "You might want to use the ALTER_TABLE command to change the"
76 - elog "ip field width to 39 chars to accomodate ipv6 addresses."
77 - elog "Please see your sql server documentation."
78 - fi
79 + local old_ver
80 + for old_ver in ${REPLACING_VERSIONS} ; do
81 + if ver_test ${old_ver} -eq "1.7-r1" ; then
82 + elog "You might want to use the ALTER_TABLE command to change the"
83 + elog "ip field width to 39 chars to accomodate ipv6 addresses."
84 + elog "Please see your sql server documentation."
85 + fi
86 + done
87 }