summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--textproc/codespell/Makefile13
-rw-r--r--textproc/codespell/distinfo5
-rw-r--r--textproc/codespell/pkg-descr6
3 files changed, 16 insertions, 8 deletions
diff --git a/textproc/codespell/Makefile b/textproc/codespell/Makefile
index 2ebc1eccf04f..65e85271b3d1 100644
--- a/textproc/codespell/Makefile
+++ b/textproc/codespell/Makefile
@@ -1,11 +1,8 @@
# $FreeBSD$
PORTNAME= codespell
-PORTVERSION= 1.6
-PORTREVISION= 2
+PORTVERSION= 1.8
CATEGORIES= textproc
-MASTER_SITES= http://packages.profusion.mobi/${PORTNAME}/ \
- https://www.glenbarber.us/ports/${CATEGORIES}/${PORTNAME}/
MAINTAINER= gjb@FreeBSD.org
COMMENT= Source code spelling checker
@@ -14,10 +11,14 @@ LICENSE= GPLv2
USES= python:3 tar:xz
+USE_GITHUB= yes
+GH_ACCOUNT= lucasdemarchi
+GH_TAGNAME= 4cb7fe3
+
OPTIONS_DEFINE= DOCS EXAMPLES
PLIST_FILES= bin/codespell
-PORTDOCS= COPYING README TODO
+PORTDOCS= COPYING NEWS TODO
PORTEXAMPLES= *
SUB_FILES+= pkg-message
@@ -25,6 +26,8 @@ SUB_FILES+= pkg-message
do-build:
${REINPLACE_CMD} 's|#!/usr/bin/env python3|#!${PYTHON_CMD}|' \
${WRKSRC}/codespell.py
+ ${REINPLACE_CMD} "s|^default_dictionary = .*|default_dictionary = '${EXAMPLESDIR}/data/dictionary.txt'|" \
+ ${WRKSRC}/codespell.py
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/codespell.py ${STAGEDIR}${PREFIX}/bin/codespell
diff --git a/textproc/codespell/distinfo b/textproc/codespell/distinfo
index 81d514d7ba28..2d4cc31552eb 100644
--- a/textproc/codespell/distinfo
+++ b/textproc/codespell/distinfo
@@ -1,2 +1,3 @@
-SHA256 (codespell-1.6.tar.xz) = 3e98afd24067934917420eee04f663b192324ca636c8e32d8427d2c9f4dc36d2
-SIZE (codespell-1.6.tar.xz) = 38656
+TIMESTAMP = 1480647008
+SHA256 (lucasdemarchi-codespell-1.8-4cb7fe3_GH0.tar.gz) = 4c09be1a8f1a0dcf69370be894aef960d548d8abe10467f6d3f172394f9b8d18
+SIZE (lucasdemarchi-codespell-1.8-4cb7fe3_GH0.tar.gz) = 46285
diff --git a/textproc/codespell/pkg-descr b/textproc/codespell/pkg-descr
index 9472a444f66f..e5d240e6a2c9 100644
--- a/textproc/codespell/pkg-descr
+++ b/textproc/codespell/pkg-descr
@@ -1,3 +1,7 @@
Source code spell checker.
-WWW: http://git.profusion.mobi/cgit.cgi/lucas/codespell/
+Fix common misspellings in text files. It's designed primarily for
+checking misspelled words in source code, but it can be used with other
+files as well.
+
+WWW: https://github.com/lucasdemarchi/codespell/