Split the extract phase into fetch and extract, to ensure that distfiles can be fetched correctly, keeping in sync with devel/gmp inplace.mkdiff -r1.2 -r1.3 pkgsrc/math/mpcomplex/inplace.mk
(jperkin)
@@ -1,12 +1,18 @@ | @@ -1,12 +1,18 @@ | |||
1 | # $NetBSD: inplace.mk,v 1.2 2013/04/08 11:17:16 rodent Exp $ | 1 | # $NetBSD: inplace.mk,v 1.3 2013/07/08 20:18:52 jperkin Exp $ | |
2 | # | 2 | # | |
3 | # Include this file to extract math/mpcomplex source into the WRKSRC of | 3 | # Include this file to extract math/mpcomplex source into the WRKSRC of | |
4 | # another package. This is to be used by GCC packages to avoid the numerous | 4 | # another package. This is to be used by GCC packages to avoid the numerous | |
5 | # dependencies math/mpcomplex has. | 5 | # dependencies math/mpcomplex has. | |
6 | 6 | |||
7 | post-fetch: fetch-inplace-mpcomplex | |||
8 | ||||
7 | post-extract: extract-inplace-mpcomplex | 9 | post-extract: extract-inplace-mpcomplex | |
8 | 10 | |||
11 | fetch-inplace-mpcomplex: | |||
12 | (cd ../../math/mpcomplex && ${MAKE} WRKDIR=${WRKSRC}/.devel.mpcomplex EXTRACT_DIR=${WRKSRC} \ | |||
13 | WRKSRC='$${EXTRACT_DIR}/$${DISTNAME}' SKIP_DEPENDS=YES checksum clean) | |||
14 | ||||
9 | extract-inplace-mpcomplex: | 15 | extract-inplace-mpcomplex: | |
10 | (cd ../../math/mpcomplex && ${MAKE} WRKDIR=${WRKSRC}/.devel.mpcomplex EXTRACT_DIR=${WRKSRC} \ | 16 | (cd ../../math/mpcomplex && ${MAKE} WRKDIR=${WRKSRC}/.devel.mpcomplex EXTRACT_DIR=${WRKSRC} \ | |
11 | WRKSRC='$${EXTRACT_DIR}/$${DISTNAME}' SKIP_DEPENDS=YES fetch patch clean) | 17 | WRKSRC='$${EXTRACT_DIR}/$${DISTNAME}' SKIP_DEPENDS=YES patch clean) | |
12 | ${MV} ${WRKSRC}/mpc-* ${WRKSRC}/mpc | 18 | ${MV} ${WRKSRC}/mpc-* ${WRKSRC}/mpc |
@@ -1,12 +1,18 @@ | @@ -1,12 +1,18 @@ | |||
1 | # $NetBSD: inplace.mk,v 1.2 2012/04/22 15:13:26 wiz Exp $ | 1 | # $NetBSD: inplace.mk,v 1.3 2013/07/08 20:18:52 jperkin Exp $ | |
2 | # | 2 | # | |
3 | # Include this file to extract math/mpfr source into the WRKSRC of | 3 | # Include this file to extract math/mpfr source into the WRKSRC of | |
4 | # another package. This is to be used by GCC packages to avoid the | 4 | # another package. This is to be used by GCC packages to avoid the | |
5 | # numerous dependencies math/mpfr has. | 5 | # numerous dependencies math/mpfr has. | |
6 | 6 | |||
7 | post-fetch: fetch-inplace-mpfr | |||
8 | ||||
7 | post-extract: extract-inplace-mpfr | 9 | post-extract: extract-inplace-mpfr | |
8 | 10 | |||
11 | fetch-inplace-mpfr: | |||
12 | (cd ../../math/mpfr && ${MAKE} WRKDIR=${WRKSRC}/.devel.mpfr EXTRACT_DIR=${WRKSRC} \ | |||
13 | WRKSRC='$${EXTRACT_DIR}/$${DISTNAME}' SKIP_DEPENDS=YES checksum clean) | |||
14 | ||||
9 | extract-inplace-mpfr: | 15 | extract-inplace-mpfr: | |
10 | (cd ../../math/mpfr && ${MAKE} WRKDIR=${WRKSRC}/.devel.mpfr EXTRACT_DIR=${WRKSRC} \ | 16 | (cd ../../math/mpfr && ${MAKE} WRKDIR=${WRKSRC}/.devel.mpfr EXTRACT_DIR=${WRKSRC} \ | |
11 | WRKSRC='$${EXTRACT_DIR}/$${DISTNAME}' SKIP_DEPENDS=YES fetch patch clean) | 17 | WRKSRC='$${EXTRACT_DIR}/$${DISTNAME}' SKIP_DEPENDS=YES patch clean) | |
12 | ${MV} ${WRKSRC}/mpfr-* ${WRKSRC}/mpfr | 18 | ${MV} ${WRKSRC}/mpfr-* ${WRKSRC}/mpfr |