sic-1.2.ebuild 710 B

123456789101112131415161718192021222324252627282930313233343536
  1. # Copyright 1999-2014 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=4
  4. inherit toolchain-funcs
  5. DESCRIPTION="An extremly simple IRC client"
  6. HOMEPAGE="http://tools.suckless.org/sic"
  7. SRC_URI="http://dl.suckless.org/tools/${P}.tar.gz"
  8. LICENSE="MIT"
  9. SLOT="0"
  10. KEYWORDS="amd64 x86 ~x86-fbsd"
  11. IUSE=""
  12. src_prepare() {
  13. sed -i \
  14. -e "s/CFLAGS =/CFLAGS +=/g" \
  15. -e "s/-Os//" \
  16. -e "s/LDFLAGS = -s/LDFLAGS +=/" \
  17. -e "/^LIBS =/d" \
  18. -e "s/= cc/= $(tc-getCC)/g" \
  19. config.mk || die "sed failed"
  20. # enable verbose build
  21. sed -i 's/@${CC}/${CC}/' Makefile || die
  22. }
  23. src_compile() {
  24. emake CC="$(tc-getCC)"
  25. }
  26. src_install() {
  27. emake DESTDIR="${D}" PREFIX="/usr" install
  28. }