You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/net-analyzer/sarg/sarg-2.3.11-r2.ebuild

45 lines
900 B

# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit autotools
DESCRIPTION="Squid Analysis Report Generator"
HOMEPAGE="https://sourceforge.net/projects/sarg/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
KEYWORDS="~amd64 ~ppc ~x86"
SLOT="0"
IUSE="+gd ldap pcre"
DEPEND="
gd? ( media-libs/gd[png,truetype] )
ldap? ( net-nds/openldap )
pcre? ( dev-libs/libpcre )
"
RDEPEND="
${DEPEND}
"
DOCS=( BETA-TESTERS CONTRIBUTORS DONATIONS README ChangeLog htaccess )
PATCHES=(
"${FILESDIR}"/${PN}-2.3.10-config.patch
"${FILESDIR}"/${PN}-2.3.11-configure.patch
"${FILESDIR}"/${PN}-2.3.11-format.patch
"${FILESDIR}"/${PN}-2.3.11-Werror.patch
)
src_prepare() {
default
eautoreconf
}
src_configure() {
econf \
$(use_with gd) \
$(use_with ldap) \
$(use_with pcre) \
--sysconfdir="${EPREFIX}/etc/sarg/"
}