Added
Link Here
|
1 |
# $FreeBSD$ |
2 |
|
3 |
PORTNAME= yubioath-desktop |
4 |
DISTVERSIONPREFIX=yubioath-desktop- |
5 |
DISTVERSION= 4.3.4 |
6 |
CATEGORIES= security |
7 |
|
8 |
MAINTAINER= daniel@shafer.cc |
9 |
COMMENT= GUI for displaying OATH codes with a Yubikey |
10 |
|
11 |
LICENSE= BSD2CLAUSE |
12 |
LICENSE_FILE= ${WRKSRC}/COPYING |
13 |
|
14 |
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}yubikey-manager>=0.7.0:security/py-yubikey-manager@${PY_FLAVOR} \ |
15 |
pyotherside-qt5>0:devel/pyotherside-qt5 \ |
16 |
RSA_SecurID_getpasswd:devel/libccid \ |
17 |
libffi>0:devel/libffi \ |
18 |
pcscd:devel/pcsc-lite \ |
19 |
swig30>0:devel/swig30 |
20 |
|
21 |
USES= desktop-file-utils gl python:3.5+ qmake qt:5 shebangfix ssl |
22 |
USE_GL= gl |
23 |
USE_QT= core declarative gui network quickcontrols svg widgets buildtools_build |
24 |
|
25 |
USE_GITHUB= yes |
26 |
GH_ACCOUNT= Yubico |
27 |
|
28 |
SHEBANG_FILES= build_qrc.py \ |
29 |
py/yubikey.py \ |
30 |
compute-version.py |
31 |
|
32 |
post-patch: |
33 |
@${REINPLACE_CMD} -e '/buildqrc.commands/s|python|${PYTHON_CMD}|g' \ |
34 |
-e '/PYTHON3_BINARY_NAME/s|python3|${PYTHON_CMD}|g' \ |
35 |
-e '/system(python/s|python|${PYTHON_CMD}|g' \ |
36 |
-e '/VERSION =/s|VERSION|#VERSION|g' \ |
37 |
${WRKSRC}/yubioath-desktop.pro |
38 |
@${REINPLACE_CMD} -e '/version/s|python3|${PYTHON_CMD}|g' ${WRKSRC}/dev-util/package-sources.sh |
39 |
@${REINPLACE_CMD} -e 's|target.path = /usr/bin|target.path = ${PREFIX}/bin|g' ${WRKSRC}/deployment.pri |
40 |
|
41 |
post-install: |
42 |
${INSTALL_DATA} ${WRKSRC}/resources/yubioath-desktop.desktop ${STAGEDIR}${PREFIX}/share/applications |
43 |
${INSTALL_DATA} ${WRKSRC}/resources/icons/yubioath.png ${STAGEDIR}${PREFIX}/share/pixmaps |
44 |
|
45 |
.include <bsd.port.mk> |