Gentoo Archives: gentoo-commits

From: Brian Evans <grknight@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-mail/ezmlm-idx/
Date: Mon, 18 Feb 2019 20:49:07
Message-Id: 1550522866.ae979904112ec6a10b466b95c7e9e4077aff205b.grknight@gentoo
1 commit: ae979904112ec6a10b466b95c7e9e4077aff205b
2 Author: Brian Evans <grknight <AT> gentoo <DOT> org>
3 AuthorDate: Mon Feb 18 20:47:46 2019 +0000
4 Commit: Brian Evans <grknight <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 18 20:47:46 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ae979904
7
8 net-mail/ezmlm-idx: Revbump for EAPI and dependency change
9
10 Non-maintainer commit
11
12 Closes: https://bugs.gentoo.org/show_bug.cgi?id=367869
13 Bug: https://bugs.gentoo.org/665994
14 Package-Manager: Portage-2.3.61, Repoman-2.3.12
15 Signed-off-by: Brian Evans <grknight <AT> gentoo.org>
16
17 net-mail/ezmlm-idx/ezmlm-idx-7.0.0-r3.ebuild | 56 ++++++++++++++++++++++++++++
18 1 file changed, 56 insertions(+)
19
20 diff --git a/net-mail/ezmlm-idx/ezmlm-idx-7.0.0-r3.ebuild b/net-mail/ezmlm-idx/ezmlm-idx-7.0.0-r3.ebuild
21 new file mode 100644
22 index 00000000000..a8b8d7a76fe
23 --- /dev/null
24 +++ b/net-mail/ezmlm-idx/ezmlm-idx-7.0.0-r3.ebuild
25 @@ -0,0 +1,56 @@
26 +# Copyright 1999-2019 Gentoo Authors
27 +# Distributed under the terms of the GNU General Public License v2
28 +
29 +EAPI=7
30 +
31 +inherit qmail toolchain-funcs
32 +
33 +DESCRIPTION="Simple yet powerful mailing list manager for qmail"
34 +HOMEPAGE="http://www.ezmlm.org"
35 +SRC_URI="http://www.ezmlm.org/archive/${PV}/${P}.tar.gz"
36 +
37 +LICENSE="GPL-2"
38 +SLOT="0"
39 +KEYWORDS="~alpha ~amd64 ~hppa ~mips ~ppc ~sparc ~x86"
40 +IUSE="mysql postgres"
41 +
42 +DEPEND="mysql? ( dev-db/mysql-connector-c:0= )
43 + postgres? ( dev-db/postgresql )"
44 +RDEPEND="${DEPEND}
45 + virtual/qmail"
46 +REQUIRED_USE="?? ( mysql postgres )"
47 +
48 +src_prepare() {
49 + default
50 + echo /usr/bin > conf-bin || die
51 + echo /usr/$(get_libdir)/ezmlm > conf-lib || die
52 + echo /etc/ezmlm > conf-etc || die
53 + echo /usr/share/man > conf-man || die
54 + echo ${QMAIL_HOME} > conf-qmail || die
55 +
56 + echo $(tc-getCC) ${CFLAGS} -I/usr/include/{my,postgre}sql > conf-cc || die
57 + echo $(tc-getCC) ${CFLAGS} -Wl,-E > conf-ld || die
58 +
59 + # fix DESTDIR and skip cat man-pages
60 + sed -e "s:\(/install\) \(\"\`head\):\1 ${D}\2:" \
61 + -e "s:\(./install.*\) < MAN$:grep -v \:/cat MAN | \1:" \
62 + -e "s:\(\"\`head -n 1 conf-etc\`\"/default\):${D}\1:" \
63 + -i Makefile || die
64 +}
65 +
66 +src_compile() {
67 + emake it man
68 +
69 + if use mysql; then
70 + emake mysql
71 + elif use postgres; then
72 + emake pgsql
73 + fi
74 +}
75 +
76 +src_install () {
77 + dodir /usr/bin /usr/$(get_libdir)/ezmlm /etc/ezmlm /usr/share/man
78 + dobin ezmlm-{cgi,checksub,import,rmtab}
79 +
80 + make DESTDIR="${D}" setup || die "make setup failed"
81 +}