mate:mate-desktop is ready for Pisi Linux
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
#!/usr/bin/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.export("PYTHON", "python3")
|
||||
autotools.configure("--disable-static \
|
||||
--libexecdir=/usr/lib \
|
||||
--sysconfdir=/etc \
|
||||
--enable-gtk-doc-html=no \
|
||||
--enable-gtk-doc")
|
||||
|
||||
pisitools.dosed("libtool"," -shared ", " -Wl,-O1,--as-needed -shared ")
|
||||
|
||||
def build():
|
||||
autotools.make()
|
||||
|
||||
def install():
|
||||
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
|
||||
|
||||
pisitools.dodoc("README","NEWS")
|
||||
@@ -0,0 +1,63 @@
|
||||
diff --git a/configure b/configure
|
||||
index af65be1..d915eea 100755
|
||||
--- a/configure
|
||||
+++ b/configure
|
||||
@@ -14653,10 +14653,10 @@ fi
|
||||
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtester2xunit dependencies" >&5
|
||||
$as_echo_n "checking for gtester2xunit dependencies... " >&6; }
|
||||
-if !($PYTHON -c "import libxslt, libxml2" 2> /dev/null); then
|
||||
+if !($PYTHON -c "import lxml" 2> /dev/null); then
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
||||
$as_echo "no" >&6; }
|
||||
- as_fn_error $? "You need to install python-libxslt1 and python-libxml2" "$LINENO" 5;
|
||||
+ as_fn_error $? "You need to install python-lxml" "$LINENO" 5;
|
||||
fi
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
||||
$as_echo "yes" >&6; }
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 41cb7db..e62c807 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -115,9 +115,9 @@ GTK_DOC_CHECK(1.0)
|
||||
|
||||
AC_PATH_PROG([PYTHON],[python])
|
||||
AC_MSG_CHECKING(for gtester2xunit dependencies)
|
||||
-if !($PYTHON -c "import libxslt, libxml2" 2> /dev/null); then
|
||||
+if !($PYTHON -c "import lxml" 2> /dev/null); then
|
||||
AC_MSG_RESULT([no])
|
||||
- AC_MSG_ERROR([You need to install python-libxslt1 and python-libxml2]);
|
||||
+ AC_MSG_ERROR([You need to install python-lxml]);
|
||||
fi
|
||||
AC_MSG_RESULT([yes])
|
||||
|
||||
diff --git a/tests/gtester2xunit.py b/tests/gtester2xunit.py
|
||||
index fbe3c66..861d541 100755
|
||||
--- a/tests/gtester2xunit.py
|
||||
+++ b/tests/gtester2xunit.py
|
||||
@@ -1,18 +1,17 @@
|
||||
#! /usr/bin/python
|
||||
from argparse import ArgumentParser
|
||||
-import libxslt
|
||||
-import libxml2
|
||||
import sys
|
||||
import os
|
||||
+from lxml import etree
|
||||
|
||||
XSL_TRANSFORM='/usr/share/gtester2xunit/gtester.xsl'
|
||||
|
||||
def transform_file(input_filename, output_filename, xsl_file):
|
||||
- gtester = libxml2.parseFile(xsl_file)
|
||||
- style = libxslt.parseStylesheetDoc(gtester)
|
||||
- doc = libxml2.parseFile(input_filename)
|
||||
- result = style.applyStylesheet(doc, None)
|
||||
- result.saveFormatFile(filename=output_filename, format=True)
|
||||
+ gtester = etree.parse(xsl_file)
|
||||
+ style = etree.XSLT(gtester)
|
||||
+ doc = etree.parse(input_filename)
|
||||
+ result = style(doc)
|
||||
+ result.write(filename=output_filename, format=True)
|
||||
|
||||
|
||||
def get_output_filename(input_filename):
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
From be5247b8dcb412a7172c1261151f1af812831d79 Mon Sep 17 00:00:00 2001
|
||||
From: Joshua Strobl <joshua@streambits.io>
|
||||
Date: Fri, 20 Sep 2019 12:59:26 +0300
|
||||
Subject: [PATCH 1/1] Drop -Werror from conf cflags
|
||||
|
||||
In GLib 2.62+, G_TYPE_INSTANCE_GET_PRIVATE is deprecated and affects macros like BAMF_APPLICATION_GET_PRIVATE.
|
||||
---
|
||||
configure.ac | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 41cb7db..7cc3b9d 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -155,7 +155,7 @@ AC_SUBST(COVERAGE_LDFLAGS)
|
||||
AM_PATH_GTK_3_0
|
||||
|
||||
dnl CFLAGS
|
||||
-CFLAGS="$CFLAGS -Wall -Werror -Wno-error=deprecated-declarations -Wempty-body -Wformat-security -Winit-self -Warray-bounds -Wimplicit-function-declaration -lm"
|
||||
+CFLAGS="$CFLAGS -Wall -Wno-error=deprecated-declarations -Wempty-body -Wformat-security -Winit-self -Warray-bounds -Wimplicit-function-declaration -lm"
|
||||
|
||||
AC_SUBST(BAMFDAEMON_CFLAGS)
|
||||
AC_SUBST(BAMFDAEMON_LIBS)
|
||||
--
|
||||
2.23.0
|
||||
|
||||
|
||||
@@ -0,0 +1,82 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>bamf</Name>
|
||||
<Homepage>https://launchpad.net/bamf</Homepage>
|
||||
<Packager>
|
||||
<Name>Ayhan Yalçınsoy</Name>
|
||||
<Email>ayhanyalcinsoy@pisilinux.org</Email>
|
||||
</Packager>
|
||||
<License>GPLv3+</License>
|
||||
<IsA>app:gui</IsA>
|
||||
<Summary>Application matching framework</Summary>
|
||||
<Description>Application matching framework</Description>
|
||||
<Archive sha1sum="b83a5464f22345394beb2479b943850f751eb9db" type="targz">https://launchpadlibrarian.net/396415087/bamf-0.5.4.tar.gz</Archive>
|
||||
<BuildDependencies>
|
||||
<Dependency>glib2-devel</Dependency>
|
||||
<Dependency>libwnck3-devel</Dependency>
|
||||
<Dependency>libX11-devel</Dependency>
|
||||
<Dependency>libgtop-devel</Dependency>
|
||||
<Dependency>gnome-common</Dependency>
|
||||
<Dependency>vala-devel</Dependency>
|
||||
<Dependency>gtk-doc</Dependency>
|
||||
<Dependency>libxslt-devel</Dependency>
|
||||
<Dependency>python-lxml</Dependency>
|
||||
<Dependency>python-six</Dependency>
|
||||
<Dependency>python3-devel</Dependency>
|
||||
<Dependency>gobject-introspection-devel</Dependency>
|
||||
</BuildDependencies>
|
||||
<Patches>
|
||||
<!--Patch>bamf-no-werror.patch</Patch-->
|
||||
<Patch>bamf-no-gtester_py3.patch</Patch>
|
||||
</Patches>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>bamf</Name>
|
||||
<RuntimeDependencies>
|
||||
<Dependency>gtk3</Dependency>
|
||||
<Dependency>glib2</Dependency>
|
||||
<Dependency>libX11</Dependency>
|
||||
<Dependency>libgtop</Dependency>
|
||||
<Dependency>libwnck3</Dependency>
|
||||
<Dependency>gdk-pixbuf</Dependency>
|
||||
<Dependency>startup-notification</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="library">/usr/lib/libbamf3*</Path>
|
||||
<Path fileType="library">/usr/lib/bamf</Path>
|
||||
<Path fileType="library">/usr/lib/girepository-1.0</Path>
|
||||
<Path fileType="data">/usr/share/doc</Path>
|
||||
<Path fileType="data">/usr/share/gtk-doc</Path>
|
||||
<Path fileType="data">/usr/share/dbus-1</Path>
|
||||
<Path fileType="data">/usr/share/gir-1.0</Path>
|
||||
<Path fileType="data">/usr/share/upstart</Path>
|
||||
<Path fileType="data">/usr/share/vala</Path>
|
||||
<Path fileType="data">/usr/lib/systemd/user/bamfdaemon.service</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>bamf-devel</Name>
|
||||
<RuntimeDependencies>
|
||||
<Dependency>glib2-devel</Dependency>
|
||||
<Dependency release="current">bamf</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="library">/usr/lib/pkgconfig</Path>
|
||||
<Path fileType="header">/usr/include</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="1">
|
||||
<Date>2020-02-13</Date>
|
||||
<Version>0.5.4</Version>
|
||||
<Comment>First release</Comment>
|
||||
<Name>Ayhan Yalçınsoy</Name>
|
||||
<Email>ayhanyalcinsoy@pisilinux.org</Email>
|
||||
</Update>
|
||||
</History>
|
||||
</PISI>
|
||||
Reference in New Issue
Block a user