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

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

1.461   ! bsiegert    1: # $NetBSD: Makefile,v 1.460 2015/03/11 19:09:38 rillig Exp $
1.1       tsarna      2:
1.461   ! bsiegert    3: PKGNAME=       pkglint-4.154
1.305     rillig      4: CATEGORIES=    pkgtools
1.1       tsarna      5:
1.415     wiz         6: OWNER=         wiz@NetBSD.org
1.365     kano        7: HOMEPAGE=      http://www.NetBSD.org/docs/pkgsrc/
1.369     rillig      8: COMMENT=       Verifier for NetBSD packages
1.435     rillig      9: LICENSE=       2-clause-bsd
1.101     hubertf    10:
1.305     rillig     11: DEPENDS+=      p5-Digest-SHA1-[0-9]*:../../security/p5-Digest-SHA1
1.357     rillig     12: DEPENDS+=      p5-enum>=1.016:../../devel/p5-enum
1.334     rillig     13: DEPENDS+=      p5-pkgsrc-Dewey>=1.0:../../pkgtools/p5-pkgsrc-Dewey
1.1       tsarna     14:
1.458     wiz        15: #BUILD_DEPENDS+=       p5-Test-Deep-[0-9]*:../../devel/p5-Test-Deep
                     16: #BUILD_DEPENDS+=       p5-Test-Trap-[0-9]*:../../devel/p5-Test-Trap
1.424     schmonz    17:
1.176     agc        18: WRKSRC=                ${WRKDIR}
1.391     cheusov    19: NO_CHECKSUM=   yes
1.343     rillig     20: USE_LANGUAGES= # none
1.436     dholland   21: USE_TOOLS+=    perl:run
1.367     rillig     22: AUTO_MKDIRS=   yes
1.174     jlam       23:
1.360     rillig     24: .include "../../mk/bsd.prefs.mk"
                     25:
1.207     wiz        26: SUBST_CLASSES+=                pkglint
1.240     rillig     27: SUBST_STAGE.pkglint=   post-configure
1.425     schmonz    28: SUBST_FILES.pkglint+=  build.pl pkglint.pl pkglint.t plist-clash.pl
1.302     rillig     29: .if defined(BATCH)
1.333     rillig     30: SUBST_SED.pkglint+=    -e s\|@PKGSRCDIR@\|/usr/pkgsrc\|g
1.302     rillig     31: .else
1.336     rillig     32: SUBST_SED.pkglint+=    -e s\|@PKGSRCDIR@\|${PKGSRCDIR}\|g
1.302     rillig     33: .endif
1.336     rillig     34: SUBST_SED.pkglint+=    -e s\|@PREFIX@\|${PREFIX}\|g
1.440     obache     35: SUBST_SED.pkglint+=    -e s\|@DISTVER@\|${PKGNAME:S/pkglint-//}\|g
1.333     rillig     36: SUBST_SED.pkglint+=    -e s\|@MAKE@\|${MAKE:Q}\|g
                     37: SUBST_SED.pkglint+=    -e s\|@PERL@\|${PERL5:Q}\|g
1.426     schmonz    38: SUBST_SED.pkglint+=    -e s\|@DATADIR@\|${FILESDIR}\|g
                     39:
                     40: SUBST_CLASSES+=                mappaths
                     41: SUBST_STAGE.mappaths=  pre-install
                     42: SUBST_FILES.mappaths+= pkglint.pl
                     43: SUBST_SED.mappaths+=   -e s\|${FILESDIR}\|${PREFIX}/share/pkglint\|g
1.180     jschauma   44:
1.186     jschauma   45: do-extract:
1.425     schmonz    46:        cd ${FILESDIR} && ${CP} build.pl pkglint.0 pkglint.1 pkglint.pl pkglint.t plist-clash.pl ${WRKSRC}
                     47:        mkdir ${WRKSRC}/PkgLint
                     48:        cd ${FILESDIR} && ${CP} PkgLint/*.pm ${WRKSRC}/PkgLint
                     49:
                     50: do-build:
                     51:        cd ${WRKSRC} && ${PERL5} build.pl < pkglint.pl > pkglint.pl.inlined \
                     52:                && mv pkglint.pl.inlined pkglint.pl
1.424     schmonz    53:
                     54: do-test:
                     55:        cd ${WRKSRC} && prove pkglint.t
1.186     jschauma   56:
1.1       tsarna     57: do-install:
1.354     joerg      58:        ${INSTALL_SCRIPT} ${WRKSRC}/pkglint.pl ${DESTDIR}${PREFIX}/bin/pkglint
                     59:        ${INSTALL_SCRIPT} ${WRKSRC}/plist-clash.pl ${DESTDIR}${PREFIX}/bin/plist-clash
1.364     rillig     60: .if !empty(MANINSTALL:Mcatinstall)
1.434     jperkin    61: .  if defined(CATMAN_SECTION_SUFFIX) && !empty(CATMAN_SECTION_SUFFIX:M[Yy][Ee][Ss])
                     62:        ${INSTALL_MAN} ${WRKSRC}/pkglint.0 ${DESTDIR}${PREFIX}/${PKGMANDIR}/cat1/pkglint.1
                     63: .  else
1.364     rillig     64:        ${INSTALL_MAN} ${WRKSRC}/pkglint.0 ${DESTDIR}${PREFIX}/${PKGMANDIR}/cat1
1.434     jperkin    65: .  endif
1.364     rillig     66: .endif
1.238     rillig     67: .if !empty(MANINSTALL:Mmaninstall)
1.354     joerg      68:        ${INSTALL_MAN} ${WRKSRC}/pkglint.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
1.238     rillig     69: .endif
1.354     joerg      70:        ${INSTALL_DATA} ${FILESDIR}/makevars.map ${DESTDIR}${PREFIX}/share/pkglint/
                     71:        ${INSTALL_DATA} ${FILESDIR}/deprecated.map ${DESTDIR}${PREFIX}/share/pkglint/
1.247     rillig     72:
1.356     rillig     73: selftest: .PHONY
1.376     rillig     74:        ${PREFIX}/bin/pkglint
1.356     rillig     75:
1.1       tsarna     76: .include "../../mk/bsd.pkg.mk"

CVSweb <webmaster@jp.NetBSD.org>