analog-6.0-r4.ebuild 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=4
  4. inherit eutils toolchain-funcs
  5. DESCRIPTION="A webserver log analyzer"
  6. HOMEPAGE="http://www.c-amie.co.uk/analog/"
  7. SRC_URI="http://www.analog.cx/${P}.tar.gz"
  8. LICENSE="GPL-2"
  9. SLOT="0"
  10. KEYWORDS="alpha amd64 arm hppa ppc ppc64 sparc x86"
  11. IUSE=""
  12. DEPEND=">=dev-libs/libpcre-3.4
  13. >=media-libs/gd-1.8.4-r2[jpeg,png]
  14. sys-libs/zlib"
  15. RDEPEND="${DEPEND}"
  16. src_prepare() {
  17. cd src/
  18. epatch "${FILESDIR}/${PN}-5.1-gentoo.diff"
  19. epatch "${FILESDIR}/${P}-bzip2.patch"
  20. epatch "${FILESDIR}/${P}-undefined-macro.patch"
  21. sed -i Makefile \
  22. -e 's| -o | $(LDFLAGS)&|g' \
  23. || die "sed Makefile"
  24. }
  25. src_compile() {
  26. tc-export CC
  27. # emake in main dir just executes "cd src && make",
  28. # i.e. MAKEOPTS are ignored
  29. emake -C src
  30. }
  31. src_install() {
  32. dobin analog
  33. newman analog.man analog.1
  34. dodoc README.txt Licence.txt analog.cfg
  35. dohtml -a html,gif,css,ico docs/*
  36. dohtml -r how-to
  37. dodoc -r examples
  38. docinto cgi ; dodoc anlgform.pl
  39. insinto /usr/share/analog/images ; doins images/*
  40. insinto /usr/share/analog/lang ; doins lang/*
  41. dodir /var/log/analog
  42. dosym /usr/share/analog/images /var/log/analog/images
  43. insinto /etc/analog ; doins "${FILESDIR}/analog.cfg"
  44. }