From nobody Mon Sep 30 19:40:03 2024
X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1])
	by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4XHWcg5xNHz5XYtj;
	Mon, 30 Sep 2024 19:40:03 +0000 (UTC)
	(envelope-from git@FreeBSD.org)
Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256
	 client-signature RSA-PSS (4096 bits) client-digest SHA256)
	(Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK))
	by mx1.freebsd.org (Postfix) with ESMTPS id 4XHWcg5GL5z46tV;
	Mon, 30 Sep 2024 19:40:03 +0000 (UTC)
	(envelope-from git@FreeBSD.org)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim;
	t=1727725203;
	h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
	 to:to:cc:mime-version:mime-version:content-type:content-type:
	 content-transfer-encoding:content-transfer-encoding;
	bh=E/nwMRHDivnPIT0G4SRk/C0lepgYSy/vjpXH/+u04yM=;
	b=iXRuAoMPN+GvnYYTNRI8cUUZMN9SjUkeO+J88HmsSmUHn4SDAgZjE/Lq9C0KM7P8VVUPtG
	3cWyTr5jO8lkOnQJM8yzySBpK4mkU4cR4VDscTvlGVk8BGEg2tcYuHzgMNmKNFEN4DKDfY
	/McHq8F8H6aKsJhWsIFZUohsrql4IAdJtg7Dnv7lv6XvH4rP2cqyl0w/y9uAfWqqOWt0/Q
	k4x2AebrH5GIcPZMUWqQTt60SntZ4mTVCc+u62xlVWoFNfK8FGMRIHxYN5vuqW5utyB5sh
	FOROxEmwU0Zo7L9arXmiNHqhEcy+kOTyy8y6T4ewHN7YM0CN414IiGQPSL072w==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org;
	s=dkim; t=1727725203;
	h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
	 to:to:cc:mime-version:mime-version:content-type:content-type:
	 content-transfer-encoding:content-transfer-encoding;
	bh=E/nwMRHDivnPIT0G4SRk/C0lepgYSy/vjpXH/+u04yM=;
	b=FZmXL9x+Q/M8hBXi+S0IdTHHc2HYWNSEm0eGuzpkkyPE6fmNIze1yOtUn432zIEfJSzHQz
	S+mFkuwHhOY56KPR2bc5g0vGu1jT6j4xfoZxXxxbZqrtrVN0vgTXuuZYBludeFZbIpdQeM
	Tpujf9cQqLdGUJqsQRVX73dsMxb08sa19ey26fM3nXR5kUKR28oCdF+X/UhfFdTlPvbTOq
	V2ONkED5jjvESwao2yLgNLTWp7Xi4vnWl2PfsZ2n8S0b/68ZfadRZDLIqBb3OSwsi1mom9
	AydZ2WdNuzv8Y1IFfiX9HT/GTWQaMlxqqMqMEzr7pP/g3x823xQ73KrOaZ4kBQ==
ARC-Authentication-Results: i=1;
	mx1.freebsd.org;
	none
ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1727725203; a=rsa-sha256; cv=none;
	b=kF79ul4ob4xCSH1IFK9Ikvv97eScUGSq1+ilNYU30j7SyB/aatopcJ4rKrJ0Ueb26Z5SkB
	9CSzOlHCnLPTF4N8qORBt1ffvw/O/BjYbqV8ZWVImdJzZST31cnjMhPcQPClELe2LBSjf1
	HpGzDNRDH16u0gZ21owGCU2ZtZm1QyyfMfKhfEcDt+DdxvGLDUf2oDSz/US32iUuktLTmw
	K4OZJzhociwFFNNwdvXYPA91r1FPWpKyCVbvnfD8L2YN42zHhJ+98KcijSl6f4De0s4KqU
	MlUvZHO66yZ0WPRtL/MHzeLErLjF7/c0f7ZYhHFArwzrLrbTdv9PiBrRLLWDHQ==
Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(Client did not present a certificate)
	by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4XHWcg4sB3z16L4;
	Mon, 30 Sep 2024 19:40:03 +0000 (UTC)
	(envelope-from git@FreeBSD.org)
Received: from gitrepo.freebsd.org ([127.0.1.44])
	by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 48UJe3oU041712;
	Mon, 30 Sep 2024 19:40:03 GMT
	(envelope-from git@gitrepo.freebsd.org)
Received: (from git@localhost)
	by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48UJe36f041705;
	Mon, 30 Sep 2024 19:40:03 GMT
	(envelope-from git)
Date: Mon, 30 Sep 2024 19:40:03 GMT
Message-Id: <202409301940.48UJe36f041705@gitrepo.freebsd.org>
To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org,
        dev-commits-ports-main@FreeBSD.org
From: Nuno Teixeira <eduardo@FreeBSD.org>
Subject: git: 2f8f54d80589 - main - devel/py-magnet2torrent: New
  port: Turn a bittorrent magnet links into a .torrent file
List-Id: Commit messages for all branches of the ports repository <dev-commits-ports-all.freebsd.org>
List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all
List-Help: <mailto:dev-commits-ports-all+help@freebsd.org>
List-Post: <mailto:dev-commits-ports-all@freebsd.org>
List-Subscribe: <mailto:dev-commits-ports-all+subscribe@freebsd.org>
List-Unsubscribe: <mailto:dev-commits-ports-all+unsubscribe@freebsd.org>
X-BeenThere: dev-commits-ports-all@freebsd.org
Sender: owner-dev-commits-ports-all@FreeBSD.org
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Git-Committer: eduardo
X-Git-Repository: ports
X-Git-Refname: refs/heads/main
X-Git-Reftype: branch
X-Git-Commit: 2f8f54d80589f6c2dd5e44512c23564ab23bb6fc
Auto-Submitted: auto-generated

The branch main has been updated by eduardo:

URL: https://cgit.FreeBSD.org/ports/commit/?id=2f8f54d80589f6c2dd5e44512c23564ab23bb6fc

commit 2f8f54d80589f6c2dd5e44512c23564ab23bb6fc
Author:     Nuno Teixeira <eduardo@FreeBSD.org>
AuthorDate: 2024-09-30 19:27:23 +0000
Commit:     Nuno Teixeira <eduardo@FreeBSD.org>
CommitDate: 2024-09-30 19:39:51 +0000

    devel/py-magnet2torrent: New port: Turn a bittorrent magnet links into a .torrent file
    
    Pure python project to turn a magnet link into a .torrent file. The goal
    is to do it as fast as possible.
    
    WWW: https://github.com/JohnDoee/magnet2torrent
---
 devel/Makefile                    |  1 +
 devel/py-magnet2torrent/Makefile  | 31 +++++++++++++++++++++++++++++++
 devel/py-magnet2torrent/distinfo  |  3 +++
 devel/py-magnet2torrent/pkg-descr |  2 ++
 4 files changed, 37 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index c9c346ca26e3..68192d2c0cde 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -5152,6 +5152,7 @@
     SUBDIR += py-mac-vendor-lookup
     SUBDIR += py-macholib
     SUBDIR += py-magic
+    SUBDIR += py-magnet2torrent
     SUBDIR += py-mailcap-fix
     SUBDIR += py-makefun
     SUBDIR += py-manuel
diff --git a/devel/py-magnet2torrent/Makefile b/devel/py-magnet2torrent/Makefile
new file mode 100644
index 000000000000..b606d56e89ff
--- /dev/null
+++ b/devel/py-magnet2torrent/Makefile
@@ -0,0 +1,31 @@
+PORTNAME=	magnet2torrent
+DISTVERSION=	1.2.1
+CATEGORIES=	devel python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	eduardo@FreeBSD.org
+COMMENT=	Turn a bittorrent magnet links into a .torrent file
+WWW=		https://github.com/JohnDoee/magnet2torrent
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE.md
+
+BUILD_DEPENDS=	${PY_SETUPTOOLS} \
+		${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}aiohttp>0:www/py-aiohttp@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}expiringdict>0:devel/py-expiringdict@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	autoplist pep517
+
+NO_ARCH=	yes
+
+PORTDOCS=	README.md
+OPTIONS_DEFINE=	DOCS
+
+post-install-DOCS-on:
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	(cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR})
+
+.include <bsd.port.mk>
diff --git a/devel/py-magnet2torrent/distinfo b/devel/py-magnet2torrent/distinfo
new file mode 100644
index 000000000000..ba025edf0eb9
--- /dev/null
+++ b/devel/py-magnet2torrent/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1727702386
+SHA256 (magnet2torrent-1.2.1.tar.gz) = 4ba53d304f1db33d33fe227aee5b34f6e640fd2d3199ff0ec3d8cc050cded631
+SIZE (magnet2torrent-1.2.1.tar.gz) = 24022
diff --git a/devel/py-magnet2torrent/pkg-descr b/devel/py-magnet2torrent/pkg-descr
new file mode 100644
index 000000000000..c1e39951b4bc
--- /dev/null
+++ b/devel/py-magnet2torrent/pkg-descr
@@ -0,0 +1,2 @@
+Pure python project to turn a magnet link into a .torrent file. The goal
+is to do it as fast as possible.