~cypheon/pkgsrc-wip

pkgsrc-wip/ARC/Makefile -rw-r--r-- 1.8 KiB
5f1bf4f5 — Johann Rudloff Subst PLIST paths for platform specific files for other architectures 6 months ago
                                                                                
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
46
47
48
49
50
51
52
53
54
55
56
# $NetBSD$

PKGNAME=	ARC-1.1.4
DISTNAME=	ibest-ARC-v1.1.4-beta-0-g3831cb8
CATEGORIES=	biology
MASTER_SITES=	${MASTER_SITE_GITHUB:=ibest/ARC/tarball/master/}
MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	https://ibest.github.io/ARC/
COMMENT=	Genomics pipeline for de novo assemblies
LICENSE=	apache-2.0

WRKSRC=		${WRKDIR}/ibest-ARC-3831cb8
USE_TOOLS+=	pax
USE_LANGUAGES=	# none
PYDISTUTILSPKG=	yes

REPLACE_PYTHON+=	ARC/exceptions.py
REPLACE_PYTHON+=	ARC/runners/assembly_checker.py
REPLACE_PYTHON+=	ARC/runners/__init__.py
REPLACE_PYTHON+=	ARC/runners/base.py
REPLACE_PYTHON+=	ARC/runners/mapper.py
REPLACE_PYTHON+=	ARC/runners/finisher.py
REPLACE_PYTHON+=	ARC/runners/assembler.py
REPLACE_PYTHON+=	ARC/__init__.py
REPLACE_PYTHON+=	ARC/logger.py
REPLACE_PYTHON+=	ARC/queue.py
REPLACE_PYTHON+=	ARC/app.py
REPLACE_PYTHON+=	ARC/process_runner.py
REPLACE_PYTHON+=	ARC/spawn.py
REPLACE_PYTHON+=	ARC/config.py
REPLACE_PYTHON+=	ARC/functions.py
REPLACE_PYTHON+=	bin/ARC
REPLACE_PYTHON+=	test_data/unit_tests.py

DEPENDS+=	blat>=3.5:../../biology/blat
DEPENDS+=	SPAdes>=3.8.2:../../biology/SPAdes
DEPENDS+=	bowtie2>=2.2.9:../../biology/bowtie2
DEPENDS+=	${PYPKGPREFIX}-biopython>=1.63b:../../biology/py-biopython
DEPENDS+=	${PYPKGPREFIX}-sqlite3>=${PY_DISTVERSION}:../../databases/py-sqlite3

INSTALLATION_DIRS+=	share/doc/ARC share/examples/ARC
NONEXECUTABLE_FILES+=	test_data/clean test_data/runarc

post-extract:
.for f in ${NONEXECUTABLE_FILES}
	${CHMOD} a-x ${WRKSRC}/${f}
.endfor

post-install:
	${INSTALL_DATA} ${WRKSRC}/docs/Pipeline.pdf ${DESTDIR}${PREFIX}/share/doc/ARC
	cd ${WRKSRC}/test_data && ${PAX} -rw . ${DESTDIR}${PREFIX}/share/examples/ARC
	${RM} -f ${DESTDIR}${PREFIX}/share/examples/ARC/runarc.orig

.include "../../lang/python/application.mk"
.include "../../lang/python/extension.mk"
.include "../../mk/bsd.pkg.mk"