Index: head/devel/py-traits/Makefile =================================================================== --- head/devel/py-traits/Makefile (revision 377718) +++ head/devel/py-traits/Makefile (revision 377719) @@ -1,37 +1,28 @@ # Created by: Wen Heping # $FreeBSD$ PORTNAME= traits -PORTVERSION= 3.6.0 -PORTREVISION= 5 +PORTVERSION= 4.5.0 CATEGORIES= devel python -MASTER_SITES= http://www.enthought.com/repo/ETS/ +MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} -DISTNAME= Traits-${PORTVERSION} MAINTAINER= wen@FreeBSD.org COMMENT= Explicitly Typed Attributes for Python LICENSE= BSD3CLAUSE PSFL LICENSE_COMB= multi -BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}EnthoughtBase>=3.0.1:${PORTSDIR}/devel/py-EnthoughtBase \ - ${PYNUMPY} -RUN_DEPENDS:= ${BUILD_DEPENDS} +BUILD_DEPENDS= ${PYNUMPY} USES= python USE_PYTHON= distutils autoplist -OPTIONS_DEFINE= DOCS EXAMPLES +CFLAGS+= -I${LOCALBASE}/include +LDFLAGS+= -L${LOCALBASE}/lib -post-install: - ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} - cd ${WRKSRC}/examples \ - && ${FIND} . -type d -exec ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/\{} \; \ - && ${FIND} . -type f -exec ${INSTALL_DATA} \{} ${STAGEDIR}${EXAMPLESDIR}/\{} \; - ${MKDIR} ${STAGEDIR}${DOCSDIR} - cd ${WRKSRC}/docs \ - && ${FIND} . -type d -exec ${MKDIR} ${STAGEDIR}${DOCSDIR}/\{} \; \ - && ${FIND} . -type f -exec ${INSTALL_DATA} \{} ${STAGEDIR}${DOCSDIR}/\{} \; +post-extract: +# Remove traits/testing directory files are not compatible with Python 3 + cd ${WRKSRC} && ${RM} -Rf traits/testing/ .include Index: head/devel/py-traits/distinfo =================================================================== --- head/devel/py-traits/distinfo (revision 377718) +++ head/devel/py-traits/distinfo (revision 377719) @@ -1,2 +1,2 @@ -SHA256 (Traits-3.6.0.tar.gz) = f48dcd9bb33bec3389566c3fee43f039ff33fc99e5db5ca8c4967fb8e5db8657 -SIZE (Traits-3.6.0.tar.gz) = 10884341 +SHA256 (traits-4.5.0.tar.gz) = 5293a8786030b0b243e059f52004355b6939d7c0f1be2eb5a605b63cca484c84 +SIZE (traits-4.5.0.tar.gz) = 4853612 Index: head/devel/py-traits/files/patch-setup.py =================================================================== --- head/devel/py-traits/files/patch-setup.py (nonexistent) +++ head/devel/py-traits/files/patch-setup.py (revision 377719) @@ -0,0 +1,20 @@ +--- setup.py.orig 2014-05-07 10:39:42 UTC ++++ setup.py +@@ -11,7 +11,6 @@ exec(compile(open(traits_init).read(), t + ctraits = Extension( + 'traits.ctraits', + sources = ['traits/ctraits.c'], +- extra_compile_args = ['-DNDEBUG=1', '-O3' ]#, '-DPy_LIMITED_API'], + ) + + +@@ -55,7 +54,8 @@ setup( + license = 'BSD', + maintainer = 'ETS Developers', + maintainer_email = 'enthought-dev@enthought.com', +- packages = find_packages(), ++ # remove 'traits.testing*' directories not compatible with Python 3 ++ packages = find_packages(where='.', exclude=['traits.testing*']), + platforms = ["Windows", "Linux", "Mac OS-X", "Unix", "Solaris"], + zip_safe = False, + use_2to3 = True, Property changes on: head/devel/py-traits/files/patch-setup.py ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/devel/py-traits/pkg-descr =================================================================== --- head/devel/py-traits/pkg-descr (revision 377718) +++ head/devel/py-traits/pkg-descr (revision 377719) @@ -1,17 +1,17 @@ The Traits project is at the center of all Enthought Tool Suite development and has changed the mental model used at Enthought for programming in the already extremely efficient Python programming language. The Traits project allows Python programmers to use a special kind of type definition called a trait, which gives object attributes some additional characteristics, such as Initialization, Validation, Delegation, Notification and Visualization. A class can freely mix trait-based attributes with normal Python attributes, or can opt to allow the use of only a fixed or open set of trait attributes within the class. Trait attributes defined by a classs are automatically inherited by any subclass derived from the class. -WWW: https://pypi.python.org/pypi/Traits/ +WWW: https://pypi.python.org/pypi/traits/