svn commit: r407575 - in head/devel: . py-python-magic

Kubilay Kocak koobs at FreeBSD.org
Sun Jan 31 06:16:02 UTC 2016


Author: koobs
Date: Sun Jan 31 06:16:00 2016
New Revision: 407575
URL: https://svnweb.freebsd.org/changeset/ports/407575

Log:
  [NEW] devel/py-python-magic: File type identification using libmagic
  
  This module uses ctypes to access the libmagic file type identification
  library. It makes use of the local magic database and supports both
  textual and MIME-type output.
  
  WWW: http://github.com/ahupp/python-magic
  
  Requested by:	emaste, bapt (for diffoscope / reproducible builds)

Added:
  head/devel/py-python-magic/
  head/devel/py-python-magic/Makefile   (contents, props changed)
  head/devel/py-python-magic/distinfo   (contents, props changed)
  head/devel/py-python-magic/pkg-descr   (contents, props changed)
Modified:
  head/devel/Makefile

Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile	Sun Jan 31 06:11:28 2016	(r407574)
+++ head/devel/Makefile	Sun Jan 31 06:16:00 2016	(r407575)
@@ -4256,6 +4256,7 @@
     SUBDIR += py-python-bugzilla
     SUBDIR += py-python-distutils-extra
     SUBDIR += py-python-jenkins
+    SUBDIR += py-python-magic
     SUBDIR += py-python-pcre
     SUBDIR += py-python-statsd
     SUBDIR += py-python2-pythondialog

Added: head/devel/py-python-magic/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-python-magic/Makefile	Sun Jan 31 06:16:00 2016	(r407575)
@@ -0,0 +1,27 @@
+# Created by: Kubilay Kocak <koobs at FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME=	python-magic
+PORTVERSION=	0.4.10
+CATEGORIES=	devel python
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	koobs at FreeBSD.org
+COMMENT=	File type identification using libmagic
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+USES=		python
+USE_GITHUB=	yes
+USE_PYTHON=	autoplist distutils
+
+GH_ACCOUNT=	ahupp
+GH_TAGNAME=	6e3322
+
+NO_ARCH=	yes
+
+do-test:
+	@cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
+
+.include <bsd.port.mk>

Added: head/devel/py-python-magic/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-python-magic/distinfo	Sun Jan 31 06:16:00 2016	(r407575)
@@ -0,0 +1,2 @@
+SHA256 (ahupp-python-magic-0.4.10-6e3322_GH0.tar.gz) = 966d4069734d4c4f30adaac794b0d39759890a7eda75651961fe20c1f25aa802
+SIZE (ahupp-python-magic-0.4.10-6e3322_GH0.tar.gz) = 133525

Added: head/devel/py-python-magic/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-python-magic/pkg-descr	Sun Jan 31 06:16:00 2016	(r407575)
@@ -0,0 +1,5 @@
+This module uses ctypes to access the libmagic file type identification
+library. It makes use of the local magic database and supports both
+textual and MIME-type output.
+
+WWW: http://github.com/ahupp/python-magic


More information about the svn-ports-head mailing list