Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Jul 2013 14:22:25 +0000 (UTC)
From:      John Marino <marino@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r323390 - in head/textproc: . adabrowse adabrowse/files
Message-ID:  <201307211422.r6LEMP3S047414@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marino
Date: Sun Jul 21 14:22:24 2013
New Revision: 323390
URL: http://svnweb.freebsd.org/changeset/ports/323390

Log:
  Add new port: textproc/adabrowse
  
  Adabrowse is an Ada to HTML generator typically used to generate
  documentation.  It is a dependency for some Ada ports documentation
  options, such as the coming upgrade for security/libsparkcrypto port.
  
  Approved by:	bapt (mentor)

Added:
  head/textproc/adabrowse/
  head/textproc/adabrowse/Makefile   (contents, props changed)
  head/textproc/adabrowse/distinfo   (contents, props changed)
  head/textproc/adabrowse/files/
  head/textproc/adabrowse/files/patch-Makefile   (contents, props changed)
  head/textproc/adabrowse/pkg-descr   (contents, props changed)
  head/textproc/adabrowse/pkg-plist   (contents, props changed)
Modified:
  head/textproc/Makefile

Modified: head/textproc/Makefile
==============================================================================
--- head/textproc/Makefile	Sun Jul 21 14:17:04 2013	(r323389)
+++ head/textproc/Makefile	Sun Jul 21 14:22:24 2013	(r323390)
@@ -9,6 +9,7 @@
     SUBDIR += R-cran-stringr
     SUBDIR += R-cran-xtable
     SUBDIR += ack
+    SUBDIR += adabrowse
     SUBDIR += add-css-links
     SUBDIR += af-aspell
     SUBDIR += aft

Added: head/textproc/adabrowse/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/textproc/adabrowse/Makefile	Sun Jul 21 14:22:24 2013	(r323390)
@@ -0,0 +1,26 @@
+# Created by: John Marino <draco@marino.st>
+# $FreeBSD$
+
+PORTNAME=	adabrowse
+PORTVERSION=	4.0.3
+CATEGORIES=	textproc
+MASTER_SITES=	http://home.datacomm.ch/t_wolf/tw/ada95/adabrowse/
+DISTNAME=	${PORTNAME}_${PORTVERSION}_src
+
+MAINTAINER=	draco@marino.st
+COMMENT=	HTML generator for Ada 95 library unit specifications
+
+BUILD_DEPENDS=	asis>=2011:${PORTSDIR}/lang/asis \
+		gnat_util>=2013:${PORTSDIR}/lang/gnat_util
+
+LICENSE=	GPLv2
+
+USES=		ada gmake
+WRKSRC=		${WRKDIR}/${PORTNAME}_${PORTVERSION}
+MAKE_ENV=	ADA_INCLUDE_PATH=${LOCALBASE}/lib/asis
+MAKE_JOBS_UNSAFE=yes
+
+do-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/adabrowse ${PREFIX}/bin/adabrowse
+
+.include <bsd.port.mk>

Added: head/textproc/adabrowse/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/textproc/adabrowse/distinfo	Sun Jul 21 14:22:24 2013	(r323390)
@@ -0,0 +1,2 @@
+SHA256 (adabrowse_4.0.3_src.tar.gz) = 4567c66d0d3a75cc9e4938100cc5e51f96901951dc57498d18da45d14f42794c
+SIZE (adabrowse_4.0.3_src.tar.gz) = 331990

Added: head/textproc/adabrowse/files/patch-Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/textproc/adabrowse/files/patch-Makefile	Sun Jul 21 14:22:24 2013	(r323390)
@@ -0,0 +1,129 @@
+--- Makefile.orig	2005-04-28 20:10:20.000000000 +0000
++++ Makefile
+@@ -71,7 +71,7 @@
+ # it has to work with the ancient GNU make 3.77 (distributed with GNAT 3.15p).
+ 
+ GCC_OPTIONS = -O2
+-LD_OPTIONS  = -lasis
++LD_OPTIONS  = -L$(PREFIX)/lib/asis -lasis -L$(PREFIX)/lib/gnat_util -lgnat_util
+ 
+ host := $(shell gcc -dumpmachine)
+ 
+@@ -79,23 +79,10 @@ RM        := rm -f
+ CP        := cp
+ ADABROWSE := adabrowse
+ NASTY     := nasty
+-GET_GCC   := get_gcc
+ EXE       :=
+ CONFIGURE := adconf
+ PATH_SEP  := :
+ 
+-ifeq "$(findstring mingw32, $(host))" "mingw32"
+-   # Assume we're on Windows
+-   RM        := cmd.exe /c del
+-   CP        := cmd.exe /c copy
+-   ADABROWSE := adabrowse.exe
+-   NASTY     := nasty.exe
+-   GET_GCC   := get_gcc.exe
+-   CONFIGURE := adconf.exe
+-   EXE       := .exe
+-   PATH_SEP  := ;
+-endif
+-
+ # GNAT-specific gcc options: enable all warnings, and style checking.
+ # The style checking flags are nearly as plain "-gnaty", but do not
+ # check comment format, and do not require explicit specs for all
+@@ -104,9 +91,6 @@ endif
+ 
+ GNAT_OPTIONS := -gnatwa -gnaty3abefhiklmprt
+ 
+-GET_GCC_GEN  = get_gcc.o get_gcc.ali
+-GET_GCC_FULL = $(GET_GCC_GEN) get_gcc.txt get_gcc.use
+-
+ ifdef GNATSRC
+ 
+ INTERNAL_GNAT_SRC  := $(subst \,/,$(subst \\,/,$(GNATSRC)))
+@@ -201,14 +185,14 @@ endif
+ 
+ all: ./config/$(CONFIGURE) run-conf
+ 	$(MAKE) $(ADABROWSE) \
+-	ADABROWSE_GCC_LIB=$(dir $(subst \,/,$(shell $(shell ./get_gcc -gcc get_gcc.use) -print-libgcc-file-name)))adainclude \
++	ADABROWSE_GCC_LIB=$(dir $(subst \,/,$(shell ada -print-libgcc-file-name)))adainclude \
+ 	ADABROWSE_GNATSRC=$(INTERNAL_GNAT_SRC)
+ 
+ # Configuration stuff. We build an executable adconf, which then figures out
+ # from its parameters and by trying to compile a certain file whether or not
+ # we do have project manager support.
+ 
+-./config/$(CONFIGURE): get_gcc.use ./config/adconf.adb
++./config/$(CONFIGURE): ./config/adconf.adb
+ 	cd ./config; gnatmake -q -I.. adconf
+ 
+ # If adconf is called with two argument only (i.e., GNATSRC is not set), it
+@@ -223,39 +207,13 @@ all: ./config/$(CONFIGURE) run-conf
+ 
+ run-conf:
+ 	cd ./config; \
+-	./$(CONFIGURE) $(shell ./get_gcc -gcc get_gcc.use) \
++	./$(CONFIGURE) ada \
+ 	               $(ASIS_DIR) \
+ 	               $(INTERNAL_GNAT_SRC) \
+-	               $(dir $(subst \,/,$(shell $(shell ./get_gcc -gcc get_gcc.use) -print-libgcc-file-name)))adainclude
++	               $(dir $(subst \,/,$(shell ada -print-libgcc-file-name)))adainclude
+ 	-cd ./config; $(CP) ad-projects-impl.ads ..
+ 	-cd ./config; $(CP) ad-projects-impl_yes-get_parent.adb ..
+ 
+-# All this 'get_gcc' stuff here is GNAT specific: we try to dynamically
+-# figure out the name of the gcc used by GNAT. On some systems, it
+-# appears that this name is "gnatgcc", not "gcc"!
+-
+-get_gcc.o :
+-	gnatmake -q -c -f get_gcc.adb
+-
+-get_gcc.ali:
+-	gnatmake -q -c -f get_gcc.adb
+-
+-$(GET_GCC): get_gcc.o get_gcc.ali get_gcc.adb
+-	gnatmake -q get_gcc
+-
+-# Note: the dependency below first ensures that all the files we're
+-# going to delete in the rm command actually exist. This is a work-
+-# around for Win 2k, where make stops because cmd.exe /c del returns
+-# a failure exit code because some files may not exist. However, they
+-# must not exist when we run gnatmake, or we won't have the desired
+-# output in get_gcc.err. (The trick is that the first line in that
+-# file will be the compile command gnatmake uses for get_gcc.adb,
+-# which will start with the compiler name.)
+-
+-get_gcc.use: $(GET_GCC)
+-	$(RM) $(GET_GCC) $(GET_GCC_GEN)
+-	gnatmake get_gcc 2>get_gcc.use
+-
+ # Ok, finally we can build adabrowse! The first dependency handles the
+ # C file in the distribution. All the others may be regenerated.
+ 
+@@ -271,18 +229,17 @@ endif
+ $(ADABROWSE): util-nl.o \
+               ad-setup.ads \
+               ad-projects-impl.ads ad-projects-impl_yes-get_parent.adb
+-	gnatmake $(GCC_OPTIONS) adabrowse -cargs $(GNAT_OPTIONS) \
+-	                                  -largs $(LD_OPTIONS)
++	gnatmake $(GCC_OPTIONS) \
++		-aI$(PREFIX)/include/asis -aO${PREFIX}/lib/asis \
++		-aI$(PREFIX)/include/gnat_util -aO/${PREFIX}/lib/gnat_util \
++		adabrowse -cargs $(GNAT_OPTIONS) -largs $(LD_OPTIONS)
+ 	strip $(ADABROWSE)
+ 
+ $(NASTY): nasty.adb
+ 	gnatmake nasty -cargs $(GCC_OPTIONS)
+ 
+-ad-setup.ads: get_gcc.use
+-	$(shell ./get_gcc -setup get_gcc.use)
+-
+-util-nl.o: get_gcc.use util-nl.c
+-	$(shell ./get_gcc -gcc get_gcc.use) -c $(GCC_OPTIONS) util-nl.c
++util-nl.o: util-nl.c
++	ada -c $(GCC_OPTIONS) util-nl.c
+ 
+ clean:
+ 	$(RM) $(ADABROWSE) $(NASTY) $(GET_GCC) *.o *.ali

Added: head/textproc/adabrowse/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/textproc/adabrowse/pkg-descr	Sun Jul 21 14:22:24 2013	(r323390)
@@ -0,0 +1,6 @@
+AdaBrowse is a javadoc-like HTML generator for Ada 95 library unit
+specifications.  It can also generate XML output; a DTD is included in
+the distribution.  AdaBrowse produces a fully cross-referenced HTML
+rendering of Ada 95 specs without bodies.  It is a command-line utility.
+
+WWW: http://home.datacomm.ch/t_wolf/tw/ada95/adabrowse

Added: head/textproc/adabrowse/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/textproc/adabrowse/pkg-plist	Sun Jul 21 14:22:24 2013	(r323390)
@@ -0,0 +1 @@
+bin/adabrowse



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