head	1.26;
access;
symbols
	RELEASE_8_3_0:1.23
	RELEASE_9_0_0:1.23
	RELEASE_7_4_0:1.23
	RELEASE_8_2_0:1.23
	RELEASE_6_EOL:1.23
	RELEASE_8_1_0:1.23
	RELEASE_7_3_0:1.23
	RELEASE_8_0_0:1.23
	RELEASE_7_2_0:1.23
	RELEASE_7_1_0:1.23
	RELEASE_6_4_0:1.23
	RELEASE_5_EOL:1.23
	RELEASE_7_0_0:1.23
	RELEASE_6_3_0:1.23
	PRE_XORG_7:1.23
	RELEASE_4_EOL:1.23
	RELEASE_6_2_0:1.23
	RELEASE_6_1_0:1.22
	RELEASE_5_5_0:1.22
	RELEASE_6_0_0:1.22
	RELEASE_5_4_0:1.22
	RELEASE_4_11_0:1.22
	RELEASE_5_3_0:1.21
	RELEASE_4_10_0:1.20
	RELEASE_5_2_1:1.19
	RELEASE_5_2_0:1.19
	RELEASE_4_9_0:1.18
	RELEASE_5_1_0:1.17
	RELEASE_4_8_0:1.17
	RELEASE_5_0_0:1.16
	RELEASE_4_7_0:1.16
	RELEASE_4_6_2:1.15
	RELEASE_4_6_1:1.15
	RELEASE_4_6_0:1.15
	RELEASE_5_0_DP1:1.13
	RELEASE_4_5_0:1.13
	RELEASE_4_4_0:1.9;
locks; strict;
comment	@# @;


1.26
date	2012.11.17.05.58.48;	author svnexp;	state Exp;
branches;
next	1.25;

1.25
date	2012.11.10.12.27.38;	author pawel;	state Exp;
branches;
next	1.24;

1.24
date	2012.10.26.14.57.50;	author bapt;	state Exp;
branches;
next	1.23;

1.23
date	2006.05.09.20.52.12;	author edwin;	state Exp;
branches;
next	1.22;

1.22
date	2004.11.20.08.09.46;	author linimon;	state Exp;
branches;
next	1.21;

1.21
date	2004.06.07.11.45.27;	author tg;	state Exp;
branches;
next	1.20;

1.20
date	2004.04.07.11.53.19;	author tg;	state Exp;
branches;
next	1.19;

1.19
date	2003.11.13.13.30.38;	author trevor;	state Exp;
branches;
next	1.18;

1.18
date	2003.09.03.12.32.25;	author nbm;	state Exp;
branches;
next	1.17;

1.17
date	2003.03.07.06.05.29;	author ade;	state Exp;
branches;
next	1.16;

1.16
date	2002.08.14.13.19.06;	author wjv;	state Exp;
branches;
next	1.15;

1.15
date	2002.05.17.10.30.31;	author wjv;	state Exp;
branches;
next	1.14;

1.14
date	2002.04.25.10.42.18;	author wjv;	state Exp;
branches;
next	1.13;

1.13
date	2002.01.08.10.40.03;	author wjv;	state Exp;
branches;
next	1.12;

1.12
date	2002.01.07.14.28.38;	author wjv;	state Exp;
branches;
next	1.11;

1.11
date	2001.11.28.13.01.53;	author wjv;	state Exp;
branches;
next	1.10;

1.10
date	2001.10.03.12.37.34;	author wjv;	state Exp;
branches;
next	1.9;

1.9
date	2001.09.07.09.03.09;	author wjv;	state Exp;
branches;
next	1.8;

1.8
date	2001.09.06.14.57.41;	author wjv;	state Exp;
branches;
next	1.7;

1.7
date	2001.09.04.11.31.05;	author wjv;	state Exp;
branches;
next	1.6;

1.6
date	2001.06.27.11.05.31;	author wjv;	state Exp;
branches;
next	1.5;

1.5
date	2001.06.27.10.14.46;	author wjv;	state Exp;
branches;
next	1.4;

1.4
date	2001.06.10.15.46.25;	author kevlo;	state Exp;
branches;
next	1.3;

1.3
date	2001.05.30.14.21.11;	author kevlo;	state Exp;
branches;
next	1.2;

1.2
date	2001.05.07.14.33.49;	author kevlo;	state Exp;
branches;
next	1.1;

1.1
date	2001.04.27.17.38.02;	author ijliao;	state Exp;
branches;
next	;


desc
@@


1.26
log
@Switch exporter over
@
text
@# Created by: Johann Visagie <johann@@egenetics.com>
# $FreeBSD: head/lang/diveintopython/Makefile 307274 2012-11-10 12:27:38Z pawel $

PORTNAME=	diveintopython
PORTVERSION=	5.4
#PORTREVISION=	1
CATEGORIES=	lang python
MASTER_SITES=	http://www.diveintopython.net/download/
DISTNAME=	${PORTNAME}
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}-xml-${VERSIONSTR}${EXTRACT_SUFX} \
		${DISTNAME}-common-${VERSIONSTR}${EXTRACT_SUFX} \
		${DISTNAME}-examples-${VERSIONSTR}${EXTRACT_SUFX}
DIST_SUBDIR=	${PORTNAME}
EXTRACT_ONLY=	${DISTNAME}-html-${VERSIONSTR}${EXTRACT_SUFX}

MAINTAINER=	ports@@FreeBSD.org
COMMENT=	Free Python tutorial book that is "not For Dummies(tm)"

LICENSE=	GFDL

WRKSRC=		${WRKDIR}/${PORTNAME}-${VERSIONSTR}/html
NO_BUILD=	yes

USE_ZIP=	yes

PLIST_SUB=	VERSION="${VERSIONSTR}"

DIPDLDIR=	${DOCSDIR}/download
VERSIONSTR=	${PORTVERSION:C|(\.[^.]*)\.([^.]*)$|\1-\2|}

post-patch:
	@@ ${FIND} ${WRKSRC} -name \*.html | ${XARGS} ${REINPLACE_CMD} \
	  "s#http[^>]*\(download/${PORTNAME}-examples-${VERSIONSTR}.zip\)#\.\./\1#"

do-install:
	@@ ${MKDIR} ${DIPDLDIR}
	@@ cd ${WRKSRC} && \
	  ${FIND} . -name \*.html -o -name \*.css -o -name \*.png \
	  | ${CPIO} --quiet -pdum -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
	@@ cd ${WRKSRC}/../py && ${FIND} * \
	  | ${CPIO} --quiet -pdum -R ${SHAREOWN}:${SHAREGRP} ${EXAMPLESDIR}
.for format in html html-flat pdf text word xml common examples
	@@ ${INSTALL_DATA} \
	  ${DISTDIR}/${DIST_SUBDIR}/${PORTNAME}-${format}-${VERSIONSTR}.zip \
	  ${DIPDLDIR}
.endfor

post-install:
	@@ ${CHMOD} -R ${SHAREMODE} ${DOCSDIR} ${EXAMPLESDIR}
	@@ ${CHMOD} -R ugo+X ${DOCSDIR} ${EXAMPLESDIR}

.include <bsd.port.mk>
@


1.25
log
@SVN rev 307274 on 2012-11-10 12:27:38Z by pawel

- Remove DEPRECATED
- Add LICENSE
- Update MASTER_SITES and WWW: line

PR:		ports/172026
Submitted by:	KATO Tsuguru <tkato432@@yahoo.com>
Feature safe:	yes
@
text
@d2 1
a2 1
# $FreeBSD$
@


1.24
log
@SVN rev 306447 on 2012-10-26 14:57:50Z by bapt

Deprecate a bunch of ports that are either abandonware and/or for which no more
public distfiles are available, or for which are -devel version with a more
recent stable version for long

Feature safe:	yes
@
text
@d8 1
a8 1
MASTER_SITES=	http://diveintopython.org/download/
d22 1
a22 1
COMMENT=	A free Python tutorial book that is "not For Dummies(tm)"
d24 1
a24 2
DEPRECATED=	No more public distfiles
EXPIRATION_DATE=	2012-11-26
a25 2
NO_BUILD=	YES
USE_ZIP=	YES
d27 6
a33 1
CPIO=		cpio --quiet -pdum -R
a34 1
PLIST_SUB+=	VERSION=${VERSIONSTR}
d37 1
a37 1
	@@ ${FIND} ${WRKSRC} -name \*.html | xargs ${REINPLACE_CMD} \
d44 1
a44 1
	  | ${CPIO} ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
d46 1
a46 1
	  | ${CPIO} ${SHAREOWN}:${SHAREGRP} ${EXAMPLESDIR}
@


1.23
log
@Remove USE_REINPLACE from the categories starting with L
@
text
@d1 1
a1 4
# New ports collection makefile for:	py-diveintopython
# Date created:		15 March 2001
# Whom:	      		Johann Visagie <johann@@egenetics.com>
#
a2 1
#
d24 3
@


1.22
log
@With portmgr hat on, reset inactive maintainer.  These ports are now up
for adoption.
@
text
@a28 1
USE_REINPLACE=	YES
@


1.21
log
@Upgrade to 5.4.

Approved by:	wjv (maintainer)
@
text
@d25 1
a25 1
MAINTAINER=	wjv@@FreeBSD.org
@


1.20
log
@Upgrade to 4.9.

Approved by:	wjv (maintainer)
@
text
@d9 1
a9 1
PORTVERSION=	4.9
d31 1
a31 1
WRKSRC=		${WRKDIR}/html
d39 1
a39 1
	  "s#http[^>]*\(download/${PORTNAME}-examples-${VERSIONSTR}.zip\)#\1#"
d46 1
a46 1
	@@ cd ${WRKDIR}/py && ${FIND} * \
@


1.19
log
@Use the FIND and XARGS macros introduced in bsd.port.mk 1.391.
@
text
@d9 2
a10 2
PORTVERSION=	4.1
PORTREVISION=	1
a18 1
		${DISTNAME}-help-${VERSIONSTR}${EXTRACT_SUFX} \
d38 2
a39 3
	@@ ${REINPLACE_CMD} \
	  "s#http[^>]*\(download/${PORTNAME}-examples-${VERSIONSTR}.zip\)#\1#" \
	  ${WRKSRC}/*.html
d43 2
a44 1
	@@ cd ${WRKSRC} && ${FIND} *.html *.css images \
d48 1
a48 1
.for format in html html-flat pdf text word help xml common examples
@


1.18
log
@The diveintopython author regenerated the PDF documentation due to a
file corruption error - update checksum to new zip file.
@
text
@d45 1
a45 1
	@@ cd ${WRKSRC} && find *.html *.css images \
d47 1
a47 1
	@@ cd ${WRKDIR}/py && find * \
@


1.17
log
@Clear moonlight beckons.
Requiem mors pacem pkg-comment,
And be calm ports tree.

E Nomini Patri, E Fili, E Spiritu Sancti.
@
text
@d10 1
@


1.16
log
@- Update to version 4.1
- Add Windows-centric formats
- Change from using ${PERL} to ${REINPLACE_CMD}
- To ease updates, discontinue the extensive modification of home page
@
text
@d26 1
@


1.15
log
@- Update to version 4.0.2
- This (trivial) commit comes to you from Beijing in the People's Republic of
  China.  Is it a first?
@
text
@d9 1
a9 1
PORTVERSION=	4.0.2
d17 4
d28 1
d33 1
a33 1
VERSIONSTR=	${PORTVERSION:C|\.([^.]*)$|-\1|}
d37 2
a38 7
	@@ ${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#' \
d47 1
a47 1
.for format in html html-flat pdf text examples
@


1.14
log
@- Update to version 4.0.1
@
text
@d9 1
a9 1
PORTVERSION=	4.0.1
@


1.13
log
@- Install examples to EXAMPLESDIR
- Fix file modes after installation
- Bump PORTREVISION

PR:		33461
Submitted by:	Alan Eldridge <ports@@geeksrus.net>
@
text
@d9 1
a9 2
PORTVERSION=	3.9.1
PORTREVISION=	1
d34 1
a34 1
	   s#<tr[^>]*>(.(?!<tr[^>]*>))*(Microsoft|Windows)(.(?!</tr>))*.</tr>##g; \
@


1.12
log
@- Update to version 3.9.1
- Add version to PLIST_SUB to eliminate one further change which was hitherto
  necessary with each update (good one!)

PR:		33457
Submitted by:	Alan Eldridge <ports@@geeksrus.net>
@
text
@d10 1
d46 2
d53 4
@


1.11
log
@- Update to version 3.8.1
@
text
@d9 1
a9 1
PORTVERSION=	3.8.1
d29 1
@


1.10
log
@Update to version 3.7.1
@
text
@d5 1
a5 1
# $FreeBSD: ports/lang/diveintopython/Makefile,v 1.9 2001/09/07 09:03:09 wjv Exp $
d9 1
a9 1
PORTVERSION=	3.7.1
d32 2
a33 1
	  's#<tr[^>]*>(.(?!<tr[^>]*>))*(Microsoft|Windows)(.(?!</tr>))*.</tr>##g; \
@


1.9
log
@- Update to version 3.6.4
@
text
@d5 1
a5 1
# $FreeBSD: ports/lang/diveintopython/Makefile,v 1.8 2001/09/06 14:57:41 wjv Exp $
d9 1
a9 1
PORTVERSION=	3.6.4
d33 1
a33 1
	   s#<td>(.(?!<td>))*/(cn/|fr/[^"]|kr/)(.(?!</td>))*.</td>##g' \
@


1.8
log
@- Update to version 3.6.3
@
text
@d5 1
a5 1
# $FreeBSD: ports/lang/diveintopython/Makefile,v 1.7 2001/09/04 11:31:05 wjv Exp $
d9 1
a9 1
PORTVERSION=	3.6.3
@


1.7
log
@- Update to version 3.6
@
text
@d5 1
a5 1
# $FreeBSD: ports/lang/diveintopython/Makefile,v 1.6 2001/06/27 11:05:31 wjv Exp $
d9 1
a9 1
PORTVERSION=	3.6
d28 1
a28 1
VERSIONSTR=	${PORTVERSION}-1
d33 1
a33 1
	   s#<td>(.(?!<td>))*(cn/|fr/[a-z]*\.html)(.(?!</td>))*.</td>##g' \
@


1.6
log
@Update to version 3.5.  Fix some links to point to a locally installed
copy of the examples tarball.
@
text
@d5 1
a5 1
# $FreeBSD: ports/lang/diveintopython/Makefile,v 1.5 2001/06/27 10:14:46 wjv Exp $
d9 1
a9 1
PORTVERSION=	3.5
d13 5
a17 6
DISTFILES=	${DISTNAME}-html-${VERSIONSTR}.tgz \
		${DISTNAME}-html-flat-${VERSIONSTR}.tgz \
		${DISTNAME}-pdf-${VERSIONSTR}.tgz \
		${DISTNAME}-text-${VERSIONSTR}.tgz \
		${DISTNAME}-xml-${VERSIONSTR}.tgz \
		${DISTNAME}-examples-${VERSIONSTR}.tgz
d19 1
a19 4
EXTRACT_ONLY=	${DISTNAME}-html-${VERSIONSTR}.tgz \
		${DISTNAME}-html-flat-${VERSIONSTR}.tgz \
		${DISTNAME}-pdf-${VERSIONSTR}.tgz \
		${DISTNAME}-text-${VERSIONSTR}.tgz
d24 3
a26 2
DIPDIR=		${PREFIX}/share/doc/diveintopython
DIPDLDIR=	${DIPDIR}/download
d32 3
a34 5
	  's#<td><a[^>]*>(Windows|Mac ?OS)</a></td>##g; \
	   s#UNIX</a>#compressed</a>#g;s#for UNIX \(#(#g; \
	   s#<tr>(.(?!<tr>))*(Microsoft Word|Windows Help)(.(?!</tr>))*.</tr>##g; \
	   s#<td>(.(?!<td>))*cn/(.(?!</td>))*.</td>##g; \
	   s#zip#tgz#g' ${WRKSRC}/index.html
d36 1
a36 1
	  's#http[^>]*(download/${PORTNAME}-examples-${VERSIONSTR}.tgz)#$$1#' \
d42 2
a43 6
	  | ${CPIO} ${SHAREOWN}:${SHAREGRP} ${DIPDIR}
.for format in html pdf txt
	@@ ${INSTALL_DATA} ${WRKSRC}/${format}/${PORTNAME}.${format} \
	  ${DIPDLDIR}
.endfor
.for format in html html-flat pdf text xml examples
d45 1
a45 1
	  ${DISTDIR}/${DIST_SUBDIR}/${PORTNAME}-${format}-${VERSIONSTR}.tgz \
@


1.5
log
@Updating my email address in my remaining ports.

Prompted by:	vanilla
@
text
@d5 1
a5 1
# $FreeBSD: ports/lang/diveintopython/Makefile,v 1.4 2001/06/10 15:46:25 kevlo Exp $
d9 1
a9 1
PORTVERSION=	3.4
d40 1
a40 1
	@@ ${PERL} -pi.orig -e \
d42 1
a42 1
	  ${WRKSRC}/odbchelper_divein.html
@


1.4
log
@Update to version 3.4

PR: 27964
Submitted by: MAINTAINER
@
text
@d5 1
a5 1
# $FreeBSD: ports/lang/diveintopython/Makefile,v 1.3 2001/05/30 14:21:11 kevlo Exp $
d25 1
a25 1
MAINTAINER=	johann@@egenetics.com
@


1.3
log
@Update to version 3.3.1

PR: 27764
Submitted by: MAINTAINER
@
text
@d5 1
a5 1
# $FreeBSD: ports/lang/diveintopython/Makefile,v 1.2 2001/05/07 14:33:49 kevlo Exp $
d9 1
a9 1
PORTVERSION=	3.3.1
d31 1
a31 3
# Is there a way of doing this without using a temporary variable?
VERSIONTMP=	${PORTVERSION:S|.|-|g}
VERSIONSTR=	${VERSIONTMP:S|-|.|}
@


1.2
log
@Upgrade to version 3.2.1

PR: 27175
Submitted by: MAINTAINER
@
text
@d5 1
a5 1
# $FreeBSD: ports/lang/diveintopython/Makefile,v 1.1 2001/04/27 17:38:02 ijliao Exp $
d9 1
a9 1
PORTVERSION=	3.2.1
d40 2
a41 2
	   s#<td>(.(?!<td>))*cn/(.(?!</td>))*.</td>##g' \
	  ${WRKSRC}/index.html
@


1.1
log
@add diveintopython
A free Python tutorial book that is "not For Dummies(tm)"

PR:		26697
Submitted by:	Johann Visagie <johann@@egenetics.com>
@
text
@d5 1
a5 1
# $FreeBSD$
d9 1
a9 1
PORTVERSION=	3.1.1
d17 2
a18 1
		${DISTNAME}-xml-${VERSIONSTR}.tgz
d42 3
d54 1
a54 1
.for format in html html-flat pdf text xml
a58 1
	@@ cd ${WRKDIR} && ${TAR} czf ${DIPDLDIR}/examples.tgz py/*
@

