diff --git a/deskutils/ljcharm/Makefile b/deskutils/ljcharm/Makefile index b703f8088aad..d6b4b2f47f42 100644 --- a/deskutils/ljcharm/Makefile +++ b/deskutils/ljcharm/Makefile @@ -21,6 +21,15 @@ USE_PYTHON= yes USE_PYDISTUTILS= yes PYDISTUTILS_PKGVERSION= 1.9.1 +post-patch: +.if !defined(NOPORTDOCS) + ${REINPLACE_CMD} -e 's,share/doc/charm,${DOCSDIR},' ${WRKSRC}/setup.py +.else + ${REINPLACE_CMD} -e '/data_files = /d' \ + -e '/man\/man1/s,^[ ]*, data_files = [ ,' \ + ${WRKSRC}/setup.py +.endif + post-install: .if !defined(NOPORTDOCS) ${INSTALL_DATA} ${WRKSRC}/CHANGES.charm ${DOCSDIR}/CHANGES