pkgsrc-WIP-changes archive

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

termbox: Simplify DISTNAME handling and misc cleanups



Module Name:	pkgsrc-wip
Committed By:	Leonardo Taccari <leot%NetBSD.org@localhost>
Pushed By:	leot
Date:		Sat Mar 23 00:01:38 2019 +0100
Changeset:	954e8567ee0b06f7d4faae0b550e8688bf0a02e8

Modified Files:
	termbox/Makefile
	termbox/distinfo

Log Message:
termbox: Simplify DISTNAME handling and misc cleanups

 - Just set DISTNAME and GITHUB_TAG (in that way GITHUB_PROJECT will be already
   properly initialized and there is no need to readjust PKGNAME and WRKSRC and
   to introduce DIST_SUBDIR)
 - USE_LANGUAGES is already c by default, avoid to reinitialize it
 - WAF_ENV is already handled by waf.mk
 - waf is actually a TOOL_DEPENDS, adjust it

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

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

diffstat:
 termbox/Makefile | 17 +++--------------
 termbox/distinfo |  8 ++++----
 2 files changed, 7 insertions(+), 18 deletions(-)

diffs:
diff --git a/termbox/Makefile b/termbox/Makefile
index f5d101e81f..5247063ea9 100644
--- a/termbox/Makefile
+++ b/termbox/Makefile
@@ -1,12 +1,9 @@
 # $NetBSD$
 
-GITHUB_PROJECT=	termbox
-GITHUB_TAG=	v1.1.2
-DISTNAME=	${GITHUB_TAG}
-PKGNAME=	termbox-${DISTNAME:S/v//}
+DISTNAME=	termbox-1.1.2
 CATEGORIES=	devel
 MASTER_SITES=	${MASTER_SITE_GITHUB:=nsf/}
-DIST_SUBDIR=	${GITHUB_PROJECT}
+GITHUB_TAG=	v${PKGVERSION_NOREV}
 
 MAINTAINER=	ng0%n0.is@localhost
 HOMEPAGE=	https://github.com/nsf/termbox/
@@ -15,15 +12,7 @@ LICENSE=	mit
 
 PYTHON_FOR_BUILD_ONLY=	yes
 
-USE_LANGUAGES=	c
-
-WRKSRC=		${WRKDIR}/${PKGNAME_NOREV}
-
-BUILD_DEPENDS+= waf>=1.8.4:../../devel/waf
-
-WAF_ENV=	CC=${CC:Q} PREFIX=${PREFIX:Q} \
-		CFLAGS=${CFLAGS:Q} \
-		LINKFLAGS=${LDFLAGS:Q} DESTDIR=${DESTDIR:Q}
+TOOL_DEPENDS+= waf>=1.8.4:../../devel/waf
 
 .include "../../devel/waf/waf.mk"
 .include "../../mk/bsd.pkg.mk"
diff --git a/termbox/distinfo b/termbox/distinfo
index d67a39f2ed..f0e27a2719 100644
--- a/termbox/distinfo
+++ b/termbox/distinfo
@@ -1,6 +1,6 @@
 $NetBSD$
 
-SHA1 (termbox/v1.1.2.tar.gz) = d6f5412e5101242223e414ed5d49085a6e6aa553
-RMD160 (termbox/v1.1.2.tar.gz) = ccd1b806173f7d38eafbbee9282707a0ecb9ee7f
-SHA512 (termbox/v1.1.2.tar.gz) = fcb240e9aa480a0cc738f0d01e60c39ef0f333f434c0d1f2d276d3d75edd351e694fd800e0b8dbadd12be686a4261551d10d475933197ef539cdb4dd70c153cb
-Size (termbox/v1.1.2.tar.gz) = 119673 bytes
+SHA1 (termbox-1.1.2.tar.gz) = d6f5412e5101242223e414ed5d49085a6e6aa553
+RMD160 (termbox-1.1.2.tar.gz) = ccd1b806173f7d38eafbbee9282707a0ecb9ee7f
+SHA512 (termbox-1.1.2.tar.gz) = fcb240e9aa480a0cc738f0d01e60c39ef0f333f434c0d1f2d276d3d75edd351e694fd800e0b8dbadd12be686a4261551d10d475933197ef539cdb4dd70c153cb
+Size (termbox-1.1.2.tar.gz) = 119673 bytes


Home | Main Index | Thread Index | Old Index