From nobody Fri May 13 11:45:41 2022 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 4FC3E1AD84CE; Fri, 13 May 2022 11:45:43 +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 4L06KL43g9z3sGm; Fri, 13 May 2022 11:45:42 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1652442343; 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=khVz9SRZRbMuG6GXgku5sbX0yzmAHvtuKjAh5SRf4h4=; b=C7XrPe3hUCtGiHXJOTZy2L+srwPivBBAs4Df1aO6oP7JGchXaHVJok235Rq723az1xNPS9 2LYQjwjg2WGiFC6ZqiAKIgPONExlbttpYlVwtCEeCUt7qrXRmbnruoxd26an5ZtVOClsuh WxzmmbIfGUImaejyh9QUisgcMbdCRNEvOpTcrowndeUXjgZBTI1yBT5cdBw+eu+RMdM2le zYmjuyO0nPhzVujoB2y2KDw9lB0a8joXI7dNR5s/3gZcc0gqZ0A0gTgjcwT1TTIm3fdFAe PcobnDwJoxcQbCPnKRMW9Ep0KEMkfCSm912VGNRBGl8pdfV4z3pXHG2jtXs0Tg== 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 033C822134; Fri, 13 May 2022 11:45:42 +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 24DBjf2P064065; Fri, 13 May 2022 11:45:41 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 24DBjfS3064064; Fri, 13 May 2022 11:45:41 GMT (envelope-from git) Date: Fri, 13 May 2022 11:45:41 GMT Message-Id: <202205131145.24DBjfS3064064@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: d019f0aa2d49 - main - devel/py-filemagic: Change MASTER_SITES from GitHub to CHEESESHOP List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: d019f0aa2d492856225a54cc7b242401614ac134 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1652442342; 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=khVz9SRZRbMuG6GXgku5sbX0yzmAHvtuKjAh5SRf4h4=; b=fkL3wZkfO8taYwb/0AHi0EXg2W5AGIJ3/KMPzo877/mlFBFzHbM6xNCbV9Qm0m9HdAJWwF FkbtMGXD5kzXRUDeUyWyDp82VH25cxkC5x2rRNc8SaJwFtR9a3e3FhN6o+0DIw0mqlb+k7 fBBYdnD0hqOJ9yD+kTwsybI9BQUW/wUDd45fdq1l2gU7YtR5t9K0X2RX2WAjN9XHY5650f ZlLT4b9eteM7ldLNdqDuAzU4eRI69yI+8mH86eCNzX3srVbrdjkTj/w9PU6qX1D7X+Hwfa N2nk6r4bRQU0aLKnsoOdQIWOW60TGoj3DWJO+I6xBkMGE3aNbR6fZuw8FT9zBg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1652442343; a=rsa-sha256; cv=none; b=FFVMAq3oCkFqVpRmTcAuK3nkTEpxdMrxY4lwZmEBmejj+EBbWb7W3o2oVZCJnjJRTd3i9E l8GwlMkZ7wohGyfziIBJXanWMkn+RdJEF7BPaFMXyggaYtGz9LpA3oRP8Q9S5zGFhQPvC2 GXLKwsFtSX0lG3N5oIH+wNdEqFxt53mPXs1p22vVfhGgRq4Nfn5wFs7gNeW//+4WeC7scX SLaapPLLcHOzfC1CIQnRBL393o9iYUPW1E87SoyfBbR6A1IfnJieOIQwLPrH0kWd21/93m 816AlE8tOIzc+plRCPaN7MF1u+i2g1AfugM7HW7yo4oT36EGQJQi6ZmV5FGdQg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=d019f0aa2d492856225a54cc7b242401614ac134 commit d019f0aa2d492856225a54cc7b242401614ac134 Author: Po-Chuan Hsieh AuthorDate: 2022-05-13 11:30:44 +0000 Commit: Po-Chuan Hsieh CommitDate: 2022-05-13 11:39:27 +0000 devel/py-filemagic: Change MASTER_SITES from GitHub to CHEESESHOP - Add NO_ARCH - Clean up Makefile - Remove outdated patch - Update do-test: - Update pkg-descr - Update WWW --- devel/py-filemagic/Makefile | 24 +++++++++--------------- devel/py-filemagic/distinfo | 5 +++-- devel/py-filemagic/files/patch-magic_api.py | 11 ----------- devel/py-filemagic/pkg-descr | 20 ++++++++++---------- 4 files changed, 22 insertions(+), 38 deletions(-) diff --git a/devel/py-filemagic/Makefile b/devel/py-filemagic/Makefile index 9eee494a8cc4..f443dcb36ea9 100644 --- a/devel/py-filemagic/Makefile +++ b/devel/py-filemagic/Makefile @@ -3,6 +3,7 @@ PORTNAME= filemagic PORTVERSION= 1.6 CATEGORIES= devel python +MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= sunpoet@FreeBSD.org @@ -11,23 +12,16 @@ COMMENT= Python API for libmagic, the library behind the Unix file command LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE -TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock@${PY_FLAVOR} - -OPTIONS_DEFINE= TESTS - -TESTS_DESC= Install test suite requirements -TESTS_BUILD_DEPENDS= ${TEST_DEPENDS} +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mock>=0:devel/py-mock@${PY_FLAVOR} USES= python:3.6+ -USE_GITHUB= yes -USE_PYTHON= autoplist distutils - -GH_ACCOUNT= aliles -GH_TAGNAME= b24df9f +USE_PYTHON= autoplist concurrent distutils -.include +NO_ARCH= yes -regression-test: build - @cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test +do-test: + ${MKDIR} ${WRKSRC}/tests/magic + ${FETCH_CMD} -o ${WRKSRC}/tests/magic/python https://github.com/aliles/filemagic/raw/master/tests/magic/python + cd ${WRKSRC} && ${SETENV} PYTHONPATH=${STAGEDIR}${PYTHON_SITELIBDIR} ${PYTHON_CMD} tests/test_magic.py -.include +.include diff --git a/devel/py-filemagic/distinfo b/devel/py-filemagic/distinfo index f6de404b037d..d87efec4e6b3 100644 --- a/devel/py-filemagic/distinfo +++ b/devel/py-filemagic/distinfo @@ -1,2 +1,3 @@ -SHA256 (aliles-filemagic-1.6-b24df9f_GH0.tar.gz) = 776304a453ac4f284e3f94037350a0ab9d21ca093e2e0de8193d6f5c3d5587eb -SIZE (aliles-filemagic-1.6-b24df9f_GH0.tar.gz) = 16819 +TIMESTAMP = 1652122635 +SHA256 (filemagic-1.6.tar.gz) = e684359ef40820fe406f0ebc5bf8a78f89717bdb7fed688af68082d991d6dbf3 +SIZE (filemagic-1.6.tar.gz) = 16754 diff --git a/devel/py-filemagic/files/patch-magic_api.py b/devel/py-filemagic/files/patch-magic_api.py deleted file mode 100644 index e7b0dbe82a52..000000000000 --- a/devel/py-filemagic/files/patch-magic_api.py +++ /dev/null @@ -1,11 +0,0 @@ ---- magic/api.py.orig 2014-12-23 03:21:58 UTC -+++ magic/api.py -@@ -9,7 +9,7 @@ import ctypes - import platform - import warnings - --libname = ctypes.util.find_library('magic') -+libname = ctypes.util.find_library('magic') or ctypes.util.find_library('magic1') - if not libname: - if platform.system() == 'SunOS': - libname = 'libmagic.so' diff --git a/devel/py-filemagic/pkg-descr b/devel/py-filemagic/pkg-descr index db57d4841144..6c60645015fe 100644 --- a/devel/py-filemagic/pkg-descr +++ b/devel/py-filemagic/pkg-descr @@ -1,14 +1,14 @@ filemagic provides a Python API for libmagic, the library behind Unix file -command. It enables the Python developer to easilty test for file types from -the extensive identification library that is shipped with libmagic. +command. It enables the Python developer to easilty test for file types from the +extensive identification library that is shipped with libmagic. Features: +- Simple, Python API. +- Identifies named files or strings. +- Return a textual description, mime type or mime encoding. +- Provide custom magic files to customize file detection. +- Support for both Python2 and Python3. +- Support for both CPython and PyPy. - * Simple, Python API - * Identifies named files or strings - * Return a textual description, mime type or mime encoding - * Provide custom magic files to customize file detection - * Support for both Python2 and Python3 - * Support for both CPython and PyPy - -WWW: https://filemagic.readthedocs.org +WWW: https://filemagic.readthedocs.io/en/latest/ +WWW: https://github.com/aliles/filemagic