biology/minimap2: install minimap2 program instead of python binding

The distfile for minimap2 includes two different components: (i) the
minimap2 sequence mapping program itself, and (ii) a python binding
generally referred to as mappy.  The initial version of this package
included only the python binding.  However, it is more appropriate
that the minimap2 package should contain the program of the same name,
and a new package be created with the name mappy for the python
binding.  Splitting these into two packages makes sense, because this
allows users to install the minimap2 package without python
dependencies.
This commit is contained in:
brook 2021-05-29 17:35:18 +00:00
parent 4cd4ea185b
commit c2288fd3db
2 changed files with 11 additions and 19 deletions

View file

@ -1,29 +1,27 @@
# $NetBSD: Makefile,v 1.1 2021/05/26 18:49:20 brook Exp $
# $NetBSD: Makefile,v 1.2 2021/05/29 17:35:18 brook Exp $
GITHUB_PROJECT= minimap2
GITHUB_TAG= refs/tags/v2.18
DISTNAME= v2.18
PKGNAME= ${GITHUB_PROJECT}-${DISTNAME:S,^v,,}
PKGREVISION= 1
CATEGORIES= biology python
MASTER_SITES= ${MASTER_SITE_GITHUB:=lh3/}
DIST_SUBDIR= ${GITHUB_PROJECT}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://github.com/lh3/minimap2
COMMENT= Minimap2 python binding
COMMENT= Sequence alignment program for noisy, long reads
LICENSE= mit
WRKSRC= ${WRKDIR}/minimap2-2.18
USE_TOOLS+= gmake
INSTALLATION_DIRS+= share/examples/minimap2
INSTALLATION_DIRS+= bin ${PKGMANDIR}/man1
post-install:
${INSTALL_DATA} ${WRKSRC}/README.md ${DESTDIR}${PREFIX}/share/examples/minimap2
${INSTALL_DATA} ${WRKSRC}/cookbook.md ${DESTDIR}${PREFIX}/share/examples/minimap2
do-install:
${INSTALL} ${WRKSRC}/minimap2 ${DESTDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/minimap2.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
BUILDLINK_DEPENDS.py-cython+= build
BUILDLINK_API_DEPENDS.py-cython+= ${PYPKGPREFIX}-cython>=0.29.23
.include "../../devel/py-cython/buildlink3.mk"
.include "../../lang/python/egg.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

View file

@ -1,9 +1,3 @@
@comment $NetBSD: PLIST,v 1.1 2021/05/26 18:49:20 brook Exp $
bin/minimap2.py
${PYSITELIB}/mappy-${PKGVERSION}-py${PYVERSSUFFIX}.egg-info/PKG-INFO
${PYSITELIB}/mappy-${PKGVERSION}-py${PYVERSSUFFIX}.egg-info/SOURCES.txt
${PYSITELIB}/mappy-${PKGVERSION}-py${PYVERSSUFFIX}.egg-info/dependency_links.txt
${PYSITELIB}/mappy-${PKGVERSION}-py${PYVERSSUFFIX}.egg-info/top_level.txt
${PYSITELIB}/mappy.so
share/examples/minimap2/README.md
share/examples/minimap2/cookbook.md
@comment $NetBSD: PLIST,v 1.2 2021/05/29 17:35:18 brook Exp $
bin/minimap2
man/man1/minimap2.1