aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authorJeremy Messenger <mezz@FreeBSD.org>2005-05-22 08:27:39 +0000
committerJeremy Messenger <mezz@FreeBSD.org>2005-05-22 08:27:39 +0000
commit21a69e454b66188328c51454d1df32a67ceb3cb9 (patch)
tree8a1079170841e312adf13be10a5b6ac5308f928b /editors
parentfe3cd0525f2e14057c6a277b2bcb683d0e256d2f (diff)
downloadports-21a69e454b66188328c51454d1df32a67ceb3cb9.tar.gz
ports-21a69e454b66188328c51454d1df32a67ceb3cb9.zip
- Arrgh, correct two missing of abiword -> abiword-devel.
- My punishment is to add grammar checker plugins, a WITH_GRAMMAR knob. ;-) It depends on textproc/link-grammar. - Bump the PORTREVISION.
Notes
Notes: svn path=/head/; revision=135837
Diffstat (limited to 'editors')
-rw-r--r--editors/abiword-plugins-devel/Makefile16
-rw-r--r--editors/abiword-plugins-devel/pkg-plist1
2 files changed, 15 insertions, 2 deletions
diff --git a/editors/abiword-plugins-devel/Makefile b/editors/abiword-plugins-devel/Makefile
index d6f01e327354..5158812b490d 100644
--- a/editors/abiword-plugins-devel/Makefile
+++ b/editors/abiword-plugins-devel/Makefile
@@ -7,6 +7,7 @@
PORTNAME= abiword
PORTVERSION= 2.3.0
+PORTREVISION= 1
CATEGORIES= editors
MASTER_SITES= http://www.abisource.com/downloads/%SUBDIR%/${PORTVERSION}/source/
MASTER_SITE_SUBDIR= abiword
@@ -16,8 +17,8 @@ DIST_SUBDIR= AbiWord
MAINTAINER= gnome@FreeBSD.org
COMMENT= Multi-plugins for AbiWord
-BUILD_DEPENDS= AbiWord-2.4:${PORTSDIR}/editors/abiword
-RUN_DEPENDS= AbiWord-2.4:${PORTSDIR}/editors/abiword
+BUILD_DEPENDS= AbiWord-2.4:${PORTSDIR}/editors/abiword-devel
+RUN_DEPENDS= AbiWord-2.4:${PORTSDIR}/editors/abiword-devel
USE_BZIP2= yes
USE_GMAKE= yes
@@ -126,6 +127,14 @@ PLIST_SUB+= GOOGLE:=""
PLIST_SUB+= GOOGLE:="@comment "
.endif
+.if defined(WITH_GRAMMAR) || defined(PACKAGE_BUILDING)
+LIB_DEPENDS+= link-grammar.5:${PORTSDIR}/textproc/link-grammar
+CONFIGURE_ARGS+= --enable-abigrammar
+PLIST_SUB+= GRAMMAR:=""
+.else
+PLIST_SUB+= GRAMMAR:="@comment "
+.endif
+
.if defined(WITH_HANCOM) # Need to be tested
CONFIGURE_ARGS+= --enable-hancom
PLIST_SUB+= HANCOM:=""
@@ -284,6 +293,9 @@ pre-everything::
.if !defined(WITH_GDICT)
@${ECHO_MSG} "WITH_GDICT=yes Look up definitions of selected text."
.endif
+.if !defined(WITH_GRAMMAR)
+ @${ECHO_MSG} "WITH_GRAMMAR=yes Allows AbiWord to be Grammar checked."
+.endif
.if !defined(WITH_HANCOM)
@${ECHO_MSG} "WITH_HANCOM=yes Hancom Word Importer. Only does text."
.endif
diff --git a/editors/abiword-plugins-devel/pkg-plist b/editors/abiword-plugins-devel/pkg-plist
index bc60765b56cc..8e87bda31bc7 100644
--- a/editors/abiword-plugins-devel/pkg-plist
+++ b/editors/abiword-plugins-devel/pkg-plist
@@ -10,6 +10,7 @@
%%FREETRANSLATION:%%lib/AbiWord-%%ABIVERSION%%/plugins/libAbiFreeTranslation.so
%%GDICT:%%lib/AbiWord-%%ABIVERSION%%/plugins/libAbiGdict.so
%%GOOGLE:%%lib/AbiWord-%%ABIVERSION%%/plugins/libAbiGoogle.so
+%%GRAMMAR:%%lib/AbiWord-%%ABIVERSION%%/plugins/libAbiGrammar.so
%%HRTEXT:%%lib/AbiWord-%%ABIVERSION%%/plugins/libAbiHRText.so
%%HANCOM:%%lib/AbiWord-%%ABIVERSION%%/plugins/libAbiHancom.so
%%JPEG:%%lib/AbiWord-%%ABIVERSION%%/plugins/libAbiJPEG.so