diff options
author | Markus Meier <maekke@gentoo.org> | 2008-12-21 15:24:39 +0000 |
---|---|---|
committer | Markus Meier <maekke@gentoo.org> | 2008-12-21 15:24:39 +0000 |
commit | 7466c2eaffd5265c1cd05f04ae81a66493d89fde (patch) | |
tree | 21ab2ac5154a60c4b6c3f76c32979a92c6bc6665 /media-gfx/tuxpaint | |
parent | Remove USE ffmpeg from old versions. (diff) | |
download | gentoo-2-7466c2eaffd5265c1cd05f04ae81a66493d89fde.tar.gz gentoo-2-7466c2eaffd5265c1cd05f04ae81a66493d89fde.tar.bz2 gentoo-2-7466c2eaffd5265c1cd05f04ae81a66493d89fde.zip |
bump to 0.9.20, bug #243838
(Portage version: 2.1.6.1/cvs/Linux 2.6.28-rc9 i686)
Diffstat (limited to 'media-gfx/tuxpaint')
-rw-r--r-- | media-gfx/tuxpaint/ChangeLog | 8 | ||||
-rw-r--r-- | media-gfx/tuxpaint/files/tuxpaint-0.9.20-gentoo.patch | 136 | ||||
-rw-r--r-- | media-gfx/tuxpaint/tuxpaint-0.9.20.ebuild | 70 |
3 files changed, 213 insertions, 1 deletions
diff --git a/media-gfx/tuxpaint/ChangeLog b/media-gfx/tuxpaint/ChangeLog index 1535b1854a8e..8e3e55d1001b 100644 --- a/media-gfx/tuxpaint/ChangeLog +++ b/media-gfx/tuxpaint/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for media-gfx/tuxpaint # Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/tuxpaint/ChangeLog,v 1.48 2008/11/08 14:34:36 maekke Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-gfx/tuxpaint/ChangeLog,v 1.49 2008/12/21 15:24:39 maekke Exp $ + +*tuxpaint-0.9.20 (21 Dec 2008) + + 21 Dec 2008; Markus Meier <maekke@gentoo.org> + +files/tuxpaint-0.9.20-gentoo.patch, +tuxpaint-0.9.20.ebuild: + bump to 0.9.20, bug #243838 08 Nov 2008; Markus Meier <maekke@gentoo.org> -files/tuxpaint-0.9.16-gentoo-r1.patch, diff --git a/media-gfx/tuxpaint/files/tuxpaint-0.9.20-gentoo.patch b/media-gfx/tuxpaint/files/tuxpaint-0.9.20-gentoo.patch new file mode 100644 index 000000000000..00af3cb2a867 --- /dev/null +++ b/media-gfx/tuxpaint/files/tuxpaint-0.9.20-gentoo.patch @@ -0,0 +1,136 @@ +diff -ru tuxpaint-0.9.20.orig/Makefile tuxpaint-0.9.20/Makefile +--- tuxpaint-0.9.20.orig/Makefile 2008-12-21 15:04:36.000000000 +0100 ++++ tuxpaint-0.9.20/Makefile 2008-12-21 15:42:24.000000000 +0100 +@@ -137,9 +137,12 @@ + # Icons and launchers: + ICON_PREFIX:=$(DESTDIR)$(PREFIX)/share/pixmaps + X11_ICON_PREFIX:=$(DESTDIR)$(PREFIX)/X11R6/include/X11/pixmaps +-GNOME_PREFIX:=$(shell gnome-config --prefix 2> /dev/null) +-KDE_PREFIX:=$(shell kde-config --install apps --expandvars 2> /dev/null) +-KDE_ICON_PREFIX:=$(shell kde-config --install icon --expandvars 2> /dev/null) ++GNOME_PREFIX:= ++KDE_PREFIX:= ++KDE_ICON_PREFIX:= ++DESKTOP_ICON_PREFIX:=$(PREFIX)/share/icons ++ ++ENABLE_GETTEXT:=0 + + # Maemo flag + MAEMOFLAG:= +@@ -200,7 +203,7 @@ + + #-ffast-math + OPTFLAGS:=-O2 +-CFLAGS:=$(CPPFLAGS) $(OPTFLAGS) -W -Wall -fno-common -ffloat-store \ ++CFLAGS:=$(CPPFLAGS) -W -Wall -fno-common -ffloat-store \ + $(call comptest,-fvisibility=hidden,) \ + -Wcast-align -Wredundant-decls \ + -Wbad-function-cast -Wwrite-strings \ +@@ -232,7 +235,10 @@ + # "make" with no arguments builds the program and man page from sources: + # + .PHONY: all +-all: tuxpaint translations magic-plugins tp-magic-config ++all: tuxpaint magic-plugins tp-magic-config ++ @if [ -n "$(ENABLE_GETTEXT)" ] && [ $(ENABLE_GETTEXT) -eq 1 ]; then \ ++ make translations; \ ++ fi + @echo + @echo "--------------------------------------------------------------" + @echo +@@ -390,7 +396,7 @@ + windows_ARCH_INSTALL:= + osx_ARCH_INSTALL:= + beos_ARCH_INSTALL:= +-linux_ARCH_INSTALL:=install-gnome install-kde install-kde-icons ++linux_ARCH_INSTALL:=install-desktop-data + ARCH_INSTALL:=$($(OS)_ARCH_INSTALL) + + # "make install" installs all of the various parts +@@ -400,10 +406,13 @@ + install: install-bin install-data install-man install-doc \ + install-magic-plugins \ + install-magic-plugin-dev \ +- install-icon install-gettext install-im install-importscript \ ++ install-icon install-im install-importscript \ + install-default-config install-example-stamps \ + install-example-starters \ + $(ARCH_INSTALL) ++ @if [ -n "$(ENABLE_GETTEXT)" ] && [ $(ENABLE_GETTEXT) -eq 1 ]; then \ ++ make install-gettext ; \ ++ fi + @echo + @echo "--------------------------------------------------------------" + @echo +@@ -581,17 +590,50 @@ + + # Install a launcher icon in the Gnome menu + .PHONY: install-gnome +-install-gnome: ++install-desktop-data: + @echo +- @echo "...Installing launcher icon into GNOME..." +- @if [ "x$(GNOME_PREFIX)" != "x" ]; then \ +- install -d $(DESTDIR)$(GNOME_PREFIX)/share/pixmaps; \ +- cp data/images/icon.png $(DESTDIR)/$(GNOME_PREFIX)/share/pixmaps/tuxpaint.png; \ +- chmod 644 $(DESTDIR)$(GNOME_PREFIX)/share/pixmaps/tuxpaint.png; \ +- install -d $(DESTDIR)$(GNOME_PREFIX)/share/applications; \ +- cp src/tuxpaint.desktop $(DESTDIR)$(GNOME_PREFIX)/share/applications/; \ +- chmod 644 $(DESTDIR)$(GNOME_PREFIX)/share/applications/tuxpaint.desktop; \ +- fi ++ @echo "...Installing launcher entry..." ++ @if [ "x$(PREFIX)" != "x" ]; then \ ++ install -d $(PKG_ROOT)$(PREFIX)/share/applications; \ ++ cp src/tuxpaint.desktop $(PKG_ROOT)$(PREFIX)/share/applications/; \ ++ chmod 644 $(PKG_ROOT)$(PREFIX)/share/applications/tuxpaint.desktop; \ ++ install -d $(PKG_ROOT)$(DESKTOP_ICON_PREFIX)/hicolor/scalable/apps/; \ ++ install -d $(PKG_ROOT)$(DESKTOP_ICON_PREFIX)/hicolor/192x192/apps/; \ ++ install -d $(PKG_ROOT)$(DESKTOP_ICON_PREFIX)/hicolor/128x128/apps/; \ ++ install -d $(PKG_ROOT)$(DESKTOP_ICON_PREFIX)/hicolor/96x96/apps/; \ ++ install -d $(PKG_ROOT)$(DESKTOP_ICON_PREFIX)/hicolor/64x64/apps/; \ ++ install -d $(PKG_ROOT)$(DESKTOP_ICON_PREFIX)/hicolor/48x48/apps/; \ ++ install -d $(PKG_ROOT)$(DESKTOP_ICON_PREFIX)/hicolor/32x32/apps/; \ ++ install -d $(PKG_ROOT)$(DESKTOP_ICON_PREFIX)/hicolor/22x22/apps/; \ ++ install -d $(PKG_ROOT)$(DESKTOP_ICON_PREFIX)/hicolor/16x16/apps/; \ ++ cp data/images/tuxpaint-icon.svg \ ++ $(PKG_ROOT)$(DESKTOP_ICON_PREFIX)/hicolor/scalable/apps/tuxpaint.svg; \ ++ chmod 644 $(PKG_ROOT)$(DESKTOP_ICON_PREFIX)/hicolor/scalable/apps/tuxpaint.svg; \ ++ cp data/images/icon192x192.png \ ++ $(PKG_ROOT)$(DESKTOP_ICON_PREFIX)/hicolor/192x192/apps/tuxpaint.png; \ ++ chmod 644 $(PKG_ROOT)$(DESKTOP_ICON_PREFIX)/hicolor/192x192/apps/tuxpaint.png; \ ++ cp data/images/icon128x128.png \ ++ $(PKG_ROOT)$(DESKTOP_ICON_PREFIX)/hicolor/128x128/apps/tuxpaint.png; \ ++ chmod 644 $(PKG_ROOT)$(DESKTOP_ICON_PREFIX)/hicolor/128x128/apps/tuxpaint.png; \ ++ cp data/images/icon96x96.png \ ++ $(PKG_ROOT)$(DESKTOP_ICON_PREFIX)/hicolor/96x96/apps/tuxpaint.png; \ ++ chmod 644 $(PKG_ROOT)$(DESKTOP_ICON_PREFIX)/hicolor/96x96/apps/tuxpaint.png; \ ++ cp data/images/icon64x64.png \ ++ $(PKG_ROOT)$(DESKTOP_ICON_PREFIX)/hicolor/64x64/apps/tuxpaint.png; \ ++ chmod 644 $(PKG_ROOT)$(DESKTOP_ICON_PREFIX)/hicolor/64x64/apps/tuxpaint.png; \ ++ cp data/images/icon48x48.png \ ++ $(PKG_ROOT)$(DESKTOP_ICON_PREFIX)/hicolor/48x48/apps/tuxpaint.png; \ ++ chmod 644 $(PKG_ROOT)$(DESKTOP_ICON_PREFIX)/hicolor/48x48/apps/tuxpaint.png; \ ++ cp data/images/icon32x32.png \ ++ $(PKG_ROOT)$(DESKTOP_ICON_PREFIX)/hicolor/32x32/apps/tuxpaint.png; \ ++ chmod 644 $(PKG_ROOT)$(DESKTOP_ICON_PREFIX)/hicolor/32x32/apps/tuxpaint.png; \ ++ cp data/images/icon22x22.png \ ++ $(PKG_ROOT)$(DESKTOP_ICON_PREFIX)/hicolor/22x22/apps/tuxpaint.png; \ ++ chmod 644 $(PKG_ROOT)$(DESKTOP_ICON_PREFIX)/hicolor/22x22/apps/tuxpaint.png; \ ++ cp data/images/icon16x16.png \ ++ $(PKG_ROOT)$(DESKTOP_ICON_PREFIX)/hicolor/16x16/apps/tuxpaint.png; \ ++ chmod 644 $(PKG_ROOT)$(DESKTOP_ICON_PREFIX)/hicolor/16x16/apps/tuxpaint.png; \ ++ fi + + + # Install a launcher icon for the Nokia 770. +@@ -684,9 +726,6 @@ + @install -d $(ICON_PREFIX) + @cp data/images/icon.png $(ICON_PREFIX)/tuxpaint.png + @chmod 644 $(ICON_PREFIX)/tuxpaint.png +- @install -d $(X11_ICON_PREFIX) +- @cp data/images/icon32x32.xpm $(X11_ICON_PREFIX)/tuxpaint.xpm +- @chmod 644 $(X11_ICON_PREFIX)/tuxpaint.xpm + + + # Install the program: +Only in tuxpaint-0.9.20: Makefile.bak diff --git a/media-gfx/tuxpaint/tuxpaint-0.9.20.ebuild b/media-gfx/tuxpaint/tuxpaint-0.9.20.ebuild new file mode 100644 index 000000000000..f1de2a9d806b --- /dev/null +++ b/media-gfx/tuxpaint/tuxpaint-0.9.20.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/tuxpaint/tuxpaint-0.9.20.ebuild,v 1.1 2008/12/21 15:24:39 maekke Exp $ + +inherit eutils gnome2-utils multilib toolchain-funcs + +DESCRIPTION="Drawing program designed for young children" +HOMEPAGE="http://www.tuxpaint.org/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" + +IUSE="nls svg" + +DEPEND="media-libs/libsdl + media-libs/sdl-image + media-libs/sdl-ttf + media-libs/sdl-mixer + media-libs/sdl-pango + >=media-libs/libpng-1.2 + >=media-libs/freetype-2 + app-text/libpaper + nls? ( sys-devel/gettext ) + svg? ( + gnome-base/librsvg + x11-libs/cairo )" + +src_unpack() { + unpack ${A} + cd "${S}" + + # Sanitize the Makefile and correct a few other issues. + epatch "${FILESDIR}/${P}-gentoo.patch" + sed -i -e "s|linux_PREFIX:=/usr/local|linux_PREFIX:=/usr|" Makefile || die + + # Make multilib-strict compliant, see bug #200740 + sed -i -e "s:/lib/:/$(get_libdir)/:" Makefile || die +} + +src_compile() { + local myopts="" + + use nls && myopts="${myopts} ENABLE_GETTEXT=1" + use svg || myopts="${myopts} nosvg" + + # emake may break things + make CC="$(tc-getCC)" ${myopts} || die "Compilation failed" +} + +src_install () { + local myopts="" + + use nls && myopts="${myopts} ENABLE_GETTEXT=1" + + make PKG_ROOT="${D}" ${myopts} install || die "Installation failed" + + rm -f docs/COPYING.txt docs/INSTALL.txt + dodoc docs/*.txt +} + +pkg_postinst() { + gnome2_icon_cache_update + + elog "" + elog "For additional graphic stamps, you can emerge the" + elog "media-gfx/tuxpaint-stamps package." + elog "" +} |