aboutsummaryrefslogtreecommitdiff
blob: 7d58f33759e2d9913c747ce18414d8a711e0f605 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

DESCRIPTION="Manipulate CAF files and convert to GAP4 format (not GAP5), ACE, PHRAP"
HOMEPAGE="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC310697/"
SRC_URI="
	ftp://ftp.sanger.ac.uk/pub/PRODUCTION_SOFTWARE/src/${P}.tar.gz
	ftp://ftp.sanger.ac.uk/pub/PRODUCTION_SOFTWARE/src/${PN}-2.0.tar.gz"

LICENSE="GRL"
SLOT="0"
KEYWORDS="~amd64 ~x86"

DEPEND="
	sci-libs/io_lib
	dev-lang/perl"
RDEPEND="${DEPEND}"

PATCHES=(
	"${FILESDIR}"/Makefile.in-"${PV}".patch
)

src_prepare(){
	default
	mv "${WORKDIR}"/caftools-2.0/man/*.{1,5} "${S}"/man/ || die
}

src_configure(){
	default
	sed \
		-e 's:prefix = /usr:prefix = $(DESTDIR)/usr:' \
		-i Makefile src/Makefile || die
}

# TODO: the 2.0.2 archive lacks manpages compared to 2.0, FIXME
# The man/Makefile.in is screwed in 2.0.2 so we cannot use it to install the manpage files,
# not even copying over whole caftools-2.0/man/ to caftools-2.0.2/man does not help.
src_install(){
	default
	doman man/*.[1-5] || die
	elog "Some usage info is at http://sarton.imb-jena.de/software/consed2gap/"
	elog "for some reason caf_find_misassemblies is gone from 2.0.2 version"
}