[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / pkgtools / pkglint

Annotation of pkgsrc/pkgtools/pkglint/Makefile, Revision 1.431

1.431   ! wiz         1: # $NetBSD: Makefile,v 1.430 2013/05/26 18:09:23 wiz Exp $
1.1       tsarna      2:
1.384     rillig      3: # Note: if you update the version number, please have a look at the
                      4: # changes between the CVS tag "pkglint_current" and HEAD.
                      5: # After updating, please re-set the CVS tag to HEAD.
1.430     wiz         6: DISTNAME=      pkglint-4.130
1.431   ! wiz         7: PKGREVISION=   1
1.305     rillig      8: CATEGORIES=    pkgtools
1.369     rillig      9: MASTER_SITES=  # none
                     10: DISTFILES=     # none
1.1       tsarna     11:
1.415     wiz        12: OWNER=         wiz@NetBSD.org
1.365     kano       13: HOMEPAGE=      http://www.NetBSD.org/docs/pkgsrc/
1.369     rillig     14: COMMENT=       Verifier for NetBSD packages
1.101     hubertf    15:
1.305     rillig     16: DEPENDS+=      p5-Digest-SHA1-[0-9]*:../../security/p5-Digest-SHA1
1.357     rillig     17: DEPENDS+=      p5-enum>=1.016:../../devel/p5-enum
1.334     rillig     18: DEPENDS+=      p5-pkgsrc-Dewey>=1.0:../../pkgtools/p5-pkgsrc-Dewey
1.1       tsarna     19:
1.427     schmonz    20: BUILD_DEPENDS+=        p5-Test-Deep-[0-9]*:../../devel/p5-Test-Deep
1.424     schmonz    21: BUILD_DEPENDS+=        p5-Test-Trap-[0-9]*:../../devel/p5-Test-Trap
                     22:
1.174     jlam       23: PKG_INSTALLATION_TYPES=        overwrite pkgviews
1.1       tsarna     24:
1.176     agc        25: WRKSRC=                ${WRKDIR}
1.391     cheusov    26: NO_CHECKSUM=   yes
1.343     rillig     27: USE_LANGUAGES= # none
1.426     schmonz    28: USE_TOOLS+=    perl
1.367     rillig     29: AUTO_MKDIRS=   yes
1.174     jlam       30:
1.360     rillig     31: .include "../../mk/bsd.prefs.mk"
                     32:
1.207     wiz        33: SUBST_CLASSES+=                pkglint
1.240     rillig     34: SUBST_STAGE.pkglint=   post-configure
1.425     schmonz    35: SUBST_FILES.pkglint+=  build.pl pkglint.pl pkglint.t plist-clash.pl
1.302     rillig     36: .if defined(BATCH)
1.333     rillig     37: SUBST_SED.pkglint+=    -e s\|@PKGSRCDIR@\|/usr/pkgsrc\|g
1.302     rillig     38: .else
1.336     rillig     39: SUBST_SED.pkglint+=    -e s\|@PKGSRCDIR@\|${PKGSRCDIR}\|g
1.302     rillig     40: .endif
1.336     rillig     41: SUBST_SED.pkglint+=    -e s\|@PREFIX@\|${PREFIX}\|g
1.376     rillig     42: SUBST_SED.pkglint+=    -e s\|@DISTVER@\|${DISTNAME:S/pkglint-//}\|g
1.333     rillig     43: SUBST_SED.pkglint+=    -e s\|@MAKE@\|${MAKE:Q}\|g
                     44: SUBST_SED.pkglint+=    -e s\|@PERL@\|${PERL5:Q}\|g
1.426     schmonz    45: SUBST_SED.pkglint+=    -e s\|@DATADIR@\|${FILESDIR}\|g
                     46:
                     47: SUBST_CLASSES+=                mappaths
                     48: SUBST_STAGE.mappaths=  pre-install
                     49: SUBST_FILES.mappaths+= pkglint.pl
                     50: SUBST_SED.mappaths+=   -e s\|${FILESDIR}\|${PREFIX}/share/pkglint\|g
1.180     jschauma   51:
1.325     rillig     52: # Note: This target is only intended for use by the pkglint author.
                     53: .PHONY: quick-install
                     54: quick-install:
1.336     rillig     55:        ${RM} -rf ${WRKSRC}
                     56:        ${MKDIR} ${WRKSRC}
1.425     schmonz    57:        ${MAKE} do-extract subst-pkglint do-build do-install selftest clean
1.325     rillig     58:
1.186     jschauma   59: do-extract:
1.425     schmonz    60:        cd ${FILESDIR} && ${CP} build.pl pkglint.0 pkglint.1 pkglint.pl pkglint.t plist-clash.pl ${WRKSRC}
                     61:        mkdir ${WRKSRC}/PkgLint
                     62:        cd ${FILESDIR} && ${CP} PkgLint/*.pm ${WRKSRC}/PkgLint
                     63:
                     64: do-build:
                     65:        cd ${WRKSRC} && ${PERL5} build.pl < pkglint.pl > pkglint.pl.inlined \
                     66:                && mv pkglint.pl.inlined pkglint.pl
1.424     schmonz    67:
                     68: do-test:
                     69:        cd ${WRKSRC} && prove pkglint.t
1.186     jschauma   70:
1.1       tsarna     71: do-install:
1.354     joerg      72:        ${INSTALL_SCRIPT} ${WRKSRC}/pkglint.pl ${DESTDIR}${PREFIX}/bin/pkglint
                     73:        ${INSTALL_SCRIPT} ${WRKSRC}/plist-clash.pl ${DESTDIR}${PREFIX}/bin/plist-clash
1.364     rillig     74: .if !empty(MANINSTALL:Mcatinstall)
                     75:        ${INSTALL_MAN} ${WRKSRC}/pkglint.0 ${DESTDIR}${PREFIX}/${PKGMANDIR}/cat1
                     76: .endif
1.238     rillig     77: .if !empty(MANINSTALL:Mmaninstall)
1.354     joerg      78:        ${INSTALL_MAN} ${WRKSRC}/pkglint.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
1.238     rillig     79: .endif
1.354     joerg      80:        ${INSTALL_DATA} ${FILESDIR}/makevars.map ${DESTDIR}${PREFIX}/share/pkglint/
                     81:        ${INSTALL_DATA} ${FILESDIR}/deprecated.map ${DESTDIR}${PREFIX}/share/pkglint/
1.247     rillig     82:
1.356     rillig     83: selftest: .PHONY
1.376     rillig     84:        ${PREFIX}/bin/pkglint
1.356     rillig     85:
1.1       tsarna     86: .include "../../mk/bsd.pkg.mk"

CVSweb <webmaster@jp.NetBSD.org>