You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sci-chemistry/surf/surf-1.0.ebuild

45 lines
834 B

# 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
}