From nobody Wed Dec 28 14:22:26 2022 X-Original-To: dev-commits-ports-main@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 4NhtyV7393z1Lnh4; Wed, 28 Dec 2022 14:22:26 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NhtyV64YBz3MKp; Wed, 28 Dec 2022 14:22:26 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1672237346; 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=owyNX9xLjmGHNBksTn06jWT/V7DaLAXyPFMhIoG3Lso=; b=qqoS6Edx1fSDkjjCRyWbL1bIFvzhPmsgEzrc+dleOyY8bdysTHgdxC0rymFSVSuBYUq95Q +xI2H0T1EU4md/JSSG16DR21/kHiDKazvapR1FdiYHECI/4MfbcS7Yub+yFJvExthiLQNE /MjKnng2h/HJ2tq9pxjqIr+kX0OkFUZwFxkJIqmDPNMNPxa13QeBFhBwiiAgquaPsun3P7 8/YnThAfdtoHhM1OIiWRuhaSzKTuOEYZQrd1aKOWWyNCxWD9d2Bypa2K65DLxAn5mPLDn4 donhssHVG/wvu3zEKzRPQ4bDUlY8kg6kva4fwd6H30H2XkbYaM+zUJzZBm5lJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1672237346; 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=owyNX9xLjmGHNBksTn06jWT/V7DaLAXyPFMhIoG3Lso=; b=D8y+uCHFI7FVKic55vDHlLJ7jI8G+I1s6LETd99rBKk9Jlwtqk/eFbpNcZZXZrFO+ipioS ECqFnhO0AkQ0hYhdlwuLS2BC8U73bUVIPvTPYqV3AuBOZGvE+o/bZN+zwoqX2B3nJ8OoHL 9V/1YZ5CTg4ZIkBvx2oS+WZUZ1DHUgeRLL/PBzUvoPHSpmK6xMKRS8YNpRyf4BklD7uPEY IjacI54SXmQvwXgjzexUuWhI3javLHT6gQYnoigOe/k8IEqUUS8AH9D8m/3ksWT0/FKS7d deRtzK5dPAoBp1rfq+yxjc/P5ckiXdHcglcQ242NnXxt2kCxZGJPNK9ZfE95FA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1672237346; a=rsa-sha256; cv=none; b=TSpUOP9qnDQCz8rR+Qr1pOtMgcyt2zPjWzIX/SAZaG+Ol0tsZkbYkCqSwHrOlf3HSJQQNE Ez1W6F0KH0RhwuTIkebn8kCoJuCuARp9hNKfWPjr7wIu8VHniqRtSFTeH2gKvmXMzuc7rB Kf8/ZcjLbb8bDKh7Fc/aP/ikDZzbGOjd6TDho6vqXrCRL2Hf91RmgbND5stXYJ1yh2uy96 BWD8eSA/n8ou1jBknWRYhe9RAdgBWiTvzgoSX1iJUUzc74uFjL15rrUxL0LLNkNcqkA6Na bijy813NDB9VdT+xszOdG3sFFN9tSC1ghr6wNyLwJq+T9LBk/aKwhVeIBHMjSg== 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 4NhtyV57btzsnt; Wed, 28 Dec 2022 14:22:26 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2BSEMQ43019809; Wed, 28 Dec 2022 14:22:26 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2BSEMQ2X019808; Wed, 28 Dec 2022 14:22:26 GMT (envelope-from git) Date: Wed, 28 Dec 2022 14:22:26 GMT Message-Id: <202212281422.2BSEMQ2X019808@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: "Vanilla I. Shu" Subject: git: e826067cdbc1 - main - sysutils/lua-puremagic: add lua-puremagic. List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: vanilla X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: e826067cdbc1fb5e800cf3a954ffa17875a59acf Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by vanilla: URL: https://cgit.FreeBSD.org/ports/commit/?id=e826067cdbc1fb5e800cf3a954ffa17875a59acf commit e826067cdbc1fb5e800cf3a954ffa17875a59acf Author: Vanilla I. Shu AuthorDate: 2022-12-28 14:21:26 +0000 Commit: Vanilla I. Shu CommitDate: 2022-12-28 14:21:26 +0000 sysutils/lua-puremagic: add lua-puremagic. Lua module that detects the mime type of file based on their contents PR: 268037 Reported by: Manuel Wiesinger --- sysutils/lua-puremagic/Makefile | 26 ++++++++++++++++++++++++++ sysutils/lua-puremagic/distinfo | 3 +++ sysutils/lua-puremagic/pkg-descr | 2 ++ 3 files changed, 31 insertions(+) diff --git a/sysutils/lua-puremagic/Makefile b/sysutils/lua-puremagic/Makefile new file mode 100644 index 000000000000..4a1a8f64e57f --- /dev/null +++ b/sysutils/lua-puremagic/Makefile @@ -0,0 +1,26 @@ +PORTNAME= puremagic +PORTVERSION= 1.0.1 +CATEGORIES= sysutils +PKGNAMEPREFIX= ${LUA_PKGNAMEPREFIX} + +MAINTAINER= mdw@FreeBSD.org +COMMENT= Lua module that detects the mime type of file based on their contents +WWW= https://github.com/wbond/puremagic/ + +LICENSE= MIT + +USES= lua:module + +NO_BUILD= yes + +USE_GITHUB= yes +GH_ACCOUNT= wbond +GH_PROJECT= puremagic + +PLIST_FILES= ${LUA_MODSHAREDIR}/puremagic.lua + +do-install: + @${MKDIR} ${STAGEDIR}${LUA_MODSHAREDIR} + ${INSTALL_DATA} ${WRKSRC}/puremagic.lua ${STAGEDIR}${LUA_MODSHAREDIR} + +.include diff --git a/sysutils/lua-puremagic/distinfo b/sysutils/lua-puremagic/distinfo new file mode 100644 index 000000000000..c4f6482657dd --- /dev/null +++ b/sysutils/lua-puremagic/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1669601089 +SHA256 (wbond-puremagic-1.0.1_GH0.tar.gz) = 7aa363e766b860bcba0a8ed282ab3fa64b0a36da74d4ac53f0ea25d0b8961eda +SIZE (wbond-puremagic-1.0.1_GH0.tar.gz) = 1282633 diff --git a/sysutils/lua-puremagic/pkg-descr b/sysutils/lua-puremagic/pkg-descr new file mode 100644 index 000000000000..019400df3647 --- /dev/null +++ b/sysutils/lua-puremagic/pkg-descr @@ -0,0 +1,2 @@ +A pure Lua module that detects the mime type of file based on their contents. +Falls back to detecting based on extension for plain text files.