From 709c4d66e0b107ca606941b988bad717c0b45d9b Mon Sep 17 00:00:00 2001 From: Denys Dmytriyenko Date: Tue, 17 Mar 2009 14:32:59 -0400 Subject: rename packages/ to recipes/ per earlier agreement See links below for more details: http://thread.gmane.org/gmane.comp.handhelds.openembedded/21326 http://thread.gmane.org/gmane.comp.handhelds.openembedded/21816 Signed-off-by: Denys Dmytriyenko Acked-by: Mike Westerhof Acked-by: Philip Balister Acked-by: Khem Raj Acked-by: Marcin Juszkiewicz Acked-by: Koen Kooi Acked-by: Frans Meulenbroeks --- recipes/gpe-sketchbook/files/svn-build.patch | 229 +++++++++++++++++++++ .../gpe-sketchbook-0.2.8/remove-render.patch | 34 +++ .../gpe-sketchbook-0.2.8/sketchbook-size.patch | 17 ++ recipes/gpe-sketchbook/gpe-sketchbook_0.2.8.bb | 24 +++ recipes/gpe-sketchbook/gpe-sketchbook_0.2.9.bb | 22 ++ recipes/gpe-sketchbook/gpe-sketchbook_svn.bb | 30 +++ 6 files changed, 356 insertions(+) create mode 100644 recipes/gpe-sketchbook/files/svn-build.patch create mode 100644 recipes/gpe-sketchbook/gpe-sketchbook-0.2.8/remove-render.patch create mode 100644 recipes/gpe-sketchbook/gpe-sketchbook-0.2.8/sketchbook-size.patch create mode 100644 recipes/gpe-sketchbook/gpe-sketchbook_0.2.8.bb create mode 100644 recipes/gpe-sketchbook/gpe-sketchbook_0.2.9.bb create mode 100644 recipes/gpe-sketchbook/gpe-sketchbook_svn.bb (limited to 'recipes/gpe-sketchbook') diff --git a/recipes/gpe-sketchbook/files/svn-build.patch b/recipes/gpe-sketchbook/files/svn-build.patch new file mode 100644 index 0000000000..026689a058 --- /dev/null +++ b/recipes/gpe-sketchbook/files/svn-build.patch @@ -0,0 +1,229 @@ +diff -Naur gpe-sketchbook.orig/build/Makefile.dpkg_ipkg gpe-sketchbook/build/Makefile.dpkg_ipkg +--- gpe-sketchbook.orig/build/Makefile.dpkg_ipkg 1970-01-01 02:00:00.000000000 +0200 ++++ gpe-sketchbook/build/Makefile.dpkg_ipkg 2007-02-10 17:21:40.154584782 +0200 +@@ -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 = http://gpe.linuxtogo.org/download/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 -) ++ ( if [ -f linguas ]; then LINGUAS=`cat linguas`; PATCH_LINGUAS="s:^LINGUAS =.*:LINGUAS = $${LINGUAS}:"; fi; cd ../$(PACKAGE)-$(VERSION) && mkdir build && cp $(BUILD)/Makefile.dpkg_ipkg $(BUILD)/Makefile.translation build/ && sed "s:^CVSBUILD =.*:CVSBUILD = no:;s:^DEBUG =.*:DEBUG = no:;s:Makefile.translation-auto-linguas:Makefile.translation:;$${PATCH_LINGUAS}" < 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)@linuxtogo.org:/media/data/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 [ -f familiar/$(CONTROL) ] && ! 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 -Naur gpe-sketchbook.orig/build/Makefile.translation gpe-sketchbook/build/Makefile.translation +--- gpe-sketchbook.orig/build/Makefile.translation 1970-01-01 02:00:00.000000000 +0200 ++++ gpe-sketchbook/build/Makefile.translation 2007-02-10 17:21:46.170927636 +0200 +@@ -0,0 +1,107 @@ ++.SUFFIXES: .mo .po .pot .po8 ++ ++CONTROL = `if test -e familiar/control1; then echo control1; else echo control; fi` ++ ++# use ipkg-build or ipkg-deb-build ++IPKG_BUILD := ipkg-build ++ ++TRANSLATION_SITE := http://www.iro.umontreal.ca/~gnutra/maint ++ ++ifeq ($(DIR_PO),) ++DIR_PO := po ++endif ++ ++ifeq ($(BINPACKAGE),) ++BINPACKAGE := $(PACKAGE) ++endif ++ ++mo-files = $(patsubst %,$(DIR_PO)/%.mo,$(LINGUAS)) ++po-files = $(patsubst %,$(DIR_PO)/%.po,$(LINGUAS)) ++ ++ifeq ($(shell if [ -f $(PACKAGE).desktop.in ]; then echo present; fi;),present) ++desktop-files += $(PACKAGE).desktop ++endif ++ ++ifneq ($(EXTRA_DESKTOPS),) ++desktop-files += $(patsubst %.desktop.in,%.desktop,$(EXTRA_DESKTOPS)) ++endif ++ ++all-mo: $(mo-files) ++ ++all-desktop: $(desktop-files) ++ ++install-mo: all-mo ++ if [ "$(ENABLE_NLS)" != "no" ]; then \ ++ if [ "x$(LINGUAS)" != "x" ]; then \ ++ for i in $(LINGUAS); do mkdir -p $(DESTDIR)$(PREFIX)/share/locale/$$i/LC_MESSAGES; install -m 644 $(DIR_PO)/$$i.mo $(DESTDIR)$(PREFIX)/share/locale/$$i/LC_MESSAGES/$(PACKAGE).mo; done \ ++ fi; \ ++ fi; ++ ++.po8.mo:; ++ if [ "$(ENABLE_NLS)" != "no" ]; then \ ++ msgfmt -o $@ $<; \ ++ fi; ++ ++.po.po8:; ++ CTYPE=`grep "^\"Content-Type:" $< | sed 's/^.*charset=//;s/\\\\.*//'`; sed "s/\(Content-Type: .*=\)$$CTYPE/\1UTF-8/" < $< | iconv -f $${CTYPE} -t UTF-8 >$@ ++ ++update-po: $(po-files) extract-po ++ ++dist-prep: update-po freshen-po ++# empty ++ ++ifeq ($(CVSBUILD),yes) ++ipkg-prep: freshen-po ++# empty ++endif ++ ++extract-po: ++ mkdir -p $(DIR_PO) ++ ( SOURCES="$(SOURCES)"; for DESK in $(PACKAGE).desktop.in $(EXTRA_DESKTOPS); do if [ -f $$DESK ]; then intltool-extract --type=gettext/ini $$DESK; SOURCES="$$SOURCES $${DESK}.h"; fi; done; if [ "x$$SOURCES" != "x" ]; then xgettext --add-comments=TRANSLATORS: -k_ -kN_ -o $(DIR_PO)/$(PACKAGE).pot.new $$SOURCES; fi ) ++ if [ -f $(DIR_PO)/$(PACKAGE).pot.new ]; then if cmp -s $(DIR_PO)/$(PACKAGE).pot.new $(PACKAGE).pot; then rm $(DIR_PO)/$(PACKAGE).pot.new; else mv $(DIR_PO)/$(PACKAGE).pot.new $(DIR_PO)/$(PACKAGE).pot; fi; fi ++ ++clean: clean-po clean-dist-translation ++ ++clean-po: ++ rm -rf $(DIR_PO)/*.mo ++ for i in $(desktop-files); do if [ -f $$i.in ]; then rm -f $$i; rm -f $$i.in.h; fi; done ++ ++%.desktop: %.desktop.in $(patsubst %,$(DIR_PO)/%.po,$(LINGUAS)) ++ intltool-merge -u -d $(DIR_PO) $< $@ ++ ++freshen-po: ++ rm -rf tmp-po ++ mkdir tmp-po ++ cd tmp-po; for LANG in $(LINGUAS); do wget $(TRANSLATION_SITE)/$(PACKAGE)/$$LANG.po; done ++ for LANG in $(LINGUAS); do if [ ! -f $(DIR_PO)/$$LANG.po ] || ! cmp -s $(DIR_PO)/$$LANG.po tmp-po/$$LANG.po ; then mv tmp-po/$$LANG.po $(DIR_PO)/$$LANG.po; echo "Updated $$LANG translation"; fi; done ++ rm -rf tmp-po ++ ++# ------------------------------------------------------------------------ ++ ++MAINTAINER = $(shell grep 'Maintainer: ' familiar/$(CONTROL) | cut -d ' ' -f 2-) ++ ++ifndef BUILD ++BUILD = ../build ++endif ++ ++transdist := familiar/dist-translation ++templates := $(BUILD)/familiar ++ipkglist := translation-ipkgs.txt ++ ++clean-dist-translation: ++ rm -rf $(transdist) $(ipkglist) ++ ++real-translation-package: all-mo ++ rm -rf $(transdist) $(ipkglist) ++ for LINGUA in $(LINGUAS); do \ ++ i=$$(echo $$LINGUA | tr '[A-Z_]' '[a-z+]'); \ ++ mkdir -p $(transdist)/$$i/CONTROL; \ ++ mkdir -p $(transdist)/$$i$(PREFIX)/share/locale/$$LINGUA/LC_MESSAGES; \ ++ install -m 644 po/$$LINGUA.mo $(transdist)/$$i$(PREFIX)/share/locale/$$LINGUA/LC_MESSAGES/$(PACKAGE).mo; \ ++ sed -e "s//$(MAINTAINER)/;s//$(BINPACKAGE)/;s//$(VERSION)/;s//$$i/;s!!$(SOURCE)!" $(templates)/control.translation > $(transdist)/$$i/CONTROL/control; \ ++ install $(templates)/postinst.translation $(transdist)/$$i/CONTROL/postinst; \ ++ $(IPKG_BUILD) -g 0 -o 0 $(transdist)/$$i | sed 's/^Packaged .*into //; t 1; d; : 1; s:.*/::' >> $(ipkglist); \ ++ done ++ ++translation-ipkg: ++ make PREFIX=/usr real-translation-package diff --git a/recipes/gpe-sketchbook/gpe-sketchbook-0.2.8/remove-render.patch b/recipes/gpe-sketchbook/gpe-sketchbook-0.2.8/remove-render.patch new file mode 100644 index 0000000000..b7076bae0b --- /dev/null +++ b/recipes/gpe-sketchbook/gpe-sketchbook-0.2.8/remove-render.patch @@ -0,0 +1,34 @@ +diff -Nurd gpe-sketchbook-0.2.8.old/src/selector-gui.c gpe-sketchbook-0.2.8/src/selector-gui.c +--- gpe-sketchbook-0.2.8.old/src/selector-gui.c 2004-06-14 17:37:28.000000000 +0200 ++++ gpe-sketchbook-0.2.8/src/selector-gui.c 2005-04-20 22:13:13.442852960 +0200 +@@ -24,7 +24,6 @@ + + //gpe libs + #include "gpe/pixmaps.h" +-#include "gpe/render.h" + #include "gpe/gpeiconlistview.h" + + //--i18n +diff -Nurd gpe-sketchbook-0.2.8.old/src/sketchpad-cb.c gpe-sketchbook-0.2.8/src/sketchpad-cb.c +--- gpe-sketchbook-0.2.8.old/src/sketchpad-cb.c 2004-06-14 18:26:04.000000000 +0200 ++++ gpe-sketchbook-0.2.8/src/sketchpad-cb.c 2005-04-20 22:15:35.295288112 +0200 +@@ -30,7 +30,6 @@ + #include "dock.h" + #include "gpe/question.h" + #include "gpe/gpeiconlistview.h" +-#include "gpe/popup_menu.h" + + //--i18n + #include +diff -Nurd gpe-sketchbook-0.2.8.old/src/sketchpad-gui.c gpe-sketchbook-0.2.8/src/sketchpad-gui.c +--- gpe-sketchbook-0.2.8.old/src/sketchpad-gui.c 2004-06-14 17:37:48.000000000 +0200 ++++ gpe-sketchbook-0.2.8/src/sketchpad-gui.c 2005-04-20 22:13:58.829953072 +0200 +@@ -25,8 +25,6 @@ + + #include "dock.h" + #include "gpe/pixmaps.h" +-#include "gpe/render.h" +-#include "gpe/popup_menu.h" + #include "gpe/picturebutton.h" + + //--i18n diff --git a/recipes/gpe-sketchbook/gpe-sketchbook-0.2.8/sketchbook-size.patch b/recipes/gpe-sketchbook/gpe-sketchbook-0.2.8/sketchbook-size.patch new file mode 100644 index 0000000000..aecf857e30 --- /dev/null +++ b/recipes/gpe-sketchbook/gpe-sketchbook-0.2.8/sketchbook-size.patch @@ -0,0 +1,17 @@ +Index: src/sketchpad.c +=================================================================== +RCS file: /cvs/gpe/base/gpe-sketchbook/src/sketchpad.c,v +retrieving revision 1.30 +diff -r1.30 sketchpad.c +74,75c74,75 +< drawing_area_width = SKETCH_WIDTH; +< drawing_area_height = SKETCH_HEIGHT; +--- +> drawing_area_width = gdk_screen_width() - 26; //SKETCH_WIDTH; +> drawing_area_height = gdk_screen_height() - 130; // SKETCH_HEIGHT; +202,203c202,203 +< drawing_area_width = SKETCH_WIDTH; +< drawing_area_height = SKETCH_HEIGHT; +--- +> drawing_area_width = gdk_screen_width() - 26; //SKETCH_WIDTH; +> drawing_area_height = gdk_screen_height() - 130; // SKETCH_HEIGHT; diff --git a/recipes/gpe-sketchbook/gpe-sketchbook_0.2.8.bb b/recipes/gpe-sketchbook/gpe-sketchbook_0.2.8.bb new file mode 100644 index 0000000000..b04cfc39bf --- /dev/null +++ b/recipes/gpe-sketchbook/gpe-sketchbook_0.2.8.bb @@ -0,0 +1,24 @@ +DEPENDS = "libgpewidget sqlite" +LICENSE = "GPL" +DESCRIPTION = "A GPE notebook to sketch your notes" +export CVSBUILD = "no" + +inherit gpe pkgconfig + +CFLAGS +="-D_GNU_SOURCE" + +SRC_URI = "${GPE_MIRROR}/${PN}-${PV}.tar.gz \ + file://sketchbook-size.patch;patch=1;pnum=0 \ + file://remove-render.patch;patch=1" + +FILES_${PN} = "${bindir} ${datadir}/pixmaps ${datadir}/applications" +FILES_${PN} += " ${datadir}/gpe/pixmaps" + +do_compile () { + oe_runmake PREFIX=${prefix} + oe_runmake all-desktop PREFIX=${prefix} +} + +do_install () { + oe_runmake PREFIX=${prefix} DESTDIR=${D} install-program +} diff --git a/recipes/gpe-sketchbook/gpe-sketchbook_0.2.9.bb b/recipes/gpe-sketchbook/gpe-sketchbook_0.2.9.bb new file mode 100644 index 0000000000..488e32f55b --- /dev/null +++ b/recipes/gpe-sketchbook/gpe-sketchbook_0.2.9.bb @@ -0,0 +1,22 @@ +DEPENDS = "libgpewidget sqlite" +LICENSE = "GPL" +DESCRIPTION = "A GPE notebook to sketch your notes" +export CVSBUILD = "no" + +inherit gpe pkgconfig + +CFLAGS +="-D_GNU_SOURCE" + +SRC_URI = "${GPE_MIRROR}/${PN}-${PV}.tar.gz" + +FILES_${PN} = "${bindir} ${datadir}/pixmaps ${datadir}/applications" +FILES_${PN} += " ${datadir}/gpe/pixmaps" + +do_compile () { + oe_runmake PREFIX=${prefix} + oe_runmake all-desktop PREFIX=${prefix} +} + +do_install () { + oe_runmake PREFIX=${prefix} DESTDIR=${D} install-program +} diff --git a/recipes/gpe-sketchbook/gpe-sketchbook_svn.bb b/recipes/gpe-sketchbook/gpe-sketchbook_svn.bb new file mode 100644 index 0000000000..929d622a51 --- /dev/null +++ b/recipes/gpe-sketchbook/gpe-sketchbook_svn.bb @@ -0,0 +1,30 @@ +DESCRIPTION = "A GPE notebook to sketch your notes" +SECTION = "gpe" +PRIORITY = "optional" +LICENSE = "GPL" +DEPENDS = "libgpewidget sqlite" +PV = "0.2.9+svnr${SRCREV}" + +DEFAULT_PREFERENCE = "-1" + +inherit pkgconfig autotools + +SRC_URI = "\ + ${GPE_SVN} \ + file://svn-build.patch;patch=1 \ +" +S = "${WORKDIR}/${PN}" + +export CVSBUILD = "no" +CFLAGS += "-D_GNU_SOURCE" + +do_compile () { + oe_runmake PREFIX=${prefix} + oe_runmake all-desktop PREFIX=${prefix} +} +do_install () { + oe_runmake PREFIX=${prefix} DESTDIR=${D} install-program +} + +FILES_${PN} = "${bindir} ${datadir}/pixmaps ${datadir}/applications" +FILES_${PN} += " ${datadir}/gpe/pixmaps" -- cgit v1.2.3