mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-17 08:01:36 +00:00
- Fix build on pointyhat
(use --plat-name option for bdist_egg, the egg filename for easy_install) PR: ports/111182 Submitted by: nivit
This commit is contained in:
parent
202ad5ce78
commit
63abc32bbf
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=189085
@ -20,16 +20,22 @@ RUN_DEPENDS= easy_install:${PORTSDIR}/devel/py-setuptools
|
||||
USE_PYTHON= yes
|
||||
USE_PYDISTUTILS= yes
|
||||
|
||||
PYSIMPLEJSON_EGG= ${PORTNAME}-${PORTVERSION}-py${PYTHON_VER}-freebsd-${OSRELEASE}-${ARCH}.egg
|
||||
PYSIMPLEJSON_EGG= ${PORTNAME}-${PORTVERSION}-py${PYTHON_VER}-${OSINFOS}.egg
|
||||
OSINFOS= ${OPSYS:L}-${OSRELEASE}-${ARCH}
|
||||
|
||||
PLIST_SUB+= PYSIMPLEJSON_EGG=${PYSIMPLEJSON_EGG} \
|
||||
EGG_VER="${PORTNAME}==${PORTVERSION}"
|
||||
PLIST_SUB+= PYSIMPLEJSON_EGG=${PYSIMPLEJSON_EGG}
|
||||
|
||||
.if !defined(NOPORTDOCS)
|
||||
DOCSDIR= ${TARGETDIR}/share/doc/py-${PORTNAME}
|
||||
PORTDOCS= *
|
||||
.endif
|
||||
|
||||
pre-build:
|
||||
@cd ${WRKSRC} && ${PYTHON_CMD} setup.py setopt -c build -o build-platlib -s lib.${OSINFOS}
|
||||
@cd ${WRKSRC} && ${PYTHON_CMD} setup.py setopt -c build -o build-temp -s temp.${OSINFOS}-${PYTHON_VER}
|
||||
@cd ${WRKSRC} && ${PYTHON_CMD} setup.py setopt -c bdist_egg -o plat-name -s ${OSINFOS}
|
||||
@cd ${WRKSRC} && ${PYTHON_CMD} setup.py setopt -c bdist -o plat-name -s ${OSINFOS}
|
||||
|
||||
post-install:
|
||||
.if !defined(NOPORTDOCS)
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
|
@ -1,4 +1,4 @@
|
||||
@comment $FreeBSD$
|
||||
@unexec easy_install -q -m -S %D/%%PYTHON_SITELIBDIR%% %%EGG_VER%%
|
||||
@unexec easy_install -q -N -m %D/%%PYTHON_SITELIBDIR%%/%%PYSIMPLEJSON_EGG%%
|
||||
%%PYTHON_SITELIBDIR%%/%%PYSIMPLEJSON_EGG%%
|
||||
@exec easy_install -q -N -S %D/%%PYTHON_SITELIBDIR%% %%EGG_VER%%
|
||||
@exec easy_install -N %D/%%PYTHON_SITELIBDIR%%/%%PYSIMPLEJSON_EGG%%
|
||||
|
Loading…
Reference in New Issue
Block a user