Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Feb 2023 13:13:01 GMT
From:      Gleb Popov <arrowd@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 05305e7571b2 - main - devel/appstream: Point to /usr/local for metainfo.
Message-ID:  <202302131313.31DDD1Qm080590@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by arrowd:

URL: https://cgit.FreeBSD.org/ports/commit/?id=05305e7571b27f3513a00105e281c3e64992d2a6

commit 05305e7571b27f3513a00105e281c3e64992d2a6
Author:     Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2023-02-13 13:11:22 +0000
Commit:     Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2023-02-13 13:12:43 +0000

    devel/appstream: Point to /usr/local for metainfo.
    
    AppStream is hardcoded to look for package metainto in /usr/share. With this
    patch the "appstreamcli search ..." command starts showing proper results.
    
    Sponsored by:   Serenity Cybersecurity, LLC
---
 devel/appstream-qt/Makefile | 1 +
 devel/appstream/Makefile    | 9 ++++++++-
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/devel/appstream-qt/Makefile b/devel/appstream-qt/Makefile
index 69f354e4a134..0e787e767259 100644
--- a/devel/appstream-qt/Makefile
+++ b/devel/appstream-qt/Makefile
@@ -1,3 +1,4 @@
+PORTREVISION=	0
 PKGNAMESUFFIX=	Qt
 
 COMMENT?=	Qt bindings to AppStream
diff --git a/devel/appstream/Makefile b/devel/appstream/Makefile
index f4b7c37c3a49..b2107808fcd3 100644
--- a/devel/appstream/Makefile
+++ b/devel/appstream/Makefile
@@ -3,6 +3,7 @@
 
 PORTNAME?=	AppStream
 DISTVERSION=	0.16.0
+PORTREVISION?=	1
 CATEGORIES=	devel
 MASTER_SITES=	https://www.freedesktop.org/software/${PORTNAME:tl}/releases/
 
@@ -34,6 +35,12 @@ MESON_ARGS+=	-Dstemming=true \
 		-Dvapi=true \
 		-Dapidocs=false \
 		-Dinstall-docs=false \
-		-Dsystemd=false \
+		-Dsystemd=false
+
+post-patch:
+	${REINPLACE_CMD} \
+		-e 's|APPLICATIONS_DIR = "/usr/share/applications"|APPLICATIONS_DIR = "${LOCALBASE}/share/applications"|' \
+		-e 's|METAINFO_DIR = "/usr/share/metainfo"|METAINFO_DIR = "${LOCALBASE}/share/metainfo"|' \
+		${WRKSRC}/src/as-pool.c
 
 .include <bsd.port.mk>


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202302131313.31DDD1Qm080590>