aboutsummaryrefslogtreecommitdiffstats
path: root/audio/py-mpd2
diff options
context:
space:
mode:
authorrene <rene@FreeBSD.org>2013-12-16 20:03:47 +0800
committerrene <rene@FreeBSD.org>2013-12-16 20:03:47 +0800
commit3806c7ac6bb8164c339be3791542f803c870d3fd (patch)
treed0cc2ada93eae0a688a489668d484db485664be7 /audio/py-mpd2
parentb9a171686eeff3f47e4f856f35b357ed383cebd8 (diff)
downloadfreebsd-ports-gnome-3806c7ac6bb8164c339be3791542f803c870d3fd.tar.gz
freebsd-ports-gnome-3806c7ac6bb8164c339be3791542f803c870d3fd.tar.zst
freebsd-ports-gnome-3806c7ac6bb8164c339be3791542f803c870d3fd.zip
- Stagify
- Switch to PYDISTUTILS=yes - Bump PORTREVISION to drop runtime dependency on py-setuptools - Drop pkg-plist - Mark as architecture-independent
Diffstat (limited to 'audio/py-mpd2')
-rw-r--r--audio/py-mpd2/Makefile24
-rw-r--r--audio/py-mpd2/pkg-plist2
2 files changed, 11 insertions, 15 deletions
diff --git a/audio/py-mpd2/Makefile b/audio/py-mpd2/Makefile
index aa61aa557d80..5a43e0031293 100644
--- a/audio/py-mpd2/Makefile
+++ b/audio/py-mpd2/Makefile
@@ -3,6 +3,7 @@
PORTNAME= mpd2
PORTVERSION= 0.5.2
+PORTREVISION= 1
CATEGORIES= audio python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= python-${PORTNAME}-${PORTVERSION}
@@ -11,15 +12,17 @@ MAINTAINER= rene@FreeBSD.org
COMMENT= Fork of the Python MPD client library
USE_GITHUB= yes
-NO_STAGE= yes
GH_ACCOUNT= Mic92
GH_PROJECT= python-${PORTNAME}
GH_TAGNAME= v${PORTVERSION}
GH_COMMIT= df508d4
USE_PYTHON= yes
-USE_PYDISTUTILS= easy_install
+USE_PYDISTUTILS= yes
PYDISTUTILS_PKGNAME= python_mpd2
+PYDISTUTILS_AUTOPLIST= yes
+
+NO_ARCH= yes
OPTIONSFILE= ${PORT_DBDIR}/py-${PORTNAME}/options
OPTIONS_DEFINE= DOCS EXAMPLES
@@ -31,24 +34,19 @@ PORTDOCS_2= topics/advanced.rst topics/commands.rst \
PORTDOCS= ${PORTDOCS_1} ${PORTDOCS_2}
EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME}
PORTEXAMPLES= locking.py logger.py
-
-.include <bsd.port.options.mk>
+PLIST_DIRSTRY= ${DOCSDIR}/topics
post-install:
-.if ${PORT_OPTIONS:MDOCS}
- @${MKDIR} ${DOCSDIR}/topics
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}/topics
.for f in ${PORTDOCS_1}
- ${INSTALL_DATA} ${WRKSRC}/doc/${f} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/doc/${f} ${STAGEDIR}${DOCSDIR}
.endfor
.for f in ${PORTDOCS_2}
- ${INSTALL_DATA} ${WRKSRC}/doc/${f} ${DOCSDIR}/topics
+ ${INSTALL_DATA} ${WRKSRC}/doc/${f} ${STAGEDIR}${DOCSDIR}/topics
.endfor
-.endif
-.if ${PORT_OPTIONS:MEXAMPLES}
- @${MKDIR} ${EXAMPLESDIR}
+ ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
.for f in ${PORTEXAMPLES}
- ${INSTALL_SCRIPT} ${WRKSRC}/examples/${f} ${EXAMPLESDIR}
+ ${INSTALL_SCRIPT} ${WRKSRC}/examples/${f} ${STAGEDIR}${EXAMPLESDIR}
.endfor
-.endif
.include <bsd.port.mk>
diff --git a/audio/py-mpd2/pkg-plist b/audio/py-mpd2/pkg-plist
deleted file mode 100644
index 8990d9fd9bf8..000000000000
--- a/audio/py-mpd2/pkg-plist
+++ /dev/null
@@ -1,2 +0,0 @@
-%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%
-%%PORTDOCS%%@dirrm %%DOCSDIR%%/topics