mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-06-07 05:34:45 +02:00
* Depend on ```dev-libs/libpcre2``` * Unbundle libjpeg, libpcre2, libpng, libz and most of libgd * Fix c23/clang stricter compilation Bug: https://bugs.gentoo.org/249140 Bug: https://bugs.gentoo.org/881867 Signed-off-by: Cristian Othón Martínez Vera <cfuga@cfuga.mx> Part-of: https://github.com/gentoo/gentoo/pull/42447 Closes: https://github.com/gentoo/gentoo/pull/42447 Signed-off-by: Sam James <sam@gentoo.org>
65 lines
1.5 KiB
Bash
65 lines
1.5 KiB
Bash
# Copyright 1999-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit toolchain-funcs
|
|
|
|
DESCRIPTION="Multi-purpose, multi-platform log file analyser"
|
|
HOMEPAGE="
|
|
https://www.c-amie.co.uk/software/analog/
|
|
https://github.com/c-amie/analog-ce"
|
|
SRC_URI="https://github.com/c-amie/${PN}-ce/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
|
|
S="${WORKDIR}/${PN}-ce-${PV}"
|
|
|
|
LICENSE="GPL-2"
|
|
SLOT="0"
|
|
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
|
|
|
DEPEND="
|
|
app-arch/bzip2
|
|
dev-libs/libpcre2
|
|
>=media-libs/gd-1.8.4-r2[jpeg,png]
|
|
sys-libs/zlib
|
|
"
|
|
RDEPEND="${DEPEND}"
|
|
|
|
PATCHES=(
|
|
"${FILESDIR}"/${PN}-5.1-gentoo.diff
|
|
"${FILESDIR}"/${PN}-6.0-undefined-macro.patch
|
|
"${FILESDIR}"/${PN}-6.0.18-Makefile.patch
|
|
"${FILESDIR}"/${PN}-6.0.18-c23.patch
|
|
)
|
|
|
|
src_prepare() {
|
|
default
|
|
sed -i src/Makefile \
|
|
-e 's| -o | $(LDFLAGS)&|g' \
|
|
|| die "sed Makefile"
|
|
}
|
|
|
|
src_compile() {
|
|
tc-export CC
|
|
# emake in main dir just executes "cd src && make",
|
|
# i.e. MAKEOPTS are ignored
|
|
emake -C src
|
|
}
|
|
|
|
src_install() {
|
|
newman analog.man analog.1
|
|
|
|
dodoc README.txt Licence.txt ${PN}.cfg-sample
|
|
dodoc -r examples
|
|
docinto html
|
|
dodoc docs/*.{html,gif,css,ico}
|
|
dodoc -r how-to
|
|
docinto cgi
|
|
dodoc anlgform.pl
|
|
|
|
insinto /usr/share/analog/images ; doins images/*
|
|
insinto /usr/share/analog/lang ; doins lang/*
|
|
dodir /var/log/analog
|
|
dosym ../../../usr/share/analog/images /var/log/analog/images
|
|
insinto /etc/analog ; doins "${FILESDIR}/analog.cfg"
|
|
dobin analog
|
|
}
|