pkgsrc-Changes archive

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

CVS commit: pkgsrc/archivers/arqiver



Module Name:    pkgsrc
Committed By:   gutteridge
Date:           Fri Feb 14 04:58:54 UTC 2020

Modified Files:
        pkgsrc/archivers/arqiver: Makefile

Log Message:
arqiver: first pass at correcting dependency issues

This software has a lot of hard-coded references to external binaries,
with sometimes incorrect assumptions. Deal with these through the SUBST
framework for now. (Any mistakes here are solely mine.)


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 pkgsrc/archivers/arqiver/Makefile

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

Modified files:

Index: pkgsrc/archivers/arqiver/Makefile
diff -u pkgsrc/archivers/arqiver/Makefile:1.1 pkgsrc/archivers/arqiver/Makefile:1.2
--- pkgsrc/archivers/arqiver/Makefile:1.1       Thu Feb 13 03:00:16 2020
+++ pkgsrc/archivers/arqiver/Makefile   Fri Feb 14 04:58:54 2020
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.1 2020/02/13 03:00:16 gutteridge Exp $
+# $NetBSD: Makefile,v 1.2 2020/02/14 04:58:54 gutteridge Exp $
 
 DISTNAME=      Arqiver-V0.3.2
 PKGNAME=       arqiver-0.3.2
+PKGREVISION=   1
 CATEGORIES=    archivers
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=tsujan/}
 GITHUB_TAG=    V${PKGVERSION_NOREV}
@@ -13,15 +14,31 @@ LICENSE=    gnu-gpl-v3
 
 WRKSRC=                ${WRKDIR}/Arqiver-0.3.2
 USE_LANGUAGES= c++
-USE_TOOLS+=    pkg-config
+USE_TOOLS+=    pkg-config bsdtar:run gzip:run 7za:run
 
 INSTALL_MAKE_FLAGS+=   INSTALL_ROOT=${DESTDIR}
 
+SUBST_CLASSES+=                prefix
+SUBST_MESSAGE.prefix=  Fixing paths.
+SUBST_STAGE.prefix=    pre-configure
+SUBST_FILES.prefix=    backends.cpp
+SUBST_SED.prefix=      -e 's,"tar","${TOOLS_PATH.bsdtar}",g'
+SUBST_SED.prefix+=     -e 's,"bsdtar","${TOOLS_PATH.bsdtar}",g'
+SUBST_SED.prefix+=     -e 's,"gzip","${TOOLS_PATH.gzip}",g'
+SUBST_SED.prefix+=     -e 's,"7z","${TOOLS_PATH.7za}",g'
+# (Can't include closing double-quotes below, as there are varying
+# character sequences following the command references.)
+SUBST_SED.prefix+=     -e 's,"xdg-open,"${PREFIX}/bin/xdg-open,g'
+
 do-configure:
        cd ${WRKSRC} && \
        ${SETENV} ${CONFIGURE_ENV} \
        ${QTDIR}/bin/qmake -o Makefile PREFIX=${PREFIX}
 
+# Either needs misc/xdg-utils for xdg-open or devel/glib2 for gio.
+# Upstream prefers glib2, but xdg-utils is a lot smaller, so use
+# that for now.
+DEPENDS+=      xdg-utils-[0-9]*:../../misc/xdg-utils
 TOOL_DEPENDS+= qt5-qttools-[0-9]*:../../x11/qt5-qttools
 
 .include "../../x11/qt5-qtbase/buildlink3.mk"



Home | Main Index | Thread Index | Old Index