ports/149935: [PATCH] net/googlecl: fix 'make package' when py-setuptools is installed

Sunpoet Po-Chuan Hsieh sunpoet at sunpoet.net
Tue Aug 24 13:40:03 UTC 2010


>Number:         149935
>Category:       ports
>Synopsis:       [PATCH] net/googlecl: fix 'make package' when py-setuptools is installed
>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:   Tue Aug 24 13:40:01 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Sunpoet Po-Chuan Hsieh
>Release:        FreeBSD 8.1-STABLE amd64
>Organization:
SUNPOET.net
>Environment:
System: FreeBSD bonjour.sunpoet.net 8.1-STABLE FreeBSD 8.1-STABLE #0: Sun Jul 25 00:09:24 CST 2010
>Description:
According googlecl's setup.py, it will first try to generate an egg. 
An egg will be generated if py-setuptools is installed.
Therefore, the files in PLIST will not be installed since they are all in the egg.
This patch is to keep googlecl from egg generation.

Added file(s):
- files/patch-setup.py

Port maintainer (lwhsu at FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.99
>How-To-Repeat:

% cd /usr/ports/devel/py-setuptools; make install
% cd /usr/ports/net/googlecl; make install package

>Fix:

--- googlecl-0.9.9.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/net/googlecl/files/patch-setup.py /usr/ports/sunpoet/googlecl/files/patch-setup.py
--- /usr/ports/net/googlecl/files/patch-setup.py	1970-01-01 08:00:00.000000000 +0800
+++ /usr/ports/sunpoet/googlecl/files/patch-setup.py	2010-08-24 21:11:45.000000000 +0800
@@ -0,0 +1,14 @@
+--- setup.py.orig	2010-07-24 10:30:33.000000000 +0800
++++ setup.py	2010-08-24 21:11:15.000000000 +0800
+@@ -12,10 +12,7 @@
+ # See the License for the specific language governing permissions and
+ # limitations under the License.
+ 
+-try:
+-  from setuptools import setup
+-except ImportError:
+-  from distutils.core import setup
++from distutils.core import setup
+ packages =['googlecl',
+            'googlecl.blogger',
+            'googlecl.calendar',
--- googlecl-0.9.9.patch ends here ---

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



More information about the freebsd-ports-bugs mailing list