diff options
author | wg <wg@FreeBSD.org> | 2013-12-28 01:33:21 +0800 |
---|---|---|
committer | wg <wg@FreeBSD.org> | 2013-12-28 01:33:21 +0800 |
commit | 53a7f5fc887ce59c609be22d0a36d7deb31eea1a (patch) | |
tree | 801486575806640e7232f95446955fb629edc990 /graphics | |
parent | 7c75917b266f2ea91951e2a5e658cd7cfe1bc1b6 (diff) | |
download | freebsd-ports-gnome-53a7f5fc887ce59c609be22d0a36d7deb31eea1a.tar.gz freebsd-ports-gnome-53a7f5fc887ce59c609be22d0a36d7deb31eea1a.tar.zst freebsd-ports-gnome-53a7f5fc887ce59c609be22d0a36d7deb31eea1a.zip |
graphics/py-exif: support staging
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/py-exif/Makefile | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/graphics/py-exif/Makefile b/graphics/py-exif/Makefile index 7526e18312a6..2ad409e5f23f 100644 --- a/graphics/py-exif/Makefile +++ b/graphics/py-exif/Makefile @@ -17,7 +17,6 @@ WRKSRC= ${WRKDIR}/pyexif DATADIR= ${PREFIX}/share/py-exif DOCSDIR= ${PREFIX}/share/doc/py-exif -NO_STAGE= yes post-patch: .for pyfile in exiftool exifinfo.py @ cd ${WRKSRC}/bin && ${MV} ${pyfile} ${pyfile}.orig && \ @@ -25,22 +24,23 @@ post-patch: .endfor do-build: - @ ${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}/lib - @ ${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}/lib + ${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py \ + -f ${WRKSRC}/lib \ + -d ${PYTHONPREFIX_SITELIBDIR} + ${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py \ + -f ${WRKSRC}/lib \ + -d ${PYTHONPREFIX_SITELIBDIR} do-install: - @ ${MKDIR} ${PREFIX}/bin - @ cd ${WRKSRC}/lib && ${INSTALL_DATA} *.py *.pyc *.pyo \ - ${PYTHON_SITELIBDIR} - @ ${INSTALL_SCRIPT} ${WRKSRC}/bin/exiftool ${PREFIX}/bin/py-exiftool - @ ${MKDIR} ${DATADIR} - @ cd ${WRKSRC}/share/exiftool && ${INSTALL_DATA} *.html *.txt \ - ${DATADIR} - -post-install: -.if !defined(NOPORTDOCS) - @ ${MKDIR} ${DOCSDIR} - @ ${INSTALL_DATA} ${WRKSRC}/README* ${DOCSDIR} -.endif + @${MKDIR} ${STAGEDIR}${PREFIX}/bin + @${MKDIR} ${STAGEDIR}${PYTHON_SITELIBDIR} + cd ${WRKSRC}/lib && ${INSTALL_DATA} *.py *.pyc *.pyo \ + ${STAGEDIR}${PYTHON_SITELIBDIR} + ${INSTALL_SCRIPT} ${WRKSRC}/bin/exiftool ${STAGEDIR}${PREFIX}/bin/py-exiftool + @${MKDIR} ${STAGEDIR}${DATADIR} + cd ${WRKSRC}/share/exiftool && ${INSTALL_DATA} *.html *.txt \ + ${STAGEDIR}${DATADIR} + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README* ${STAGEDIR}${DOCSDIR} .include <bsd.port.mk> |