From 8adc12fbc60025158c4e872fd8b6b6ca6cdfa7dd Mon Sep 17 00:00:00 2001 From: Stefan Walter Date: Wed, 10 Sep 2008 15:55:46 +0000 Subject: - Patch setup.py to avoid using easy_install instead of distutils, which leads to unclean deinstallation. - Move PROJECTHOST out of the PORTNAME section to satisfy portlint. PR: 127260 Submitted by: Yi-Jheng Lin Approved by: portmgr (pav) --- graphics/py-pydot/Makefile | 3 ++- graphics/py-pydot/files/patch-setup.py | 18 ++++++++++++++++-- 2 files changed, 18 insertions(+), 3 deletions(-) (limited to 'graphics/py-pydot') diff --git a/graphics/py-pydot/Makefile b/graphics/py-pydot/Makefile index 9812799c2741..f6b83c8c5002 100644 --- a/graphics/py-pydot/Makefile +++ b/graphics/py-pydot/Makefile @@ -7,10 +7,10 @@ PORTNAME= pydot PORTVERSION= 1.0.2 +PORTREVISION= 1 CATEGORIES= graphics python MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE} PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} -PROJECTHOST= ${PORTNAME} MAINTAINER= stefan@FreeBSD.org COMMENT= A Python interface to the Graphviz Dot language @@ -19,6 +19,7 @@ BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/pyparsing.py:${PORTSDIR}/devel/py-parsing RUN_DEPENDS= ${PYTHON_SITELIBDIR}/pyparsing.py:${PORTSDIR}/devel/py-parsing \ dot:${PORTSDIR}/graphics/graphviz +PROJECTHOST= ${PORTNAME} USE_PYTHON= yes USE_PYDISTUTILS=yes diff --git a/graphics/py-pydot/files/patch-setup.py b/graphics/py-pydot/files/patch-setup.py index a3954c60801f..a633069c59b0 100644 --- a/graphics/py-pydot/files/patch-setup.py +++ b/graphics/py-pydot/files/patch-setup.py @@ -1,5 +1,19 @@ ---- setup.py.orig 2008-07-06 15:01:26.000000000 +0200 -+++ setup.py 2008-07-06 15:01:51.000000000 +0200 +--- setup.py.orig 2008-02-15 04:48:02.000000000 +0800 ++++ setup.py 2008-09-10 11:12:00.000000000 +0800 +@@ -1,9 +1,9 @@ + #!/usr/bin/env python + +-try: +- from setuptools import setup +-except ImportError, excp: +- from distutils.core import setup ++#try: ++# from setuptools import setup ++#except ImportError, excp: ++from distutils.core import setup + + import pydot + @@ -27,5 +27,5 @@ 'Topic :: Software Development :: Libraries :: Python Modules'], long_description = "\n".join(pydot.__doc__.split('\n')), -- cgit v1.2.3