blob: 9f82c76592f7805a9f681ecd910519656929bfb9 (
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
|
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit eutils webapp
DESCRIPTION="Bugzilla is the Bug-Tracking System from the Mozilla project"
SRC_URI="https://ftp.mozilla.org/pub/mozilla.org/webtools/${P}.tar.gz"
HOMEPAGE="https://www.bugzilla.org"
LICENSE="MPL-2.0"
KEYWORDS="amd64 ~x86"
IUSE="apache2 doc mysql postgres sqlite test"
RESTRICT="!test? ( test )"
REQUIRED_USE="|| ( mysql postgres sqlite )"
# sorting is identical to upstream MYMETA.json, please don't change
# These are mandatory for checksetup.pl to configure bugzilla
BASIC_DEPS="
dev-lang/perl
>=dev-perl/CGI-3.510.0
>=dev-perl/DBI-1.614.0
>=dev-perl/TimeDate-2.230.0
>=dev-perl/DateTime-0.750.0
>=dev-perl/DateTime-TimeZone-1.640.0
virtual/perl-Digest-SHA
>=dev-perl/Email-MIME-1.904.0
>=dev-perl/Email-Sender-1.300.11
>=dev-perl/JSON-XS-2.10.0
>=dev-perl/List-MoreUtils-0.320.0
>=dev-perl/Math-Random-ISAAC-1.0.1
>=dev-perl/Template-Toolkit-2.240.0
>=dev-perl/URI-1.550.0
"
RDEPEND="
${BASIC_DEPS}
apache2? ( www-servers/apache[apache2_modules_access_compat] )
!apache2? ( virtual/httpd-cgi )
postgres? ( >=dev-perl/DBD-Pg-1.49 )
mysql? ( >=dev-perl/DBD-mysql-4.0.5 )
sqlite? ( >=dev-perl/DBD-SQLite-1.290.0 )
"
BDEPEND="
test? ( ${BASIC_DEPS} )
doc? (
dev-python/sphinx
dev-perl/File-Copy-Recursive
)
"
PATCHES=(
"${FILESDIR}/${PN}-5.0.6-leftbrace.patch"
"${FILESDIR}/${PN}-5.0.6-perl.patch"
"${FILESDIR}/${PN}-5.0.6-template.patch"
)
src_prepare() {
default
# Get rid of the bzr files
rm -r .bzr* || die
# unconditionnally remove pod-coverage tests
rm t/011pod.t || die
}
src_test() {
TZ=UTC perl -I. runtests.pl || die
}
src_install() {
webapp_src_preinst
insinto "${MY_HTDOCSDIR}"
doins -r .
webapp_postinst_txt en "${FILESDIR}/postinstall-${PV}-en.txt"
webapp_postupgrade_txt en "${FILESDIR}/postupgrade-${PV}-en.txt"
webapp_src_install
if use doc; then
docs/makedocs.pl
dodoc -r docs/en/html
dodoc -r docs/en/txt
fi
# openrc service file to enable mail queuing as a service
newinitd "${FILESDIR}"/bugzilla-queue.initd bugzilla-queue
# must be executable and stay that way upon upgrading
fperms u+x "${MY_HTDOCSDIR}"/checksetup.pl
}
pkg_postinst() {
elog "Optional dependencies:"
optfeature "Graphical reports, new charts, old charts" "dev-perl/GD dev-perl/Chart dev-perl/Template-GD dev-perl/GDTextUtil dev-perl/GDGraph"
optfeature "Move bugs between installations, automatic update notifications" "dev-perl/MIME-tools dev-perl/libwww-perl dev-perl/XML-Twig"
optfeature "Patch Viewer" "dev-perl/PatchReader"
optfeature "LDAP authentication" "dev-perl/perl-ldap"
optfeature "SMTP authentication" "dev-perl/Authen-SASL"
optfeature "XML-RPC Interface" "dev-perl/SOAP-Lite dev-perl/XMLRPC-Lite dev-perl/Test-Taint"
optfeature "JSON-RPC Interface, REST Interface" "dev-perl/JSON-RPC dev-perl/Test-Taint"
optfeature "More HTML in Product/Group description" "dev-perl/HTML-Scrubber"
optfeature "Automatic charset detection for text attachments" "dev-perl/Encode-Detect"
optfeature "Inbound Email" "dev-perl/Email-Reply dev-perl/HTML-FormatText-WithLinks"
optfeature "Mail Queueing" "dev-perl/TheSchwarz dev-perl/Daemon-Generic"
optfeature "Sniff MIME type of attachments" "dev-perl/File-MimeInfo dev-perl/IO-stringy"
optfeature "Memcached support" "dev-perl/Cache-Memcached"
ewarn "If Apache is the chosen webserver, please consider turning the apache2 use flag on"
ewarn "Not doing so may result in unexpected runtime errors"
webapp_pkg_postinst
}
|