FreeBSD Bugzilla – Attachment 174787 Details for
Bug 212692
devel/py-yaml: cleanup, add python3 counterpart
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch
py-yaml.patch (text/plain), 1.93 KB, created by
Dmitry Marakasov
on 2016-09-14 18:24:36 UTC
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Dmitry Marakasov
Created:
2016-09-14 18:24:36 UTC
Size:
1.93 KB
patch
obsolete
>Index: Makefile >=================================================================== >--- Makefile (revision 422145) >+++ Makefile (working copy) >@@ -4681,6 +4681,7 @@ > SUBDIR += py3-pytz > SUBDIR += py3-vcversioner > SUBDIR += py3-xdg >+ SUBDIR += py3-yaml > SUBDIR += py_static_check > SUBDIR += pybugz > SUBDIR += pychecker >Index: py-yaml/Makefile >=================================================================== >--- py-yaml/Makefile (revision 422145) >+++ py-yaml/Makefile (working copy) >@@ -12,11 +12,12 @@ > COMMENT= Python YAML parser > > LICENSE= MIT >+LICENSE_FILE= ${WRKSRC}/LICENSE > > OPTIONS_DEFINE= LIBYAML EXAMPLES > LIBYAML_DESC= Use textproc/libyaml for faster parsing > >-USES= python >+USES?= python > USE_PYTHON= distutils autoplist > > EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME} >@@ -23,11 +24,6 @@ > > .include <bsd.port.pre.mk> > >-.if ${PORT_OPTIONS:MEXAMPLES} >-post-install: >- @(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}/) >-.endif >- > .if ${PORT_OPTIONS:MLIBYAML} > PYDISTUTILS_SETUP+= --with-libyaml > PYDISTUTILS_BUILD_TARGET= build_ext >@@ -34,8 +30,18 @@ > PYDISTUTILS_BUILDARGS+= --include-dirs=${LOCALBASE}/include \ > --library-dirs=${LOCALBASE}/lib > LIB_DEPENDS+= libyaml.so:textproc/libyaml >+ >+post-install: >+ @${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/_yaml.so > .else > PYDISTUTILS_SETUP+= --without-libyaml >+NO_ARCH= yes > .endif > >+post-install-EXAMPLES-on: >+ @(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}/) >+ >+do-test: >+ @cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test >+ > .include <bsd.port.post.mk> >Index: py3-yaml/Makefile >=================================================================== >--- py3-yaml/Makefile (nonexistent) >+++ py3-yaml/Makefile (working copy) >@@ -0,0 +1,8 @@ >+# Created by: Ben Woods <woodsb02@FreeBSD.org> >+# $FreeBSD$ >+ >+MASTERDIR= ${.CURDIR}/../py-yaml >+ >+USES= python:3.1+ >+ >+.include "${MASTERDIR}/Makefile"
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 212692
: 174787