diff options
author | Johann Visagie <wjv@FreeBSD.org> | 2002-08-14 13:19:06 +0000 |
---|---|---|
committer | Johann Visagie <wjv@FreeBSD.org> | 2002-08-14 13:19:06 +0000 |
commit | f364407476426dd5a64f210b85ff88c453b68551 (patch) | |
tree | 8d4e53f87c50ac0c17b87456d02d61a42f4f941b /lang/diveintopython/Makefile | |
parent | 54e435f4eb5302c5f8dc3c00807ec1851a259bdd (diff) | |
download | ports-f364407476426dd5a64f210b85ff88c453b68551.tar.gz ports-f364407476426dd5a64f210b85ff88c453b68551.zip |
Notes
Diffstat (limited to 'lang/diveintopython/Makefile')
-rw-r--r-- | lang/diveintopython/Makefile | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lang/diveintopython/Makefile b/lang/diveintopython/Makefile index e17c68c073b8..f50a18183e1a 100644 --- a/lang/diveintopython/Makefile +++ b/lang/diveintopython/Makefile @@ -6,7 +6,7 @@ # PORTNAME= diveintopython -PORTVERSION= 4.0.2 +PORTVERSION= 4.1 CATEGORIES= lang python MASTER_SITES= http://diveintopython.org/download/ DISTNAME= ${PORTNAME} @@ -14,6 +14,10 @@ DISTFILES= ${DISTNAME}-html-${VERSIONSTR}${EXTRACT_SUFX} \ ${DISTNAME}-html-flat-${VERSIONSTR}${EXTRACT_SUFX} \ ${DISTNAME}-pdf-${VERSIONSTR}${EXTRACT_SUFX} \ ${DISTNAME}-text-${VERSIONSTR}${EXTRACT_SUFX} \ + ${DISTNAME}-word-${VERSIONSTR}${EXTRACT_SUFX} \ + ${DISTNAME}-help-${VERSIONSTR}${EXTRACT_SUFX} \ + ${DISTNAME}-xml-${VERSIONSTR}${EXTRACT_SUFX} \ + ${DISTNAME}-common-${VERSIONSTR}${EXTRACT_SUFX} \ ${DISTNAME}-examples-${VERSIONSTR}${EXTRACT_SUFX} DIST_SUBDIR= ${PORTNAME} EXTRACT_ONLY= ${DISTNAME}-html-${VERSIONSTR}${EXTRACT_SUFX} @@ -21,21 +25,17 @@ EXTRACT_ONLY= ${DISTNAME}-html-${VERSIONSTR}${EXTRACT_SUFX} MAINTAINER= wjv@FreeBSD.org NO_BUILD= YES +USE_REINPLACE= YES USE_ZIP= YES WRKSRC= ${WRKDIR}/html DIPDLDIR= ${DOCSDIR}/download CPIO= cpio --quiet -pdum -R -VERSIONSTR= ${PORTVERSION:C|\.([^.]*)$|-\1|} +VERSIONSTR= ${PORTVERSION:C|(\.[^.]*)\.([^.]*)$|\1-\2|} PLIST_SUB+= VERSION=${VERSIONSTR} post-patch: - @ ${PERL} -pi.orig -e \ - 's#<div class="selfad"(.(?!</div>))*.</div>##; \ - s#<li[^>]*>(.(?!<li[^>]*>))*(Microsoft|Windows)(.(?!</li>))*.</li>##g; \ - s#<td>(.(?!<td>))*/(cn/|(es|fr)/[^"]|kr/)(.(?!</td>))*.</td>##g' \ - ${WRKSRC}/index.html - @ ${PERL} -pi -e \ - 's#http[^>]*(download/${PORTNAME}-examples-${VERSIONSTR}.zip)#$$1#' \ + @ ${REINPLACE_CMD} \ + "s#http[^>]*\(download/${PORTNAME}-examples-${VERSIONSTR}.zip\)#\1#" \ ${WRKSRC}/*.html do-install: @@ -44,7 +44,7 @@ do-install: | ${CPIO} ${SHAREOWN}:${SHAREGRP} ${DOCSDIR} @ cd ${WRKDIR}/py && find * \ | ${CPIO} ${SHAREOWN}:${SHAREGRP} ${EXAMPLESDIR} -.for format in html html-flat pdf text examples +.for format in html html-flat pdf text word help xml common examples @ ${INSTALL_DATA} \ ${DISTDIR}/${DIST_SUBDIR}/${PORTNAME}-${format}-${VERSIONSTR}.zip \ ${DIPDLDIR} |