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

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

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

CVSweb <webmaster@jp.NetBSD.org>