aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2016-04-01 02:45:15 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2016-04-01 02:45:15 +0800
commit11680b72b7894a3e2d8f15eb9caf535ec565b5e7 (patch)
tree20da01dd03147b4d9fc05a058310413dc359ff3d /devel
parent22cadc487f9e45b36a1c85e5d4b41e5dad8c1d58 (diff)
downloadfreebsd-ports-gnome-11680b72b7894a3e2d8f15eb9caf535ec565b5e7.tar.gz
freebsd-ports-gnome-11680b72b7894a3e2d8f15eb9caf535ec565b5e7.tar.zst
freebsd-ports-gnome-11680b72b7894a3e2d8f15eb9caf535ec565b5e7.zip
- Add LICENSE
- Add NO_ARCH - Switch to options helpers
Diffstat (limited to 'devel')
-rw-r--r--devel/py-optik/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/devel/py-optik/Makefile b/devel/py-optik/Makefile
index d85b98b62710..e892e8f1dfa2 100644
--- a/devel/py-optik/Makefile
+++ b/devel/py-optik/Makefile
@@ -10,18 +10,25 @@ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= ports@FreeBSD.org
COMMENT= Command-line parsing library for Python
+LICENSE= BSD3CLAUSE
+
USES= python
USE_PYTHON= distutils autoplist
+NO_ARCH= yes
DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
EXAMPLESDIR= ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME}
PORTDOCS= *
PORTEXAMPLES= *
-post-install:
+OPTIONS_DEFINE= DOCS EXAMPLES
+
+post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}/test
${INSTALL_DATA} ${WRKSRC}/doc/* ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/test/* ${STAGEDIR}${DOCSDIR}/test
+
+post-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR}