2013-01-04 15:28:32 +00:00
|
|
|
# Created by: rene@FreeBSD.org (repocopied from audio/py-mpd)
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= mpd2
|
2013-11-04 17:46:55 +00:00
|
|
|
PORTVERSION= 0.5.2
|
2013-12-16 12:03:47 +00:00
|
|
|
PORTREVISION= 1
|
2013-01-04 15:28:32 +00:00
|
|
|
CATEGORIES= audio python
|
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
DISTNAME= python-${PORTNAME}-${PORTVERSION}
|
|
|
|
|
|
|
|
MAINTAINER= rene@FreeBSD.org
|
|
|
|
COMMENT= Fork of the Python MPD client library
|
|
|
|
|
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= Mic92
|
|
|
|
GH_PROJECT= python-${PORTNAME}
|
|
|
|
GH_TAGNAME= v${PORTVERSION}
|
2013-11-04 17:46:55 +00:00
|
|
|
GH_COMMIT= df508d4
|
2013-01-04 15:28:32 +00:00
|
|
|
|
|
|
|
USE_PYTHON= yes
|
2013-12-16 12:03:47 +00:00
|
|
|
USE_PYDISTUTILS= yes
|
|
|
|
PYDISTUTILS_AUTOPLIST= yes
|
|
|
|
|
|
|
|
NO_ARCH= yes
|
2013-01-04 15:28:32 +00:00
|
|
|
|
|
|
|
OPTIONSFILE= ${PORT_DBDIR}/py-${PORTNAME}/options
|
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
|
|
|
|
|
|
|
DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME}
|
2013-11-04 17:46:55 +00:00
|
|
|
PORTDOCS_1= index.rst changes.rst
|
|
|
|
PORTDOCS_2= topics/advanced.rst topics/commands.rst \
|
|
|
|
topics/getting-started.rst topics/logging.rst
|
|
|
|
PORTDOCS= ${PORTDOCS_1} ${PORTDOCS_2}
|
2013-01-04 15:28:32 +00:00
|
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME}
|
|
|
|
PORTEXAMPLES= locking.py logger.py
|
2013-12-16 12:03:47 +00:00
|
|
|
PLIST_DIRSTRY= ${DOCSDIR}/topics
|
2013-01-04 15:28:32 +00:00
|
|
|
|
|
|
|
post-install:
|
2013-12-16 12:03:47 +00:00
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}/topics
|
2013-11-04 17:46:55 +00:00
|
|
|
.for f in ${PORTDOCS_1}
|
2013-12-16 12:03:47 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/${f} ${STAGEDIR}${DOCSDIR}
|
2013-11-04 17:46:55 +00:00
|
|
|
.endfor
|
|
|
|
.for f in ${PORTDOCS_2}
|
2013-12-16 12:03:47 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/${f} ${STAGEDIR}${DOCSDIR}/topics
|
2013-01-04 15:28:32 +00:00
|
|
|
.endfor
|
2013-12-16 12:03:47 +00:00
|
|
|
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
2013-01-04 15:28:32 +00:00
|
|
|
.for f in ${PORTEXAMPLES}
|
2013-12-16 12:03:47 +00:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/examples/${f} ${STAGEDIR}${EXAMPLESDIR}
|
2013-01-04 15:28:32 +00:00
|
|
|
.endfor
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|