diff options
Diffstat (limited to 'sci-chemistry/surf/surf-1.0.ebuild')
-rw-r--r-- | sci-chemistry/surf/surf-1.0.ebuild | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/sci-chemistry/surf/surf-1.0.ebuild b/sci-chemistry/surf/surf-1.0.ebuild new file mode 100644 index 000000000000..eadfa758a755 --- /dev/null +++ b/sci-chemistry/surf/surf-1.0.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit toolchain-funcs + +DESCRIPTION="Solvent accesible Surface calculator" +HOMEPAGE="http://www.ks.uiuc.edu/" +SRC_URI="http://www.ks.uiuc.edu/Research/vmd/extsrcs/surf.tar.Z -> ${P}.tar.Z" + +LICENSE="SURF" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~x86-macos" +IUSE="" + +DEPEND=" + !www-client/surf + sys-apps/ed + x11-misc/makedepend" +RDEPEND="" + +S=${WORKDIR} + +src_prepare() { + sed \ + -e 's:$(CC) $(CFLAGS) $(OBJS):$(CC) $(CFLAGS) $(LDFLAGS) $(OBJS):g' \ + -i Makefile || die +} + +src_compile() { + emake depend \ + && emake \ + CC="$(tc-getCC)" \ + OPT_CFLAGS="${CFLAGS} \$(INCLUDE)" \ + CFLAGS="${CFLAGS} \$(INCLUDE)" \ + || die +} + +src_install() { + dobin ${PN} || die + dodoc README || die +} |