pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

qmediamanager: Add SUBST to patch prefix, clean up



Module Name:	pkgsrc-wip
Committed By:	Jason W. Bacon <bacon4000%gmail.com@localhost>
Pushed By:	outpaddling
Date:		Wed Jun 14 05:50:03 2023 -0500
Changeset:	5edd9ff6979c77db81e559a39cb2addd6a3fb8cf

Modified Files:
	qmediamanager/Makefile

Log Message:
qmediamanager: Add SUBST to patch prefix, clean up

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=5edd9ff6979c77db81e559a39cb2addd6a3fb8cf

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 qmediamanager/Makefile | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diffs:
diff --git a/qmediamanager/Makefile b/qmediamanager/Makefile
index 5b7bc034eb..e6433cbf80 100644
--- a/qmediamanager/Makefile
+++ b/qmediamanager/Makefile
@@ -8,7 +8,7 @@
 # Unknown tool: USE_TOOLS=	gl
 
 DISTNAME=	qmediamanager-0.1.0.4
-CATEGORIES=	deskutils
+CATEGORIES=	sysutils
 MASTER_SITES=	${MASTER_SITE_GITHUB:=outpaddling/}
 GITHUB_TAG=	43beed25031d0839739c589780455f258e331729
 
@@ -22,6 +22,11 @@ DEPENDS+=	auto-admin>=0.7.16:../../sysutils/auto-admin
 DEPENDS+=	rxvt-unicode>0:../../x11/rxvt-unicode
 DEPENDS+=	qt6-qttools>0:../../devel/qt6-qttools
 
+SUBST_CLASSES+=		prefix
+SUBST_STAGE.prefix=	pre-configure
+SUBST_SED.prefix=	-e 's|/usr/local|${PREFIX}|g'
+SUBST_FILES.prefix=	misc.h
+
 USE_LANGUAGES=	c c++
 
 INSTALLATION_DIRS=	bin man/man1
@@ -31,7 +36,7 @@ do-configure:
 
 do-install:
 	${INSTALL} -c ${WRKSRC}/qmediamanager ${DESTDIR}${PREFIX}/bin
-	${INSTALL} -c ${WRKSRC}/Man/qmediamanager.1 ${DESTDIR}${PREFIX}/man/man1
+	${INSTALL} -c ${WRKSRC}/Man/qmediamanager.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
 
 .include "../../devel/libxtend/buildlink3.mk"
 .include "../../x11/qt6-qtbase/buildlink3.mk"


Home | Main Index | Thread Index | Old Index