blob: d9d985da2f0c3be5ca9fa45fc4ee9da274b51b82 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
PORTNAME= sopel
DISTVERSION= 7.1.9
CATEGORIES= irc python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= DtxdF@disroot.org
COMMENT= Easy-to-use and highly extensible IRC Bot framework
WWW= https://sopel.chat/
LICENSE= EFLv2
LICENSE_GROUPS= FSF GPL OSI
LICENSE_NAME= Eiffel Forum License, version 2
LICENSE_FILE= ${WRKSRC}/COPYING
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dnspython>0:dns/py-dnspython@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}GeoIP2>0:net/py-GeoIP2@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}importlib-metadata>0:devel/py-importlib-metadata@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}packaging>0:devel/py-packaging@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}praw>0:www/py-praw@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pytz>0:devel/py-pytz@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}sqlalchemy13>0:databases/py-sqlalchemy13@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/py-sqlite3@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}urllib3>0:net/py-urllib3@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}xmltodict>=0.12:devel/py-xmltodict@${PY_FLAVOR}
USES= python
USE_PYTHON= autoplist distutils
USE_RC_SUBR= sopel
SUB_FILES+= pkg-message
SUB_LIST+= PYTHON_CMD=${PYTHON_CMD}
USERS= sopel
GROUPS= sopel
PLIST_SUB= GROUP="${GROUPS:[0]}" \
USER="${USERS:[0]}"
post-install:
@${MKDIR} ${STAGEDIR}/${ETCDIR}
@${CP} ${FILESDIR}/sopel-default.cfg ${STAGEDIR}/${ETCDIR}/sopel-default.cfg.sample
.for dir in run log db
@${MKDIR} ${STAGEDIR}/var/${dir}/sopel
.endfor
@${MKDIR} ${STAGEDIR}/var/db/sopel/www
.include <bsd.port.mk>
|