diff options
author | Michael Gmelin <grembo@FreeBSD.org> | 2016-06-06 21:27:08 +0000 |
---|---|---|
committer | Michael Gmelin <grembo@FreeBSD.org> | 2016-06-06 21:27:08 +0000 |
commit | f3ae78685372bf2bc6b8b6ea5f85e67c5f95c3d5 (patch) | |
tree | c7bc4f88853de81e250bfe71cb4ec12d21b88281 /editors/joe | |
parent | 6f39846c839d94072235c90bbc0af3e377bf9583 (diff) | |
download | freebsd-ports-f3ae78685372bf2bc6b8b6ea5f85e67c5f95c3d5.zip |
Make dependency on aspell optional
joe is less than 2 MB in size and has no dependencies. Aspell
brings in 55MB in dependencies and more than 3000 files.
Change the port, so the dependency on aspell is optional (and
disabled by default) and allow installing aspell separately
for those who need it.
Reviewed by: bapt
Approved by: mentors (implicit)
Differential Revision: https://reviews.freebsd.org/D6732
Diffstat (limited to 'editors/joe')
-rw-r--r-- | editors/joe/Makefile | 11 | ||||
-rw-r--r-- | editors/joe/files/patch-configure | 11 |
2 files changed, 19 insertions, 3 deletions
diff --git a/editors/joe/Makefile b/editors/joe/Makefile index 9c8c764745ed..97c5a1f98aa2 100644 --- a/editors/joe/Makefile +++ b/editors/joe/Makefile @@ -3,6 +3,7 @@ PORTNAME= joe PORTVERSION= 4.2 +PORTREVISION= 1 PORTEPOCH= 1 CATEGORIES?= editors MASTER_SITES= SF/joe-editor/JOE%20sources/joe-${PORTVERSION} @@ -12,10 +13,8 @@ COMMENT= Joe's Own Editor LICENSE= GPLv2 -BUILD_DEPENDS= aspell:textproc/aspell -RUN_DEPENDS= aspell:textproc/aspell -OPTIONS_DEFINE= DOCS +OPTIONS_DEFINE= ASPELL DOCS CONFLICTS= joe-2.* @@ -26,6 +25,12 @@ LIBS+= -L${LOCALBASE}/lib ${ICONV_LIB} ALL_TARGET= ${PORTNAME} +.include <bsd.port.options.mk> + +.if ${PORT_OPTIONS:MASPELL} +RUN_DEPENDS= aspell:textproc/aspell +.endif + post-patch: ${REINPLACE_CMD} -e 's|docs/README.old docs/man.md ||' ${WRKSRC}/Makefile.in diff --git a/editors/joe/files/patch-configure b/editors/joe/files/patch-configure new file mode 100644 index 000000000000..b56227134214 --- /dev/null +++ b/editors/joe/files/patch-configure @@ -0,0 +1,11 @@ +--- configure.orig 2016-03-06 19:35:47.000000000 +0000 ++++ configure 2016-06-05 13:46:54.833041496 +0000 +@@ -8145,7 +8145,7 @@ + done + IFS=$as_save_IFS + +- test -z "$ac_cv_prog_SPELL" && ac_cv_prog_SPELL="ispell" ++ test -z "$ac_cv_prog_SPELL" && ac_cv_prog_SPELL="aspell" + fi + fi + SPELL=$ac_cv_prog_SPELL |