svn commit: r438413 - in head/devel: . debugedit debugedit/files

Alexey Dokuchaev danfe at FreeBSD.org
Thu Apr 13 15:00:58 UTC 2017


On Wed, Apr 12, 2017 at 08:49:26PM +0000, Maxim Sobolev wrote:
> New Revision: 438413
> URL: https://svnweb.freebsd.org/changeset/ports/438413
> 
> Log:
>   Add debugedit - ELF file debug information extractor and editor.
>   
> ...
> +PORTVERSION=	20170411.1
> +#PORTREVISION=	1

Strange port version (2017.04.11.1 would look more consistent), and
polluting the Makefile with commented out useless lines is bad. :-)

> +USE_GITHUB=	yes
> +GH_ACCOUNT=	CoryXie
> +GH_TAGNAME=	b1e81ec
> +
> +USES=		gmake
> +
> +WRKSRC=		${WRKDIR}/DebugEdit-${GH_TAGNAME}

I presume misused USE_GITHUB was already fixed earlier.

> +	${INSTALL_MAN} ${WRKSRC}/README.txt ${STAGEDIR}${DOCSDIR}

INSTALL_MAN is not for docs, it's for manpages.  Also, when installing docs,
it's a good idea to OPTIONS_DEFINE+=DOCS and use {do|post}-install-DOCS-on
special helper target.

> --- /dev/null	00:00:00 1970	(empty, because file is newly added)
> +++ head/devel/debugedit/files/patch-Makefile	Wed Apr 12 20:49:26 2017	(r438413)
> @@ -0,0 +1,12 @@
> +
> +$FreeBSD$
> +
> +--- Makefile.orig	2017-04-11 06:09:46 UTC
> ++++ Makefile
> +@@ -1,5 +1,5 @@
> + CC?=gcc
> +-CFLAGS+=-lelf -lpopt -Wall
> ++CFLAGS+=-lelf -lpopt -Wall -I${LOCALBASE}/include -L${LOCALBASE}/lib

Have you tried to use USES+=localbase instead of patching this Makefile?

> --- /dev/null	00:00:00 1970	(empty, because file is newly added)
> +++ head/devel/debugedit/pkg-plist	Wed Apr 12 20:49:26 2017	(r438413)
> @@ -0,0 +1,2 @@
> +bin/debugedit
> +%%DOCSDIR%%/README.txt

We typically discourage two-line pkg-plist files.  This should've been:

PLIST_FILES=	bin/debugedit
PORTDOCS=	README.txt

./danfe


More information about the svn-ports-head mailing list