aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2013-03-25 14:05:31 +0800
committermiwi <miwi@FreeBSD.org>2013-03-25 14:05:31 +0800
commitfecd9bd09533c814f4f3f3b9312d678dc0beceb4 (patch)
treecaba79a29b38b87d60f0ec1c39e89acf9b7df993
parentb188c769f2650f1a4c596b60d43f25ba20eed016 (diff)
downloadfreebsd-ports-gnome-fecd9bd09533c814f4f3f3b9312d678dc0beceb4.tar.gz
freebsd-ports-gnome-fecd9bd09533c814f4f3f3b9312d678dc0beceb4.tar.zst
freebsd-ports-gnome-fecd9bd09533c814f4f3f3b9312d678dc0beceb4.zip
- Update to 3.1
PR: 177244 Submitted by: ports fury
-rw-r--r--devel/happydoc/Makefile47
-rw-r--r--devel/happydoc/distinfo4
-rw-r--r--devel/happydoc/files/patch-happydoclib__CommandLineApp.py28
3 files changed, 60 insertions, 19 deletions
diff --git a/devel/happydoc/Makefile b/devel/happydoc/Makefile
index f0c45adeb8a6..1734a651b424 100644
--- a/devel/happydoc/Makefile
+++ b/devel/happydoc/Makefile
@@ -1,31 +1,44 @@
-# ex:ts=8
-# New ports collection makefile for: happydoc
-# Date created: Dec 29, 2000
-# Whom: Ying-Chieh Liao <ijliao@FreeBSD.org>
-#
+# Created by: Ying-Chieh Liao <ijliao@FreeBSD.org>
# $FreeBSD$
-#
PORTNAME= happydoc
-PORTVERSION= 3.0.a1
+PORTVERSION= 3.1
CATEGORIES= devel python
-MASTER_SITES= SF/${PORTNAME}/HappyDoc/3.0
+MASTER_SITES= SF/${PORTNAME}/HappyDoc/${PORTVERSION}
DISTNAME= HappyDoc_r${PORTVERSION:S/./_/g}
MAINTAINER= ports@FreeBSD.org
-COMMENT= A tool for extracting documentation from Python source code
+COMMENT= Tool for extracting documentation from Python source code
+
+LICENSE= HPND ZPL21
+LICENSE_COMB= multi
+LICENSE_NAME_HPND= Historical Permission Notice and Disclaimer
+LICENSE_FILE_HPND= ${WRKSRC}/LICENSE.txt
+LICENSE_GROUPS_HPND= OSI
+LICENSE_PERMS_HPND= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
-USE_PYTHON= yes
WRKSRC= ${WRKDIR}/HappyDoc3-r${PORTVERSION:S/./_/g}
-NO_BUILD= yes
-PLIST_FILES= bin/happydoc
+
+USE_PYTHON= yes
+
+PLIST= ${WRKDIR}/PLIST
+
+pre-build:
+ @${FIND} ${WRKSRC} \( -name ".*" -or -name "*.orig" \) -delete
+
+do-build:
+ @${PYTHON_CMD} -m compileall ${WRKSRC}/happydoclib
+ @${PYTHON_CMD} -O -m compileall ${WRKSRC}/happydoclib
+
+post-build:
+ @${ECHO_CMD} "bin/happydoc" > ${PLIST}
+ @${FIND} ${WRKSRC}/happydoclib -type f | ${SORT} | ${SED} -e \
+ 's|${WRKSRC}|%%PYTHON_SITELIBDIR%%|' >> ${PLIST}
+ @${FIND} ${WRKSRC}/happydoclib -type d | ${SORT} -r | ${SED} -e \
+ 's|${WRKSRC}|@dirrm %%PYTHON_SITELIBDIR%%|' >> ${PLIST}
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/happydoc ${PREFIX}/bin
- @${CP} -R ${WRKSRC}/happydoclib ${PYTHON_SITELIBDIR}
- @${FIND} ${PYTHON_SITELIBDIR}/happydoclib -type f | \
- ${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
- @${FIND} ${PYTHON_SITELIBDIR}/happydoclib -type d | ${SORT} -r | \
- ${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
+ @(cd ${WRKSRC} && ${COPYTREE_SHARE} happydoclib ${PYTHON_SITELIBDIR})
.include <bsd.port.mk>
diff --git a/devel/happydoc/distinfo b/devel/happydoc/distinfo
index 8596480ea256..bfde3bc11232 100644
--- a/devel/happydoc/distinfo
+++ b/devel/happydoc/distinfo
@@ -1,2 +1,2 @@
-SHA256 (HappyDoc_r3_0_a1.tar.gz) = 311a289906dee8b9f8c327bddab59daa200b0080dd83968ee91fda8bbbf15e39
-SIZE (HappyDoc_r3_0_a1.tar.gz) = 234707
+SHA256 (HappyDoc_r3_1.tar.gz) = ef5f8dee5782a1ebe750aa51b855ce84097f5bb60488826ea5da900098c5aaec
+SIZE (HappyDoc_r3_1.tar.gz) = 732849
diff --git a/devel/happydoc/files/patch-happydoclib__CommandLineApp.py b/devel/happydoc/files/patch-happydoclib__CommandLineApp.py
new file mode 100644
index 000000000000..168c5267528a
--- /dev/null
+++ b/devel/happydoc/files/patch-happydoclib__CommandLineApp.py
@@ -0,0 +1,28 @@
+--- happydoclib/CommandLineApp.py.orig
++++ happydoclib/CommandLineApp.py
+@@ -102,10 +102,21 @@
+ #
+ # Exception names
+ #
+- ReservedOptionName = 'Reserved option name'
+- HelpRequested='Help requested'
+- InvalidOptionValue='Invalid value for option'
+- InvalidArgument='Invalid argument to program'
++ class ReservedOptionName(ValueError):
++ 'Reserved option name'
++ pass
++
++ class HelpRequested(ValueError):
++ 'Help requested'
++ pass
++
++ class InvalidOptionValue(ValueError):
++ 'Invalid value for option'
++ pass
++
++ class InvalidArgument(ValueError):
++ 'Invalid argument to program'
++ pass
+
+ #
+ # Globally useful configuration stuff.