Import gnome-spell, a spelling component for Gnome apps.

This commit is contained in:
marcm 2004-12-11 06:19:52 +00:00
parent 5d00c9f5d5
commit cd6022ba02
9 changed files with 385 additions and 0 deletions

View File

@ -0,0 +1,40 @@
# $OpenBSD: Makefile,v 1.1.1.1 2004/12/11 06:19:52 marcm Exp $
COMMENT= "a Gnome/Bonobo component for spell checking"
DISTNAME= gnome-spell-1.0.5
CATEGORIES= textproc
HOMEPAGE= http://www.gnome.org/
MAINTAINER= Marc Matteo <marcm@openbsd.org>
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= ICE SM X11 Xcursor Xext Xft Xinerama Xrender \
fontconfig freetype m stdc++ z \
ORBit-2 art_lgpl_2 atk-1.0.0.0 gconf-2 popt xml2 \
bonobo-2 bonobo-activation bonoboui-2 \
glib-2.0.0.0 gmodule-2.0.0.0 gobject-2.0.0.0 gthread-2.0.0.0 \
pango-1.0.0.0 pangoft2-1.0.0.0 pangox-1.0.0.0 pangoxft-1.0.0.0 \
gdk-x11-2.0.0.0 gdk_pixbuf-2.0.0.0 gtk-x11-2.0.0.0 \
glade-2.0.0.0 gnome-2 gnomecanvas-2 gnomevfs-2
MASTER_SITES= ${MASTER_SITE_GNOME:=sources/gnome-spell/1.0/}
MODULES= devel/gettext
LIB_DEPENDS= aspell.15::textproc/aspell/core \
gnomeui-2::x11/gnome/libgnomeui
CONFIGURE_STYLE= gnu
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
post-install:
sed -e "s,@LOCALBASE@,${LOCALBASE},g" ${WRKSRC}/gnome-spell/GNOME_Spell.server > ${PREFIX}/lib/bonobo/servers/GNOME_Spell.server
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
MD5 (gnome-spell-1.0.5.tar.gz) = e1f3e28a9b5f749b6bcfcfbe929991be
RMD160 (gnome-spell-1.0.5.tar.gz) = f1393f1cb2a2a3bcc1e471df234736ef588c240d
SHA1 (gnome-spell-1.0.5.tar.gz) = 6b34d7a470ceae09fe9cd9396151918f433e9ec4

View File

@ -0,0 +1,91 @@
$OpenBSD: patch-configure,v 1.1.1.1 2004/12/11 06:19:52 marcm Exp $
--- configure.orig 2004-02-15 20:09:19.000000000 -0800
+++ configure 2004-02-15 20:10:04.000000000 -0800
@@ -1428,7 +1428,7 @@ fi
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_link='$CXX -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
@@ -1912,7 +1912,7 @@ fi
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_link='$CXX -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
if test -n "$ac_tool_prefix"; then
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
@@ -2774,7 +2774,7 @@ rm -f conftest.$ac_objext conftest.$ac_e
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_link='$CXX -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
@@ -2976,7 +2976,7 @@ fi
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_link='$CXX -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
if test -n "$ac_tool_prefix"; then
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
@@ -3635,7 +3635,7 @@ rm -f conftest.$ac_objext conftest.$ac_e
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_link='$CXX -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac_ext=cc
@@ -3955,13 +3955,13 @@ fi
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_link='$CXX -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_link='$CXX -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
@@ -4189,7 +4189,7 @@ fi
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_link='$CXX -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
@@ -5696,7 +5696,7 @@ else
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_link='$CXX -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
cat >conftest.$ac_ext <<_ACEOF
@@ -5738,7 +5738,7 @@ rm -f conftest.$ac_objext conftest$ac_ex
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_link='$CXX -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
fi

View File

@ -0,0 +1,20 @@
$OpenBSD: patch-gnome-spell_GNOME_Spell_server,v 1.1.1.1 2004/12/11 06:19:52 marcm Exp $
--- gnome-spell/GNOME_Spell.server.orig 2003-08-07 21:22:42.000000000 -0700
+++ gnome-spell/GNOME_Spell.server 2003-08-07 21:24:51.000000000 -0700
@@ -1,6 +1,6 @@
<oaf_info>
-<oaf_server iid="OAFIID:GNOME_Spell_DictionaryFactory:0.3" type="shlib" location="/gnome/head/INSTALL/lib/gnome-spell/libgnome-spell-component-0.3.so">
+<oaf_server iid="OAFIID:GNOME_Spell_DictionaryFactory:0.3" type="shlib" location="@LOCALBASE@/lib/gnome-spell/libgnome-spell-component-0.3.so">
<oaf_attribute name="repo_ids" type="stringv">
<item value="IDL:GNOME/ObjectFactory:1.0"/>
</oaf_attribute>
@@ -17,7 +17,7 @@
<oaf_attribute name="description" type="string" value="GNOME Spell dictionary component"/>
</oaf_server>
-<oaf_server iid="OAFIID:GNOME_Spell_ControlFactory:0.3" type="shlib" location="/gnome/head/INSTALL/lib/gnome-spell/libgnome-spell-component-0.3.so">
+<oaf_server iid="OAFIID:GNOME_Spell_ControlFactory:0.3" type="shlib" location="@LOCALBASE@/lib/gnome-spell/libgnome-spell-component-0.3.so">
<oaf_attribute name="repo_ids" type="stringv">
<item value="IDL:GNOME/ObjectFactory:1.0"/>
</oaf_attribute>

View File

@ -0,0 +1,20 @@
$OpenBSD: patch-gnome-spell_Makefile_in,v 1.1.1.1 2004/12/11 06:19:52 marcm Exp $
--- gnome-spell/Makefile.in.orig Wed Jul 30 08:45:02 2003
+++ gnome-spell/Makefile.in Tue Aug 3 19:05:00 2004
@@ -63,7 +63,7 @@ API_VERSION = @API_VERSION@
AS = @AS@
ASPELL_DICT = @ASPELL_DICT@
ASPELL_INC = @ASPELL_INC@
-ASPELL_LIBS = @ASPELL_LIBS@
+ASPELL_LIBS = @ASPELL_LIBS@ -lstdc++
BONOBO_IDL_INCLUDES = @BONOBO_IDL_INCLUDES@
CATALOGS = @CATALOGS@
CATOBJEXT = @CATOBJEXT@
@@ -138,7 +138,6 @@ INCLUDES = \
-DGNOMELOCALEDIR=\""$(datadir)/locale"\" \
-DGLADE_DATADIR=\"$(gladedir)\" \
-DPLUGIN_DIR=\""$(PLUGIN_DIR)"\" \
- -DGTK_DISABLE_DEPRECATED=1 \
-DASPELL_DICT=\""$(ASPELL_DICT)"\" \
$(GNOME_SPELL_CFLAGS) \
$(END)

View File

@ -0,0 +1,82 @@
$OpenBSD: patch-ltmain_sh,v 1.1.1.1 2004/12/11 06:19:52 marcm Exp $
--- ltmain.sh.orig 2003-07-30 08:43:01.000000000 -0700
+++ ltmain.sh 2003-08-07 20:39:56.000000000 -0700
@@ -1085,6 +1085,17 @@ compiler."
continue
;;
+ -pthread)
+ case $host in
+ *-*-openbsd*)
+ deplibs="$deplibs $arg"
+ ;;
+ *)
+ continue
+ ;;
+ esac
+ ;;
+
-module)
module=yes
continue
@@ -1525,6 +1536,19 @@ compiler."
fi
continue
;;
+ -pthread)
+ case $linkmode in
+ lib)
+ deplibs="$deplib $deplibs"
+ newdependency_libs="$deplib $newdependency_libs"
+ ;;
+ prog)
+ compile_deplibs="$deplib $compile_deplibs"
+ finalize_deplibs="$deplib $finalize_deplibs"
+ ;;
+ esac
+ continue
+ ;;
%DEPLIBS%)
alldeplibs=yes
continue
@@ -4580,40 +4604,6 @@ relink_command=\"$relink_command\""
# Exit here if they wanted silent mode.
test "$show" = ":" && exit 0
- echo "----------------------------------------------------------------------"
- echo "Libraries have been installed in:"
- for libdir in $libdirs; do
- echo " $libdir"
- done
- echo
- echo "If you ever happen to want to link against installed libraries"
- echo "in a given directory, LIBDIR, you must either use libtool, and"
- echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
- echo "flag during linking and do at least one of the following:"
- if test -n "$shlibpath_var"; then
- echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
- echo " during execution"
- fi
- if test -n "$runpath_var"; then
- echo " - add LIBDIR to the \`$runpath_var' environment variable"
- echo " during linking"
- fi
- if test -n "$hardcode_libdir_flag_spec"; then
- libdir=LIBDIR
- eval flag=\"$hardcode_libdir_flag_spec\"
-
- echo " - use the \`$flag' linker flag"
- fi
- if test -n "$admincmds"; then
- echo " - have your system administrator run these commands:$admincmds"
- fi
- if test -f /etc/ld.so.conf; then
- echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
- fi
- echo
- echo "See any operating system documentation about shared libraries for"
- echo "more information, such as the ld(1) and ld.so(8) manual pages."
- echo "----------------------------------------------------------------------"
exit 0
;;

View File

@ -0,0 +1,7 @@
Gnome Spell is GNOME/Bonobo component for spell checking. In the
current version it contains GNOME::Spell::Dictionary object, which
provides spell checking dictionary (see Spell.idl for exact API
definition). It's based on pspell package, which is required to
build gnome-spell.
WWW: ${HOMEPAGE}

View File

@ -0,0 +1,3 @@
@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2004/12/11 06:19:52 marcm Exp $
lib/gnome-spell/libgnome-spell-component-0.3.so
@comment NEWDYNLIBDIR(%D/lib/gnome-spell)

View File

@ -0,0 +1,119 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2004/12/11 06:19:52 marcm Exp $
lib/bonobo/
lib/bonobo/servers/
lib/bonobo/servers/GNOME_Spell.server
lib/gnome-spell/
lib/gnome-spell/libgnome-spell-component.a
lib/gnome-spell/libgnome-spell-component.la
lib/gnome-spell/libgnome-spell-component.so
lib/locale/
lib/locale/am/
lib/locale/am/LC_MESSAGES/
lib/locale/am/LC_MESSAGES/gnome-spell-1.0.5.mo
lib/locale/az/
lib/locale/az/LC_MESSAGES/
lib/locale/az/LC_MESSAGES/gnome-spell-1.0.5.mo
lib/locale/be/
lib/locale/be/LC_MESSAGES/
lib/locale/be/LC_MESSAGES/gnome-spell-1.0.5.mo
lib/locale/bg/
lib/locale/bg/LC_MESSAGES/
lib/locale/bg/LC_MESSAGES/gnome-spell-1.0.5.mo
lib/locale/cs/
lib/locale/cs/LC_MESSAGES/
lib/locale/cs/LC_MESSAGES/gnome-spell-1.0.5.mo
lib/locale/da/
lib/locale/da/LC_MESSAGES/
lib/locale/da/LC_MESSAGES/gnome-spell-1.0.5.mo
lib/locale/de/
lib/locale/de/LC_MESSAGES/
lib/locale/de/LC_MESSAGES/gnome-spell-1.0.5.mo
lib/locale/el/
lib/locale/el/LC_MESSAGES/
lib/locale/el/LC_MESSAGES/gnome-spell-1.0.5.mo
lib/locale/es/
lib/locale/es/LC_MESSAGES/
lib/locale/es/LC_MESSAGES/gnome-spell-1.0.5.mo
lib/locale/fi/
lib/locale/fi/LC_MESSAGES/
lib/locale/fi/LC_MESSAGES/gnome-spell-1.0.5.mo
lib/locale/fr/
lib/locale/fr/LC_MESSAGES/
lib/locale/fr/LC_MESSAGES/gnome-spell-1.0.5.mo
lib/locale/he/
lib/locale/he/LC_MESSAGES/
lib/locale/he/LC_MESSAGES/gnome-spell-1.0.5.mo
lib/locale/hu/
lib/locale/hu/LC_MESSAGES/
lib/locale/hu/LC_MESSAGES/gnome-spell-1.0.5.mo
lib/locale/it/
lib/locale/it/LC_MESSAGES/
lib/locale/it/LC_MESSAGES/gnome-spell-1.0.5.mo
lib/locale/ja/
lib/locale/ja/LC_MESSAGES/
lib/locale/ja/LC_MESSAGES/gnome-spell-1.0.5.mo
lib/locale/kn/
lib/locale/kn/LC_MESSAGES/
lib/locale/kn/LC_MESSAGES/gnome-spell-1.0.5.mo
lib/locale/lt/
lib/locale/lt/LC_MESSAGES/
lib/locale/lt/LC_MESSAGES/gnome-spell-1.0.5.mo
lib/locale/lv/
lib/locale/lv/LC_MESSAGES/
lib/locale/lv/LC_MESSAGES/gnome-spell-1.0.5.mo
lib/locale/nl/
lib/locale/nl/LC_MESSAGES/
lib/locale/nl/LC_MESSAGES/gnome-spell-1.0.5.mo
lib/locale/no/
lib/locale/no/LC_MESSAGES/
lib/locale/no/LC_MESSAGES/gnome-spell-1.0.5.mo
lib/locale/pl/
lib/locale/pl/LC_MESSAGES/
lib/locale/pl/LC_MESSAGES/gnome-spell-1.0.5.mo
lib/locale/pt/
lib/locale/pt/LC_MESSAGES/
lib/locale/pt/LC_MESSAGES/gnome-spell-1.0.5.mo
lib/locale/pt_BR/
lib/locale/pt_BR/LC_MESSAGES/
lib/locale/pt_BR/LC_MESSAGES/gnome-spell-1.0.5.mo
lib/locale/ru/
lib/locale/ru/LC_MESSAGES/
lib/locale/ru/LC_MESSAGES/gnome-spell-1.0.5.mo
lib/locale/sk/
lib/locale/sk/LC_MESSAGES/
lib/locale/sk/LC_MESSAGES/gnome-spell-1.0.5.mo
lib/locale/sr/
lib/locale/sr/LC_MESSAGES/
lib/locale/sr/LC_MESSAGES/gnome-spell-1.0.5.mo
lib/locale/sr@Latn/
lib/locale/sr@Latn/LC_MESSAGES/
lib/locale/sr@Latn/LC_MESSAGES/gnome-spell-1.0.5.mo
lib/locale/sv/
lib/locale/sv/LC_MESSAGES/
lib/locale/sv/LC_MESSAGES/gnome-spell-1.0.5.mo
lib/locale/ta/
lib/locale/ta/LC_MESSAGES/
lib/locale/ta/LC_MESSAGES/gnome-spell-1.0.5.mo
lib/locale/tr/
lib/locale/tr/LC_MESSAGES/
lib/locale/tr/LC_MESSAGES/gnome-spell-1.0.5.mo
lib/locale/uk/
lib/locale/uk/LC_MESSAGES/
lib/locale/uk/LC_MESSAGES/gnome-spell-1.0.5.mo
lib/locale/vi/
lib/locale/vi/LC_MESSAGES/
lib/locale/vi/LC_MESSAGES/gnome-spell-1.0.5.mo
lib/locale/wa/
lib/locale/wa/LC_MESSAGES/
lib/locale/wa/LC_MESSAGES/gnome-spell-1.0.5.mo
lib/locale/zh_CN/
lib/locale/zh_CN/LC_MESSAGES/
lib/locale/zh_CN/LC_MESSAGES/gnome-spell-1.0.5.mo
share/control-center-2.0/
share/control-center-2.0/icons/
share/control-center-2.0/icons/spell-checker.png
share/gnome-spell-1.0.5/
share/gnome-spell-1.0.5/spell-checker.glade
share/idl/
share/idl/Spell-1.0.5.idl
%%SHARED%%