pkgsrc-WIP-changes archive

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

mackerel-agent-plugins: USE go-package.mk



Module Name:	pkgsrc-wip
Committed By:	miwarin <miwarin%gmail.com@localhost>
Pushed By:	miwarin
Date:		Mon Jan 29 08:54:53 2018 +0900
Changeset:	a202dfaff0a6bfe7376b4ec34e6dd709ec4ecce6

Modified Files:
	mackerel-agent-plugins/Makefile

Log Message:
mackerel-agent-plugins: USE go-package.mk

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

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

diffstat:
 mackerel-agent-plugins/Makefile | 16 ++--------------
 1 file changed, 2 insertions(+), 14 deletions(-)

diffs:
diff --git a/mackerel-agent-plugins/Makefile b/mackerel-agent-plugins/Makefile
index 481a7ffb32..4ebca1deb3 100755
--- a/mackerel-agent-plugins/Makefile
+++ b/mackerel-agent-plugins/Makefile
@@ -12,26 +12,14 @@ LICENSE=	apache-2.0
 
 EXTRACT_USING=	bsdtar
 GO_SRCPATH=	github.com/mackerelio/${DISTNAME}
-WRKSRC=		${WRKDIR}/src/${GO_SRCPATH}
 GOPATH=		${WRKDIR}
-EXTRACT_DIR=	${WRKDIR}/src/github.com/mackerelio
 USE_TOOLS+=	gmake perl
-BUILD_DEPENDS+=	go-${GO_VERSION}*:../../lang/go
-
-INSTALLATION_DIRS+=	bin
-
-ARCH=	`${UNAME} -m`
-
-pre-extract:
-	cd ${WRKDIR} && ${MKDIR} ${EXTRACT_DIR}
 
 do-build:
 	cd ${WRKSRC} && GOPATH=${GOPATH} PATH=${PATH}:${GOPATH}/bin ${MAKE_PROGRAM} build
 
-do-test:
-	cd ${WRKSRC} && GOPATH=${GOPATH} PATH=${PATH}:${GOPATH}/bin ${MAKE_PROGRAM} test
-
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/build/${LOWER_OPSYS}/${ARCH}/* ${DESTDIR}${PREFIX}/bin
+	${INSTALL_PROGRAM} ${WRKSRC}/build/${LOWER_OPSYS}/${GOARCH}/* ${DESTDIR}${PREFIX}/bin
 
+.include "../../lang/go/go-package.mk"
 .include "../../mk/bsd.pkg.mk"


Home | Main Index | Thread Index | Old Index