# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

DESCRIPTION="Genome scaffolding using cross-species synteny"
HOMEPAGE="https://www.sanger.ac.uk/tool/crossgenome/"
SRC_URI="https://sourceforge.net/projects/phusion2/files/cross_genome/cross_genome.tar.gz -> ${P}.tar.gz"

LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~amd64"

S="${WORKDIR}"

src_prepare(){
	sed -e 's/^CC =/# CC =/' -i Makefile || die
	sed -e 's/^CFLAGS =/# CFLAGS =/' -i Makefile || die
	default
}

src_install(){
	# per upstream cross_genome.csh is not needed
	dobin cross_genome
	dodoc README
}