ccze-0.2.1-r3.ebuild 946 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit fixheadtails autotools eutils toolchain-funcs
  5. DESCRIPTION="A flexible and fast logfile colorizer"
  6. HOMEPAGE="https://dev.gentoo.org/~joker/ccze/ccze.txt"
  7. SRC_URI="mirror://gentoo/${P}.tar.gz"
  8. RESTRICT="test"
  9. LICENSE="GPL-2"
  10. SLOT="0"
  11. KEYWORDS="amd64 ~arm ppc x86 ~x86-fbsd"
  12. IUSE=""
  13. DEPEND="dev-libs/libpcre
  14. sys-libs/ncurses:0="
  15. RDEPEND="${DEPEND}"
  16. DOCS=( AUTHORS ChangeLog ChangeLog-0.1 NEWS THANKS README FAQ )
  17. src_prepare() {
  18. epatch "${FILESDIR}"/ccze-fbsd.patch
  19. epatch "${FILESDIR}"/ccze-segfault.patch
  20. epatch "${FILESDIR}"/ccze-ldflags.patch
  21. epatch "${FILESDIR}"/${P}-tinfo.patch
  22. # GCC 4.x fixes
  23. sed -e 's/-Wswitch -Wmulticharacter/-Wswitch/' \
  24. -i src/Makefile.in || die
  25. sed -e '/AC_CHECK_TYPE(error_t, int)/d' \
  26. -i configure.ac || die
  27. eautoreconf
  28. ht_fix_file Rules.mk.in
  29. tc-export CC
  30. }