1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-29 01:13:08 +00:00
freebsd-ports/textproc/py-4suite-xml/Makefile
William Grzybowski 1e34739b64 Use setuptools for all Python ports.
Setuptools is the preferred method to manage Python distributions after
many changes to the packaging ecosystem over the past couple of years.

Only ports using USE_PYDISTUTILS= yes are affected by this commit, ports using
USE_PYDISTUTILS= easy_install remains the same however this usage is now
deprecated and should be converted to USE_PYDISTUTILS= yes.

Some Python distributions do not work with setuptools out of the box because
they extend the install command from distutils and not setuptools, and
so they need to be patched accordingly.

pip (which leverages setuptools) works around the issue by using eggs, however
we want to get rid of those as well, as support for "flat" installation is
unavailable or has other issues associated with it.

This work allows us to unify how python packages are built, ensure that Python
distributions are installed consistently, reduces complexity for Python port
maintainers and paves the way for simplifying the Python ports framework in
the future.

With hat on:	python
Reviewed by:	koobs, antoine
Exp-run:	bdrewery
Approved by:	bdrewery (portmgr)
2013-12-15 16:22:17 +00:00

64 lines
1.7 KiB
Makefile

# Created by: Mike Brown <mike@skew.org>
# $FreeBSD$
PORTNAME= 4Suite-XML
PORTVERSION= 1.0.2
CATEGORIES= textproc python
MASTER_SITES= ftp://ftp.4suite.org/pub/4Suite/ \
SF/foursuite/4Suite/XML-${PORTVERSION}
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= mike@skew.org
COMMENT= A collection of Python tools for XML processing
USE_BZIP2= yes
REINPLACE_ARGS= -i "" -E
USE_PYTHON= yes
USE_PYDISTUTILS= yes
PYDISTUTILS_SETUP= ${PYSETUP}
PYDISTUTILS_NOEGGINFO= yes
CONFLICTS= py*-4suite-[01]*
NO_STAGE= yes
.include <bsd.port.pre.mk>
BINDIR= bin
SYSCONFDIR= etc/4Suite
LIBDIR= lib/4Suite
LOCALSTATEDIR= var/4Suite
DATADIR= share/4Suite
DOCSDIR= share/doc/4Suite
LOCALEDIR= share/locale
PLIST_SUB+= PACKAGE_DIR=Ft BINDIR=${BINDIR} SYSCONFDIR=${SYSCONFDIR} \
LIBDIR=${LIBDIR} LOCALSTATEDIR=${LOCALSTATEDIR} \
DATADIR=${DATADIR} DOCSDIR=${DOCSDIR} LOCALEDIR=${LOCALEDIR} \
PYDISTUTILS_EGGINFO=${PYDISTUTILS_EGGINFO}
SUB_FILES= pkg-message
SUB_LIST+= PACKAGE_DIR=Ft BINDIR=${BINDIR} SYSCONFDIR=${SYSCONFDIR} \
LIBDIR=${LIBDIR} LOCALSTATEDIR=${LOCALSTATEDIR} \
DATADIR=${DATADIR} DOCSDIR=${DOCSDIR} LOCALEDIR=${LOCALEDIR} \
PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR} \
DISTVERSION=${DISTVERSION}
PYDISTUTILS_CONFIGUREARGS= --bindir=${PREFIX}/${BINDIR} \
--sysconfdir=${PREFIX}/${SYSCONFDIR} \
--libdir=${PREFIX}/${LIBDIR} \
--localstatedir=${PREFIX}/${LOCALSTATEDIR} \
--datadir=${PREFIX}/${DATADIR} \
--docdir=${PREFIX}/${DOCSDIR} \
--localedir=${PREFIX}/${LOCALEDIR} \
--pythonlibdir=${PYTHON_SITELIBDIR}
.if defined(NOPORTDOCS)
PYDISTUTILS_BUILDARGS= --without-docs
PYDISTUTILS_INSTALLARGS= --without-docs
.else
PYDISTUTILS_BUILDARGS= --with-docs
PYDISTUTILS_INSTALLARGS= --with-docs
.endif
.include <bsd.port.post.mk>