Added
Link Here
|
1 |
PORTNAME= premiumizer |
2 |
DISTVERSION= g20220815 |
3 |
CATEGORIES= net-p2p |
4 |
|
5 |
MAINTAINER= andrej@ebert.su |
6 |
COMMENT= Download management tool for premiumize.me cloud downloads |
7 |
|
8 |
LICENSE= MIT |
9 |
LICENSE_FILE= ${WRKSRC}/LICENSE |
10 |
|
11 |
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}apprise>=1.0.0:devel/py-apprise@${PY_FLAVOR} \ |
12 |
${PYTHON_PKGNAMEPREFIX}myjdapi>=1.1.5:devel/py-myjdapi@${PY_FLAVOR} \ |
13 |
${PYTHON_PKGNAMEPREFIX}bencode.py>=4.0.0:converters/py-bencode.py@${PY_FLAVOR} \ |
14 |
${PYTHON_PKGNAMEPREFIX}chardet>=5.0.0:textproc/py-chardet@${PY_FLAVOR} \ |
15 |
${PYTHON_PKGNAMEPREFIX}click>=8.1.3:devel/py-click@${PY_FLAVOR} \ |
16 |
${PYTHON_PKGNAMEPREFIX}flask-apscheduler>=1.12.4:www/py-flask-apscheduler@${PY_FLAVOR} \ |
17 |
${PYTHON_PKGNAMEPREFIX}flask-socketio>=5.2.0:www/py-flask-socketio@${PY_FLAVOR} \ |
18 |
${PYTHON_PKGNAMEPREFIX}gevent-websocket>0:www/py-gevent-websocket@${PY_FLAVOR} \ |
19 |
${PYTHON_PKGNAMEPREFIX}gevent>=21.12.0:devel/py-gevent@${PY_FLAVOR} \ |
20 |
${PYTHON_PKGNAMEPREFIX}greenlet>=1.1.2:devel/py-greenlet@${PY_FLAVOR} \ |
21 |
${PYTHON_PKGNAMEPREFIX}itsdangerous>=2.1.2:security/py-itsdangerous@${PY_FLAVOR} \ |
22 |
${PYTHON_PKGNAMEPREFIX}pathtools>=0.1.2:devel/py-pathtools@${PY_FLAVOR} \ |
23 |
${PYTHON_PKGNAMEPREFIX}pysmartdl>=1.3.4:www/py-pysmartdl@${PY_FLAVOR} \ |
24 |
${PYTHON_PKGNAMEPREFIX}python-engineio>=4.3.4:devel/py-python-engineio@${PY_FLAVOR} \ |
25 |
${PYTHON_PKGNAMEPREFIX}python-socketio>=5.7.1:devel/py-python-socketio@${PY_FLAVOR} \ |
26 |
${PYTHON_PKGNAMEPREFIX}requests>=2.28.1:www/py-requests@${PY_FLAVOR} \ |
27 |
${PYTHON_PKGNAMEPREFIX}six>=1.1.5:devel/py-six@${PY_FLAVOR} \ |
28 |
${PYTHON_PKGNAMEPREFIX}tzlocal>=4.2:devel/py-tzlocal@${PY_FLAVOR} \ |
29 |
${PYTHON_PKGNAMEPREFIX}urllib3>=1.26.11:net/py-urllib3@${PY_FLAVOR} \ |
30 |
${PYTHON_PKGNAMEPREFIX}watchdog>=2.1.9:devel/py-watchdog@${PY_FLAVOR} \ |
31 |
${PYTHON_PKGNAMEPREFIX}werkzeug>=2.2.2:www/py-werkzeug@${PY_FLAVOR} \ |
32 |
${PYTHON_PKGNAMEPREFIX}Jinja2>=3.1.2:devel/py-Jinja2@${PY_FLAVOR} \ |
33 |
${PYTHON_PKGNAMEPREFIX}apscheduler>=3.9.1:devel/py-apscheduler@${PY_FLAVOR} \ |
34 |
${PYTHON_PKGNAMEPREFIX}dateutil>=2.8.2:devel/py-dateutil@${PY_FLAVOR} \ |
35 |
${PYTHON_PKGNAMEPREFIX}Flask>=2.2.2:www/py-flask@${PY_FLAVOR} \ |
36 |
${PYTHON_PKGNAMEPREFIX}Flask-Compress>=1.12:www/py-flask-compress@${PY_FLAVOR} \ |
37 |
${PYTHON_PKGNAMEPREFIX}Flask-Login>=0.6.2:www/py-flask-login@${PY_FLAVOR} \ |
38 |
${PYTHON_PKGNAMEPREFIX}pytz-deprecation-shim>0:devel/py-pytz-deprecation-shim@${PY_FLAVOR} \ |
39 |
${PYTHON_PKGNAMEPREFIX}tzdata>0:devel/py-tzdata@${PY_FLAVOR} |
40 |
|
41 |
USES= python:3.7+ shebangfix |
42 |
SHEBANG_FILES= premiumizer/premiumizer.py |
43 |
USE_GITHUB= yes |
44 |
USE_PYTHON= flavors |
45 |
GH_ACCOUNT= piejanssens |
46 |
GH_PROJECT= premiumizer |
47 |
GH_TAGNAME= 2fe980f5cf0326cd9c0ef51dc203094941e790d6 |
48 |
NO_ARCH= yes |
49 |
USE_RC_SUBR= premiumizer |
50 |
|
51 |
SUB_FILES= ${PORTNAME} pkg-message |
52 |
|
53 |
SUB_LIST= PORTNAME=${PORTNAME} \ |
54 |
PYTHON_CMD=${PYTHON_CMD} \ |
55 |
DATADIR=${DATADIR} \ |
56 |
GROUPS=${GROUPS} \ |
57 |
USERS=${USERS} |
58 |
|
59 |
USERS= premiumizer |
60 |
GROUPS= premiumizer |
61 |
|
62 |
do-build: |
63 |
@${PYTHON_CMD} -m compileall ${WRKSRC} |
64 |
@${PYTHON_CMD} -O -m compileall ${WRKSRC} |
65 |
|
66 |
post-extract: |
67 |
@${RM} ${WRKSRC}/premiumizer/docker-entrypoint.sh |
68 |
|
69 |
post-patch: |
70 |
@${REINPLACE_CMD} -i '' -e '1!s@'python'@'${PYTHON_CMD}'@g' ${WRKSRC}/premiumizer/premiumizer.py |
71 |
|
72 |
do-install: |
73 |
${INSTALL} -d -m 755 ${STAGEDIR}/${DATADIR}/bin/ |
74 |
cd ${WRKSRC}/premiumizer && ${COPYTREE_SHARE} \* ${STAGEDIR}/${DATADIR}/bin/ |
75 |
|
76 |
.include <bsd.port.mk> |