Add files from parent branch HEAD:
[pkgsrc.git] / news / hellanzb / Makefile
1 # $NetBSD: Makefile,v 1.1.1.1 2008/07/30 13:26:39 bjs Exp $
2 #
3 .include "../../news/hellanzb/Makefile.version"
4
5 DISTNAME=               hellanzb-${HELLANZB_VERSION}.${HELLANZB_SVN_REV}
6 PKGREVISION=            1
7 CATEGORIES=             news
8 MASTER_SITES=           ${MASTER_SITE_LOCAL}
9
10 MAINTAINER=             bjs@NetBSD.org
11 HOMEPAGE=               http://www.hellanzb.com:8080/trac
12 COMMENT=                Command line nntp file grabber
13
14 PKG_DESTDIR_SUPPORT=    user-destdir
15
16 DEPENDS+=       ${PYPKGPREFIX}-twisted>=1.3:../../net/py-twisted
17 DEPENDS+=       par2>=0.4:../../archivers/par2
18 DEPENDS+=       unrar>=3.5.4:../../archivers/unrar
19
20 PYDISTUTILSPKG= yes
21
22 PYTHON_VERSIONS_ACCEPTED=       25 24
23
24 EGDIR=          ${PREFIX}/share/examples/${PKGBASE}
25 WRKSRC=         ${WRKDIR}/hellanzb-${HELLANZB_VERSION}-trunk
26
27 CONF_FILES=     ${EGDIR}/hellanzb.conf ${PKG_SYSCONFDIR}/hellanzb.conf
28
29 SUBST_CLASSES+=         conf
30 SUBST_FILES.conf=       ${WRKDIR}/hellanzb.conf
31 SUBST_MESSAGE.conf=     Performing pathname substitutions in hellanzb.conf.
32 SUBST_STAGE.conf=       pre-install
33 SUBST_VARS.conf=        PREFIX
34
35 post-extract:
36         ${CP} ${FILESDIR}/hellanzb.conf ${WRKDIR}
37
38 post-install:
39         ${INSTALL_DATA_DIR} ${DESTDIR}${EGDIR}
40         ${INSTALL_DATA} ${WRKDIR}/hellanzb.conf ${DESTDIR}${EGDIR}
41
42 .include "../../lang/python/extension.mk"
43 .include "../../textproc/py-xml/buildlink3.mk"
44
45 .include "../../mk/bsd.pkg.mk"