summaryrefslogtreecommitdiff
path: root/irc/py-fishcrypt/Makefile
blob: 5fe24000b4aaafd30d3fc0777a7e502d10efe801 (plain) (blame)
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
# Created by: Rusmir Dusko <nemysis@FreeBSD.org>
# $FreeBSD$

PORTNAME=	fishcrypt
DISTVERSION=	5.31
PORTREVISION=	1
CATEGORIES=	irc security
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
DIST_SUBDIR=	python

MAINTAINER=	nemysis@FreeBSD.org
COMMENT=	FiSH/Mircryption-compatible encryption for XChat/HexChat

RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pycrypto>=0:security/py-pycrypto \
		${PYTHON_PKGNAMEPREFIX}pysocks>=0:net/py-pysocks

USE_GITHUB=	yes
GH_ACCOUNT=	fladd
GH_PROJECT=	py-${PORTNAME}
GH_TAGNAME=	43554b1a

USES=		dos2unix python:run shebangfix
SHEBANG_FILES=	fishcrypt.py
NO_BUILD=	yes

SUB_FILES=	pkg-message

PORTDOCS=	README.md

PLIST_FILES=	%%DATADIR%%/fishcrypt.py \
                %%DATADIR%%/pyBlowfish.py

OPTIONS_DEFINE=	DOCS HEXCHAT XCHAT

HEXCHAT_DESC=		FiSH encryption for HexChat
XCHAT_DESC=		FiSH encryption for XChat

OPTIONS_SUB=	yes

HEXCHAT_RUN_DEPENDS=	hexchat:irc/hexchat
XCHAT_RUN_DEPENDS=	xchat:irc/xchat

do-install:
	@${MKDIR} ${STAGEDIR}${DATADIR}
	${INSTALL_SCRIPT} ${WRKSRC}/*.py ${STAGEDIR}${DATADIR}

	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>