summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2016-01-07 14:06:08 +0000
committeramdmi3 <amdmi3@FreeBSD.org>2016-01-07 14:06:08 +0000
commitdf53edb11a8b074b44f943736be43080b8045b44 (patch)
tree558ee11b9caff87de56403905311e52869dae165
parent348f9a2bd4173b338c92efef042854b636cef145 (diff)
downloadFreeBSD-ports-df53edb11a8b074b44f943736be43080b8045b44.zip
FreeBSD-ports-df53edb11a8b074b44f943736be43080b8045b44.tar.gz
- Clarify LICENSE
- Add LICENSE_FILE - Switch to options helpers - Simplify installation
-rw-r--r--audio/py-mpd2/Makefile49
1 files changed, 18 insertions, 31 deletions
diff --git a/audio/py-mpd2/Makefile b/audio/py-mpd2/Makefile
index e7168d1..c64598d 100644
--- a/audio/py-mpd2/Makefile
+++ b/audio/py-mpd2/Makefile
@@ -10,7 +10,8 @@ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= ports@FreeBSD.org
COMMENT= Fork of the Python MPD client library
-LICENSE= LGPL3
+LICENSE= LGPL3 # or later
+LICENSE_FILE= ${WRKSRC}/LICENSE.txt
USE_GITHUB= yes
GH_ACCOUNT= Mic92
@@ -22,37 +23,23 @@ USE_PYTHON= autoplist concurrent distutils
NO_ARCH= yes
-OPTIONS_DEFINE= DOCS EXAMPLES
-
DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME}
-PORTDOCS_1= commands_header.txt index.rst changes.rst
-PORTDOCS_2= topics/advanced.rst topics/commands.rst \
- topics/getting-started.rst topics/logging.rst
-PORTDOCS_3= generate_command_reference.py
-PORTDOCS= ${PORTDOCS_1} ${PORTDOCS_2} ${PORTDOCS_3}
+PORTDOCS= *
EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME}
-PORTEXAMPLES_1= errorhandling.py helloworld.py idle.py locking.py logger.py \
- multitags.py randomqueue.py stats.py stickers.py
-PORTEXAMPLES_2= summary.txt
-PORTEXAMPLES= ${PORTEXAMPLES_1} ${PORTEXAMPLES_2}
-
-post-install:
- ${MKDIR} ${STAGEDIR}${DOCSDIR}/topics
-.for f in ${PORTDOCS_1}
- ${INSTALL_DATA} ${WRKSRC}/doc/${f} ${STAGEDIR}${DOCSDIR}
-.endfor
-.for f in ${PORTDOCS_2}
- ${INSTALL_DATA} ${WRKSRC}/doc/${f} ${STAGEDIR}${DOCSDIR}/topics
-.endfor
-.for f in ${PORTDOCS_3}
- ${INSTALL_SCRIPT} ${WRKSRC}/doc/${f} ${STAGEDIR}${DOCSDIR}
-.endfor
- ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
-.for f in ${PORTEXAMPLES_1}
- ${INSTALL_SCRIPT} ${WRKSRC}/examples/${f} ${STAGEDIR}${EXAMPLESDIR}
-.endfor
-.for f in ${PORTEXAMPLES_2}
- ${INSTALL_DATA} ${WRKSRC}/examples/${f} ${STAGEDIR}${EXAMPLESDIR}
-.endfor
+PORTEXAMPLES= *
+
+OPTIONS_DEFINE= DOCS EXAMPLES
+
+post-install-DOCS-on:
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}/topics
+ ${INSTALL_DATA} ${WRKSRC}/doc/commands_header.txt ${STAGEDIR}${DOCSDIR}/
+ ${INSTALL_DATA} ${WRKSRC}/doc/*.rst ${STAGEDIR}${DOCSDIR}/
+ ${INSTALL_DATA} ${WRKSRC}/doc/topics/*.rst ${STAGEDIR}${DOCSDIR}/topics/
+ ${INSTALL_SCRIPT} ${WRKSRC}/doc/generate_command_reference.py ${STAGEDIR}${DOCSDIR}/
+
+post-install-EXAMPLES-on:
+ @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ ${INSTALL_SCRIPT} ${WRKSRC}/examples/*.py ${STAGEDIR}${EXAMPLESDIR}/
+ ${INSTALL_DATA} ${WRKSRC}/examples/summary.txt ${STAGEDIR}${EXAMPLESDIR}/
.include <bsd.port.mk>
OpenPOWER on IntegriCloud