mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-30 05:40:06 +00:00
Add py-sane 2.0, the Python binding for Sane.
PR: ports/159544 Submitted by: Kuan-Chung Chiu <buganini@gmail.com> Approved by: miwi, wen (mentors implicit)
This commit is contained in:
parent
a4db6a05c6
commit
746d51c0d4
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=282691
@ -802,6 +802,7 @@
|
||||
SUBDIR += py-pyproj
|
||||
SUBDIR += py-qt4-svg
|
||||
SUBDIR += py-rabbyt
|
||||
SUBDIR += py-sane
|
||||
SUBDIR += py-seqdiag
|
||||
SUBDIR += py-sorl-thumbnail
|
||||
SUBDIR += py-soya3d
|
||||
|
31
graphics/py-sane/Makefile
Normal file
31
graphics/py-sane/Makefile
Normal file
@ -0,0 +1,31 @@
|
||||
# New ports collection makefile for: py-sane
|
||||
# Date created: 5 August 2011
|
||||
# Whom: buganini@gmail.com
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= sane
|
||||
PORTVERSION= 2.0
|
||||
CATEGORIES= graphics python
|
||||
MASTER_SITES= http://effbot.org/media/downloads/ \
|
||||
http://www.pythonware.net/storage/
|
||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||
DISTNAME= Imaging-1.1.7
|
||||
|
||||
MAINTAINER= buganini@gmail.com
|
||||
COMMENT= The Python binding for Sane
|
||||
|
||||
LIB_DEPENDS= sane.1:${PORTSDIR}/graphics/sane-backends
|
||||
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}imaging>=1.1.7:${PORTSDIR}/graphics/py-imaging
|
||||
|
||||
DIST_SUBDIR= python
|
||||
USE_PYTHON= yes
|
||||
USE_PYDISTUTILS= yes
|
||||
|
||||
WRKSRC= ${WRKDIR}/${DISTNAME}/Sane
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' ${WRKSRC}/setup.py
|
||||
|
||||
.include <bsd.port.mk>
|
2
graphics/py-sane/distinfo
Normal file
2
graphics/py-sane/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (python/Imaging-1.1.7.tar.gz) = 895bc7c2498c8e1f9b99938f1a40dc86b3f149741f105cf7c7bd2e0725405211
|
||||
SIZE (python/Imaging-1.1.7.tar.gz) = 498749
|
19
graphics/py-sane/files/patch-setup.py
Normal file
19
graphics/py-sane/files/patch-setup.py
Normal file
@ -0,0 +1,19 @@
|
||||
--- setup.py.orig 2009-11-01 08:44:12.000000000 +0800
|
||||
+++ setup.py 2011-08-05 16:18:06.000000000 +0800
|
||||
@@ -11,13 +11,13 @@
|
||||
pass
|
||||
|
||||
sane = Extension('_sane',
|
||||
- include_dirs = [PIL_IMAGING_DIR],
|
||||
+ include_dirs = [PIL_IMAGING_DIR, '/usr/local/include'],
|
||||
libraries = ['sane'],
|
||||
- library_dirs = [PIL_IMAGING_DIR],
|
||||
+ library_dirs = [PIL_IMAGING_DIR, '/usr/local/lib'],
|
||||
define_macros = defs,
|
||||
sources = ['_sane.c'])
|
||||
|
||||
-setup (name = 'pysane',
|
||||
+setup (name = 'sane',
|
||||
version = '2.0',
|
||||
description = 'This is the pysane package',
|
||||
py_modules = ['sane'],
|
15
graphics/py-sane/pkg-descr
Normal file
15
graphics/py-sane/pkg-descr
Normal file
@ -0,0 +1,15 @@
|
||||
The Python binding for Sane is part of Python Imaging Library.
|
||||
|
||||
The Python Imaging Library adds image processing capabilities to your
|
||||
Python interpreter. This library provides extensive file format
|
||||
support, an efficient internal representation, and fairly powerful
|
||||
image processing capabilities.
|
||||
|
||||
The main distribution site for this software is:
|
||||
|
||||
WWW: http://www.pythonware.com/products/pil/index.htm
|
||||
|
||||
The PIL handbook is not included in this distribution; to get the
|
||||
latest version, check:
|
||||
|
||||
http://www.pythonware.com/library.htm
|
4
graphics/py-sane/pkg-plist
Normal file
4
graphics/py-sane/pkg-plist
Normal file
@ -0,0 +1,4 @@
|
||||
%%PYTHON_SITELIBDIR%%/_sane.so
|
||||
%%PYTHON_SITELIBDIR%%/sane.py
|
||||
%%PYTHON_SITELIBDIR%%/sane.pyc
|
||||
%%PYTHON_SITELIBDIR%%/sane.pyo
|
Loading…
Reference in New Issue
Block a user