Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Feb 2023 07:55:09 GMT
From:      Emanuel Haupt <ehaupt@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 7457e5faa475 - main - devel/bencodetools: Add new port
Message-ID:  <202302200755.31K7t9O4033340@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by ehaupt:

URL: https://cgit.FreeBSD.org/ports/commit/?id=7457e5faa47593492f7d78484ffe719c89c9dc2a

commit 7457e5faa47593492f7d78484ffe719c89c9dc2a
Author:     Emanuel Haupt <ehaupt@FreeBSD.org>
AuthorDate: 2023-02-20 07:46:17 +0000
Commit:     Emanuel Haupt <ehaupt@FreeBSD.org>
CommitDate: 2023-02-20 07:55:04 +0000

    devel/bencodetools: Add new port
    
    bencode-tools is a collection of tools for manipulating bencoded data.
    
    Bencode (pronounced like Bee-encode) is the encoding used by the
    peer-to-peer file sharing system BitTorrent for storing and transmitting
    loosely structured data.
---
 devel/Makefile               |  1 +
 devel/bencodetools/Makefile  | 36 ++++++++++++++++++++++++++++++++++++
 devel/bencodetools/distinfo  |  3 +++
 devel/bencodetools/pkg-descr |  5 +++++
 4 files changed, 45 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index db42cbe0a622..b06a274d37ec 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -270,6 +270,7 @@
     SUBDIR += bcunit
     SUBDIR += bear
     SUBDIR += benchmark
+    SUBDIR += bencodetools
     SUBDIR += bennugd-core
     SUBDIR += bennugd-modules
     SUBDIR += bfg
diff --git a/devel/bencodetools/Makefile b/devel/bencodetools/Makefile
new file mode 100644
index 000000000000..4af871ba9c30
--- /dev/null
+++ b/devel/bencodetools/Makefile
@@ -0,0 +1,36 @@
+PORTNAME=	bencodetools
+PORTVERSION=	g20221122
+CATEGORIES=	devel
+
+MAINTAINER=	ehaupt@FreeBSD.org
+COMMENT=	Collection of tools for manipulating bencoded data
+WWW=		https://gitlab.com/heikkiorsila/bencodetools
+
+LICENSE=	BSD2CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	bash:shells/bash
+
+USES=		shebangfix
+USE_GITLAB=	yes
+GL_ACCOUNT=	heikkiorsila
+GL_COMMIT=	f08cb85806d5b188f3af04cd21393dd8eb51b287
+USE_LDCONFIG=	yes
+
+SHEBANG_FILES=	configure
+
+HAS_CONFIGURE=	yes
+CONFIGURE_ARGS=	--c-compiler=${CC} \
+		--package-prefix=${STAGEDIR} \
+		--prefix=${PREFIX} \
+		--without-python
+
+PLIST_FILES=	bin/bencat \
+		include/bencodetools/bencode.h \
+		lib/libbencodetools.so
+
+post-install:
+	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/bencat \
+		${STAGEDIR}${PREFIX}/lib/libbencodetools.so
+
+.include <bsd.port.mk>
diff --git a/devel/bencodetools/distinfo b/devel/bencodetools/distinfo
new file mode 100644
index 000000000000..344735df6c90
--- /dev/null
+++ b/devel/bencodetools/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1676827805
+SHA256 (heikkiorsila-bencodetools-f08cb85806d5b188f3af04cd21393dd8eb51b287_GL0.tar.gz) = 2fa2058d5a0edec3d9b665cbd580d479ded50a11add45258692e6804cbc2a400
+SIZE (heikkiorsila-bencodetools-f08cb85806d5b188f3af04cd21393dd8eb51b287_GL0.tar.gz) = 38621
diff --git a/devel/bencodetools/pkg-descr b/devel/bencodetools/pkg-descr
new file mode 100644
index 000000000000..b8fa313d84d7
--- /dev/null
+++ b/devel/bencodetools/pkg-descr
@@ -0,0 +1,5 @@
+bencode-tools is a collection of tools for manipulating bencoded data.
+
+Bencode (pronounced like Bee-encode) is the encoding used by the
+peer-to-peer file sharing system BitTorrent for storing and transmitting
+loosely structured data.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202302200755.31K7t9O4033340>