freebsd-ports/net-p2p/bitmessage/Makefile
Bryan Drewery 5b5a90256d Update USE_GITHUB so it does not require GH_COMMIT.
Using this new scheme allows only setting the _tag_ or _commit hash_ in
GH_TAGNAME and not having to know the hash for a tag.  This scheme will
download a tarball that has a different checksum than before due to a changed
directory name for extraction.

The following MASTER_SITES are provided to retain the old checksum and
directory structure (that require GH_COMMIT):
  GH -> GHL
  GITHUB -> GITHUB_LEGACY

Differential Revision:	https://reviews.freebsd.org/D748
Submitted by:	amdmi3
Reviewed by:	mat, swills, antoine, bdrewery
With hat:	portmgr
2015-03-19 16:44:57 +00:00

39 lines
972 B
Makefile

# Created by: Yuri Victorovich <yuri@rawbw.com>
# $FreeBSD$
PORTNAME= bitmessage
PORTVERSION= 0.4.4
PORTREVISION= 1
CATEGORIES= net-p2p
MASTER_SITES= GHL
MAINTAINER= yuri@rawbw.com
COMMENT= Secure P2P communications client
LICENSE= MIT
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sqlite3>0:${PORTSDIR}/databases/py-sqlite3 \
${PYTHON_PKGNAMEPREFIX}qt4-core>=${PYQT4_VERSION}:${PORTSDIR}/devel/py-qt4-core \
${PYTHON_PKGNAMEPREFIX}qt4-gui>=${PYQT4_VERSION}:${PORTSDIR}/x11-toolkits/py-qt4-gui
USE_GITHUB= yes
GH_ACCOUNT= Bitmessage
GH_PROJECT= PyBitmessage
GH_COMMIT= c9c301a
GH_TAGNAME= v${PORTVERSION}
USES= python
USE_OPENSSL= yes
INSTALLS_ICONS= yes
post-patch:
${REINPLACE_CMD} -e 's|python2|${PYTHON_CMD}| ; s|share/man|man|' ${WRKSRC}/Makefile
do-build:
@(cd ${WRKSRC} && \
${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py \
-d ${WRKSRC} -f ${WRKSRC} && \
${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py \
-d ${WRKSRC} -f ${WRKSRC})
.include <bsd.port.mk>