pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/math Split the extract phase into fetch and extract, t...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4b62d53560d7
branches:  trunk
changeset: 621426:4b62d53560d7
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Mon Jul 08 20:18:52 2013 +0000

description:
Split the extract phase into fetch and extract, to ensure that distfiles
can be fetched correctly, keeping in sync with devel/gmp inplace.mk

diffstat:

 math/mpcomplex/inplace.mk |  10 ++++++++--
 math/mpfr/inplace.mk      |  10 ++++++++--
 2 files changed, 16 insertions(+), 4 deletions(-)

diffs (48 lines):

diff -r 4cdc6b66f45a -r 4b62d53560d7 math/mpcomplex/inplace.mk
--- a/math/mpcomplex/inplace.mk Mon Jul 08 19:50:15 2013 +0000
+++ b/math/mpcomplex/inplace.mk Mon Jul 08 20:18:52 2013 +0000
@@ -1,12 +1,18 @@
-# $NetBSD: inplace.mk,v 1.2 2013/04/08 11:17:16 rodent Exp $
+# $NetBSD: inplace.mk,v 1.3 2013/07/08 20:18:52 jperkin Exp $
 #
 # Include this file to extract math/mpcomplex source into the WRKSRC of
 # another package. This is to be used by GCC packages to avoid the numerous
 # dependencies math/mpcomplex has.
 
+post-fetch: fetch-inplace-mpcomplex
+
 post-extract: extract-inplace-mpcomplex
 
+fetch-inplace-mpcomplex:
+       (cd ../../math/mpcomplex && ${MAKE} WRKDIR=${WRKSRC}/.devel.mpcomplex EXTRACT_DIR=${WRKSRC} \
+               WRKSRC='$${EXTRACT_DIR}/$${DISTNAME}' SKIP_DEPENDS=YES checksum clean)
+
 extract-inplace-mpcomplex:
        (cd ../../math/mpcomplex && ${MAKE} WRKDIR=${WRKSRC}/.devel.mpcomplex EXTRACT_DIR=${WRKSRC} \
-               WRKSRC='$${EXTRACT_DIR}/$${DISTNAME}' SKIP_DEPENDS=YES fetch patch clean)
+               WRKSRC='$${EXTRACT_DIR}/$${DISTNAME}' SKIP_DEPENDS=YES patch clean)
        ${MV} ${WRKSRC}/mpc-* ${WRKSRC}/mpc
diff -r 4cdc6b66f45a -r 4b62d53560d7 math/mpfr/inplace.mk
--- a/math/mpfr/inplace.mk      Mon Jul 08 19:50:15 2013 +0000
+++ b/math/mpfr/inplace.mk      Mon Jul 08 20:18:52 2013 +0000
@@ -1,12 +1,18 @@
-# $NetBSD: inplace.mk,v 1.2 2012/04/22 15:13:26 wiz Exp $
+# $NetBSD: inplace.mk,v 1.3 2013/07/08 20:18:52 jperkin Exp $
 #
 # Include this file to extract math/mpfr source into the WRKSRC of
 # another package. This is to be used by GCC packages to avoid the
 # numerous dependencies math/mpfr has.
 
+post-fetch: fetch-inplace-mpfr
+
 post-extract: extract-inplace-mpfr
 
+fetch-inplace-mpfr:
+       (cd ../../math/mpfr && ${MAKE} WRKDIR=${WRKSRC}/.devel.mpfr EXTRACT_DIR=${WRKSRC} \
+               WRKSRC='$${EXTRACT_DIR}/$${DISTNAME}' SKIP_DEPENDS=YES checksum clean)
+
 extract-inplace-mpfr:
        (cd ../../math/mpfr && ${MAKE} WRKDIR=${WRKSRC}/.devel.mpfr EXTRACT_DIR=${WRKSRC} \
-               WRKSRC='$${EXTRACT_DIR}/$${DISTNAME}' SKIP_DEPENDS=YES fetch patch clean)
+               WRKSRC='$${EXTRACT_DIR}/$${DISTNAME}' SKIP_DEPENDS=YES patch clean)
        ${MV} ${WRKSRC}/mpfr-* ${WRKSRC}/mpfr



Home | Main Index | Thread Index | Old Index