Thu Jul 9 19:48:23 2009 UTC ()
user-destdir support. Deal with bash dependency. Bump revision.


(joerg)
diff -r1.2 -r1.3 pkgsrc/graphics/circos/Makefile

cvs diff -r1.2 -r1.3 pkgsrc/graphics/circos/Makefile (expand / switch to unified diff)

--- pkgsrc/graphics/circos/Makefile 2009/05/04 22:26:56 1.2
+++ pkgsrc/graphics/circos/Makefile 2009/07/09 19:48:23 1.3
@@ -1,28 +1,31 @@ @@ -1,28 +1,31 @@
1# $NetBSD: Makefile,v 1.2 2009/05/04 22:26:56 schmonz Exp $ 1# $NetBSD: Makefile,v 1.3 2009/07/09 19:48:23 joerg Exp $
2# 2#
3 3
4DISTNAME= circos-0.49 4DISTNAME= circos-0.49
 5PKGREVISION= 1
5CATEGORIES= graphics 6CATEGORIES= graphics
6MASTER_SITES= http://mkweb.bcgsc.ca/circos/distribution/ 7MASTER_SITES= http://mkweb.bcgsc.ca/circos/distribution/
7EXTRACT_SUFX= .tgz 8EXTRACT_SUFX= .tgz
8 9
9MAINTAINER= schmonz@NetBSD.org 10MAINTAINER= schmonz@NetBSD.org
10HOMEPAGE= http://mkweb.bcgsc.ca/circos/ 11HOMEPAGE= http://mkweb.bcgsc.ca/circos/
11COMMENT= Concise, explanatory, unique and print-ready data visualization 12COMMENT= Concise, explanatory, unique and print-ready data visualization
12#LICENSE= 13#LICENSE=
13 14
 15PKG_DESTDIR_SUPPORT= user-destdir
 16
14USE_LANGUAGES= # none 17USE_LANGUAGES= # none
15USE_TOOLS+= pax perl 18USE_TOOLS+= pax perl bash:run
16NO_BUILD= yes 19NO_BUILD= yes
17 20
18DEPENDS+= p5-Clone-[0-9]*:../../devel/p5-Clone 21DEPENDS+= p5-Clone-[0-9]*:../../devel/p5-Clone
19DEPENDS+= p5-Config-General-[0-9]*:../../devel/p5-Config-General 22DEPENDS+= p5-Config-General-[0-9]*:../../devel/p5-Config-General
20DEPENDS+= p5-GD-[0-9]*:../../graphics/p5-GD 23DEPENDS+= p5-GD-[0-9]*:../../graphics/p5-GD
21DEPENDS+= p5-Math-Bezier-[0-9]*:../../math/p5-Math-Bezier 24DEPENDS+= p5-Math-Bezier-[0-9]*:../../math/p5-Math-Bezier
22DEPENDS+= p5-Math-Round-[0-9]*:../../math/p5-Math-Round 25DEPENDS+= p5-Math-Round-[0-9]*:../../math/p5-Math-Round
23DEPENDS+= p5-Math-VecStat-[0-9]*:../../math/p5-Math-VecStat 26DEPENDS+= p5-Math-VecStat-[0-9]*:../../math/p5-Math-VecStat
24DEPENDS+= p5-Params-Validate-[0-9]*:../../devel/p5-Params-Validate 27DEPENDS+= p5-Params-Validate-[0-9]*:../../devel/p5-Params-Validate
25DEPENDS+= p5-Set-IntSpan>=1.11*:../../devel/p5-Set-IntSpan 28DEPENDS+= p5-Set-IntSpan>=1.11*:../../devel/p5-Set-IntSpan
26 29
27PKG_SYSCONFSUBDIR= ${PKGBASE} 30PKG_SYSCONFSUBDIR= ${PKGBASE}
28INSTALLATION_DIRS+= bin share/${PKGBASE} ${FONTDIR} ${EGDIR} 31INSTALLATION_DIRS+= bin share/${PKGBASE} ${FONTDIR} ${EGDIR}
@@ -31,37 +34,39 @@ EGDIR= share/examples/${PKGBASE} @@ -31,37 +34,39 @@ EGDIR= share/examples/${PKGBASE}
31 34
32CONF_FILES+= ${EGDIR}/colors.conf ${PKG_SYSCONFDIR}/colors.conf 35CONF_FILES+= ${EGDIR}/colors.conf ${PKG_SYSCONFDIR}/colors.conf
33CONF_FILES+= ${EGDIR}/fonts.conf ${PKG_SYSCONFDIR}/fonts.conf 36CONF_FILES+= ${EGDIR}/fonts.conf ${PKG_SYSCONFDIR}/fonts.conf
34 37
35SUBST_CLASSES+= paths 38SUBST_CLASSES+= paths
36SUBST_STAGE.paths= do-configure 39SUBST_STAGE.paths= do-configure
37SUBST_FILES.paths= */*/*/circos*.conf bin/circos 40SUBST_FILES.paths= */*/*/circos*.conf bin/circos
38SUBST_SED.paths+= -e 's|<<include etc/\(.*\)>>|<<include ${PKG_SYSCONFDIR}/\1>>|g' 41SUBST_SED.paths+= -e 's|<<include etc/\(.*\)>>|<<include ${PKG_SYSCONFDIR}/\1>>|g'
39SUBST_SED.paths+= -e 's|@PREFIX@|${PREFIX}|g' 42SUBST_SED.paths+= -e 's|@PREFIX@|${PREFIX}|g'
40 43
41REPLACE_PERL+= data/3/make_random_highlights data/6/hist.random.make 44REPLACE_PERL+= data/3/make_random_highlights data/6/hist.random.make
42REPLACE_PERL+= svg/textrotation.svg 45REPLACE_PERL+= svg/textrotation.svg
43 46
 47REPLACE_BASH+= data/6/gene.density
 48
44post-extract: 49post-extract:
45 cd ${WRKSRC} && rm -f bin/${PKGBASE} \ 50 cd ${WRKSRC} && rm -f bin/${PKGBASE} \
46 && mv bin/${PKGNAME_NOREV} bin/${PKGBASE} 51 && mv bin/${PKGNAME_NOREV} bin/${PKGBASE}
47 52
48do-configure: 53do-configure:
49 cd ${WRKSRC} && ( ${ECHO} ${PERL5:Q} ; ${ECHO} ) | ./install 54 cd ${WRKSRC} && ( ${ECHO} ${PERL5:Q} ; ${ECHO} ) | ${BASH} ./install
50 55
51pre-configure: 56pre-configure:
52 cd ${WRKSRC} && rm -f bin/*.orig 57 cd ${WRKSRC} && rm -f bin/*.orig
53 58
54do-install: 59do-install:
55 cd ${WRKSRC} && \ 60 cd ${WRKSRC} && \
56 for f in CHANGES README TODO; do \ 61 for f in CHANGES README TODO; do \
57 ${INSTALL_DATA} $${f} ${PREFIX}/share/doc/${PKGBASE}; \ 62 ${INSTALL_DATA} $${f} ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}; \
58 done; \ 63 done; \
59 for f in bin/*; do \ 64 for f in bin/*; do \
60 ${INSTALL_SCRIPT} $${f} ${PREFIX}/bin; \ 65 ${INSTALL_SCRIPT} $${f} ${DESTDIR}${PREFIX}/bin; \
61 done; \ 66 done; \
62 for f in etc/*; do \ 67 for f in etc/*; do \
63 ${INSTALL_DATA} $${f} ${PREFIX}/${EGDIR}; \ 68 ${INSTALL_DATA} $${f} ${DESTDIR}${PREFIX}/${EGDIR}; \
64 done; \ 69 done; \
65 pax -rw -pp data fonts images svg tutorials ${PREFIX}/share/circos 70 pax -rw -pp data fonts images svg tutorials ${DESTDIR}${PREFIX}/share/circos
66 71
67.include "../../mk/bsd.pkg.mk" 72.include "../../mk/bsd.pkg.mk"