From be76297b53b3b3535f92751a2a29e156a608dbfe Mon Sep 17 00:00:00 2001 From: Joe Marcus Clarke Date: Mon, 19 Aug 2002 20:08:57 +0000 Subject: [PATCH] Add gtkspell2, a GTK+ 2 spell checking component. There is a gtkspell out there for GTK+ 1.2, but it doesn't appear to be in the tree. If for some reason, it ever gets imported, this port won't collide with it. --- textproc/Makefile | 1 + textproc/gtkspell/Makefile | 33 ++++++++++++++++++++++++ textproc/gtkspell/distinfo | 1 + textproc/gtkspell/files/patch-configure | 10 +++++++ textproc/gtkspell/pkg-comment | 1 + textproc/gtkspell/pkg-descr | 5 ++++ textproc/gtkspell/pkg-plist | 7 +++++ textproc/gtkspell2/Makefile | 33 ++++++++++++++++++++++++ textproc/gtkspell2/distinfo | 1 + textproc/gtkspell2/files/patch-configure | 10 +++++++ textproc/gtkspell2/pkg-comment | 1 + textproc/gtkspell2/pkg-descr | 5 ++++ textproc/gtkspell2/pkg-plist | 7 +++++ 13 files changed, 115 insertions(+) create mode 100644 textproc/gtkspell/Makefile create mode 100644 textproc/gtkspell/distinfo create mode 100644 textproc/gtkspell/files/patch-configure create mode 100644 textproc/gtkspell/pkg-comment create mode 100644 textproc/gtkspell/pkg-descr create mode 100644 textproc/gtkspell/pkg-plist create mode 100644 textproc/gtkspell2/Makefile create mode 100644 textproc/gtkspell2/distinfo create mode 100644 textproc/gtkspell2/files/patch-configure create mode 100644 textproc/gtkspell2/pkg-comment create mode 100644 textproc/gtkspell2/pkg-descr create mode 100644 textproc/gtkspell2/pkg-plist diff --git a/textproc/Makefile b/textproc/Makefile index 139b503ce0d5..6c0b714c7053 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -73,6 +73,7 @@ SUBDIR += gsed SUBDIR += gtk-doc SUBDIR += gtkdiff + SUBDIR += gtkspell2 SUBDIR += gutenbook SUBDIR += gutenmark SUBDIR += gxditview diff --git a/textproc/gtkspell/Makefile b/textproc/gtkspell/Makefile new file mode 100644 index 000000000000..663ffaca9be9 --- /dev/null +++ b/textproc/gtkspell/Makefile @@ -0,0 +1,33 @@ +# New ports collection makefile for: gtkspell2 +# Date created: 19 Aug 2002 +# Whom: Joe Marcus Clarke +# +# $FreeBSD$ +# + +PORTNAME= gtkspell2 +PORTVERSION= 2.0.2 +CATEGORIES= textproc gnome +MASTER_SITES= http://gtkspell.sourceforge.net/download/ +DISTNAME= ${PORTNAME:S/2$//}-${PORTVERSION} + +MAINTAINER= gnome@FreeBSD.org + +LIB_DEPENDS= gtk-x11-2.0.0:${PORTSDIR}/x11-toolkits/gtk20 \ + pspell.4:${PORTSDIR}/textproc/pspell + +USE_X_PREFIX= yes +USE_PERL5= yes +USE_GMAKE= yes +USE_GNOMENG= yes +USE_GNOME= gnomeprefix gnomehack +USE_LIBTOOL= yes +INSTALLS_SHLIB= yes +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ + LIBS="-L${LOCALBASE}/lib" + +post-patch: + @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g ; \ + s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure + +.include diff --git a/textproc/gtkspell/distinfo b/textproc/gtkspell/distinfo new file mode 100644 index 000000000000..0b1c252de066 --- /dev/null +++ b/textproc/gtkspell/distinfo @@ -0,0 +1 @@ +MD5 (gtkspell-2.0.2.tar.gz) = 385daba9bebfdc7fdbdf524e07deb920 diff --git a/textproc/gtkspell/files/patch-configure b/textproc/gtkspell/files/patch-configure new file mode 100644 index 000000000000..6bb2a668556f --- /dev/null +++ b/textproc/gtkspell/files/patch-configure @@ -0,0 +1,10 @@ +--- configure.orig Mon Aug 19 13:43:43 2002 ++++ configure Mon Aug 19 13:43:59 2002 +@@ -7524,6 +7524,7 @@ + + # This can be used to rebuild libtool when needed + LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" ++$ac_aux_dir/ltconfig $LIBTOOL_DEPS + + # Always use our own libtool. + LIBTOOL='$(SHELL) $(top_builddir)/libtool' diff --git a/textproc/gtkspell/pkg-comment b/textproc/gtkspell/pkg-comment new file mode 100644 index 000000000000..a5d57d42aa68 --- /dev/null +++ b/textproc/gtkspell/pkg-comment @@ -0,0 +1 @@ +A GTK+ 2 spell checking component diff --git a/textproc/gtkspell/pkg-descr b/textproc/gtkspell/pkg-descr new file mode 100644 index 000000000000..05f8488a91d8 --- /dev/null +++ b/textproc/gtkspell/pkg-descr @@ -0,0 +1,5 @@ +GtkSpell provides MSWord/MacOSX-style highlighting of misspelled words in a +GtkTextView widget as you type. Right-clicking a misspelled word pops up a menu +of suggested replacements. + +WWW: http://gtkspell.sourceforge.net/ diff --git a/textproc/gtkspell/pkg-plist b/textproc/gtkspell/pkg-plist new file mode 100644 index 000000000000..c8b3c009f40e --- /dev/null +++ b/textproc/gtkspell/pkg-plist @@ -0,0 +1,7 @@ +include/gtkspell-2.0/gtkspell/gtkspell.h +lib/libgtkspell.a +lib/libgtkspell.so +lib/libgtkspell.so.0 +libdata/pkgconfig/gtkspell-2.0.pc +@dirrm include/gtkspell-2.0/gtkspell +@dirrm include/gtkspell-2.0 diff --git a/textproc/gtkspell2/Makefile b/textproc/gtkspell2/Makefile new file mode 100644 index 000000000000..663ffaca9be9 --- /dev/null +++ b/textproc/gtkspell2/Makefile @@ -0,0 +1,33 @@ +# New ports collection makefile for: gtkspell2 +# Date created: 19 Aug 2002 +# Whom: Joe Marcus Clarke +# +# $FreeBSD$ +# + +PORTNAME= gtkspell2 +PORTVERSION= 2.0.2 +CATEGORIES= textproc gnome +MASTER_SITES= http://gtkspell.sourceforge.net/download/ +DISTNAME= ${PORTNAME:S/2$//}-${PORTVERSION} + +MAINTAINER= gnome@FreeBSD.org + +LIB_DEPENDS= gtk-x11-2.0.0:${PORTSDIR}/x11-toolkits/gtk20 \ + pspell.4:${PORTSDIR}/textproc/pspell + +USE_X_PREFIX= yes +USE_PERL5= yes +USE_GMAKE= yes +USE_GNOMENG= yes +USE_GNOME= gnomeprefix gnomehack +USE_LIBTOOL= yes +INSTALLS_SHLIB= yes +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ + LIBS="-L${LOCALBASE}/lib" + +post-patch: + @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g ; \ + s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure + +.include diff --git a/textproc/gtkspell2/distinfo b/textproc/gtkspell2/distinfo new file mode 100644 index 000000000000..0b1c252de066 --- /dev/null +++ b/textproc/gtkspell2/distinfo @@ -0,0 +1 @@ +MD5 (gtkspell-2.0.2.tar.gz) = 385daba9bebfdc7fdbdf524e07deb920 diff --git a/textproc/gtkspell2/files/patch-configure b/textproc/gtkspell2/files/patch-configure new file mode 100644 index 000000000000..6bb2a668556f --- /dev/null +++ b/textproc/gtkspell2/files/patch-configure @@ -0,0 +1,10 @@ +--- configure.orig Mon Aug 19 13:43:43 2002 ++++ configure Mon Aug 19 13:43:59 2002 +@@ -7524,6 +7524,7 @@ + + # This can be used to rebuild libtool when needed + LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" ++$ac_aux_dir/ltconfig $LIBTOOL_DEPS + + # Always use our own libtool. + LIBTOOL='$(SHELL) $(top_builddir)/libtool' diff --git a/textproc/gtkspell2/pkg-comment b/textproc/gtkspell2/pkg-comment new file mode 100644 index 000000000000..a5d57d42aa68 --- /dev/null +++ b/textproc/gtkspell2/pkg-comment @@ -0,0 +1 @@ +A GTK+ 2 spell checking component diff --git a/textproc/gtkspell2/pkg-descr b/textproc/gtkspell2/pkg-descr new file mode 100644 index 000000000000..05f8488a91d8 --- /dev/null +++ b/textproc/gtkspell2/pkg-descr @@ -0,0 +1,5 @@ +GtkSpell provides MSWord/MacOSX-style highlighting of misspelled words in a +GtkTextView widget as you type. Right-clicking a misspelled word pops up a menu +of suggested replacements. + +WWW: http://gtkspell.sourceforge.net/ diff --git a/textproc/gtkspell2/pkg-plist b/textproc/gtkspell2/pkg-plist new file mode 100644 index 000000000000..c8b3c009f40e --- /dev/null +++ b/textproc/gtkspell2/pkg-plist @@ -0,0 +1,7 @@ +include/gtkspell-2.0/gtkspell/gtkspell.h +lib/libgtkspell.a +lib/libgtkspell.so +lib/libgtkspell.so.0 +libdata/pkgconfig/gtkspell-2.0.pc +@dirrm include/gtkspell-2.0/gtkspell +@dirrm include/gtkspell-2.0