ii-1.7.ebuild 780 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # Copyright 1999-2014 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=4
  4. inherit fixheadtails toolchain-funcs
  5. DESCRIPTION="A minimalist FIFO and filesystem-based IRC client"
  6. HOMEPAGE="http://tools.suckless.org/ii/"
  7. SRC_URI="http://dl.suckless.org/tools/${P}.tar.gz"
  8. LICENSE="MIT"
  9. SLOT="0"
  10. KEYWORDS="~amd64 ~x86 ~amd64-linux"
  11. IUSE=""
  12. src_prepare() {
  13. sed -i \
  14. -e "s/CFLAGS = -g -O0/CFLAGS += /" \
  15. -e "s/LDFLAGS =/LDFLAGS +=/" \
  16. -e /^LIBS/d \
  17. config.mk || die "sed failed to fix {C,LD}FLAGS"
  18. # enable verbose build
  19. sed -i 's/@${CC}/${CC}/' Makefile || die
  20. ht_fix_file query.sh
  21. }
  22. src_compile() {
  23. emake CC="$(tc-getCC)"
  24. }
  25. src_install() {
  26. dobin ii
  27. newbin query.sh ii-query
  28. dodoc CHANGES FAQ README
  29. doman *.1
  30. }