blob: 57db5325195c7f2f9eb67545e1f8b01c463f14f1 (
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
51
52
53
54
55
56
57
58
59
60
61
|
# Created by: Chess Griffin <chess@chessgriffin.com>
# $FreeBSD$
PORTNAME= gpodder
PORTVERSION= 3.9.3
CATEGORIES= multimedia python
MASTER_SITES= http://gpodder.org/src/
MAINTAINER= rm@FreeBSD.org
COMMENT= Media aggregator and podcast client
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= intltool-extract:textproc/intltool \
help2man:misc/help2man
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sqlite3>=0:databases/py-sqlite3@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}html5lib>0:www/py-html5lib@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}mygpoclient>=1.4:devel/py-mygpoclient@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}podcastparser>0:devel/py-podcastparser@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}dbus>=0:devel/py-dbus@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}eyed3>=0:audio/py-eyed3@${PY_FLAVOR}
OPTIONS_DEFINE= GTK2 NOTIFY MUTAGEN OGG2MP3
OPTIONS_DEFAULT= GTK2
OPTIONS_SUB= yes
MUTAGEN_DESC= Allow metadata manipulation
OGG2MP3_DESC= Ogg Vorbis conversion to MP3 support
OPTIONS_EXCLUDE= NLS
NOTIFY_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}notify>=0:devel/py-notify@${PY_FLAVOR}
MUTAGEN_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mutagen>=0:audio/py-mutagen@${PY_FLAVOR}
OGG2MP3_RUN_DEPENDS= lame:audio/lame \
oggdec:audio/vorbis-tools
ALL_TARGET= messages
MAKE_ENV= GPODDER_MANPATH_NO_SHARE="yes"
MAKEFILE= makefile
NO_ARCH= yes
USES= gettext gmake python:-2.7 shebangfix
SHEBANG_FILES= src/gpodder/*.py share/gpodder/examples/*.py share/gpodder/extensions/*.py
INSTALLS_ICONS= yes
PLIST_SUB+= PORTVERSION=${PORTVERSION}
PORTDOCS= PKG-INFO README
GTK2_VARS= MAKE_ENV+=GPODDER_INSTALL_UIS="cli gtk"
GTK2_RUN_DEPENDS+= gnome-icon-theme>=0:misc/gnome-icon-theme \
xdg-open:devel/xdg-utils
GTK2_USE= GNOME=pygtk2
.if empty(GTK2)
MAKE_ENV+= GPODDER_INSTALL_UIS="cli"
.endif
post-patch:
@${REINPLACE_CMD} -e 's|python|${PYTHON_CMD}|g' ${WRKSRC}/makefile
post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
|