Ravenports generated: 02 Apr 2023 18:43
[ravenports.git] / bucket_4C / AdaBrowse
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               AdaBrowse
4 VERSION=                4.0.3
5 KEYWORDS=               textproc ada
6 VARIANTS=               standard
7 SDESC[standard]=        HTML generator for Ada95 library unit specs
8 HOMEPAGE=               http://home.datacomm.ch/t_wolf/tw/ada95/adabrowse
9 CONTACT=                John_Marino[draco@marino.st]
10
11 DOWNLOAD_GROUPS=        main
12 SITES[main]=            http://home.datacomm.ch/t_wolf/tw/ada95/adabrowse/
13 DISTFILE[1]=            adabrowse_4.0.3_src.tar.gz:main
14 DF_INDEX=               1
15 SPKGS[standard]=        complete
16                         primary
17                         docs
18
19 OPTIONS_AVAILABLE=      none
20 OPTIONS_STANDARD=       none
21
22 BUILD_DEPENDS=          asis:primary:standard
23                         gcc10:complete:standard
24
25 USES=                   gprbuild dos2unix
26
27 DISTNAME=               adabrowse_4.0.3
28
29 LICENSE=                GPLv2+:primary
30 LICENSE_TERMS=          primary:{{WRKDIR}}/TERMS
31 LICENSE_FILE=           GPLv2+:{{WRKSRC}}/GPL.txt
32 LICENSE_AWK=            TERMS:"^$$"
33 LICENSE_SOURCE=         TERMS:{{WRKSRC}}/ad.ads
34 LICENSE_SCHEME=         solo
35
36 FPC_EQUIVALENT=         textproc/adabrowse
37
38 do-build:
39         (cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} gprbuild -p -P build)
40
41 post-extract:
42         ${CP} ${FILESDIR}/ad-* ${FILESDIR}/build.gpr ${WRKSRC}
43         ${RM} ${WRKSRC}/sdefault.adb
44
45 do-install:
46         ${MKDIR} ${STAGEDIR}/${STD_DOCDIR}
47         ${INSTALL_PROGRAM} ${WRKSRC}/adabrowse \
48                 ${STAGEDIR}${PREFIX}/bin/adabrowse
49         ${INSTALL_DATA} ${WRKSRC}/doc/*.html ${WRKSRC}/doc/*.css \
50                 ${STAGEDIR}/${STD_DOCDIR}/
51
52 [FILE:279:descriptions/desc.primary]
53 AdaBrowse is a javadoc-like HTML generator for Ada 95 library unit
54 specifications.  It can also generate XML output; a DTD is included in
55 the distribution.  AdaBrowse produces a fully cross-referenced HTML
56 rendering of Ada 95 specs without bodies.  It is a command-line utility.
57
58
59 [FILE:105:distinfo]
60 4567c66d0d3a75cc9e4938100cc5e51f96901951dc57498d18da45d14f42794c       331990 adabrowse_4.0.3_src.tar.gz
61
62
63 [FILE:14:manifests/plist.primary]
64 bin/adabrowse
65
66
67 [FILE:422:patches/patch-ad-driver.adb]
68 --- ad-driver.adb.orig  2021-09-04 15:38:31 UTC
69 +++ ad-driver.adb
70 @@ -470,6 +470,7 @@ package body AD.Driver is
71                 AIC.Set_File_Name
72                   (AIC.Subprogram_Index, Canonical (S (S'First + 2 .. S'Last)));
73              elsif S = "-P" then
74 +               Error ("-P is disabled in Ravenports");
75                 I := I + 1;
76                 Check_Following (I, N, S);
77                 if Has_Project then
78
79
80 [FILE:1069:patches/patch-ad-indices.adb]
81 --- ad-indices.adb.orig 2021-09-04 16:03:27 UTC
82 +++ ad-indices.adb
83 @@ -41,13 +41,10 @@
84  pragma License (GPL);
85  
86  with Ada.Characters.Handling;
87 -with Ada.Finalization;
88 -with Ada.Strings.Maps;
89 -with Ada.Strings.Unbounded;
90  with Ada.Strings.Wide_Unbounded;
91  with Ada.Unchecked_Deallocation;
92 +with System;
93  
94 -with Asis;
95  with Asis.Declarations;
96  with Asis.Elements;
97  
98 @@ -55,13 +52,10 @@ with Asis2.Declarations;
99  with Asis2.Naming;
100  with Asis2.Spans;
101  
102 -with AD.Crossrefs;
103  with AD.Exclusions;
104 -with AD.Expressions;
105  with AD.Messages;
106  with AD.Options;
107  with AD.Predicates;
108 -with AD.Printers;
109  with AD.Text_Utilities;
110  
111  with GAL.ADT.Hash_Tables;
112 @@ -625,8 +619,9 @@ package body AD.Indices is
113              Quit : in out Boolean)
114           is
115              pragma Warnings (Off, Quit); --  silence -gnatwa
116 +            use type System.Address;
117           begin
118 -            if Item.all'Access /= Idx then
119 +            if Item.all'Address /= Idx.all'Address then
120                 AD.Printers.XRef_Index
121                   (Printer,
122                    ASU.To_String (Item.File_Name),
123
124
125 [FILE:190:patches/patch-ad-setup.ads]
126 --- ad-setup.ads.orig   2021-09-04 15:36:33 UTC
127 +++ ad-setup.ads
128 @@ -11,6 +11,6 @@ package AD.Setup is
129  private
130  
131     GNAT_Name : constant String :=
132 -     "gcc";
133 +     "ada";
134  
135  end AD.Setup;
136
137
138 [FILE:853:patches/patch-util-pipes.adb]
139 --- util-pipes.adb.orig 2021-09-04 15:38:31 UTC
140 +++ util-pipes.adb
141 @@ -132,16 +132,8 @@ package body Util.Pipes is
142        --  <stdio.h>, the ISO C standard requires that they also be available
143        --  as real functions. Hence we may import them directly.
144  
145 -      pragma Linker_Options ("util-nl.o");
146 -
147 -      function Get_NL return Interfaces.C.int;
148 -      pragma Import (C, Get_NL, "get_newline");
149 -
150 -      New_Line : constant Interfaces.C.int := Get_NL;
151 -      --  '\n' is replaced at compile-time by a C compiler. Hence we cannot
152 -      --  use fputs (To_C ("\n")) to generate whatever C expects as a newline.
153 -      --  Therefore, we have a little C wrapper which just returns '\n', and
154 -      --  we remember that value here.
155 +      New_Line : constant Interfaces.C.int := Interfaces.C.char'Pos
156 +        (Interfaces.C.nul);
157  
158     end Std_IO;
159  
160
161
162 [FILE:242:files/ad-projects-impl.ads]
163 --  The FSF GNAT 4.9 Project code is hopelessly too modern for AdaBrowse to
164 --  hook into it.  Just build AdaBrowse without it.
165
166 pragma License (GPL);
167
168 with AD.Projects.Impl_No;
169 private package AD.Projects.Impl
170   renames AD.Projects.Impl_No;
171
172
173 [FILE:321:files/build.gpr]
174 with "asis";
175 with "gnat_util";
176 project Build is
177
178    for Languages   use ("Ada", "C");
179    for Source_Dirs use (".");
180    for Object_dir  use "obj";
181    for Exec_Dir    use ".";
182    for Main use ("adabrowse.adb");
183
184    package Compiler is
185       for Default_Switches ("ada") use ("-O2", "-gnatwa");
186    end Compiler;
187
188 end Build;
189
190
191 [FILE:47:files/special.mk]
192 PREPEND_PATH=   ${LOCALBASE}/toolchain/gcc10/bin
193