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

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

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

CVSweb <webmaster@jp.NetBSD.org>