pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

cdhit: install documentation and various minor improvements



Module Name:	pkgsrc-wip
Committed By:	Leonardo Taccari <leot%NetBSD.org@localhost>
Pushed By:	leot
Date:		Wed Oct 7 20:16:12 2015 +0200
Changeset:	b5a74d1238970eb3b465391b2418e94508935ada

Modified Files:
	cdhit/Makefile
	cdhit/PLIST

Log Message:
cdhit: install documentation and various minor improvements

o Install the documentation
o SUBST_FILES.* do not need WRKSRC
o Add SUBST_MESSAGE.*s

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=b5a74d1238970eb3b465391b2418e94508935ada

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 cdhit/Makefile | 14 ++++++++++----
 cdhit/PLIST    |  3 ++-
 2 files changed, 12 insertions(+), 5 deletions(-)

diffs:
diff --git a/cdhit/Makefile b/cdhit/Makefile
index 2a25754..212885d 100644
--- a/cdhit/Makefile
+++ b/cdhit/Makefile
@@ -7,6 +7,7 @@
 DISTNAME=	cdhit-4.6.4
 CATEGORIES=	biology
 MASTER_SITES=	${MASTER_SITE_GITHUB:=weizhongli/}
+GITHUB_TAG=	V${PKGVERSION_NOREV}
 
 MAINTAINER=	jwbacon%tds.net@localhost
 HOMEPAGE=	http://weizhong-lab.ucsd.edu/cd-hit/
@@ -16,23 +17,28 @@ LICENSE=	gnu-gpl-v2
 USE_LANGUAGES=	c++
 USE_TOOLS+=	bash:run gmake perl
 REPLACE_PERL=	*.pl
-GITHUB_TAG=	V${PKGVERSION}
 
 # Restore default overridden by GITHUB_TAG
 WRKSRC=		${WRKDIR}/${DISTNAME}
 
 SUBST_CLASSES+=		compiler
 SUBST_STAGE.compiler=	post-patch
-SUBST_FILES.compiler=	${WRKSRC}/${MAKE_FILE}
+SUBST_MESSAGE.compiler=	Fixing hardcoded compiler name
+SUBST_FILES.compiler=	${MAKE_FILE}
 SUBST_SED.compiler=	-e 's|g++|${CXX:Q}|g'
 
 SUBST_CLASSES+=		bash
 SUBST_STAGE.bash=	post-patch
-SUBST_FILES.bash=	${WRKSRC}/cd-hit-2d-para.pl ${WRKSRC}/cd-hit-para.pl
+SUBST_MESSAGE.bash=	Fixing bash path
+SUBST_FILES.bash=	cd-hit-2d-para.pl cd-hit-para.pl
 SUBST_SED.bash=		-e 's|/bin/bash|${PREFIX}/bin/bash|g'
 
 MAKE_FLAGS+=		openmp=yes PREFIX=${DESTDIR}${PREFIX}/bin
 
-INSTALLATION_DIRS=	bin
+DOCDIR=			${PREFIX}/share/doc/cdhit
+INSTALLATION_DIRS+=	bin ${DOCDIR}
+
+post-install:
+	${INSTALL_DATA} ${WRKSRC}/doc/cdhit-user-guide.pdf ${DESTDIR}${DOCDIR}
 
 .include "../../mk/bsd.pkg.mk"
diff --git a/cdhit/PLIST b/cdhit/PLIST
index 1eeaec8..387d03d 100644
--- a/cdhit/PLIST
+++ b/cdhit/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.1 2015/09/18 13:44:08 outpaddling Exp $
+@comment $NetBSD$
 bin/cd-hit
 bin/cd-hit-2d
 bin/cd-hit-2d-para.pl
@@ -32,3 +32,4 @@ bin/clstr_sql_tbl_sort.pl
 bin/make_multi_seq.pl
 bin/plot_2d.pl
 bin/plot_len1.pl
+share/doc/cdhit/cdhit-user-guide.pdf


Home | Main Index | Thread Index | Old Index