From nobody@FreeBSD.org  Sat Aug  6 04:56:47 2011
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 677CF106566B
	for <freebsd-gnats-submit@FreeBSD.org>; Sat,  6 Aug 2011 04:56:47 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 4C96C8FC0A
	for <freebsd-gnats-submit@FreeBSD.org>; Sat,  6 Aug 2011 04:56:47 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p764ukGO034298
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 6 Aug 2011 04:56:46 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id p764ukJx034297;
	Sat, 6 Aug 2011 04:56:46 GMT
	(envelope-from nobody)
Message-Id: <201108060456.p764ukJx034297@red.freebsd.org>
Date: Sat, 6 Aug 2011 04:56:46 GMT
From: Kuan-Chung Chiu <buganini@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [New Port] graphics/py-imaging-sane
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         159544
>Category:       ports
>Synopsis:       [New Port] graphics/py-imaging-sane
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pawel
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Aug 06 05:00:23 UTC 2011
>Closed-Date:    Fri Sep 30 20:44:21 UTC 2011
>Last-Modified:  Fri Sep 30 20:44:21 UTC 2011
>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@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@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:

From: Buganini <buganini@gmail.com>
To: bug-followup@FreeBSD.org, buganini@gmail.com
Cc:  
Subject: Re: ports/159544: [New Port] graphics/py-imaging-sane
Date: Thu, 25 Aug 2011 00:46:14 +0800

 Here is new shar:
 http://www.cnmc.tw/~buganini/py-sane.patch.txt
 
 Changes:
 rename to py-sane
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}imaging>=1.1.7:${PORTSDIR}/graphics/py-imaging
Responsible-Changed-From-To: freebsd-ports-bugs->pawel 
Responsible-Changed-By: pawel 
Responsible-Changed-When: Sun Sep 18 15:25:18 UTC 2011 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=159544 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/159544: commit references a PR
Date: Fri, 30 Sep 2011 20:37:06 +0000 (UTC)

 pawel       2011-09-30 20:36:56 UTC
 
   FreeBSD ports repository
 
   Modified files:
     graphics             Makefile 
   Added files:
     graphics/py-sane     Makefile distinfo pkg-descr pkg-plist 
     graphics/py-sane/files patch-setup.py 
   Log:
   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)
   
   Revision  Changes    Path
   1.1447    +1 -0      ports/graphics/Makefile
   1.1       +31 -0     ports/graphics/py-sane/Makefile (new)
   1.1       +2 -0      ports/graphics/py-sane/distinfo (new)
   1.1       +19 -0     ports/graphics/py-sane/files/patch-setup.py (new)
   1.1       +15 -0     ports/graphics/py-sane/pkg-descr (new)
   1.1       +4 -0      ports/graphics/py-sane/pkg-plist (new)
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: open->closed 
State-Changed-By: pawel 
State-Changed-When: Fri Sep 30 20:44:20 UTC 2011 
State-Changed-Why:  
New port added. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=159544 
>Unformatted:
