Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Nov 2019 21:23:41 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r518606 - in head/devel/avra: . files
Message-ID:  <201911282123.xASLNfCq098725@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Thu Nov 28 21:23:40 2019
New Revision: 518606
URL: https://svnweb.freebsd.org/changeset/ports/518606

Log:
  - Update to 1.4.1
  - Add testing support
  - Update WWW

Added:
  head/devel/avra/files/
  head/devel/avra/files/patch-Makefile   (contents, props changed)
  head/devel/avra/files/patch-src_makefiles_Makefile.linux   (contents, props changed)
  head/devel/avra/files/patch-tests_regression_runtests.sh   (contents, props changed)
Modified:
  head/devel/avra/Makefile
  head/devel/avra/distinfo
  head/devel/avra/pkg-descr

Modified: head/devel/avra/Makefile
==============================================================================
--- head/devel/avra/Makefile	Thu Nov 28 20:17:47 2019	(r518605)
+++ head/devel/avra/Makefile	Thu Nov 28 21:23:40 2019	(r518606)
@@ -2,10 +2,8 @@
 # $FreeBSD$
 
 PORTNAME=	avra
-PORTVERSION=	1.3.0
-PORTREVISION=	1
+PORTVERSION=	1.4.1
 CATEGORIES=	devel
-MASTER_SITES=	SF/${PORTNAME}/${PORTVERSION}
 
 MAINTAINER=	amdmi3@FreeBSD.org
 COMMENT=	Macro Assembler for Atmel AVR microcontrollers
@@ -13,27 +11,26 @@ COMMENT=	Macro Assembler for Atmel AVR microcontroller
 LICENSE=	GPLv2+
 LICENSE_FILE=	${WRKSRC}/COPYING
 
-USES=		gmake tar:bzip2
-MAKEFILE=	${BUILD_WRKSRC}/makefiles/Makefile.linux
-MAKE_ARGS=	CC="${CC}" LD="${CC}" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
+USE_GITHUB=	yes
+GH_ACCOUNT=	hsoft
 
-BUILD_WRKSRC=	${WRKSRC}/src
+USES=		gmake
+MAKE_ENV=	TARGET_INCLUDE_PATH="${DATADIR}/includes"
+TEST_TARGET=	check
 
-PORTDOCS=	*
+PORTDOCS=	AUTHORS CHANGELOG.md README.md TODO USAGE.md
 PORTEXAMPLES=	*
 PORTDATA=	*
 PLIST_FILES=	bin/avra
 
 OPTIONS_DEFINE=	DOCS EXAMPLES
 
-do-install:
-	${INSTALL_PROGRAM} ${BUILD_WRKSRC}/avra ${STAGEDIR}${PREFIX}/bin
-	@${MKDIR} ${STAGEDIR}${DATADIR}
-	@(cd ${WRKSRC} && ${COPYTREE_SHARE} includes ${STAGEDIR}${DATADIR})
+post-install:
+	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/avra
 
 do-install-DOCS-on:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
-	@(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
+	cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}/
 
 do-install-EXAMPLES-on:
 	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}

Modified: head/devel/avra/distinfo
==============================================================================
--- head/devel/avra/distinfo	Thu Nov 28 20:17:47 2019	(r518605)
+++ head/devel/avra/distinfo	Thu Nov 28 21:23:40 2019	(r518606)
@@ -1,2 +1,3 @@
-SHA256 (avra-1.3.0.tar.bz2) = a62cbf8662caf9cc4e75da6c634efce402778639202a65eb2d149002c1049712
-SIZE (avra-1.3.0.tar.bz2) = 314903
+TIMESTAMP = 1574960402
+SHA256 (hsoft-avra-1.4.1_GH0.tar.gz) = 0b92f3a2709d72b903fd95afee2c985ed3847440ad12cd651738afffa14ec69e
+SIZE (hsoft-avra-1.4.1_GH0.tar.gz) = 386055

Added: head/devel/avra/files/patch-Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/avra/files/patch-Makefile	Thu Nov 28 21:23:40 2019	(r518606)
@@ -0,0 +1,13 @@
+--- Makefile.orig	2019-04-24 20:15:58 UTC
++++ Makefile
+@@ -11,8 +11,8 @@ DISTFILES = src \
+ 	COPYING \
+ 	Makefile \
+ 
+-PREFIX = /usr/local
+-TARGET_INCLUDE_PATH = $(PREFIX)/include/avr
++PREFIX ?= /usr/local
++TARGET_INCLUDE_PATH ?= $(PREFIX)/include/avr
+ 
+ CDEFS = -DDEFAULT_INCLUDE_PATH='"$(TARGET_INCLUDE_PATH)"' \
+ 	-DVERSION='"$(VERSION)"'

Added: head/devel/avra/files/patch-src_makefiles_Makefile.linux
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/avra/files/patch-src_makefiles_Makefile.linux	Thu Nov 28 21:23:40 2019	(r518606)
@@ -0,0 +1,23 @@
+--- src/makefiles/Makefile.linux.orig	2019-04-24 20:15:58 UTC
++++ src/makefiles/Makefile.linux
+@@ -1,7 +1,7 @@
+-CC = gcc
+-LD = gcc -static
+-CFLAGS = -Wall -O3 $(CDEFS)
+-LDFLAGS = -s
++CC ?= gcc
++CFLAGS ?= -Wall -O3
++CFLAGS += $(CDEFS)
++LDFLAGS ?= -s
+ 
+ SOURCES = avra.c \
+ 	device.c \
+@@ -19,7 +19,7 @@ SOURCES = avra.c \
+ OBJECTS = $(SOURCES:.c=.o)
+ 
+ avra: $(OBJECTS)
+-	$(LD) -o $@ $(OBJECTS) $(LDFLAGS)
++	$(CC) -o $@ $(OBJECTS) $(LDFLAGS)
+ 
+ clean:
+ 	rm -f avra *.o *.p *~

Added: head/devel/avra/files/patch-tests_regression_runtests.sh
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/avra/files/patch-tests_regression_runtests.sh	Thu Nov 28 21:23:40 2019	(r518606)
@@ -0,0 +1,8 @@
+--- tests/regression/runtests.sh.orig	2019-04-24 20:15:58 UTC
++++ tests/regression/runtests.sh
+@@ -1,4 +1,4 @@
+-#!/bin/bash
++#!/bin/sh
+ 
+ AVRA_BIN="../../src/avra"
+ 

Modified: head/devel/avra/pkg-descr
==============================================================================
--- head/devel/avra/pkg-descr	Thu Nov 28 20:17:47 2019	(r518605)
+++ head/devel/avra/pkg-descr	Thu Nov 28 21:23:40 2019	(r518606)
@@ -1,4 +1,4 @@
 avra is an GNU GPL'ed assembler for the Atmel AVR microcontrollers.
 See the file COPYING for more information regarding the license.
 
-WWW: http://avra.sourceforge.net/
+WWW: https://github.com/hsoft/avra



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201911282123.xASLNfCq098725>