openbsd-ports/www/moinmoin/Makefile
naddy d159f8d1ad Make use of "find -exec {} +" (which is POSIX) and "find -delete"
(which is not) throughout the ports Makefiles.

* Replace find|xargs with find -exec {} +
* Replace -exec {} \; with -exec {} + if applicable.
* Use the -delete operator to remove files and empty directories.
* Combine and tweak some find(1) invocations while here.

ok kn@ rsadowski@ espie@
2020-03-20 16:44:21 +00:00

34 lines
842 B
Makefile

# $OpenBSD: Makefile,v 1.36 2020/03/20 16:44:28 naddy Exp $
COMMENT = wiki engine written in python
MODPY_EGG_VERSION = 1.9.10
DISTNAME = moin-${MODPY_EGG_VERSION}
PKGNAME = moin${DISTNAME}
CATEGORIES = www
HOMEPAGE = https://moinmo.in/
# GPLv2 and several other ones claiming compliance with GPLv2 or
# actually being less restrictive.
PERMIT_PACKAGE = Yes
MASTER_SITES = https://static.moinmo.in/files/
MODULES = lang/python
NO_TEST = Yes
pre-configure:
@cd ${WRKSRC}/wiki/server && ${MODPY_BIN_ADJ} \
moin moin.ajp moin.cgi moin.fcgi moin.scgi test.wsgi
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/moinmoin
find ${PREFIX}/share/moin -type f -exec chmod 0644 {} +
cd ${WRKSRC}/docs && ${INSTALL_DATA} CHANGES INSTALL.html \
README.migration UPDATE.html ${PREFIX}/share/doc/moinmoin
.include <bsd.port.mk>