pyusb-0.3.5, python interface to libusb
This commit is contained in:
parent
12eb57b215
commit
e22ae20c49
30
devel/pyusb/Makefile
Normal file
30
devel/pyusb/Makefile
Normal file
@ -0,0 +1,30 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2006/11/12 18:11:25 jolan Exp $
|
||||
SHARED_ONLY= Yes
|
||||
|
||||
COMMENT= "python interface to libusb"
|
||||
DISTNAME= pyusb-0.3.5
|
||||
CATEGORIES= devel
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pyusb/}
|
||||
|
||||
HOMEPAGE= http://pyusb.berlios.de/
|
||||
|
||||
# GPL
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
|
||||
NO_REGRESS= Yes
|
||||
|
||||
MODULES= lang/python
|
||||
|
||||
LIB_DEPENDS= usb::devel/libusb
|
||||
|
||||
pre-configure:
|
||||
@perl -pi -e 's|_LOCALBASE_|${LOCALBASE}|g' ${WRKSRC}/setup.py
|
||||
|
||||
post-install:
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/pyusb
|
||||
${INSTALL_DATA} ${WRKSRC}/samples/*.py ${PREFIX}/share/examples/pyusb
|
||||
|
||||
.include <bsd.port.mk>
|
4
devel/pyusb/distinfo
Normal file
4
devel/pyusb/distinfo
Normal file
@ -0,0 +1,4 @@
|
||||
MD5 (pyusb-0.3.5.tar.gz) = 785dec85737453304ec216bbbb10e939
|
||||
RMD160 (pyusb-0.3.5.tar.gz) = 4c72ccda4e3ed07504e815568b9d85daa778c713
|
||||
SHA1 (pyusb-0.3.5.tar.gz) = c88810596cba57d71cf349e41f50782b725da08a
|
||||
SIZE (pyusb-0.3.5.tar.gz) = 22478
|
13
devel/pyusb/patches/patch-setup_py
Normal file
13
devel/pyusb/patches/patch-setup_py
Normal file
@ -0,0 +1,13 @@
|
||||
$OpenBSD: patch-setup_py,v 1.1.1.1 2006/11/12 18:11:25 jolan Exp $
|
||||
--- setup.py.orig Thu Oct 12 16:23:33 2006
|
||||
+++ setup.py Sat Nov 11 07:49:49 2006
|
||||
@@ -37,6 +37,9 @@ elif -1 != platform.find("darwin"):
|
||||
elif -1 != platform.find("freebsd"):
|
||||
extra_link_args = ['-L/usr/local/lib']
|
||||
extra_compile_args = ['-I/usr/local/include']
|
||||
+elif -1 != platform.find("openbsd"):
|
||||
+ extra_link_args =['-L_LOCALBASE_/lib']
|
||||
+ extra_compile_args = ['-I_LOCALBASE_/include']
|
||||
|
||||
|
||||
usbmodule = Extension(name = 'usb',
|
1
devel/pyusb/pkg/DESCR
Normal file
1
devel/pyusb/pkg/DESCR
Normal file
@ -0,0 +1 @@
|
||||
PyUSB is a native Python module which interfaces with libusb.
|
5
devel/pyusb/pkg/PLIST
Normal file
5
devel/pyusb/pkg/PLIST
Normal file
@ -0,0 +1,5 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2006/11/12 18:11:25 jolan Exp $
|
||||
lib/python${MODPY_VERSION}/site-packages/usb.so
|
||||
share/examples/pyusb/
|
||||
share/examples/pyusb/usbenum.py
|
||||
share/examples/pyusb/usbprint.py
|
Loading…
x
Reference in New Issue
Block a user