1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit webapp depend.apache eutils
8 DESCRIPTION="Bugzilla is the Bug-Tracking System from the Mozilla project"
9 SRC_URI="https://ftp.mozilla.org/pub/mozilla.org/webtools/${P}.tar.gz"
10 HOMEPAGE="https://www.bugzilla.org"
15 IUSE="modperl extras graphviz mysql postgres sqlite test"
16 RESTRICT="!test? ( test )"
17 REQUIRED_USE=" || ( mysql postgres sqlite )"
20 >=dev-lang/perl-5.10.1
21 >=dev-perl/CGI-3.510.0
22 virtual/perl-Digest-SHA
23 >=dev-perl/DateTime-0.500.0
24 >=dev-perl/DateTime-TimeZone-0.710.0
25 >=dev-perl/DBI-1.601.0
26 >=dev-perl/Template-Toolkit-2.22
27 >=dev-perl/Email-Send-2.40.0
28 >=dev-perl/Email-MIME-1.904.0
30 >=dev-perl/List-MoreUtils-0.329.0
31 dev-perl/Math-Random-ISAAC
34 DEPEND="test? ( dev-perl/Pod-Coverage${COMMON_DEPS} )"
38 postgres? ( >=dev-perl/DBD-Pg-1.49.0 )
39 mysql? ( >=dev-perl/DBD-mysql-4.0.5 )
40 sqlite? ( >=dev-perl/DBD-SQLite-1.290.0 )
42 >=dev-perl/GD-2.35[png,truetype]
43 >=dev-perl/Chart-2.4.1
48 >=dev-perl/MIME-tools-5.427.0
50 >=dev-perl/PatchReader-0.9.6
52 dev-perl/Authen-Radius
54 >=dev-perl/SOAP-Lite-0.712.0
56 >=dev-perl/JSON-XS-2.0.0
58 >=dev-perl/HTML-Parser-3.67.0
59 dev-perl/HTML-Scrubber
60 >=virtual/perl-Encode-2.21.0
61 dev-perl/Encode-Detect
62 dev-perl/Email-MIME-Attachment-Stripper
65 dev-perl/Daemon-Generic
66 dev-perl/File-MimeInfo
67 virtual/imagemagick-tools[perl]
72 >=dev-perl/Apache-SizeLimit-0.96.0
74 graphviz? ( media-gfx/graphviz )
80 "${FILESDIR}/${PN}"-5.0.3-leftbrace.patch
84 depend.apache_pkg_setup modperl
89 # Get a rid of the bzr files
92 # Remove bundled perl modules
99 perl -I. runtests.pl || die
105 insinto "${MY_HTDOCSDIR}"
107 doins "${FILESDIR}"/bugzilla.cron.{daily,tab}
109 webapp_hook_script "${FILESDIR}"/reconfig
110 webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt
114 newconfd "${FILESDIR}"/bugzilla-queue.confd bugzilla-queue
115 newinitd "${FILESDIR}"/bugzilla-queue.initd bugzilla-queue
119 for f in "${D}${MY_HTDOCSDIR}"/*.cgi ; do
120 fperms +x "${f#${D}}"
123 fperms u+x "${MY_HTDOCSDIR}"/jobqueue.pl
125 # configuration must be executable
126 fperms u+x "${MY_HTDOCSDIR}"/checksetup.pl
129 mkdir "${D}${MY_HTDOCSDIR}"/lib || die