surf-1.0.ebuild 827 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # Copyright 1999-2013 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI="4"
  4. inherit toolchain-funcs
  5. DESCRIPTION="Solvent accesible Surface calculator"
  6. HOMEPAGE="http://www.ks.uiuc.edu/"
  7. SRC_URI="http://www.ks.uiuc.edu/Research/vmd/extsrcs/surf.tar.Z -> ${P}.tar.Z"
  8. LICENSE="SURF"
  9. SLOT="0"
  10. KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~x86-macos"
  11. IUSE=""
  12. DEPEND="
  13. !www-client/surf
  14. sys-apps/ed
  15. x11-misc/makedepend"
  16. RDEPEND=""
  17. S=${WORKDIR}
  18. src_prepare() {
  19. sed \
  20. -e 's:$(CC) $(CFLAGS) $(OBJS):$(CC) $(CFLAGS) $(LDFLAGS) $(OBJS):g' \
  21. -i Makefile || die
  22. }
  23. src_compile() {
  24. emake depend \
  25. && emake \
  26. CC="$(tc-getCC)" \
  27. OPT_CFLAGS="${CFLAGS} \$(INCLUDE)" \
  28. CFLAGS="${CFLAGS} \$(INCLUDE)" \
  29. || die
  30. }
  31. src_install() {
  32. dobin ${PN} || die
  33. dodoc README || die
  34. }