made portlint happy

This commit is contained in:
Renè Thümmler 2019-09-07 09:57:59 +02:00
parent a17bf9f527
commit 4f63f7830b
3 changed files with 21 additions and 21 deletions

View File

@ -2,28 +2,17 @@
PORTNAME= isso PORTNAME= isso
DISTVERSION= 0.12.2 DISTVERSION= 0.12.2
PORTREVISION= 1
CATEGORIES= www python CATEGORIES= www python
MASTER_SITES= CHEESESHOP MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= rt@scientifics.de MAINTAINER= rt@scientifics.de
COMMENT= commenting server similar to Disqus COMMENT= Commenting server similar to Disqus
LICENSE= MIT LICENSE= MIT
LICENSE_FILE= $(WRKSRC)/LICENSE LICENSE_FILE= $(WRKSRC)/LICENSE
USE_GITHUB= yes
GH_ACCOUNT= posativ
GH_PROJECT= ${PORTNAME}
GH_TAGNAME= ${DISTVERSION}
USES= python sqlite:3
USE_PYTHON= autoplist concurrent distutils
NO_ARCH= yes
USERS= www
GROUPS= www
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}Jinja2>0:devel/py-Jinja2@${PY_FLAVOR} \ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}Jinja2>0:devel/py-Jinja2@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}bleach>0:www/py-bleach@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}bleach>0:www/py-bleach@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}werkzeug>=0.9:www/py-werkzeug@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}werkzeug>=0.9:www/py-werkzeug@${PY_FLAVOR} \
@ -36,25 +25,37 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}Jinja2>0:devel/py-Jinja2@${PY_FLAVOR} \
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cffi>1.3.0:devel/py-cffi@${PY_FLAVOR} BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cffi>1.3.0:devel/py-cffi@${PY_FLAVOR}
USES= python sqlite:3
USE_PYTHON= autoplist concurrent distutils
USE_GITHUB= yes
GH_ACCOUNT= posativ
GH_PROJECT= ${PORTNAME}
GH_TAGNAME= ${DISTVERSION}
USERS= www
GROUPS= www
NO_ARCH= yes
USE_RC_SUBR= isso USE_RC_SUBR= isso
PLIST_FILES= "etc/isso.conf.sample" PLIST_FILES= "@sample etc/isso.conf.sample"
post-patch: post-patch:
@${REINPLACE_CMD} -e 's|/etc/isso.conf|/usr/local/etc/isso.conf|g' ${WRKSRC}/isso/__init__.py @${REINPLACE_CMD} -e 's|/etc/isso.conf|${PREFIX}/etc/isso.conf|g' ${WRKSRC}/isso/__init__.py
post-install: post-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/etc @${MKDIR} ${STAGEDIR}${PREFIX}/etc
${CP} ${WRKSRC}/share/isso.conf ${STAGEDIR}${PREFIX}/etc/isso.conf.sample ${CP} ${WRKSRC}/share/isso.conf ${STAGEDIR}${PREFIX}/etc/isso.conf.sample
do-test: do-test:
@cd ${WRKSRC} && ${PYTHON_CMD} -m nosetests -v @cd ${WRKSRC} && ${PYTHON_CMD} setup.py nosetests
.include <bsd.port.pre.mk> .include <bsd.port.pre.mk>
.if ${PYTHON_REL} < 3000 .if ${PYTHON_REL} < 3000
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}ipaddr>2.1:devel/py-ipaddr@${PY_FLAVOR} \ RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}ipaddr>2.1:devel/py-ipaddr@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}configparser>0:devel/py-configparser@${PY_FLAVOR} ${PYTHON_PKGNAMEPREFIX}configparser>0:devel/py-configparser@${PY_FLAVOR}
.endif .endif
.include <bsd.port.post.mk> .include <bsd.port.post.mk>

View File

@ -2,4 +2,4 @@ Isso is a lightweight commenting server similar to Disqus. It allows anonymous
comments, maintains identity and is simple to administrate. It uses JavaScript comments, maintains identity and is simple to administrate. It uses JavaScript
and cross-origin ressource sharing for easy integration into (static) websites and cross-origin ressource sharing for easy integration into (static) websites
https://posativ.org/isso/docs/ WWW: https://posativ.org/isso/docs/

View File

@ -1,14 +1,13 @@
[ [
{ {
message: <<EOM message: <<EOM
to run isso you need to copy and customize the file isso.conf.sample please inspect and customize isso.conf in ${ETCDIR}
in the configuration directory /usr/local/etc to isso.conf.
EOM EOM
} }
{ {
type: remove type: remove
message: <<EOM message: <<EOM
you might want to remove /usr/local/etc/isso.conf if present. you might want to remove isso.conf in ${ETCDIR} if present.
EOM EOM
} }
] ]