ports/159544: [New Port] graphics/py-imaging-sane

Kuan-Chung Chiu buganini at gmail.com
Sat Aug 6 05:00:23 UTC 2011


>Number:         159544
>Category:       ports
>Synopsis:       [New Port] graphics/py-imaging-sane
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Aug 06 05:00:23 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Kuan-Chung Chiu
>Release:        
>Organization:
N/A
>Environment:

>Description:
Tested in amd64 8-STABLE tinderbox.

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

>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	py-imaging-sane/
#	py-imaging-sane/files
#	py-imaging-sane/files/patch-setup.py
#	py-imaging-sane/Makefile
#	py-imaging-sane/distinfo
#	py-imaging-sane/pkg-descr
#	py-imaging-sane/pkg-plist
#
echo c - py-imaging-sane/
mkdir -p py-imaging-sane/ > /dev/null 2>&1
echo c - py-imaging-sane/files
mkdir -p py-imaging-sane/files > /dev/null 2>&1
echo x - py-imaging-sane/files/patch-setup.py
sed 's/^X//' >py-imaging-sane/files/patch-setup.py << 'ac92b50434e145484ad158fa498f2389'
X--- setup.py.orig	2009-11-01 08:44:12.000000000 +0800
X+++ setup.py	2011-08-05 16:18:06.000000000 +0800
X@@ -11,13 +11,13 @@
X     pass
X 
X sane = Extension('_sane',
X-                 include_dirs = [PIL_IMAGING_DIR],
X+                 include_dirs = [PIL_IMAGING_DIR, '/usr/local/include'],
X                  libraries = ['sane'],
X-                 library_dirs = [PIL_IMAGING_DIR],
X+                 library_dirs = [PIL_IMAGING_DIR, '/usr/local/lib'],
X                  define_macros = defs,
X                  sources = ['_sane.c'])
X 
X-setup (name = 'pysane',
X+setup (name = 'sane',
X        version = '2.0',
X        description = 'This is the pysane package',
X        py_modules = ['sane'],
ac92b50434e145484ad158fa498f2389
echo x - py-imaging-sane/Makefile
sed 's/^X//' >py-imaging-sane/Makefile << '430d3ddfd9cff15adce355a56d9ac31c'
X# New ports collection makefile for:    py-imaging-sane
X# Date created:         5 August 2011
X# Whom:                 buganini at gmail.com
X#
X# $FreeBSD$
X#
X
XPORTNAME=	sane
XPORTVERSION=	2.0
XCATEGORIES=	graphics python
XMASTER_SITES=	http://effbot.org/media/downloads/ \
X		http://www.pythonware.net/storage/
XPKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}imaging-
XDISTNAME=	Imaging-1.1.7
X
XMAINTAINER=	buganini at gmail.com
XCOMMENT=	The Python binding for Sane
X
XLIB_DEPENDS=	sane.1:${PORTSDIR}/graphics/sane-backends
X
XDIST_SUBDIR=	python
XUSE_PYTHON=	yes
XUSE_PYDISTUTILS=	yes
X
XWRKSRC=		${WRKDIR}/${DISTNAME}/Sane
X
Xpost-patch:
X	@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' ${WRKSRC}/setup.py
X
X.include <bsd.port.mk>
430d3ddfd9cff15adce355a56d9ac31c
echo x - py-imaging-sane/distinfo
sed 's/^X//' >py-imaging-sane/distinfo << '3f96dc391f89e8c37d4143816b8e1db1'
XSHA256 (python/Imaging-1.1.7.tar.gz) = 895bc7c2498c8e1f9b99938f1a40dc86b3f149741f105cf7c7bd2e0725405211
XSIZE (python/Imaging-1.1.7.tar.gz) = 498749
3f96dc391f89e8c37d4143816b8e1db1
echo x - py-imaging-sane/pkg-descr
sed 's/^X//' >py-imaging-sane/pkg-descr << 'ae37f4512ae02706df975793c279aeb3'
XThe Python binding for Sane is part of Python Imaging Library.
X
XThe Python Imaging Library adds image processing capabilities to your
XPython interpreter.  This library provides extensive file format
Xsupport, an efficient internal representation, and fairly powerful
Ximage processing capabilities.
X
XThe main distribution site for this software is:
X
XWWW:	http://www.pythonware.com/products/pil/index.htm
X
XThe PIL handbook is not included in this distribution; to get the
Xlatest version, check:
X
X	http://www.pythonware.com/library.htm
ae37f4512ae02706df975793c279aeb3
echo x - py-imaging-sane/pkg-plist
sed 's/^X//' >py-imaging-sane/pkg-plist << '848d17908c51bc1ed1ef9a97e02ca72c'
X%%PYTHON_SITELIBDIR%%/_sane.so
X%%PYTHON_SITELIBDIR%%/sane.py
X%%PYTHON_SITELIBDIR%%/sane.pyc
X%%PYTHON_SITELIBDIR%%/sane.pyo
848d17908c51bc1ed1ef9a97e02ca72c
exit



>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list