From c8e5702127e507e82e6f68a4b8c546803accea9d Mon Sep 17 00:00:00 2001 From: Koen Kooi Date: Thu, 30 Jun 2005 08:19:37 +0000 Subject: import clean BK tree at cset 1.3670 --- packages/minipredict/.mtn2git_empty | 0 packages/minipredict/dictionary_en-GB.bb | 25 ++++ packages/minipredict/libdictionary.bb | 33 +++++ packages/minipredict/minipredict.bb | 25 ++++ packages/minipredict/minipredict/.mtn2git_empty | 0 packages/minipredict/minipredict/fix-include.patch | 11 ++ .../minipredict/minipredict/fix-makefile.patch | 150 +++++++++++++++++++++ .../minipredict/minipredict/minipredict.desktop | 7 + packages/minipredict/minipredict/minipredict.png | Bin 0 -> 1902 bytes 9 files changed, 251 insertions(+) create mode 100644 packages/minipredict/.mtn2git_empty create mode 100644 packages/minipredict/minipredict/.mtn2git_empty (limited to 'packages/minipredict') diff --git a/packages/minipredict/.mtn2git_empty b/packages/minipredict/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/minipredict/dictionary_en-GB.bb b/packages/minipredict/dictionary_en-GB.bb index e69de29bb2..223ab23f20 100644 --- a/packages/minipredict/dictionary_en-GB.bb +++ b/packages/minipredict/dictionary_en-GB.bb @@ -0,0 +1,25 @@ +inherit update-alternatives + +DESCRIPTION = "Dictionary file for libdictionary" +DEPENDS = "zip-native perl-native" +SECTION = "gpe" +PRIORITY = "optional" + +SRC_URI = "http://ftp.services.openoffice.org/pub/OpenOffice.org/contrib/dictionaries/en_GB.zip" + +ALTERNATIVE_NAME = "dictionary" +ALTERNATIVE_LINK = "${datadir}/dictionary/dictionary" +ALTERNATIVE_PATH = "${datadir}/dictionary/en_GB" +ALTERNATIVE_PRIORITY = "50" + +do_compile() { + perl -ne ' s,/.*,,; next if ( /[.1-9]/ || /^.{0,1}$/ ); print;' ${WORKDIR}/en_GB.dic | sort > en_GB +} + +FILES_${PN} = "${datadir}/dictionary" + +do_install() { + install -d ${D}/${datadir}/dictionary + install ${S}/en_GB ${D}/${datadir}/dictionary/ +} + diff --git a/packages/minipredict/libdictionary.bb b/packages/minipredict/libdictionary.bb index e69de29bb2..05cdc268e3 100644 --- a/packages/minipredict/libdictionary.bb +++ b/packages/minipredict/libdictionary.bb @@ -0,0 +1,33 @@ +inherit gpe pkgconfig + +DESCRIPTION = "Dictionary access library, used by minipredict." +RRECOMMENDS = "dictionary" +SECTION = "gpe" +PRIORITY = "optional" + +SRC_URI = "http://handhelds.org/~paxanima/files/${PN}.tar.gz" + +S = "${WORKDIR}/${PN}/" + +do_compile() { + oe_runmake lib +} + +FILES_${PN} = "${libdir}/libdictionary.so" +FILES_${PN}-dev = "${libdir}/libdictionary/*.o ${includedir}/libdictionary/*.h" + +do_stage() { + install -d ${STAGING_INCDIR}/libdictionary + install ${S}/*.h ${STAGING_INCDIR}/libdictionary/ + oe_libinstall -C ${S} libdictionary ${STAGING_LIBDIR}/ +} + +do_install() { + install -d ${D}/${libdir} + install -d ${D}/${libdir}/libdictionary + install -d ${D}/${includedir}/libdictionary + install ${S}/libdictionary.so ${D}/${libdir}/ + install ${S}/*.h ${D}/${includedir}/libdictionary/ + install ${S}/*.o ${D}/${libdir}/libdictionary/ +} + diff --git a/packages/minipredict/minipredict.bb b/packages/minipredict/minipredict.bb index e69de29bb2..7dc6e92d49 100644 --- a/packages/minipredict/minipredict.bb +++ b/packages/minipredict/minipredict.bb @@ -0,0 +1,25 @@ +inherit gpe pkgconfig + +DESCRIPTION = "Minipredict is a app that sits above the dock, e.g. mbdock, and suggests words for completion." +DEPENDS = "x11 xext gtk+ libdictionary zlib" +SECTION = "gpe" +PRIORITY = "optional" + +SRC_URI = "http://handhelds.org/~paxanima/files/${PN}.tar.gz \ + file://fix-makefile.patch;patch=1 \ + file://fix-include.patch;patch=1 \ + file://minipredict.desktop \ + file://minipredict.png" + +S = ${WORKDIR}/${PN} + +FILES_${PN} = "${bindir} ${datadir}/pixmaps ${datadir}/applications" + +do_install() { + install -d ${D}/${bindir} + install -d ${D}/${datadir}/pixmaps + install -d ${D}/${datadir}/applications + install ${S}/minipredict ${D}/${bindir}/ + install ${WORKDIR}/minipredict.png ${D}/${datadir}/pixmaps/ + install ${WORKDIR}/minipredict.desktop ${D}/${datadir}/applications/ +} diff --git a/packages/minipredict/minipredict/.mtn2git_empty b/packages/minipredict/minipredict/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/minipredict/minipredict/fix-include.patch b/packages/minipredict/minipredict/fix-include.patch index e69de29bb2..ac544704d4 100644 --- a/packages/minipredict/minipredict/fix-include.patch +++ b/packages/minipredict/minipredict/fix-include.patch @@ -0,0 +1,11 @@ +--- ../minipredict-1.0-r0/minipredict/minipredict.c 2003-02-16 00:18:02 +00:00 ++++ minipredict/minipredict.c 2005-03-04 04:54:13 +00:00 +@@ -16,7 +16,7 @@ + #include + + +-#include "../libdictionary/predictive_dictionary.h" ++#include + + + #define MAX_WORD 30 diff --git a/packages/minipredict/minipredict/fix-makefile.patch b/packages/minipredict/minipredict/fix-makefile.patch index e69de29bb2..b46d816f46 100644 --- a/packages/minipredict/minipredict/fix-makefile.patch +++ b/packages/minipredict/minipredict/fix-makefile.patch @@ -0,0 +1,150 @@ +diff -urNd ../minipredict-1.0-r0/minipredict/Makefile minipredict/Makefile +--- ../minipredict-1.0-r0/minipredict/Makefile 2003-02-15 23:14:40 +00:00 ++++ minipredict/Makefile 2005-03-04 05:23:24 +00:00 +@@ -1,18 +1,16 @@ + +-CC = gcc +-CFLAGS = -O2 `pkg-config gtk+-2.0 --cflags` +-LIBS = -L/usr/X11R6/lib -lX11 -lXtst `pkg-config gtk+-2.0 --libs` -L../libdictionary -ldictionary -lz ++PACKAGE_CFLAGS += $(STANDARD_CFLAGS) $(GPECFLAGS) ++PACKAGE_LDFLAGS += $(STANDARD_LDFLAGS) $(GPELIBS) -lX11 -lXtst -ldictionary -lz + +-all: minipredict.o +- $(CC) minipredict.o -o minipredict $(LIBS) ++all: minipredict + +-minipredict.o: minipredict.c +- $(CC) $(CFLAGS) -c minipredict.c ++minipredict: minipredict.o ++ $(CC) $^ -o $@ $(LDFLAGS) $(PACKAGE_LDFLAGS) + +-ipkg: all +- strip minipredict +- cp minipredict ipkg/usr/bin +- ipkg-build ipkg ++%.o: %.c ++ $(CC) $(CFLAGS) $(PACKAGE_CFLAGS) -c $^ + + clean: +- rm -f *.o minipredict ++ rm -f *.o minipredict ++ ++include Makefile.dpkg_ipkg +diff -urNd ../minipredict-1.0-r0/minipredict/Makefile.dpkg_ipkg minipredict/Makefile.dpkg_ipkg +--- ../minipredict-1.0-r0/minipredict/Makefile.dpkg_ipkg 1970-01-01 01:00:00 +01:00 ++++ minipredict/Makefile.dpkg_ipkg 2005-03-04 04:24:46 +00:00 +@@ -0,0 +1,114 @@ ++## Please read the README in this directory to see how to use this ++## Makefile snippet ++ ++# Let's use whatever clean target the specific app provides ++ ++CONTROL = `if test -e familiar/control1; then echo control1; else echo control; fi` ++ ++# URL to source tarball ++SOURCE = ftp://gpe.handhelds.org/gpe/source/$(PACKAGE)-$(VERSION).tar.gz ++ ++# can change this to e.g. /var/tmp/deb ++DEB_PATH = ../deb ++ ++ifeq ($(CVSBUILD),yes) ++LIBGPEWIDGET_PC = libgpewidget-uninstalled ++PC_EXTRA=PKG_CONFIG_PATH=../../base/libgpewidget ++else ++LIBGPEWIDGET_PC = libgpewidget ++endif ++ ++ifeq ($(IN_LIBGPEWIDGET),) ++GPECFLAGS = $(shell $(PC_EXTRA) pkg-config --cflags $(LIBGPEWIDGET_PC)) ++GPELIBS = $(shell $(PC_EXTRA) pkg-config --libs $(LIBGPEWIDGET_PC)) ++endif ++ ++GTKCFLAGS = $(shell pkg-config --cflags gtk+-2.0) ++GTKLIBS = $(shell pkg-config --libs gtk+-2.0) ++ ++STANDARD_CPPFLAGS = -D_GNU_SOURCE -DPACKAGE=\"$(PACKAGE)\" -DPREFIX=\"$(PREFIX)\" -DPACKAGE_LOCALE_DIR=\"$(PREFIX)/share/locale\" ++STANDARD_CFLAGS = -MD -Wall ++ ++ifeq ($(DEBUG),yes) ++CFLAGS += -O2 -g ++LDFLAGS = -g ++else ++CFLAGS += -Os -fomit-frame-pointer ++endif ++ ++dist: check-source clean dist-prep ++ rm -rf ../$(PACKAGE)-$(VERSION) ++ mkdir ../$(PACKAGE)-$(VERSION) ++ ( tar cf - --exclude "*/CVS" --exclude CVS --exclude "*~" --exclude "#*#" --exclude "debian" --exclude ".*" --exclude "*.ipk" --exclude "*.ipk.*" --exclude "*.mo" --exclude "*.batch" --exclude "translation-ipkgs.txt" * ) | (cd ../$(PACKAGE)-$(VERSION); tar xf -) ++ ( cd ../$(PACKAGE)-$(VERSION); mkdir build; cp $(BUILD)/Makefile.dpkg_ipkg $(BUILD)/Makefile.translation build/ ; sed 's:^CVSBUILD.*:CVSBUILD = no:' < Makefile > Makefile.new; mv Makefile.new Makefile ) ++ ( cd .. ; tar cf - $(PACKAGE)-$(VERSION) | gzip -9 >$(PACKAGE)-$(VERSION).tar.gz ) ++ rm -rf ../$(PACKAGE)-$(VERSION) ++ $(MAKE) printinfo ++ ++dist-upload: dist ++ scp ../$(PACKAGE)-$(VERSION).tar.gz $(USER)@handhelds.org:/home/ftp/pub/projects/gpe/source/ ++ ++dist-prep: ++ipkg-prep: ++install-mo: ++# empty, can be filled in Makefile.translation ++ ++install: install-program install-mo ++ ++clean-dist: ++ rm -rf familiar/dist familiar/dist.list ++ ++clean: clean-dist ++ ++check-source: ++ @if [ -e familiar ] && ! grep -q '^Source:' familiar/$(CONTROL); then echo -e "\nNo Source: field in control file. Aborting.\n"; exit 1; fi ++ ++ipkg: check-source ipkg-prep clean ++ rm -rf familiar/dist ++ mkdir -p familiar/dist/CONTROL ++ sed 's:VERSION:$(VERSION):;s$$SOURCE$$$(SOURCE)$$' < familiar/$(CONTROL) > familiar/dist/CONTROL/control ++ if test -e familiar/conffiles; then install -m 644 familiar/conffiles familiar/dist/CONTROL; fi ++ if test -e familiar/preinst; then install familiar/preinst familiar/dist/CONTROL; fi ++ if test -e familiar/postinst; then install familiar/postinst familiar/dist/CONTROL; fi ++ if test -e familiar/prerm; then install familiar/prerm familiar/dist/CONTROL; fi ++ if test -e familiar/postrm; then install familiar/postrm familiar/dist/CONTROL; fi ++ $(MAKE) DESTDIR=`pwd`/familiar/dist PREFIX=/usr prefix=/usr DEBUG=no install-program ++ rm -rf familiar/dist.list ++ ipkg-build -o 0 -g 0 familiar/dist | sed 's/^Packaged .*into //; t 1; d; : 1; s:.*/::' >> familiar/dist.list ++ if [ "x$(LINGUAS)" != "x" ]; then make translation-ipkg; tr ' ' '\n' < translation-ipkgs.txt >> familiar/dist.list; fi ++ md5sum `cat familiar/dist.list` > $(PACKAGE)_$(VERSION).batch ++ rm -rf familiar/dist familiar/dist.list ++ $(MAKE) printinfo ++ ++dpkg: dist ++ mkdir -p $(DEB_PATH) ++ ( olddir=`pwd`; cd $(DEB_PATH); rm -rf $(PACKAGE)-$(VERSION); ln -s $$olddir/../$(PACKAGE)-$(VERSION).tar.gz $(PACKAGE)_$(VERSION).orig.tar.gz ; tar xzf $(PACKAGE)_$(VERSION).orig.tar.gz ) ++ mkdir -p $(DEB_PATH)/$(PACKAGE)-$(VERSION)/debian ++ for i in debian/*; do if test -f $$i; then cp $$i $(DEB_PATH)/$(PACKAGE)-$(VERSION)/debian/; fi; done ++ ++CVSTAG := $(shell echo $(PACKAGE)-$(VERSION) | tr [a-z.] [A-Z_]) ++printinfo: ++ @printf '-------------------------------------------------------------------------------\n' ++ @printf "If this becomes a package release, please add a CVS tag.\n" ++ @printf "You can use 'make tag' for that, it will execute\n" ++ @printf " cvs tag %s\n" $(CVSTAG) ++ @printf "Please upload a tarball (created with 'make dist') to\n" ++ @printf " ftp://ftp.handhelds.org/pub/projects/gpe/\n" ++ @printf " (handhelds.org:~ftp/pub/projects/gpe/source)\n" ++ @printf "You can use 'make dist-upload' to do that.\n" ++ @printf "You are currently known as USER %s.\n" $(USER) ++ @printf '-------------------------------------------------------------------------------\n' ++ ++tag: check-source ++ cvs tag $(CVSTAG) ++ ++retag: check-source ++ cvs tag -F $(CVSTAG) ++ ++source: tag dist-upload ++ ++%.pc: %.pc.in ++ sed 's:PREFIX:$(PREFIX):;s:BUILDDIR:$(shell pwd):;s:VERSION:$(VERSION):' < $< > $@ ++ ++.c.o:; ++ $(CC) $(CFLAGS) $(CPPFLAGS) $(PACKAGE_CFLAGS) $(PACKAGE_CPPFLAGS) -c $< -o $@ diff --git a/packages/minipredict/minipredict/minipredict.desktop b/packages/minipredict/minipredict/minipredict.desktop index e69de29bb2..8090bf7412 100644 --- a/packages/minipredict/minipredict/minipredict.desktop +++ b/packages/minipredict/minipredict/minipredict.desktop @@ -0,0 +1,7 @@ +[Desktop Entry] +Name=Word completion +Comment=Word completion for X +Exec=mb-applet-launcher -na --title "Word completion" /usr/share/pixmaps/minipredict.png minipredict +Type=PanelApp +Icon=minipredict.png +Categories=Panel;Utility;MB diff --git a/packages/minipredict/minipredict/minipredict.png b/packages/minipredict/minipredict/minipredict.png index e69de29bb2..091fcfeda4 100644 Binary files a/packages/minipredict/minipredict/minipredict.png and b/packages/minipredict/minipredict/minipredict.png differ -- cgit v1.2.3