blob: 5d7e8b38635cbdee24739859dfe13830c43decbd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools
DESCRIPTION="Mailing list managing made joyful"
HOMEPAGE="https://codeberg.org/mlmmj/mlmmj"
SRC_URI="https://codeberg.org/${PN}/${PN}/releases/download/RELEASE_$(ver_rs 1- _)/${P}.tar.xz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
IUSE="test"
RESTRICT="!test? ( test )"
COMMON_DEPEND="virtual/libiconv"
DEPEND="
${COMMON_DEPEND}
test? (
dev-libs/atf
dev-util/kyua
)
"
RDEPEND="
${COMMON_DEPEND}
virtual/mta
"
BDEPEND="test? ( virtual/pkgconfig )"
DOCS=( AUTHORS ChangeLog FAQ TODO TUNABLES.md UPGRADE )
PATCHES=(
"${FILESDIR}"/mlmmj-1.4.7-cflags.patch
)
src_prepare() {
default
eautoreconf
# bug #259962
sed -i contrib/web/perl-admin/htdocs/subscribers.cgi \
-e "s:/usr/local/bin/:${EPREFIX}/usr/bin/:g" || die
}
src_configure() {
local myeconfargs=(
$(use_enable test tests)
--enable-receive-strip
)
econf "${myeconfargs[@]}"
}
src_install() {
default
insinto /usr/share/mlmmj
doins -r contrib/web/*
dodoc README.*
}
pkg_postinst() {
elog "mlmmj comes with serveral webinterfaces:"
elog "- One for user subscribing/unsubscribing"
elog "- One for admin tasks"
elog "both available in a php and perl module."
elog "For more info have a look in ${EROOT}/usr/share/mlmmj"
}
|