View | Details | Raw Unified | Return to bug 246328 | Differences between
and this patch

Collapse All | Expand All

(-)net-p2p/nicotine-plus/Makefile (-57 / +16 lines)
Lines 1-68 Link Here
1
# Created by: Adam Weinberger <adamw@FreeBSD.org>
2
# $FreeBSD$
1
# $FreeBSD$
3
2
4
PORTNAME=	plus
3
PORTNAME=	nicotine-plus
5
PORTVERSION=	1.2.16
4
PORTVERSION=	2.1.2
6
CATEGORIES=	net-p2p
5
CATEGORIES=	net-p2p
7
MASTER_SITES=	SF/nicotine-${PORTNAME}/nicotine-${PORTNAME}/${PORTVERSION}
8
PKGNAMEPREFIX=	nicotine-
9
DISTNAME=	${PKGNAMEPREFIX:S/-/+/}-${PORTVERSION}
10
6
11
MAINTAINER=	acm@FreeBSD.org
7
MAINTAINER=	menelkir@itroll.org
12
COMMENT=	A fork of nicotine soulseek client
8
COMMENT=	Soulseek client
13
9
14
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}bsddb>0:${PORTSDIR}/databases/py-bsddb
10
LICENSE=	GPLv3
11
LICENSE_FILE=   ${WRKSRC}/COPYING
15
12
16
CONFLICTS=	nicotine-[0-9]*
13
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}mutagen>0:audio/py-mutagen@${PY_FLAVOR} \
17
BROKEN=		does not build
14
		${PYTHON_PKGNAMEPREFIX}gobject3>0:devel/py-gobject3@${PY_FLAVOR} \
15
		${PYTHON_PKGNAMEPREFIX}miniupnpc>0:net/py-miniupnpc@${PY_FLAVOR}
18
16
19
USE_BZIP2=		yes
17
USES=           python:3.7+ gnome
20
USE_GNOME=		pygtk2
21
USE_PYTHON=		yes
22
USE_PYDISTUTILS=	yes
23
USES=		gettext
24
PYDISTUTILS_PKGNAME=	nicotine
25
18
26
DOCSDIR=	share/doc/${PKGNAMEPREFIX:S/-//}
19
USE_GITHUB=	yes
27
DATADIR=	share/${PKGNAMEPREFIX:S/-//}
20
GH_ACCOUNT=     Nicotine-Plus
28
MAN1=		nicotine-import-winconfig.1 nicotine.1
21
GH_PROJECT=     ${PORTNAME}
22
GH_TAGNAME=     ${PORTVERSION}
29
23
30
OPTIONS_DEFINE=	GEOIP PSYCO MUTAGEN LIBSEXY MINIUPNPC DOCS
24
USE_GNOME=      gtk30
31
OPTIONS_DEFINE_i386=	PSYCO
25
USE_PYTHON=     distutils
32
OPTIONS_DEFAULT=	GEOIP PSYCO MUTAGEN LIBSEXY MINIUPNPC
33
GEOIP_DESC=	Enable the GeoIP based country code blocker
34
PSYCO_DESC=	Enable Psyco, the optimizing Python compiler
35
MUTAGEN_DESC=	Enable Mutagen for audio metadata support
36
LIBSEXY_DESC=	Enable libsexy support
37
MINIUPNPC_DESC=	Enable upnp support
38
26
39
.include <bsd.port.options.mk>
40
41
.if ${PORT_OPTIONS:MGEOIP}
42
RUN_DEPENDS+=	${PYTHON_SITELIBDIR}/GeoIP.so:${PORTSDIR}/net/py-GeoIP
43
.endif
44
.if ${PORT_OPTIONS:MPSYCO}
45
RUN_DEPENDS+=	${PYTHON_SITELIBDIR}/psyco/_psyco.so:${PORTSDIR}/devel/py-psyco
46
.endif
47
.if ${PORT_OPTIONS:MMUTAGEN}
48
RUN_DEPENDS+=	${PYTHON_SITELIBDIR}/mutagen/__init__.py:${PORTSDIR}/audio/py-mutagen
49
.endif
50
.if ${PORT_OPTIONS:MLIBSEXY}
51
RUN_DEPENDS+=	${PYTHON_SITELIBDIR}/gtk-2.0/sexy.so:${PORTSDIR}/x11-toolkits/py-sexy
52
.endif
53
.if ${PORT_OPTIONS:MMINIUPNPC}
54
RUN_DEPENDS+=	${PYTHON_SITELIBDIR}/miniupnpc.so:${PORTSDIR}/net/py-miniupnpc
55
.endif
56
57
post-extract:
58
	@${MV} ${WRKSRC}/${PKGNAMEPREFIX:S/-//}.py ${WRKSRC}/${PKGNAMEPREFIX:S/-//}
59
60
post-patch:
61
.if ! ${PORT_OPTIONS:MDOCS}
62
	@${REINPLACE_CMD} -i "" -e 's|^doc_files.*|doc_files = ""|g' ${WRKSRC}/setup.py
63
.endif
64
	@${REINPLACE_CMD} -e \
65
		"s|sys\.prefix|\"${PREFIX}\"|g" -e \
66
			"s|nicotine.py|nicotine|g" ${WRKSRC}/setup.py
67
68
.include <bsd.port.mk>
27
.include <bsd.port.mk>
(-)net-p2p/nicotine-plus/distinfo (-2 / +3 lines)
Lines 1-2 Link Here
1
SHA256 (nicotine+-1.2.16.tar.bz2) = 71e5b33e273daaf072dbf63839536c14d7ead9d149323d50eee09f7429e34c1d
1
TIMESTAMP = 1602851221
2
SIZE (nicotine+-1.2.16.tar.bz2) = 3892006
2
SHA256 (Nicotine-Plus-nicotine-plus-2.1.2_GH0.tar.gz) = 3ed18ade97183c632836eb8e304a515fc19a35babb46cc6e6747bcfd8205dcdf
3
SIZE (Nicotine-Plus-nicotine-plus-2.1.2_GH0.tar.gz) = 5091941

Return to bug 246328