head 1.25; access; symbols pkgsrc-2026Q1:1.25.0.6 pkgsrc-2026Q1-base:1.25 pkgsrc-2025Q4:1.25.0.4 pkgsrc-2025Q4-base:1.25 pkgsrc-2025Q3:1.25.0.2 pkgsrc-2025Q3-base:1.25 pkgsrc-2025Q2:1.24.0.6 pkgsrc-2025Q2-base:1.24 pkgsrc-2025Q1:1.24.0.4 pkgsrc-2025Q1-base:1.24 pkgsrc-2024Q4:1.24.0.2 pkgsrc-2024Q4-base:1.24 pkgsrc-2024Q3:1.23.0.10 pkgsrc-2024Q3-base:1.23 pkgsrc-2024Q2:1.23.0.8 pkgsrc-2024Q2-base:1.23 pkgsrc-2024Q1:1.23.0.6 pkgsrc-2024Q1-base:1.23 pkgsrc-2023Q4:1.23.0.4 pkgsrc-2023Q4-base:1.23 pkgsrc-2023Q3:1.23.0.2 pkgsrc-2023Q3-base:1.23 pkgsrc-2023Q2:1.22.0.2 pkgsrc-2023Q2-base:1.22 pkgsrc-2023Q1:1.21.0.6 pkgsrc-2023Q1-base:1.21 pkgsrc-2022Q4:1.21.0.4 pkgsrc-2022Q4-base:1.21 pkgsrc-2022Q3:1.21.0.2 pkgsrc-2022Q3-base:1.21 pkgsrc-2022Q2:1.20.0.10 pkgsrc-2022Q2-base:1.20 pkgsrc-2022Q1:1.20.0.8 pkgsrc-2022Q1-base:1.20 pkgsrc-2021Q4:1.20.0.6 pkgsrc-2021Q4-base:1.20 pkgsrc-2021Q3:1.20.0.4 pkgsrc-2021Q3-base:1.20 pkgsrc-2021Q2:1.20.0.2 pkgsrc-2021Q2-base:1.20 pkgsrc-2021Q1:1.19.0.6 pkgsrc-2021Q1-base:1.19 pkgsrc-2020Q4:1.19.0.4 pkgsrc-2020Q4-base:1.19 pkgsrc-2020Q3:1.19.0.2 pkgsrc-2020Q3-base:1.19 pkgsrc-2020Q2:1.18.0.8 pkgsrc-2020Q2-base:1.18 pkgsrc-2020Q1:1.18.0.4 pkgsrc-2020Q1-base:1.18 pkgsrc-2019Q4:1.18.0.6 pkgsrc-2019Q4-base:1.18 pkgsrc-2019Q3:1.18.0.2 pkgsrc-2019Q3-base:1.18 pkgsrc-2019Q2:1.16.0.8 pkgsrc-2019Q2-base:1.16 pkgsrc-2019Q1:1.16.0.6 pkgsrc-2019Q1-base:1.16 pkgsrc-2018Q4:1.16.0.4 pkgsrc-2018Q4-base:1.16 pkgsrc-2018Q3:1.16.0.2 pkgsrc-2018Q3-base:1.16 pkgsrc-2018Q2:1.15.0.12 pkgsrc-2018Q2-base:1.15 pkgsrc-2018Q1:1.15.0.10 pkgsrc-2018Q1-base:1.15 pkgsrc-2017Q4:1.15.0.8 pkgsrc-2017Q4-base:1.15 pkgsrc-2017Q3:1.15.0.6 pkgsrc-2017Q3-base:1.15 pkgsrc-2017Q2:1.15.0.2 pkgsrc-2017Q2-base:1.15 pkgsrc-2017Q1:1.14.0.8 pkgsrc-2017Q1-base:1.14 pkgsrc-2016Q4:1.14.0.6 pkgsrc-2016Q4-base:1.14 pkgsrc-2016Q3:1.14.0.4 pkgsrc-2016Q3-base:1.14 pkgsrc-2016Q2:1.14.0.2 pkgsrc-2016Q2-base:1.14 pkgsrc-2016Q1:1.12.0.8 pkgsrc-2016Q1-base:1.12 pkgsrc-2015Q4:1.12.0.6 pkgsrc-2015Q4-base:1.12 pkgsrc-2015Q3:1.12.0.4 pkgsrc-2015Q3-base:1.12 pkgsrc-2015Q2:1.12.0.2 pkgsrc-2015Q2-base:1.12 pkgsrc-2015Q1:1.10.0.2 pkgsrc-2015Q1-base:1.10 pkgsrc-2014Q4:1.9.0.2 pkgsrc-2014Q4-base:1.9 pkgsrc-2014Q3:1.8.0.4 pkgsrc-2014Q3-base:1.8 pkgsrc-2014Q2:1.8.0.2 pkgsrc-2014Q2-base:1.8 pkgsrc-2014Q1:1.6.0.8 pkgsrc-2014Q1-base:1.6 pkgsrc-2013Q4:1.6.0.6 pkgsrc-2013Q4-base:1.6 pkgsrc-2013Q3:1.6.0.4 pkgsrc-2013Q3-base:1.6 pkgsrc-2013Q2:1.6.0.2 pkgsrc-2013Q2-base:1.6 pkgsrc-2013Q1:1.5.0.4 pkgsrc-2013Q1-base:1.5 pkgsrc-2012Q4:1.5.0.2 pkgsrc-2012Q4-base:1.5 pkgsrc-2012Q3:1.3.0.6 pkgsrc-2012Q3-base:1.3 pkgsrc-2012Q2:1.3.0.4 pkgsrc-2012Q2-base:1.3 pkgsrc-2012Q1:1.3.0.2 pkgsrc-2012Q1-base:1.3 pkgsrc-2011Q4:1.2.0.4 pkgsrc-2011Q4-base:1.2 pkgsrc-2011Q3:1.2.0.2 pkgsrc-2011Q3-base:1.2 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.25 date 2025.07.04.08.45.41; author wiz; state Exp; branches; next 1.24; commitid vfjLVB0DFyTBfp1G; 1.24 date 2024.11.16.12.04.09; author wiz; state Exp; branches; next 1.23; commitid EcLctWHJOZ20KRxF; 1.23 date 2023.07.06.09.39.05; author wiz; state Exp; branches; next 1.22; commitid 6meR4IA6XJRNYIvE; 1.22 date 2023.06.06.12.40.48; author riastradh; state Exp; branches; next 1.21; commitid xhspr6Z8JLQOWSrE; 1.21 date 2022.06.28.11.32.20; author wiz; state Exp; branches; next 1.20; commitid D2UoJrTHpoHEANJD; 1.20 date 2021.05.24.19.50.35; author wiz; state Exp; branches; next 1.19; commitid qokaiStTApGMcrUC; 1.19 date 2020.08.31.18.07.56; author wiz; state Exp; branches; next 1.18; commitid 7zxRbfOkDOoxbfmC; 1.18 date 2019.08.11.13.19.20; author wiz; state Exp; branches; next 1.17; commitid Ifet9Pg6Qt99ZByB; 1.17 date 2019.07.01.21.35.36; author nia; state Exp; branches; next 1.16; commitid sovjRjd79glt4otB; 1.16 date 2018.08.22.09.43.57; author wiz; state Exp; branches; next 1.15; commitid YLub8g3ofvFGb6PA; 1.15 date 2017.06.05.14.22.55; author ryoon; state Exp; branches; next 1.14; commitid 54KDUXvefsKDYbUz; 1.14 date 2016.06.08.19.22.52; author wiz; state Exp; branches; next 1.13; commitid 12SLmHS6vHs0hH9z; 1.13 date 2016.06.05.12.08.40; author mef; state Exp; branches; next 1.12; commitid RHvAZ56hg9iEXg9z; 1.12 date 2015.06.12.10.48.21; author wiz; state Exp; branches; next 1.11; commitid B4JmCfaVUbiY38py; 1.11 date 2015.05.23.00.02.17; author mef; state Exp; branches; next 1.10; commitid WOnfHgty6nk58vmy; 1.10 date 2015.01.29.08.49.35; author mef; state Exp; branches; next 1.9; commitid 3BqZhLJULXhvIT7y; 1.9 date 2014.10.09.14.06.16; author wiz; state Exp; branches; next 1.8; commitid fBDATFVmQ3454xTx; 1.8 date 2014.05.29.23.35.52; author wiz; state Exp; branches; next 1.7; commitid laryHfkCalgYtuCx; 1.7 date 2014.05.14.02.15.24; author hiramatsu; state Exp; branches; next 1.6; commitid CSxOpoxpeKeqTrAx; 1.6 date 2013.05.31.12.40.17; author wiz; state Exp; branches; next 1.5; commitid hIeXGcx6VfKHwMRw; 1.5 date 2012.10.31.11.18.04; author asau; state Exp; branches; next 1.4; 1.4 date 2012.10.03.21.54.56; author wiz; state Exp; branches; next 1.3; 1.3 date 2012.03.22.13.27.21; author sno; state Exp; branches; next 1.2; 1.2 date 2011.08.23.08.53.08; author abs; state Exp; branches; next 1.1; 1.1 date 2011.08.23.08.50.14; author abs; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2011.08.23.08.50.14; author abs; state Exp; branches; next ; desc @@ 1.25 log @*: bump for perl 5.42.0 @ text @# $NetBSD: Makefile,v 1.24 2024/11/16 12:04:09 wiz Exp $ DISTNAME= Eval-Closure-0.14 PKGNAME= p5-${DISTNAME} PKGREVISION= 10 CATEGORIES= devel perl5 MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=../../authors/id/D/DO/DOY/} MAINTAINER= pkgsrc-users@@NetBSD.org HOMEPAGE= https://metacpan.org/release/Eval-Closure COMMENT= Safely and cleanly create closures via string eval LICENSE= ${PERL5_LICENSE} DEPENDS+= p5-Sub-Exporter-[0-9]*:../../devel/p5-Sub-Exporter DEPENDS+= p5-Try-Tiny-[0-9]*:../../devel/p5-Try-Tiny # for make test TOOL_DEPENDS+= p5-Test-Fatal-[0-9]*:../../devel/p5-Test-Fatal TOOL_DEPENDS+= p5-Test-Requires-[0-9]*:../../devel/p5-Test-Requires TOOL_DEPENDS+= p5-Devel-LexAlias-[0-9]*:../../devel/p5-Devel-LexAlias PERL5_PACKLIST= auto/Eval/Closure/.packlist .include "../../lang/perl5/module.mk" .include "../../mk/bsd.pkg.mk" @ 1.24 log @*: recursive bump for perl 5.40 @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.23 2023/07/06 09:39:05 wiz Exp $ d5 1 a5 1 PKGREVISION= 9 @ 1.23 log @*: recursive bump for perl 5.38 @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.22 2023/06/06 12:40:48 riastradh Exp $ d5 1 a5 1 PKGREVISION= 8 @ 1.22 log @Mass-change BUILD_DEPENDS to TOOL_DEPENDS outside mk/. Almost all uses, if not all of them, are wrong, according to the semantics of BUILD_DEPENDS (packages built for target available for use _by_ tools at build-time) and TOOL_DEPEPNDS (packages built for host available for use _as_ tools at build-time). No change to BUILD_DEPENDS as used correctly inside buildlink3. As proposed on tech-pkg: https://mail-index.netbsd.org/tech-pkg/2023/06/03/msg027632.html @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.21 2022/06/28 11:32:20 wiz Exp $ d5 1 a5 1 PKGREVISION= 7 @ 1.21 log @*: recursive bump for perl 5.36 @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.20 2021/05/24 19:50:35 wiz Exp $ d18 3 a20 3 BUILD_DEPENDS+= p5-Test-Fatal-[0-9]*:../../devel/p5-Test-Fatal BUILD_DEPENDS+= p5-Test-Requires-[0-9]*:../../devel/p5-Test-Requires BUILD_DEPENDS+= p5-Devel-LexAlias-[0-9]*:../../devel/p5-Devel-LexAlias @ 1.20 log @*: recursive bump for perl 5.34 @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.19 2020/08/31 18:07:56 wiz Exp $ d5 1 a5 1 PKGREVISION= 6 @ 1.19 log @*: bump PKGREVISION for perl-5.32. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.18 2019/08/11 13:19:20 wiz Exp $ d5 1 a5 1 PKGREVISION= 5 @ 1.18 log @Bump PKGREVISIONs for perl 5.30.0 @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.17 2019/07/01 21:35:36 nia Exp $ d5 1 a5 1 PKGREVISION= 4 @ 1.17 log @Follow some remaining search.cpan.org redirects. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.16 2018/08/22 09:43:57 wiz Exp $ d5 1 a5 1 PKGREVISION= 3 @ 1.16 log @Recursive bump for perl5-5.28.0 @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.15 2017/06/05 14:22:55 ryoon Exp $ d10 1 a10 1 HOMEPAGE= http://search.cpan.org/~doy/Eval-Closure/ @ 1.15 log @Recursive revbump from lang/perl5 5.26.0 @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.14 2016/06/08 19:22:52 wiz Exp $ d5 1 a5 1 PKGREVISION= 2 @ 1.14 log @Bump PKGREVISION for perl-5.24. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.13 2016/06/05 12:08:40 mef Exp $ d5 1 a5 1 PKGREVISION= 1 @ 1.13 log @Updated devel/p5-Eval-Closure to 0.14 ------------------------------------- 0.14 2016-05-29 - a couple minor optimizations (dolmen, #8) @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.12 2015/06/12 10:48:21 wiz Exp $ d5 1 @ 1.12 log @Recursive PKGREVISION bump for all packages mentioning 'perl', having a PKGNAME of p5-*, or depending such a package, for perl-5.22.0. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.11 2015/05/23 00:02:17 mef Exp $ d3 1 a3 1 DISTNAME= Eval-Closure-0.13 a4 1 PKGREVISION= 1 @ 1.11 log @(pkgsrc) - Add one BUILD_DEPENDS to devel/p5-Devel-LexAlias for make test. (upstream) - Update to 0.13 -------------- 0.13 2015-05-12 - one more fix for blead (eserte, jplesnik, #6) @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.10 2015/01/29 08:49:35 mef Exp $ d5 1 @ 1.10 log @Update to 0.12 0.12 2015-01-17 - fix tests under blead (sprout, #4) @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.9 2014/10/09 14:06:16 wiz Exp $ d3 1 a3 1 DISTNAME= Eval-Closure-0.12 d16 1 d19 1 @ 1.9 log @Remove pkgviews: don't set PKG_INSTALLATION_TYPES in Makefiles. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.8 2014/05/29 23:35:52 wiz Exp $ d3 1 a3 1 DISTNAME= Eval-Closure-0.11 a4 1 PKGREVISION= 1 @ 1.8 log @Bump for perl-5.20.0. Do it for all packages that * mention perl, or * have a directory name starting with p5-*, or * depend on a package starting with p5- like last time, for 5.18, where this didn't lead to complaints. Let me know if you have any this time. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.7 2014/05/14 02:15:24 hiramatsu Exp $ a19 2 PKG_INSTALLATION_TYPES= overwrite pkgviews @ 1.7 log @Update devel/p5-Eval-Closure to 0.11. Changes from previous: ---------------------- 0.11 2013-07-30 - add "alias => 1" option for making closure variables actually alias the closed over variables (so the variable referenced in the environment hashref will actually be updated by changes made in the closure). (Toby Inkster, #3) 0.10 2013-07-10 - fix pod links 0.09 2013-07-10 - support lexical subs on 5.18+ @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.6 2013/05/31 12:40:17 wiz Exp $ d5 1 @ 1.6 log @Bump all packages for perl-5.18, that a) refer 'perl' in their Makefile, or b) have a directory name of p5-*, or c) have any dependency on any p5-* package Like last time, where this caused no complaints. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.5 2012/10/31 11:18:04 asau Exp $ d3 1 a3 1 DISTNAME= Eval-Closure-0.08 a4 1 PKGREVISION= 2 @ 1.5 log @Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.4 2012/10/03 21:54:56 wiz Exp $ d5 1 a5 1 PKGREVISION= 1 @ 1.4 log @Bump all packages that use perl, or depend on a p5-* package, or are called p5-*. I hope that's all of them. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.3 2012/03/22 13:27:21 sno Exp $ a20 1 PKG_DESTDIR_SUPPORT= user-destdir @ 1.3 log @Updating package for Perl5 module Eval::Closure from CPAN in devel/p5-Eval-Closure from 0.06 to 0.08. pkgsrc changes: - change no-version dependency notation from x>=0 into x-[0-9]* Upstream changes: 0.08 2012-02-09 - Remove a double layer of string eval that was introduced in 0.07 as an intermediate step in figuring out the unique package thing - it's not necessary with the final implementation, and just makes things slower and hides errors. 0.07 2012-02-03 - the given source is now evaled in a unique package for every eval_closure call (it used to always be evaled in the Eval::Closure package, which was especially buggy). this is to avoid issues where one eval_closure modifies the global environment (by, say, importing a function), which could mess up a later call. unfortunately, this means that the memoization stuff no longer works, since it will result in memoized results using the original package, which defeats the purpose. i'm open to suggestions on how to safely reenable it though. - clean up a few stray lexicals we were still closing over in the eval @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.2 2011/08/23 08:53:08 abs Exp $ d5 1 @ 1.2 log @Tune down requirements @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.1.1.1 2011/08/23 08:50:14 abs Exp $ d3 1 a3 1 DISTNAME= Eval-Closure-0.06 d13 2 a14 2 DEPENDS+= p5-Sub-Exporter>=0:../../devel/p5-Sub-Exporter DEPENDS+= p5-Try-Tiny>=0:../../devel/p5-Try-Tiny d16 2 a17 2 BUILD_DEPENDS+= p5-Test-Fatal>=0:../../devel/p5-Test-Fatal BUILD_DEPENDS+= p5-Test-Requires>=0:../../devel/p5-Test-Requires @ 1.1 log @Initial revision @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.22 2011/08/12 12:03:39 adam Exp $ d13 2 a14 2 DEPENDS+= p5-Sub-Exporter>=0.980:../../devel/p5-Sub-Exporter DEPENDS+= p5-Try-Tiny>=0.02:../../devel/p5-Try-Tiny d16 2 a17 2 BUILD_DEPENDS+= p5-Test-Fatal>=0.05:../../devel/p5-Test-Fatal BUILD_DEPENDS+= p5-Test-Requires>=0.05:../../devel/p5-Test-Requires @ 1.1.1.1 log @Added devel/p5-Eval-Closure version 0.06 String eval is often used for dynamic code generation. For instance, Moose uses it heavily, to generate inlined versions of accessors and constructors, which speeds code up at runtime by a significant amount. String eval is not without its issues however - it's difficult to control the scope it's used in (which determines which variables are in scope inside the eval), and it can be quite slow, especially if doing a large number of evals. This module attempts to solve both of those problems. It provides an eval_closure function, which evals a string in a clean environment, other than a fixed list of specified variables. It also caches the result of the eval, so that doing repeated evals of the same source, even with a different environment, will be much faster (but note that the description is part of the string to be evaled, so it must also be the same (or non-existent) if caching is to work properly). @ text @@