View | Details | Raw Unified | Return to bug 235169 | Differences between
and this patch

Collapse All | Expand All

(-)lang/python-doc-html/Makefile (+5 lines)
Lines 32-37 Link Here
32
WRKSRC=		${WRKDIR}/docs-pdf
32
WRKSRC=		${WRKDIR}/docs-pdf
33
.endif
33
.endif
34
34
35
# Create a distinfo that contains all possible DISTFILES
36
makesum:
37
	t1=/tmp/makesum.$$$$ && trap 'rm -f $${t1}' exit && \
38
	    files/gen-makesum.sh >$${t1} && ${MAKE} -f $${t1} makesum
39
35
pre-install:
40
pre-install:
36
	@${FIND} ${WRKSRC} -type f | ${SED} -e 's|^${WRKSRC}|%%DOCSDIR%%|' | ${SORT} > ${PLIST}
41
	@${FIND} ${WRKSRC} -type f | ${SED} -e 's|^${WRKSRC}|%%DOCSDIR%%|' | ${SORT} > ${PLIST}
37
42
(-)lang/python-doc-html/files/gen-makesum.sh (+32 lines)
Line 0 Link Here
1
#!/bin/sh
2
# $FreeBSD$
3
#
4
# Output a minimal makefile with DISTFILES set to all supported
5
# Python versions vs. all doc formats
6
#
7
8
DOCFORMATS="html pdf-a4 pdf-letter text"
9
_PYTHON_VERSIONS=`make -V _PYTHON_VERSIONS`
10
11
DISTFILES=""
12
for ver in ${_PYTHON_VERSIONS}; do
13
	ver2=`make -V PYTHON_PORTVERSION DEFAULT_VERSIONS=python=${ver}`
14
	for format in ${DOCFORMATS}; do
15
		files=`make -V DISTFILES \
16
		    PORTVERSION=${ver2} DOCFORMAT=${format}`
17
		DISTFILES="${DISTFILES} ${files}"
18
	done
19
done
20
21
#
22
# Output the minimal makefile
23
#
24
echo -n MASTER_SITES=
25
make -V MASTER_SITES
26
27
echo DISTFILES=${DISTFILES}
28
29
echo -n DIST_SUBDIR=
30
make -V DIST_SUBDIR
31
32
echo ".include <bsd.port.mk>"

Return to bug 235169