Merge pull request #15336 from alick01/master

New Package gpaint
This commit is contained in:
Rmys
2024-11-12 13:43:55 +03:00
committed by GitHub
4 changed files with 125 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get
def setup():
shelltools.system("""sed -i 's#GTK_RESPONSE_DISCARD#GTK_RESPONSE_NO#' src/drawing.c""")
def build():
autotools.configure(" --prefix=/usr")
autotools.make("LDFLAGS+=-lm")
def install():
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
pisitools.insinto("/usr/bin/","src/gpaint-2", "gpaint")
pisitools.dodoc("ABOUT-NLS", "AUTHORS", "COPYING", "NEWS", "README", "THANKS", "TODO")
shelltools.cd("%s/usr/" % get.installDIR())
shelltools.system("rm -rf bin/gpaint-2")
shelltools.system("rm -rf share/applications/gpaint.desktop")
@@ -0,0 +1,24 @@
#! /bin/sh /usr/share/dpatch/dpatch-run
## 21_fix_crash_on_fill_button_click.dpatch by Goedson Teixeira Paixao <goedson@debian.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Check that tool->canvas->drawing_area is not null when casting it to a
## DP: GtkWidget.
@DPATCH@
Index: pkg-gpaint/src/text.c
===================================================================
--- pkg-gpaint.orig/src/text.c 2009-12-22 21:03:29.000000000 -0200
+++ pkg-gpaint/src/text.c 2009-12-23 13:01:33.000000000 -0200
@@ -156,7 +156,10 @@
{
debug_fn();
GtkStyle *style;
- GtkWidget *widget = GTK_WIDGET(tool->canvas->drawing_area);
+ GtkWidget *widget = NULL;
+
+ if ((tool->canvas == NULL) || (tool->canvas->drawing_area == NULL)) return FALSE;
+ widget = GTK_WIDGET(tool->canvas->drawing_area);
style = gtk_widget_get_style(widget);
g_assert(style);
@@ -0,0 +1,11 @@
[Desktop Entry]
Name=GNU Paint
Comment=A small-scale painting program for GNOME and the GNU Desktop
Comment[fr]=Un petit outil de dessin pour GNOME, le desktop GNU
Comment[pt_BR]=Um pequeno programa de desenho para o GNOME, o Desktop GNU
TryExec=gpaint
Exec=gpaint
Icon=gnome-logo-icon-transparent.png
Terminal=0
Type=Application
Categories=Graphics;2DGraphics;RasterGraphics;
+64
View File
@@ -0,0 +1,64 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "https://pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>gpaint</Name>
<Homepage>https://savannah.gnu.org/projects/gpain/</Homepage>
<Packager>
<Name>Pisi Linux Admins</Name>
<Email>admin@pisilinux.org</Email>
</Packager>
<License>LGPL</License>
<IsA>app:gui</IsA>
<Icon>gnome-logo-icon-transparent</Icon>
<Summary>A small easy-to-use paint program for the GNOME Desktop</Summary>
<Description>Gnome desktop için kullanımı kolay bir boyama arayüzüdür</Description>
<Archive sha1sum="9dbdcc42b4146aab92ce38965afa9d6f33cfa816" type="targz">ftp://alpha.gnu.org/gnu/gpaint/gpaint-2-0.3.4.tar.gz</Archive>
<BuildDependencies>
<Dependency>libglade-devel</Dependency>
<Dependency>gdk-pixbuf-devel</Dependency>
<Dependency>atk-devel</Dependency>
<Dependency>gtk2-devel</Dependency>
<Dependency>cairo-devel</Dependency>
<Dependency>glib2-devel</Dependency>
<Dependency>pango-devel</Dependency>
</BuildDependencies>
<Patches>
<patch level="1">21_fix_crash_on_fill_button_click.dpatch</patch>
</Patches>
</Source>
<Package>
<Name>gpaint</Name>
<RuntimeDependencies>
<Dependency>libglade</Dependency>
<Dependency>gdk-pixbuf</Dependency>
<Dependency>atk</Dependency>
<Dependency>gtk2</Dependency>
<Dependency>cairo</Dependency>
<Dependency>glib2</Dependency>
<Dependency>pango</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="localedata">/usr/share/locale</Path>
<Path fileType="data">/usr/share/applications</Path>
<Path fileType="data">/usr/share/gpaint</Path>
<Path fileType="doc">/usr/share/doc</Path>
</Files>
<AdditionalFiles>
<AdditionalFile owner="root" permission="0644" target="/usr/share/applications/gpaint.desktop">gpaint.desktop</AdditionalFile>
</AdditionalFiles>
</Package>
<History>
<Update release="1">
<Date>2024-11-11</Date>
<Version>0.3.4</Version>
<Comment>First Release.</Comment>
<Name>Ali Cengiz Kurt</Name>
<Email>alicengizkurt@gmail.com</Email>
</Update>
</History>
</PISI>