blob: ed6eecc6873ccb693c1eac907839483281d1f64c (
plain)
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
|
# Created by: John Hixson <john@pcbsd.org>
PORTNAME= pithos
PORTVERSION= 1.5.1
CATEGORIES= audio
MAINTAINER= jhixson@FreeBSD.org
COMMENT= Pandora client for the GNOME desktop
LICENSE= GPLv3
BUILD_DEPENDS= appstream-util:devel/appstream-glib \
desktop-file-validate:devel/desktop-file-utils \
help2man:misc/help2man
RUN_DEPENDS= gnome-keyring:security/gnome-keyring \
gsettings-desktop-schemas>3.0.0:devel/gsettings-desktop-schemas \
${PYTHON_SITELIBDIR}/dbus/__init__.py:devel/py-dbus@${PY_FLAVOR} \
${PYTHON_SITELIBDIR}/gi/overrides/Gst.py:multimedia/py-gstreamer1@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pylast>0:audio/py-pylast@${PY_FLAVOR} \
${PYTHON_SITELIBDIR}/xdg/__init__.py:devel/py-xdg@${PY_FLAVOR}
USES= pkgconfig:run python:3.6+ gnome gstreamer meson ninja gettext shebangfix
USE_GITHUB= yes
USE_GNOME= glib20
USE_GSTREAMER= core good bad soup
GLIB_SCHEMAS= io.github.Pithos.gschema.xml
SHEBANG_FILES= bin/pithos.in docs/conf.py meson_post_install.py
post-patch:
${REINPLACE_CMD} -i '' -e \
"s|\(\([^.]\)pkgdatadir\)|\2'${PYTHONPREFIX_SITELIBDIR}'|g" \
${WRKSRC}/meson.build
${REINPLACE_CMD} -i '' -e "s|'pithos', ||" \
${WRKSRC}/meson_post_install.py
pre-install:
${MKDIR} ${STAGEDIR}/${PYTHONPREFIX_SITELIBDIR}/${PORTNAME}
${MKDIR} ${STAGEDIR}/${PREFIX}/share/glib-2.0/schemas
${MKDIR} ${STAGEDIR}${DATADIR}
.include <bsd.port.mk>
|