Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Dec 2015 01:37:21 +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: r403997 - in head/devel/dparser: . files
Message-ID:  <201512190137.tBJ1bL25005230@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Sat Dec 19 01:37:20 2015
New Revision: 403997
URL: https://svnweb.freebsd.org/changeset/ports/403997

Log:
  - Add LICENSE_FILE
  - Switch to options helpers
  - Regenerate patches with `make makepatch`

Modified:
  head/devel/dparser/Makefile
  head/devel/dparser/files/patch-Makefile
  head/devel/dparser/files/patch-arg.c

Modified: head/devel/dparser/Makefile
==============================================================================
--- head/devel/dparser/Makefile	Sat Dec 19 01:08:52 2015	(r403996)
+++ head/devel/dparser/Makefile	Sat Dec 19 01:37:20 2015	(r403997)
@@ -11,9 +11,9 @@ MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Simple but powerful tool for parsing
 
 LICENSE=	BSD3CLAUSE
+LICENSE_FILE=	${WRKSRC}/COPYRIGHT
 
-OPTIONS_DEFINE=	BOEHM DOCS
-BOEHM_DESC=	Boehm garbage collector support
+BROKEN_ia64=	does not build on ia64
 
 WRKSRC=		${WRKDIR}/d
 
@@ -26,20 +26,14 @@ PLIST_FILES=	bin/make_dparser include/dp
 		include/dparse_tree.h include/dsymtab.h lib/${LIBDPARSE} \
 		man/man1/make_dparser.1.gz
 
-.include <bsd.port.options.mk>
+OPTIONS_DEFINE=	BOEHM DOCS
+BOEHM_DESC=	Boehm garbage collector support
 
-.if ${PORT_OPTIONS:MBOEHM}
-LIB_DEPENDS+=	libgc.so:${PORTSDIR}/devel/boehm-gc
-MAKE_ARGS+=	D_USE_GC=1 \
-		GC_CFLAGS="-I${LOCALBASE}/include -L${LOCALBASE}/lib"
-LIBDPARSE=	libdparse_gc.a
-.else
-LIBDPARSE=	libdparse.a
-.endif
-
-.if ${ARCH} == "ia64"
-BROKEN=		Does not build on ia64
-.endif
+BOEHM_LIB_DEPENDS=	libgc.so:${PORTSDIR}/devel/boehm-gc
+BOEHM_MAKE_ARGS=	D_USE_GC=1 \
+			GC_CFLAGS="-I${LOCALBASE}/include -L${LOCALBASE}/lib"
+BOEHM_VARS=		LIBDPARSE=libdparse_gc.a
+BOEHM_VARS_OFF=		LIBDPARSE=libdparse.a
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/make_dparser ${STAGEDIR}${PREFIX}/bin
@@ -49,6 +43,8 @@ do-install:
 	${INSTALL_DATA} ${WRKSRC}/dparse_tree.h ${STAGEDIR}${PREFIX}/include
 	${INSTALL_DATA} ${WRKSRC}/dsymtab.h ${STAGEDIR}${PREFIX}/include
 	${INSTALL_DATA} ${WRKSRC}/${LIBDPARSE} ${STAGEDIR}${PREFIX}/lib
+
+do-install-DOCS-on:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 	${INSTALL_DATA} ${WRKSRC}/*.html ${STAGEDIR}${DOCSDIR}
 

Modified: head/devel/dparser/files/patch-Makefile
==============================================================================
--- head/devel/dparser/files/patch-Makefile	Sat Dec 19 01:08:52 2015	(r403996)
+++ head/devel/dparser/files/patch-Makefile	Sat Dec 19 01:37:20 2015	(r403997)
@@ -1,6 +1,6 @@
---- Makefile.orig	2013-04-02 10:00:17.000000000 +0200
-+++ Makefile	2013-04-02 10:01:34.000000000 +0200
-@@ -11,7 +11,7 @@
+--- Makefile.orig	2013-03-02 21:22:20 UTC
++++ Makefile
+@@ -11,7 +11,7 @@ MAJOR=1
  MINOR=30
  RELEASE=$(MAJOR).$(MINOR)
  
@@ -9,7 +9,7 @@
  
  ifndef PREFIX
  PREFIX=/usr/local
-@@ -38,7 +38,7 @@
+@@ -38,7 +38,7 @@ ifeq ($(ARCH),i686)
    ARCH = x86
  endif
  
@@ -18,7 +18,7 @@
    CFLAGS += -fPIC
  endif
  
-@@ -64,10 +64,10 @@
+@@ -64,10 +64,10 @@ ifdef D_USE_FREELISTS
  CFLAGS += -DUSE_FREELISTS
  endif
  
@@ -32,7 +32,7 @@
  CFLAGS += -DD_MAJOR_VERSION=$(MAJOR) -DD_MINOR_VERSION=$(MINOR) -DD_BUILD_VERSION=\"$(D_BUILD_VERSION)\"
  
  CFLAGS += -Wall
-@@ -94,7 +94,7 @@
+@@ -94,7 +94,7 @@ TEST_FILES = d/parser_tests d/baseline $
  PYTHON_FILES = d/python/Makefile d/python/*.py d/python/*.c d/python/*.h d/python/*.i d/python/README d/python/*.html d/python/contrib/d* d/python/tests/*.py
  VERILOG_FILES = d/verilog/Makefile d/verilog/verilog.g d/verilog/README d/verilog/ambig.c \
  d/verilog/main.c d/verilog/vparse.c d/verilog/vparse.h d/verilog/verilog_tests
@@ -41,7 +41,7 @@
  d/grammar.g d/sample.g d/my.g 
  
  LIB_SRCS = arg.c parse.c scan.c symtab.c util.c read_binary.c dparse_tree.c
-@@ -141,7 +141,7 @@
+@@ -141,7 +141,7 @@ endif
  
  ALL_SRCS = $(MAKE_PARSER_SRCS) $(BASE_SAMPLE_PARSER_SRCS) $(LIB_SRCS) $(MK_LIB_SRCS)
  

Modified: head/devel/dparser/files/patch-arg.c
==============================================================================
--- head/devel/dparser/files/patch-arg.c	Sat Dec 19 01:08:52 2015	(r403996)
+++ head/devel/dparser/files/patch-arg.c	Sat Dec 19 01:37:20 2015	(r403997)
@@ -1,6 +1,6 @@
---- arg.c.orig	Fri Nov  7 03:03:52 2003
-+++ arg.c	Mon Feb  2 18:35:43 2004
-@@ -40,7 +40,7 @@
+--- arg.c.orig	2013-01-23 02:14:58 UTC
++++ arg.c
+@@ -40,7 +40,7 @@ process_arg(ArgumentState *arg_state, in
            *(double *)desc[i].location = atof(arg);
            break;
          case 'L':



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