summaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authorrodent <rodent@pkgsrc.org>2014-06-02 00:12:59 +0000
committerrodent <rodent@pkgsrc.org>2014-06-02 00:12:59 +0000
commit3142fbfc398adac22606cfc6f7439ed73e16f0b2 (patch)
treeab46133c73d07a3a5f67cb34d0be177a5fe90636 /sysutils
parent5087f3eff2fd1dead80de1201c0b141f7757e1a5 (diff)
downloadpkgsrc-3142fbfc398adac22606cfc6f7439ed73e16f0b2.tar.gz
Import py27-magic-0.4.6 as sysutils/py-magic.
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.
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/py-magic/DESCR3
-rw-r--r--sysutils/py-magic/Makefile18
-rw-r--r--sysutils/py-magic/PLIST8
-rw-r--r--sysutils/py-magic/distinfo5
4 files changed, 34 insertions, 0 deletions
diff --git a/sysutils/py-magic/DESCR b/sysutils/py-magic/DESCR
new file mode 100644
index 00000000000..5539a397f73
--- /dev/null
+++ b/sysutils/py-magic/DESCR
@@ -0,0 +1,3 @@
+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.
diff --git a/sysutils/py-magic/Makefile b/sysutils/py-magic/Makefile
new file mode 100644
index 00000000000..dae4533281b
--- /dev/null
+++ b/sysutils/py-magic/Makefile
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1 2014/06/02 00:12:59 rodent Exp $
+
+DISTNAME= python-magic-0.4.6
+PKGNAME= ${DISTNAME:S/python/${PYPKGPREFIX}/1}
+CATEGORIES= python sysutils
+MASTER_SITES= http://pypi.python.org/packages/source/p/python-magic/
+
+MAINTAINER= khorben@defora.org
+HOMEPAGE= http://github.com/ahupp/python-magic
+COMMENT= File type identification using libmagic
+LICENSE= python-software-foundation
+
+EGG_NAME= ${DISTNAME:S/-magic/_magic/}
+
+USE_LANGUAGES= # none
+
+.include "../../lang/python/egg.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/sysutils/py-magic/PLIST b/sysutils/py-magic/PLIST
new file mode 100644
index 00000000000..bd4c58464f9
--- /dev/null
+++ b/sysutils/py-magic/PLIST
@@ -0,0 +1,8 @@
+@comment $NetBSD: PLIST,v 1.1 2014/06/02 00:12:59 rodent Exp $
+${PYSITELIB}/magic.py
+${PYSITELIB}/magic.pyc
+${PYSITELIB}/magic.pyo
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
diff --git a/sysutils/py-magic/distinfo b/sysutils/py-magic/distinfo
new file mode 100644
index 00000000000..2c0abc1afe1
--- /dev/null
+++ b/sysutils/py-magic/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2014/06/02 00:12:59 rodent Exp $
+
+SHA1 (python-magic-0.4.6.tar.gz) = 5e1d120cf5a8f0a743be998aaf7dcabd5564506c
+RMD160 (python-magic-0.4.6.tar.gz) = b1af3f7e06dabbb1657bbf43ad0fef225e2f5f14
+Size (python-magic-0.4.6.tar.gz) = 3462 bytes