mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
- Remove DEPRECATED
- Add LICENSE - Update MASTER_SITES and WWW: line PR: ports/172026 Submitted by: KATO Tsuguru <tkato432@yahoo.com> Feature safe: yes
This commit is contained in:
parent
bd2a593fca
commit
cd6afc8c3b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=307274
2 changed files with 13 additions and 12 deletions
|
@ -5,7 +5,7 @@ PORTNAME= diveintopython
|
||||||
PORTVERSION= 5.4
|
PORTVERSION= 5.4
|
||||||
#PORTREVISION= 1
|
#PORTREVISION= 1
|
||||||
CATEGORIES= lang python
|
CATEGORIES= lang python
|
||||||
MASTER_SITES= http://diveintopython.org/download/
|
MASTER_SITES= http://www.diveintopython.net/download/
|
||||||
DISTNAME= ${PORTNAME}
|
DISTNAME= ${PORTNAME}
|
||||||
DISTFILES= ${DISTNAME}-html-${VERSIONSTR}${EXTRACT_SUFX} \
|
DISTFILES= ${DISTNAME}-html-${VERSIONSTR}${EXTRACT_SUFX} \
|
||||||
${DISTNAME}-html-flat-${VERSIONSTR}${EXTRACT_SUFX} \
|
${DISTNAME}-html-flat-${VERSIONSTR}${EXTRACT_SUFX} \
|
||||||
|
@ -19,30 +19,31 @@ DIST_SUBDIR= ${PORTNAME}
|
||||||
EXTRACT_ONLY= ${DISTNAME}-html-${VERSIONSTR}${EXTRACT_SUFX}
|
EXTRACT_ONLY= ${DISTNAME}-html-${VERSIONSTR}${EXTRACT_SUFX}
|
||||||
|
|
||||||
MAINTAINER= ports@FreeBSD.org
|
MAINTAINER= ports@FreeBSD.org
|
||||||
COMMENT= A free Python tutorial book that is "not For Dummies(tm)"
|
COMMENT= Free Python tutorial book that is "not For Dummies(tm)"
|
||||||
|
|
||||||
DEPRECATED= No more public distfiles
|
LICENSE= GFDL
|
||||||
EXPIRATION_DATE= 2012-11-26
|
|
||||||
|
|
||||||
NO_BUILD= YES
|
|
||||||
USE_ZIP= YES
|
|
||||||
WRKSRC= ${WRKDIR}/${PORTNAME}-${VERSIONSTR}/html
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${VERSIONSTR}/html
|
||||||
|
NO_BUILD= yes
|
||||||
|
|
||||||
|
USE_ZIP= yes
|
||||||
|
|
||||||
|
PLIST_SUB= VERSION="${VERSIONSTR}"
|
||||||
|
|
||||||
DIPDLDIR= ${DOCSDIR}/download
|
DIPDLDIR= ${DOCSDIR}/download
|
||||||
CPIO= cpio --quiet -pdum -R
|
|
||||||
VERSIONSTR= ${PORTVERSION:C|(\.[^.]*)\.([^.]*)$|\1-\2|}
|
VERSIONSTR= ${PORTVERSION:C|(\.[^.]*)\.([^.]*)$|\1-\2|}
|
||||||
PLIST_SUB+= VERSION=${VERSIONSTR}
|
|
||||||
|
|
||||||
post-patch:
|
post-patch:
|
||||||
@ ${FIND} ${WRKSRC} -name \*.html | xargs ${REINPLACE_CMD} \
|
@ ${FIND} ${WRKSRC} -name \*.html | ${XARGS} ${REINPLACE_CMD} \
|
||||||
"s#http[^>]*\(download/${PORTNAME}-examples-${VERSIONSTR}.zip\)#\.\./\1#"
|
"s#http[^>]*\(download/${PORTNAME}-examples-${VERSIONSTR}.zip\)#\.\./\1#"
|
||||||
|
|
||||||
do-install:
|
do-install:
|
||||||
@ ${MKDIR} ${DIPDLDIR}
|
@ ${MKDIR} ${DIPDLDIR}
|
||||||
@ cd ${WRKSRC} && \
|
@ cd ${WRKSRC} && \
|
||||||
${FIND} . -name \*.html -o -name \*.css -o -name \*.png \
|
${FIND} . -name \*.html -o -name \*.css -o -name \*.png \
|
||||||
| ${CPIO} ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
|
| ${CPIO} --quiet -pdum -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
|
||||||
@ cd ${WRKSRC}/../py && ${FIND} * \
|
@ 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
|
.for format in html html-flat pdf text word xml common examples
|
||||||
@ ${INSTALL_DATA} \
|
@ ${INSTALL_DATA} \
|
||||||
${DISTDIR}/${DIST_SUBDIR}/${PORTNAME}-${format}-${VERSIONSTR}.zip \
|
${DISTDIR}/${DIST_SUBDIR}/${PORTNAME}-${format}-${VERSIONSTR}.zip \
|
||||||
|
|
|
@ -4,4 +4,4 @@ The book is published under the GNU Free Documentation License and is
|
||||||
available in a variety of formats. It is currently being translated into a
|
available in a variety of formats. It is currently being translated into a
|
||||||
number of languages.
|
number of languages.
|
||||||
|
|
||||||
WWW: http://diveintopython.org/
|
WWW: http://www.diveintopython.net/
|
||||||
|
|
Loading…
Add table
Reference in a new issue