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

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

1.450   ! wiz         1: # $NetBSD: Makefile,v 1.449 2014/06/25 17:51:55 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.450   ! wiz         6: PKGNAME=       pkglint-4.145
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.427     schmonz    18: BUILD_DEPENDS+=        p5-Test-Deep-[0-9]*:../../devel/p5-Test-Deep
1.424     schmonz    19: BUILD_DEPENDS+=        p5-Test-Trap-[0-9]*:../../devel/p5-Test-Trap
                     20:
1.174     jlam       21: PKG_INSTALLATION_TYPES=        overwrite pkgviews
1.1       tsarna     22:
1.176     agc        23: WRKSRC=                ${WRKDIR}
1.391     cheusov    24: NO_CHECKSUM=   yes
1.343     rillig     25: USE_LANGUAGES= # none
1.436     dholland   26: USE_TOOLS+=    perl:run
1.367     rillig     27: AUTO_MKDIRS=   yes
1.174     jlam       28:
1.360     rillig     29: .include "../../mk/bsd.prefs.mk"
                     30:
1.207     wiz        31: SUBST_CLASSES+=                pkglint
1.240     rillig     32: SUBST_STAGE.pkglint=   post-configure
1.425     schmonz    33: SUBST_FILES.pkglint+=  build.pl pkglint.pl pkglint.t plist-clash.pl
1.302     rillig     34: .if defined(BATCH)
1.333     rillig     35: SUBST_SED.pkglint+=    -e s\|@PKGSRCDIR@\|/usr/pkgsrc\|g
1.302     rillig     36: .else
1.336     rillig     37: SUBST_SED.pkglint+=    -e s\|@PKGSRCDIR@\|${PKGSRCDIR}\|g
1.302     rillig     38: .endif
1.336     rillig     39: SUBST_SED.pkglint+=    -e s\|@PREFIX@\|${PREFIX}\|g
1.440     obache     40: SUBST_SED.pkglint+=    -e s\|@DISTVER@\|${PKGNAME:S/pkglint-//}\|g
1.333     rillig     41: SUBST_SED.pkglint+=    -e s\|@MAKE@\|${MAKE:Q}\|g
                     42: SUBST_SED.pkglint+=    -e s\|@PERL@\|${PERL5:Q}\|g
1.426     schmonz    43: SUBST_SED.pkglint+=    -e s\|@DATADIR@\|${FILESDIR}\|g
                     44:
                     45: SUBST_CLASSES+=                mappaths
                     46: SUBST_STAGE.mappaths=  pre-install
                     47: SUBST_FILES.mappaths+= pkglint.pl
                     48: SUBST_SED.mappaths+=   -e s\|${FILESDIR}\|${PREFIX}/share/pkglint\|g
1.180     jschauma   49:
1.186     jschauma   50: do-extract:
1.425     schmonz    51:        cd ${FILESDIR} && ${CP} build.pl pkglint.0 pkglint.1 pkglint.pl pkglint.t plist-clash.pl ${WRKSRC}
                     52:        mkdir ${WRKSRC}/PkgLint
                     53:        cd ${FILESDIR} && ${CP} PkgLint/*.pm ${WRKSRC}/PkgLint
                     54:
                     55: do-build:
                     56:        cd ${WRKSRC} && ${PERL5} build.pl < pkglint.pl > pkglint.pl.inlined \
                     57:                && mv pkglint.pl.inlined pkglint.pl
1.424     schmonz    58:
                     59: do-test:
                     60:        cd ${WRKSRC} && prove pkglint.t
1.186     jschauma   61:
1.1       tsarna     62: do-install:
1.354     joerg      63:        ${INSTALL_SCRIPT} ${WRKSRC}/pkglint.pl ${DESTDIR}${PREFIX}/bin/pkglint
                     64:        ${INSTALL_SCRIPT} ${WRKSRC}/plist-clash.pl ${DESTDIR}${PREFIX}/bin/plist-clash
1.364     rillig     65: .if !empty(MANINSTALL:Mcatinstall)
1.434     jperkin    66: .  if defined(CATMAN_SECTION_SUFFIX) && !empty(CATMAN_SECTION_SUFFIX:M[Yy][Ee][Ss])
                     67:        ${INSTALL_MAN} ${WRKSRC}/pkglint.0 ${DESTDIR}${PREFIX}/${PKGMANDIR}/cat1/pkglint.1
                     68: .  else
1.364     rillig     69:        ${INSTALL_MAN} ${WRKSRC}/pkglint.0 ${DESTDIR}${PREFIX}/${PKGMANDIR}/cat1
1.434     jperkin    70: .  endif
1.364     rillig     71: .endif
1.238     rillig     72: .if !empty(MANINSTALL:Mmaninstall)
1.354     joerg      73:        ${INSTALL_MAN} ${WRKSRC}/pkglint.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
1.238     rillig     74: .endif
1.354     joerg      75:        ${INSTALL_DATA} ${FILESDIR}/makevars.map ${DESTDIR}${PREFIX}/share/pkglint/
                     76:        ${INSTALL_DATA} ${FILESDIR}/deprecated.map ${DESTDIR}${PREFIX}/share/pkglint/
1.247     rillig     77:
1.356     rillig     78: selftest: .PHONY
1.376     rillig     79:        ${PREFIX}/bin/pkglint
1.356     rillig     80:
1.1       tsarna     81: .include "../../mk/bsd.pkg.mk"

CVSweb <webmaster@jp.NetBSD.org>