tea stable port information

Package: tea
Version: 17.6.6
Revision: 1
Source: mirror:sourceforge:tea-editor/teagtk-%v.tar.bz2
Source-MD5: f4950e7ba6f494a7a999e5b337f04d12
PatchFile: %n.patch
PatchFile-MD5: d44eb7fff3c14f0d8d1ed4840a382ca8
Depends: <<
atk1-shlibs (>= 1.28.0-1),
cairo-shlibs (>= 1.8.8-3),
enchant1-shlibs (>= 1.6.0-1),
fontconfig2-shlibs (>= 2.8.0-4),
freetype219-shlibs (>= 2.3.12-1),
glib2-shlibs (>= 2.22.0-1),
gtk+2-shlibs (>= 2.18.0-1),
gtksourceview2-shlibs (>= 2.8.2-3),
libcurl4-shlibs,
libgettext8-shlibs,
pango1-xft2-ft219-shlibs (>= 1.24.5-4),
x11-shlibs,
zziplib13-shlibs
<<
BuildDepends: <<
atk1 (>= 1.28.0-1),
cairo (>= 1.8.8-3),
enchant1-dev (>= 1.6.0-1),
fink (>= 0.24.12-1),
fink-package-precedence,
fontconfig2-dev (>= 2.8.0-4),
freetype219 (>= 2.3.12-1),
glib2-dev (>= 2.22.0-1),
glitz,
gtk+2-dev (>= 2.18.0-1),
gtksourceview2-dev (>= 2.8.2-3),
libcurl4,
libgettext8-dev,
gettext-tools,
gettext-bin,
pango1-xft2-ft219-dev (>= 1.24.5-4),
pixman (>= 0.16.0-1),
pkgconfig (>= 0.23),
x11-dev,
zziplib13-dev
<<
PatchScript: <<
%{default_script}
perl -pi -e 's/CFLAGS="\$CFLAGS `/CPPFLAGS="\$CPPFLAGS `/' configure
<<
ConfigureParams: --enable-dependency-tracking --enable-enchant PKG_CONFIG_PATH="%p/lib/glib-2.0/pkgconfig-strict:%p/lib/fontconfig2/lib/pkgconfig:$PKG_CONFIG_PATH"
SetCFLAGS: -g -Os -w
CompileScript: <<
%{default_script}
fink-package-precedence .
<<
InstallScript: <<
%{default_script}
ln -s teagtk %i/bin/tea
<<
Description: Gtk2-based text editor
DescDetail: <<
TEA is the GTK2-based text editor for Linux, Darwin, Mac OS X and *BSD.
Wiith an ultimate small size, TEA provides you with hundreds of functions.
Detailed capabilities are listed at:

New in this release:
* Drag and drop fixes.
* Syntax color highlighting fixes.
<<
DescUsage: <<
First of all, read the manual located in %p/share/doc/tea.
You need to install the desired aspell dictionnaries to
benefit of the checkspell tool.
If you want to open MSWord documents, install antiword.
If you want to decompress ZIP or GZ files, install gunzip.
You may have to change the default browser to view the
documentation via the help menu.
To add an icon to the gnome panel, go to preferences,
choose Maintainance and click add icon. You can then
drag it to the top panel and click it to launch tea.
You may delete it once it is in the panel.
<<
Homepage: http://tea-editor.sourceforge.net/
License: GPL
DescPackaging: <<
Formerly maintained by Michele Garoche

For build sanity, make sure we get a bunch of optional
dependencies.

Pass compiler flags via CPPFLAGS not CFLAGS (no need to send
-I to linker).

There is now a qt flavor upstream so they call this (gtk)
flavor teagtk. We supply it also as tea because that's what
older versions called it.
<<
Maintainer: None

tea stable port .patch

diff -Nurd -x'*~' teagtk-17.6.6.orig/configure teagtk-17.6.6/configure
--- teagtk-17.6.6.orig/configure 2008-08-06 08:42:47.000000000 -0400
+++ teagtk-17.6.6/configure 2011-01-19 19:10:43.000000000 -0500
@@ -5777,6 +5777,7 @@
echo "yes"
else
echo "no"
+ exit 1
fi


@@ -5792,6 +5793,7 @@
echo "yes"
else
echo "no"
+ exit 1
fi

# Check whether --enable-enable_enchant was given.
@@ -5813,6 +5815,7 @@
echo "yes"
else
echo "no"
+ exit 1
fi

else
@@ -6257,7 +6260,7 @@
echo -n "checking for gtk+-unix-print-2.0... "
if pkg-config --exists gtk+-unix-print-2.0 ; then
LIBS="$LIBS `pkg-config --libs gtk+-unix-print-2.0 `"
- CFLAGS="$CFLAGS `pkg-config --cflags gtk+-unix-print-2.0 `"
+ CPPFLAGS="$CPPFLAGS `pkg-config --cflags gtk+-unix-print-2.0 `"
echo "yes"

cat >>confdefs.h <<\_ACEOF
@@ -6298,7 +6301,8 @@
echo "yes"

else
- echo -n "GtkSourceView2 not found, now we search GtkSourceView1"
+ echo -n "Fink package enforces GtkSourceView2 usage, not falling back to GtkSourceView1"
+ exit 1

if pkg-config --exists gtksourceview-1.0 ; then
LIBS="$LIBS `pkg-config --libs gtksourceview-1.0`"
diff -Nurd -x'*~' teagtk-17.6.6.orig/src/Makefile.in teagtk-17.6.6/src/Makefile.in
--- teagtk-17.6.6.orig/src/Makefile.in 2008-08-06 08:42:46.000000000 -0400
+++ teagtk-17.6.6/src/Makefile.in 2011-01-19 19:20:27.000000000 -0500
@@ -264,7 +264,7 @@
@DEB_TRUE@ expr.c expr.h \
@DEB_TRUE@ grabber.c grabber.h

-@DEB_TRUE@teaed_LDADD = @PACKAGE_LIBS@ $(INTLLIBS)
+@DEB_TRUE@teaed_LDADD = @PACKAGE_LIBS@ $(INTLLIBS) -L/usr/X11R6/lib -lX11
@DEB_FALSE@teagtk_SOURCES = \
@DEB_FALSE@ main.c \
@DEB_FALSE@ interface.c interface.h \
@@ -294,7 +294,7 @@
@DEB_FALSE@ expr.c expr.h \
@DEB_FALSE@ grabber.c grabber.h

-@DEB_FALSE@teagtk_LDADD = @PACKAGE_LIBS@ $(INTLLIBS)
+@DEB_FALSE@teagtk_LDADD = @PACKAGE_LIBS@ $(INTLLIBS) -L/usr/X11R6/lib -lX11
all: all-am

.SUFFIXES:

tea _unstable_ port .patch