New release: 0.9.16 (bug #152961)
authorLeonardo Boshell <leonardop@gentoo.org>
Wed, 1 Nov 2006 02:51:16 +0000 (02:51 +0000)
committerLeonardo Boshell <leonardop@gentoo.org>
Wed, 1 Nov 2006 02:51:16 +0000 (02:51 +0000)
Package-Manager: portage-2.1.2_rc1

media-gfx/tuxpaint/ChangeLog
media-gfx/tuxpaint/files/digest-tuxpaint-0.9.16 [new file with mode: 0644]
media-gfx/tuxpaint/files/tuxpaint-0.9.16-gentoo.patch [new file with mode: 0644]
media-gfx/tuxpaint/tuxpaint-0.9.16.ebuild [new file with mode: 0644]

index 63d58af36eda4f9669075efcba01784ed40bf845..065957b3b1284e491f6666f6feeede150fe0fb3b 100644 (file)
@@ -1,6 +1,13 @@
 # ChangeLog for media-gfx/tuxpaint
 # Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/tuxpaint/ChangeLog,v 1.27 2006/10/03 04:16:27 tsunam Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/tuxpaint/ChangeLog,v 1.28 2006/11/01 02:51:16 leonardop Exp $
+
+*tuxpaint-0.9.16 (01 Nov 2006)
+
+  01 Nov 2006; Leonardo Boshell <leonardop@gentoo.org>
+  +files/tuxpaint-0.9.16-gentoo.patch, -tuxpaint-0.9.15b.ebuild,
+  +tuxpaint-0.9.16.ebuild:
+  New release (bug #152961).
 
   03 Oct 2006; Joshua Jackson <tsunam@gentoo.org>
   tuxpaint-0.9.15b-r1.ebuild:
diff --git a/media-gfx/tuxpaint/files/digest-tuxpaint-0.9.16 b/media-gfx/tuxpaint/files/digest-tuxpaint-0.9.16
new file mode 100644 (file)
index 0000000..0aa1a60
--- /dev/null
@@ -0,0 +1,3 @@
+MD5 467ef64c7f81f9f3755ae2ceebe97f48 tuxpaint-0.9.16.tar.gz 6785134
+RMD160 f263455fa3bd4d51e7280a5451d7cc021b2c9639 tuxpaint-0.9.16.tar.gz 6785134
+SHA256 af2dd9dcac7c7377e344bb964b8a523402aeffde877522c844f98c9e1e5881e0 tuxpaint-0.9.16.tar.gz 6785134
diff --git a/media-gfx/tuxpaint/files/tuxpaint-0.9.16-gentoo.patch b/media-gfx/tuxpaint/files/tuxpaint-0.9.16-gentoo.patch
new file mode 100644 (file)
index 0000000..c6df11f
--- /dev/null
@@ -0,0 +1,107 @@
+diff -NurdB tuxpaint-0.9.16/Makefile tuxpaint-0.9.16-patched/Makefile
+--- tuxpaint-0.9.16/Makefile   2006-10-19 02:41:49.000000000 -0500
++++ tuxpaint-0.9.16-patched/Makefile   2006-10-31 21:25:07.000000000 -0500
+@@ -18,7 +18,7 @@
+ # Where to install things:
+-PREFIX=/usr/local
++PREFIX=/usr
+ # Root directory to place files when creating packages.
+@@ -62,13 +62,14 @@
+ ICON_PREFIX=$(PKG_ROOT)$(PREFIX)/share/pixmaps
+ X11_ICON_PREFIX=$(PKG_ROOT)$(PREFIX)/X11R6/include/X11/pixmaps
+-GNOME_PREFIX=`gnome-config --prefix 2> /dev/null`
+-KDE_PREFIX=`kde-config --install apps --expandvars 2> /dev/null`
+-KDE_ICON_PREFIX=`kde-config --install icon --expandvars 2> /dev/null`
++GNOME_PREFIX=
++KDE_PREFIX=
++KDE_ICON_PREFIX=
+ # Locale files
++ENABLE_GETTEXT=0
+ LOCALE_PREFIX=$(PKG_ROOT)$(PREFIX)/share/locale
+ # LOCALE_PREFIX=/usr/share/locale
+@@ -97,7 +98,7 @@
+ # The entire set of CFLAGS:
+ #-ffast-math
+-CFLAGS=-O2 -W -Wall -fno-common -ffloat-store \
++CFLAGS += -W -Wall -fno-common -ffloat-store \
+       -Wcast-align -Wredundant-decls \
+       -Wbad-function-cast -Wwrite-strings \
+       -Waggregate-return \
+@@ -118,7 +119,10 @@
+ # "make" with no arguments builds the program and man page from sources:
+-all:  tuxpaint translations
++all:  tuxpaint
++      @if [ -n "$(ENABLE_GETTEXT)" ] && [ $(ENABLE_GETTEXT) -eq 1 ]; then \
++              make translations; \
++      fi
+       @echo
+       @echo "--------------------------------------------------------------"
+       @echo
+@@ -220,10 +224,13 @@
+ # to do this as superuser ("root"))
+ install:      install-bin install-data install-man install-doc \
+-              install-icon install-gettext install-importscript \
++              install-icon install-importscript \
+               install-default-config install-example-stamps \
+               install-example-starters \
+               install-gnome install-kde install-kde-icons
++      @if [ -n "$(ENABLE_GETTEXT)" ] && [ $(ENABLE_GETTEXT) -eq 1 ]; then \
++              make install-gettext; \
++      fi
+       @echo
+       @echo "--------------------------------------------------------------"
+       @echo
+@@ -504,9 +511,9 @@
+        install -d $(PKG_ROOT)$(GNOME_PREFIX)/share/pixmaps; \
+        cp data/images/icon.png $(PKG_ROOT)/$(GNOME_PREFIX)/share/pixmaps/tuxpaint.png; \
+        chmod 644 $(PKG_ROOT)$(GNOME_PREFIX)/share/pixmaps/tuxpaint.png; \
+-       install -d $(PKG_ROOT)$(GNOME_PREFIX)/share/gnome/apps/Graphics; \
+-       cp src/tuxpaint.desktop $(PKG_ROOT)$(GNOME_PREFIX)/share/gnome/apps/Graphics/; \
+-       chmod 644 $(PKG_ROOT)$(GNOME_PREFIX)/share/gnome/apps/Graphics/tuxpaint.desktop; \
++       install -d $(PKG_ROOT)$(GNOME_PREFIX)/share/applications; \
++       cp src/tuxpaint.desktop $(PKG_ROOT)$(GNOME_PREFIX)/share/applications/; \
++       chmod 644 $(PKG_ROOT)$(GNOME_PREFIX)/share/applications/tuxpaint.desktop; \
+       fi
+@@ -590,9 +597,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:
+@@ -1034,7 +1038,7 @@
+               $^ \
+               $(HQXX_O) \
+               $(SDL_LIBS) \
+-              -lm $(ARCH_LINKS)
++              -lm -lpng12 $(ARCH_LINKS)
+       @$(RSRC_CMD)
+       @$(MIMESET_CMD)
+diff -NurdB tuxpaint-0.9.16/src/tuxpaint.desktop tuxpaint-0.9.16-patched/src/tuxpaint.desktop
+--- tuxpaint-0.9.16/src/tuxpaint.desktop       2006-09-10 13:18:49.000000000 -0500
++++ tuxpaint-0.9.16-patched/src/tuxpaint.desktop       2006-10-31 21:44:45.000000000 -0500
+@@ -158,3 +158,5 @@
+ Comment[wa]=Programe di dessinaedje po ls efants
+ Comment[zh_cn]=孩子的绘图程序。
+ Comment[zh_tw]=適合兒童的畫圖程式
++Categories=Application;Graphics;
++
diff --git a/media-gfx/tuxpaint/tuxpaint-0.9.16.ebuild b/media-gfx/tuxpaint/tuxpaint-0.9.16.ebuild
new file mode 100644 (file)
index 0000000..aa81390
--- /dev/null
@@ -0,0 +1,69 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/tuxpaint/tuxpaint-0.9.16.ebuild,v 1.1 2006/11/01 02:51:16 leonardop Exp $
+
+inherit eutils
+
+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="gnome kde nls"
+
+DEPEND="media-libs/libsdl
+       media-libs/sdl-image
+       media-libs/sdl-ttf
+       media-libs/sdl-mixer
+       >=media-libs/libpng-1.2
+       >=media-libs/freetype-2
+       media-libs/netpbm
+       nls? ( sys-devel/gettext )"
+
+
+src_unpack() {
+       unpack "${A}"
+       cd "${S}"
+
+       # Sanitize the Makefile and correct a few other issues.
+       epatch "${FILESDIR}"/${P}-gentoo.patch
+}
+
+src_compile() {
+       local myopts=""
+
+       use nls && myopts="${myopts} ENABLE_GETTEXT=1"
+
+       # emake may break things
+       make ${myopts} || die "Compilation failed"
+}
+
+src_install () {
+       local myopts=""
+
+       use gnome && myopts="${myopts} GNOME_PREFIX=/usr"
+
+       if use kde; then
+               myopts="${myopts} \
+                       KDE_PREFIX=/usr/share/applnk \
+                       KDE_ICON_PREFIX=/usr/share/icons"
+       fi
+
+       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() {
+       einfo ""
+       einfo "For additional graphic stamps, you can emerge the"
+       einfo "media-gfx/tuxpaint-stamps package."
+       einfo ""
+}
+