ports/172026: lang/diveintopython: Update MASTER_SITES
KATO Tsuguru
tkato432 at yahoo.com
Tue Sep 25 18:10:32 UTC 2012
>Number: 172026
>Category: ports
>Synopsis: lang/diveintopython: Update MASTER_SITES
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Tue Sep 25 18:10:32 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: KATO Tsuguru
>Release: FreeBSD 7.4-RELEASE-p10 i386
>Organization:
>Environment:
>Description:
- Update MASTER_SITES and WWW: line
>How-To-Repeat:
>Fix:
diff -urN /usr/ports/lang/diveintopython/Makefile lang/diveintopython/Makefile
--- /usr/ports/lang/diveintopython/Makefile 2006-05-10 05:52:12.000000000 +0900
+++ lang/diveintopython/Makefile 2012-09-25 03:35:56.000000000 +0900
@@ -1,15 +1,11 @@
-# New ports collection makefile for: py-diveintopython
-# Date created: 15 March 2001
-# Whom: Johann Visagie <johann at egenetics.com>
-#
+# Created by: Johann Visagie <johann at egenetics.com>
# $FreeBSD: ports/lang/diveintopython/Makefile,v 1.23 2006/05/09 20:52:12 edwin Exp $
-#
PORTNAME= diveintopython
PORTVERSION= 5.4
#PORTREVISION= 1
CATEGORIES= lang python
-MASTER_SITES= http://diveintopython.org/download/
+MASTER_SITES= http://www.diveintopython.net/download/
DISTNAME= ${PORTNAME}
DISTFILES= ${DISTNAME}-html-${VERSIONSTR}${EXTRACT_SUFX} \
${DISTNAME}-html-flat-${VERSIONSTR}${EXTRACT_SUFX} \
@@ -25,25 +21,29 @@
MAINTAINER= ports at FreeBSD.org
COMMENT= A free Python tutorial book that is "not For Dummies(tm)"
-NO_BUILD= YES
-USE_ZIP= YES
+LICENSE= GFDL
+
WRKSRC= ${WRKDIR}/${PORTNAME}-${VERSIONSTR}/html
+NO_BUILD= yes
+
+USE_ZIP= yes
+
+PLIST_SUB= VERSION="${VERSIONSTR}"
+
DIPDLDIR= ${DOCSDIR}/download
-CPIO= cpio --quiet -pdum -R
VERSIONSTR= ${PORTVERSION:C|(\.[^.]*)\.([^.]*)$|\1-\2|}
-PLIST_SUB+= VERSION=${VERSIONSTR}
post-patch:
- @ ${FIND} ${WRKSRC} -name \*.html | xargs ${REINPLACE_CMD} \
+ @ ${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} ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
+ | ${CPIO} --quiet -pdum -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
@ cd ${WRKSRC}/../py && ${FIND} * \
- | ${CPIO} ${SHAREOWN}:${SHAREGRP} ${EXAMPLESDIR}
+ | ${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 \
diff -urN /usr/ports/lang/diveintopython/pkg-descr lang/diveintopython/pkg-descr
--- /usr/ports/lang/diveintopython/pkg-descr 2009-12-21 11:17:22.000000000 +0900
+++ lang/diveintopython/pkg-descr 2012-07-09 17:23:02.000000000 +0900
@@ -4,4 +4,4 @@
available in a variety of formats. It is currently being translated into a
number of languages.
-WWW: http://diveintopython.org/
+WWW: http://www.diveintopython.net/
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list