From owner-freebsd-perl@FreeBSD.ORG Wed Sep 22 13:18:30 2010 Return-Path: Delivered-To: perl@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D6596106564A for ; Wed, 22 Sep 2010 13:18:30 +0000 (UTC) (envelope-from baptiste.daroussin@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 6315B8FC18 for ; Wed, 22 Sep 2010 13:18:29 +0000 (UTC) Received: by wwc33 with SMTP id 33so543738wwc.31 for ; Wed, 22 Sep 2010 06:18:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:date:from:to:subject :message-id:mime-version:content-type:content-disposition:user-agent; bh=48SxPNGcC8HYTNdjkNCLX2GP1xrxRCd69hVuNnpKl0Y=; b=Z7MofORNk5s0fY9sx+qCS9KMI/g4+8vUt9xg1FqpdU2SAoHUef8kcKcXgfAu2ntFm6 nINB40eMieq8o+C1Mr2jzXbaY/wib9lrJSbNmxl7Oauf6qdE8zI2i92Wc88nz3dPep7S LLvxPtwf2qUZE7E6dE1f/RG8CGj3vm3WZuc84= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:date:from:to:subject:message-id:mime-version:content-type :content-disposition:user-agent; b=A1T6AUZYB5/XckacOuG5wxg4kbgrIsBgAHBQodAEfGrUKv6Y3qBe5urJNmy8W+f98h jdtS794C47ADCUZuQJGT9PoX4ReM6lm/lrmqPzURTpn08hJjwyLXR2TkAv0VLkLBfCrN sroAxwG6q5xedXZKWVJBozZ+mEhnqOA/oaj7I= Received: by 10.216.203.71 with SMTP id e49mr101512weo.60.1285159912979; Wed, 22 Sep 2010 05:51:52 -0700 (PDT) Received: from azathoth.lan (stc92-3-82-245-249-89.fbx.proxad.net [82.245.249.89]) by mx.google.com with ESMTPS id v44sm6823987weq.28.2010.09.22.05.51.50 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 22 Sep 2010 05:51:51 -0700 (PDT) Sender: Baptiste Daroussin Date: Wed, 22 Sep 2010 14:51:48 +0200 From: Baptiste Daroussin To: perl@freebsd.org Message-ID: <20100922125148.GA65578@azathoth.lan> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="2B/JsCI69OhZNC5r" Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: New MACROS for dependence to avoid depending on a version already in core modules X-BeenThere: freebsd-perl@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: maintainer of a number of perl-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Sep 2010 13:18:30 -0000 --2B/JsCI69OhZNC5r Content-Type: multipart/mixed; boundary="AhhlLboLdkugWU4S" Content-Disposition: inline --AhhlLboLdkugWU4S Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, Here is a quick and dirty patch that provide 3 new macros: PERL_MODULES BUILD_PERL_MODULES RUN_PERL_MODULES they replace BUILD_DEPENDS and RUN_DEPENDS (*DEPENDS can still be used) syntax is the same a *_DEPENDS except that it should depends on package rather than a file. ie: PERL_MODULES= p5-Digest-MD5>0:${PORTSDIR}/security/p5-Digest-MD5 it will first check if Digest::MD5 is in core modules if yes it will compares the version if the version is greater than the one in core modules the dependency will be added to BUILD_DEPENDS and/or RUN_DEPENDS. the core modules are found in ${PORTSDIR}/lang/${PERL_PORT}/perl.modules.mk the form is CORE_MODULES+= p5-Digest-MD5=2.39 there is a helper to build the list: make list-modules which is not perfect but quite works it should be generated for each available perl version. corelist which is used, is part of perl since 5.10 or available here devel/p5-Module-CoreList for 5.8 this is dirty but this works, before getting further I wanted to share it with you to be able to discuss it and improve it regards, Bapt --AhhlLboLdkugWU4S-- --2B/JsCI69OhZNC5r Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (FreeBSD) iEYEARECAAYFAkyZ++QACgkQ8kTtMUmk6EzUzgCglKdpC5jnAvGYzL1K7TV8Oem1 zykAoIo/UZAU1q3VBvdCOkMXQf8hgqdx =KJ2h -----END PGP SIGNATURE----- --2B/JsCI69OhZNC5r--