summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sysutils/bamf/Makefile20
-rw-r--r--sysutils/bamf/distinfo6
-rw-r--r--sysutils/bamf/files/patch-configure21
-rw-r--r--sysutils/bamf/files/patch-tests_gtester2xunit.py27
4 files changed, 57 insertions, 17 deletions
diff --git a/sysutils/bamf/Makefile b/sysutils/bamf/Makefile
index 74e8d060cc45..ee6938fddb79 100644
--- a/sysutils/bamf/Makefile
+++ b/sysutils/bamf/Makefile
@@ -2,27 +2,24 @@
# $FreeBSD$
PORTNAME= bamf
-PORTVERSION= 0.5.3
-PORTREVISION= 2
+PORTVERSION= 0.5.4
CATEGORIES= sysutils
MASTER_SITES= https://launchpadlibrarian.net/280921055/ \
https://launchpad.net/${PORTNAME}/${PORTVERSION:R}/${PORTVERSION}/+download/
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= duchateau.olivier@gmail.com
COMMENT= BAMF Application Matching Framework
LICENSE= LGPL3
LICENSE_FILE= ${WRKSRC}/COPYING.LGPL
BUILD_DEPENDS= vapigen:lang/vala \
- ${PYTHON_PKGNAMEPREFIX}libxml2>=2.8.0:textproc/py-libxml2@${PY_FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}libxslt>=1.1.28:textproc/py-libxslt@${PY_FLAVOR}
+ ${PYTHON_PKGNAMEPREFIX}lxml>=4.4.2:devel/py-lxml@${PY_FLAVOR}
LIB_DEPENDS= libgtop-2.0.so:devel/libgtop \
- libdbus-glib-1.so:devel/dbus-glib \
libstartup-notification-1.so:x11/startup-notification
USES= gettext-runtime gmake gnome libtool pathfix pkgconfig \
- python:2.7 xorg
+ python:3.5+,build xorg
GNU_CONFIGURE= yes
USE_GNOME= gtk30 glib20 introspection:build libwnck3 cairo gdkpixbuf2
USE_XORG= x11
@@ -30,11 +27,14 @@ INSTALL_TARGET= install-strip
CONFIGURE_ARGS+=--disable-headless-tests \
--disable-gtktest \
+ --disable-gcov \
--disable-gtk-doc-html \
- --without-html-dir
+ --without-html-dir \
+ --enable-export-actions-menu=no \
+ --enable-introspection=yes
post-patch:
- ${FIND} ${WRKSRC} -type f -name 'Makefile.in' \
- | ${XARGS} ${REINPLACE_CMD} -e 's| -Wl,-Bsymbolic-functions||'
+ ${REINPLACE_CMD} -e 's| -Wl,-Bsymbolic-functions||' \
+ ${WRKSRC}/src/Makefile.in
.include <bsd.port.mk>
diff --git a/sysutils/bamf/distinfo b/sysutils/bamf/distinfo
index 26c942801091..dd62829c8271 100644
--- a/sysutils/bamf/distinfo
+++ b/sysutils/bamf/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1472504601
-SHA256 (bamf-0.5.3.tar.gz) = 340d7b5a463afcd33135ae73a7e4cf6a93a4daaf6f72b70abc09dc66d18a3b14
-SIZE (bamf-0.5.3.tar.gz) = 633666
+TIMESTAMP = 1579354448
+SHA256 (bamf-0.5.4.tar.gz) = 5bb87a5bf46ab1fc9a229a851c0ee4f610d943716a7c83d318f6a8f50d76beb3
+SIZE (bamf-0.5.4.tar.gz) = 638756
diff --git a/sysutils/bamf/files/patch-configure b/sysutils/bamf/files/patch-configure
index ce89b2311b6f..eaea4dd11aec 100644
--- a/sysutils/bamf/files/patch-configure
+++ b/sysutils/bamf/files/patch-configure
@@ -1,11 +1,24 @@
---- configure.orig 2016-08-25 15:18:48 UTC
+--- configure.orig 2018-11-07 22:39:51 UTC
+++ configure
-@@ -15233,7 +15233,7 @@ rm -f core conftest.err conftest.$ac_obj
+@@ -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; }
+@@ -15374,7 +15374,7 @@ rm -f core conftest.err conftest.$ac_objext \
rm -f conf.gtktest
--CFLAGS="$CFLAGS -Wall -Werror -Wempty-body -Wformat-security -Winit-self -Warray-bounds -Wimplicit-function-declaration -lm"
-+CFLAGS="$CFLAGS -Wall -Wformat-security -Winit-self -Wimplicit-function-declaration"
+-CFLAGS="$CFLAGS -Wall -Werror -Wno-error=deprecated-declarations -Wempty-body -Wformat-security -Winit-self -Warray-bounds -Wimplicit-function-declaration -lm"
++CFLAGS="$CFLAGS -Wall -Winit-self -Warray-bounds -Wimplicit-function-declaration"
diff --git a/sysutils/bamf/files/patch-tests_gtester2xunit.py b/sysutils/bamf/files/patch-tests_gtester2xunit.py
new file mode 100644
index 000000000000..585123a4e699
--- /dev/null
+++ b/sysutils/bamf/files/patch-tests_gtester2xunit.py
@@ -0,0 +1,27 @@
+--- tests/gtester2xunit.py.orig 2018-11-07 22:39:11 UTC
++++ 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):