pkgsrc-WIP-changes archive

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

go-procfs: fix script launcher bash and python prefix



Module Name:	pkgsrc-wip
Committed By:	K.I.A Derouiche <kamel.derouiche%gmail.com@localhost>
Pushed By:	jihbed
Date:		Mon Jan 18 23:51:44 2021 +0100
Changeset:	e140fba07c7adf1f0c2d2c3db8291c0ea7b5c9a0

Modified Files:
	go-procfs/Makefile

Log Message:
go-procfs: fix script launcher bash and python prefix

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

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

diffstat:
 go-procfs/Makefile | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diffs:
diff --git a/go-procfs/Makefile b/go-procfs/Makefile
index 86ea1ec2fa..227273c95f 100644
--- a/go-procfs/Makefile
+++ b/go-procfs/Makefile
@@ -14,7 +14,19 @@ LICENSE=	apache-2.0
 GO_DIST_BASE=	${GITHUB_PROJECT}-${PKGVERSION_NOREV}
 GO_SRCPATH=	github.com/prometheus/procfs
 
+USE_TOOLS+=             bash:run
+
+REPLACE_BASH+=	ttar
+
+SUBST_CLASSES+=		prefix
+SUBST_FILES.prefix+=	ttar
+SUBST_STAGE.prefix=	pre-configure
+SUBST_VARS.prefix=	PREFIX
+SUBST_SED.prefix+=	-e 's,/usr/bin/env python,${PREFIX}/bin/python${PYVERSSUFFIX},g'
+SUBST_MESSAGE.paths=	Fixing header search paths.
+
 .include "../../devel/go-sync/buildlink3.mk"
 .include "../../devel/go-sys/buildlink3.mk"
 .include "../../lang/go/go-package.mk"
+.include "../../lang/python/application.mk"
 .include "../../mk/bsd.pkg.mk"


Home | Main Index | Thread Index | Old Index