aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralexbl <alexbl@FreeBSD.org>2006-11-20 15:42:37 +0800
committeralexbl <alexbl@FreeBSD.org>2006-11-20 15:42:37 +0800
commitb9579470e74e90a9503bdd74f259f7e2242c8a1f (patch)
tree65eacfa13808387548e8c7d881035577fdb2d021
parentd0e21731858048edffee54be8a5d4175b258e873 (diff)
downloadfreebsd-ports-graphics-b9579470e74e90a9503bdd74f259f7e2242c8a1f.tar.gz
freebsd-ports-graphics-b9579470e74e90a9503bdd74f259f7e2242c8a1f.tar.zst
freebsd-ports-graphics-b9579470e74e90a9503bdd74f259f7e2242c8a1f.zip
- add py-magic 4.18:
Python bindings for libmagic used to get a description of a file type, or a mime type for that file.
-rw-r--r--devel/Makefile1
-rw-r--r--devel/py-magic/Makefile24
-rw-r--r--devel/py-magic/distinfo3
-rw-r--r--devel/py-magic/files/patch-python_setup.py11
-rw-r--r--devel/py-magic/pkg-descr2
-rw-r--r--devel/py-magic/pkg-plist1
6 files changed, 42 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 53d748ea571..6663fc99bfa 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -1717,6 +1717,7 @@
SUBDIR += py-log4py
SUBDIR += py-logging
SUBDIR += py-logilab-common
+ SUBDIR += py-magic
SUBDIR += py-mx-experimental
SUBDIR += py-ncurses
SUBDIR += py-ocempgui
diff --git a/devel/py-magic/Makefile b/devel/py-magic/Makefile
new file mode 100644
index 00000000000..e34d2782af0
--- /dev/null
+++ b/devel/py-magic/Makefile
@@ -0,0 +1,24 @@
+# New ports collection makefile for: py-magic
+# Date created: 19 Nov 2006
+# Whom: Alexander Botero-Lowry <alexbl@FreeBSD.org>
+#
+# $FreeBSD$
+
+PORTNAME= magic
+PORTVERSION= 4.18
+CATEGORIES= devel python
+MASTER_SITES= ftp://ftp.astron.com/pub/file/ \
+ ftp://ftp.gw.com/mirrors/pub/unix/file/ \
+ ftp://ftp.fu-berlin.de/unix/tools/file/
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+DISTNAME= file-${PORTVERSION}
+
+MAINTAINER= python@FreeBSD.org
+COMMENT= Python module for determing file type
+
+USE_PYTHON= yes
+USE_PYDISTUTILS= yes
+
+WRKSRC= ${WRKDIR}/file-${PORTVERSION}/python
+
+.include <bsd.port.mk>
diff --git a/devel/py-magic/distinfo b/devel/py-magic/distinfo
new file mode 100644
index 00000000000..3f945805df7
--- /dev/null
+++ b/devel/py-magic/distinfo
@@ -0,0 +1,3 @@
+MD5 (file-4.18.tar.gz) = ce1aa9b0316feb57d40a48cfe6b606e4
+SHA256 (file-4.18.tar.gz) = 5090d5123ea642842d04d3f93a821e1372e5d9e434c74c08ee2483cc150a6273
+SIZE (file-4.18.tar.gz) = 536447
diff --git a/devel/py-magic/files/patch-python_setup.py b/devel/py-magic/files/patch-python_setup.py
new file mode 100644
index 00000000000..cd0959f0c30
--- /dev/null
+++ b/devel/py-magic/files/patch-python_setup.py
@@ -0,0 +1,11 @@
+--- setup.py.orig Sun Nov 19 19:43:16 2006
++++ setup.py Sun Nov 19 19:43:09 2006
+@@ -2,7 +2,7 @@
+ from distutils.core import setup, Extension
+
+ magic_module = Extension('magic',
+- libraries = ['magic'],
++ libraries = ['magic', 'z'],
+ library_dirs = ['./','../','../src','/usr/lib/'],
+ include_dirs = ['./','../','../src','/usr/include/'],
+ sources = ['py_magic.c'])
diff --git a/devel/py-magic/pkg-descr b/devel/py-magic/pkg-descr
new file mode 100644
index 00000000000..5f31af8a7b1
--- /dev/null
+++ b/devel/py-magic/pkg-descr
@@ -0,0 +1,2 @@
+Python bindings for libmagic used to get a description of a
+file type, or a mime type for that file.
diff --git a/devel/py-magic/pkg-plist b/devel/py-magic/pkg-plist
new file mode 100644
index 00000000000..fdd29f39971
--- /dev/null
+++ b/devel/py-magic/pkg-plist
@@ -0,0 +1 @@
+%%PYTHON_SITELIBDIR%%/magic.so