mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
b8bb8f7ce9
* Switch to JSON API to work around XMLRPC API update Approved by: eadler, itetcu (mentors, implicit)
46 lines
1.2 KiB
Makefile
46 lines
1.2 KiB
Makefile
# New ports collection makefile for: pithos
|
|
# Date created: 14 July 2011
|
|
# Whom: John Hixson <john@pcbsd.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= pithos
|
|
PORTVERSION= 0.3.17
|
|
CATEGORIES= audio
|
|
MASTER_SITES= DEBIAN
|
|
DISTNAME= ${PORTNAME}_${PORTVERSION}.orig
|
|
|
|
MAINTAINER= john@pcbsd.org
|
|
COMMENT= A Pandora client for the GNOME desktop
|
|
|
|
LICENSE= GPLv3
|
|
|
|
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/xdg/__init__.py:${PORTSDIR}/devel/py-xdg \
|
|
${LOCALBASE}/libdata/pkgconfig/pygobject-2.0.pc:${PORTSDIR}/devel/py-gobject \
|
|
${LOCALBASE}/libdata/pkgconfig/notify-python.pc:${PORTSDIR}/devel/py-notify \
|
|
${PYTHON_SITELIBDIR}/dbus/__init__.py:${PORTSDIR}/devel/py-dbus
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}_${PORTVERSION}
|
|
|
|
USE_PYTHON= 2.6+
|
|
USE_GNOME= pygtk2
|
|
USE_PYDISTUTILS= yes
|
|
USE_GSTREAMER= good bad python
|
|
USE_DISPLAY= yes
|
|
PYDISTUTILS_PKGNAME= ${PORTNAME}
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} -e "s,../data/,${DATADIR}/," ${WRKSRC}/pithos/pithosconfig.py
|
|
${REINPLACE_CMD} -e "s,Icon=pithos,${DATADIR}/media/icon.png," ${WRKSRC}/pithos.desktop
|
|
|
|
post-install:
|
|
@${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 555 \
|
|
${WRKSRC}/bin/${PORTNAME} ${PREFIX}/bin/${PORTNAME}
|
|
@${MKDIR} ${DATADIR}
|
|
@(cd ${WRKSRC}/data/ && ${COPYTREE_SHARE} \* ${DATADIR})
|
|
|
|
.include <bsd.port.post.mk>
|