git: 070366381b6e - main - devel/p5-threads: remove antique port

From: Mathieu Arnold <mat_at_FreeBSD.org>
Date: Thu, 24 Apr 2025 14:48:17 UTC
The branch main has been updated by mat:

URL: https://cgit.FreeBSD.org/ports/commit/?id=070366381b6ebab7c2a567af87d21eac8690e72a

commit 070366381b6ebab7c2a567af87d21eac8690e72a
Author:     Mathieu Arnold <mat@FreeBSD.org>
AuthorDate: 2025-04-24 14:41:11 +0000
Commit:     Mathieu Arnold <mat@FreeBSD.org>
CommitDate: 2025-04-24 14:47:43 +0000

    devel/p5-threads: remove antique port
    
    The threads module has been part of Perl core since 5.7.3. The version
    in ports is very old (from 5.27.8), and does not see releases.
---
 MOVED                           |  1 +
 devel/Makefile                  |  1 -
 devel/p5-Thread-Cancel/Makefile |  5 +----
 devel/p5-threads/Makefile       | 21 ---------------------
 devel/p5-threads/distinfo       |  3 ---
 devel/p5-threads/pkg-descr      | 19 -------------------
 devel/p5-threads/pkg-plist      |  3 ---
 7 files changed, 2 insertions(+), 51 deletions(-)

diff --git a/MOVED b/MOVED
index 93d1b264a263..fb8dbb592ac8 100644
--- a/MOVED
+++ b/MOVED
@@ -4325,3 +4325,4 @@ graphics/linux-rl9-tiff|graphics/linux-rl9-imageformats-libs|2025-04-21|Merged i
 graphics/linux-rl9-openjpeg|graphics/linux-rl9-imageformats-libs|2025-04-21|Merged into imageformats-libs
 graphics/linux-rl9-webp|graphics/linux-rl9-imageformats-libs|2025-04-21|Merged into imageformats-libs
 textproc/py-grapheme||2025-04-21|Has expired: Upstream is inactive for 4 years
+devel/p5-threads|lang/perl5.36|2025-04-24|part of Perl core since 5.7.3, the port was from 5.27.8
diff --git a/devel/Makefile b/devel/Makefile
index 57ae1721e463..cae47800ad24 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -4018,7 +4018,6 @@
     SUBDIR += p5-subversion
     SUBDIR += p5-superclass
     SUBDIR += p5-syntax
-    SUBDIR += p5-threads
     SUBDIR += p5-threads-shared
     SUBDIR += p5-true
     SUBDIR += p5-uni-perl
diff --git a/devel/p5-Thread-Cancel/Makefile b/devel/p5-Thread-Cancel/Makefile
index f8e81f37a77f..4b04bc609889 100644
--- a/devel/p5-Thread-Cancel/Makefile
+++ b/devel/p5-Thread-Cancel/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	Thread-Cancel
 PORTVERSION=	1.13
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	devel perl5
 MASTER_SITES=	CPAN
 PKGNAMEPREFIX=	p5-
@@ -9,9 +9,6 @@ MAINTAINER=	perl@FreeBSD.org
 COMMENT=	Cancel (i.e., kill) threads
 WWW=		https://metacpan.org/release/Thread-Cancel
 
-BUILD_DEPENDS=	${RUN_DEPENDS}
-RUN_DEPENDS=	p5-threads>=1.34:devel/p5-threads
-
 USES=		perl5
 USE_PERL5=	configure
 
diff --git a/devel/p5-threads/Makefile b/devel/p5-threads/Makefile
deleted file mode 100644
index 530b27b2c13a..000000000000
--- a/devel/p5-threads/Makefile
+++ /dev/null
@@ -1,21 +0,0 @@
-PORTNAME=	threads
-PORTVERSION=	2.21
-CATEGORIES=	devel perl5
-MASTER_SITES=	CPAN
-MASTER_SITE_SUBDIR=	CPAN:JDHEDDEN
-PKGNAMEPREFIX=	p5-
-
-MAINTAINER=	perl@FreeBSD.org
-COMMENT=	Perl interpreter-based threads
-WWW=		https://metacpan.org/release/threads
-
-LICENSE=	ART10 GPLv1+
-LICENSE_COMB=	dual
-
-USES=		perl5
-USE_PERL5=	configure
-
-post-install:
-	${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/threads/threads.so
-
-.include <bsd.port.mk>
diff --git a/devel/p5-threads/distinfo b/devel/p5-threads/distinfo
deleted file mode 100644
index afb0171f9615..000000000000
--- a/devel/p5-threads/distinfo
+++ /dev/null
@@ -1,3 +0,0 @@
-TIMESTAMP = 1516713265
-SHA256 (threads-2.21.tar.gz) = 28394c98a2bcae6f20ffb8a3d965a1c194b764c650169e2050ee38dbaa10f110
-SIZE (threads-2.21.tar.gz) = 113446
diff --git a/devel/p5-threads/pkg-descr b/devel/p5-threads/pkg-descr
deleted file mode 100644
index d51c63370d54..000000000000
--- a/devel/p5-threads/pkg-descr
+++ /dev/null
@@ -1,19 +0,0 @@
-Perl 5.6 introduced something called interpreter threads. Interpreter
-threads are different from 5005threads (the thread model of Perl 5.005)
-by creating a new Perl interpreter per thread, and not sharing any
-data or state between threads by default.
-
-Prior to Perl 5.8, this has only been available to people embedding
-Perl, and for emulating fork() on Windows.
-
-The threads API is loosely based on the old Thread.pm API. It is very
-important to note that variables are not shared between threads, all
-variables are by default thread local. To use shared variables one
-must use threads::shared.
-
-It is also important to note that you must enable threads by doing use
-threads as early as possible in the script itself, and that it is not
-possible to enable threading inside an eval "", do, require, or use.
-In particular, if you are intending to share variables with
-threads::shared, you must use threads before you use threads::shared.
-(threads will emit a warning if you do it the other way around.)
diff --git a/devel/p5-threads/pkg-plist b/devel/p5-threads/pkg-plist
deleted file mode 100644
index 3f7d8adfbc52..000000000000
--- a/devel/p5-threads/pkg-plist
+++ /dev/null
@@ -1,3 +0,0 @@
-%%SITE_ARCH%%/auto/threads/threads.so
-%%SITE_ARCH%%/threads.pm
-%%PERL5_MAN3%%/threads.3.gz