aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/patches/doc++-include-directives.patch
blob: a59a907c3b63b97bc40c2292053db4245c248091 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
Adapted from https://sourceforge.net/p/docpp/patches/1/

--- doc++-3.4.10/src/comment.ll	2000-06-24 18:50:23.000000000 +0200
+++ doc++-3.4.10/src/comment.ll	2012-09-17 11:14:50.744922841 +0200
@@ -24,7 +24,7 @@
 
 #include <assert.h>
 #include <ctype.h>
-#include <iostream.h>
+#include <iostream>
 #include <stdarg.h>
 #include <stdio.h>
 
--- doc++-3.4.10/src/cpp.ll	2002-05-09 08:11:14.000000000 +0200
+++ doc++-3.4.10/src/cpp.ll	2012-09-17 11:15:21.184333236 +0200
@@ -26,7 +26,7 @@
 
 #include <assert.h>
 #include <ctype.h>
-#include <iostream.h>
+#include <iostream>
 #include <stdarg.h>
 #include <stdio.h>
 
--- doc++-3.4.10/src/datahashtable.h	2000-08-27 21:44:34.000000000 +0200
+++ doc++-3.4.10/src/datahashtable.h	2012-09-17 11:22:59.442589960 +0200
@@ -26,11 +26,13 @@
 #define _DATAHASHTABLE_H
 
 #include <assert.h>
-#include <iostream.h>
+#include <iostream>
 #include <stdlib.h>
 
 #include "McDArray.h"
 
+using namespace std;
+
 /* This should be a private subclass of #DataHashTable#. However, since cfront
    is not able to compile this constrution, we had move the class to global
    scope.
--- doc++-3.4.10/src/doc2dbsgml.ll	2002-05-09 08:11:14.000000000 +0200
+++ doc++-3.4.10/src/doc2dbsgml.ll	2012-09-17 11:20:49.077259414 +0200
@@ -22,8 +22,8 @@
 
 %{
 #include <assert.h>
-#include <fstream.h>
-#include <iostream.h>
+#include <fstream>
+#include <iostream>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
@@ -36,6 +36,8 @@
 #undef	YY_INPUT
 #define	YY_INPUT(buf, result, max_size) result = yyread(buf, max_size);
 
+using namespace std;
+
 static Entry*	current;
 static int	inPos;
 static int	lastContext;
--- doc++-3.4.10/src/doc2dbxml.ll	2002-05-09 08:11:14.000000000 +0200
+++ doc++-3.4.10/src/doc2dbxml.ll	2012-09-17 11:20:22.264831159 +0200
@@ -25,8 +25,8 @@
 
 %{
 #include <assert.h>
-#include <fstream.h>
-#include <iostream.h>
+#include <fstream>
+#include <iostream>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
@@ -39,6 +39,8 @@
 #undef	YY_INPUT
 #define	YY_INPUT(buf, result, max_size) result = yyread(buf, max_size);
 
+using namespace std;
+
 static Entry*	current;
 static int	inPos;
 static int	lastContext;
--- doc++-3.4.10/src/doc2html.ll	2000-07-17 23:17:24.000000000 +0200
+++ doc++-3.4.10/src/doc2html.ll	2012-09-17 11:22:40.354469631 +0200
@@ -29,6 +29,8 @@
 #include "doc.h"
 #include "nametable.h"
 
+using namespace std;
+
 extern NameTable	gifs;
 
 #define YY_DECL int yylex()
--- doc++-3.4.10/src/doc2tex.ll	2000-11-05 17:21:16.000000000 +0100
+++ doc++-3.4.10/src/doc2tex.ll	2012-09-17 11:23:22.210701715 +0200
@@ -23,8 +23,8 @@
 
 %{
 #include <assert.h>
-#include <fstream.h>
-#include <iostream.h>
+#include <fstream>
+#include <iostream>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
@@ -38,6 +38,8 @@
 #undef	YY_INPUT
 #define	YY_INPUT(buf, result, max_size) result = yyread(buf, max_size);
 
+using namespace std;
+
 static Entry*	current;
 static int	inPos;
 static int	lastContext;
--- doc++-3.4.10/src/doc.ll	2000-09-17 21:41:17.000000000 +0200
+++ doc++-3.4.10/src/doc.ll	2012-09-17 11:15:37.068009454 +0200
@@ -23,8 +23,8 @@
 
 %{
 #include <assert.h>
-#include <fstream.h>
-#include <iostream.h>
+#include <fstream>
+#include <iostream>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
--- doc++-3.4.10/src/equate.cc	2002-05-02 21:13:10.000000000 +0200
+++ doc++-3.4.10/src/equate.cc	2012-09-17 11:25:42.850669366 +0200
@@ -23,9 +23,9 @@
 
 #include "config.h"
 
-#include <fstream.h>
+#include <fstream>
 #include <getopt.h>
-#include <iostream.h>
+#include <iostream>
 #include <stdio.h>
 #include <string.h>
 
--- doc++-3.4.10/src/html.cc	2001-02-17 07:34:49.000000000 +0100
+++ doc++-3.4.10/src/html.cc	2012-09-17 11:24:07.978824681 +0200
@@ -31,7 +31,7 @@
 #include <direct.h>
 #endif
 #include <errno.h>
-#include <iostream.h>
+#include <iostream>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
--- doc++-3.4.10/src/java.ll	2001-11-25 18:04:12.000000000 +0100
+++ doc++-3.4.10/src/java.ll	2012-09-17 11:24:19.138834603 +0200
@@ -26,7 +26,7 @@
 
 #include <assert.h>
 #include <ctype.h>
-#include <iostream.h>
+#include <iostream>
 #include <stdio.h>
 
 #include "doc.h"
--- doc++-3.4.10/src/main.cc	2002-05-09 08:11:14.000000000 +0200
+++ doc++-3.4.10/src/main.cc	2012-09-17 11:25:30.650719070 +0200
@@ -25,7 +25,7 @@
 #include "config.h"
 
 #include <assert.h>
-#include <fstream.h>
+#include <fstream>
 #include <getopt.h>
 #include <locale.h>
 #include <stdio.h>
--- doc++-3.4.10/src/nametable.cc	2000-04-08 23:11:54.000000000 +0200
+++ doc++-3.4.10/src/nametable.cc	2012-09-17 11:25:58.894591128 +0200
@@ -22,7 +22,7 @@
 */
 
 #include <assert.h>
-#include <iostream.h>
+#include <iostream>
 #include <stdlib.h>
 #include <string.h>
 
--- doc++-3.4.10/src/nametable.h	2000-04-08 23:11:56.000000000 +0200
+++ doc++-3.4.10/src/nametable.h	2012-09-17 11:22:07.826207198 +0200
@@ -25,7 +25,7 @@
 #define	_NAME_TABLE_H
 
 #include <assert.h>
-#include <iostream.h>
+#include <iostream>
 
 #include "datahashtable.h"
 
--- doc++-3.4.10/src/php.ll	2001-02-16 23:34:47.000000000 +0100
+++ doc++-3.4.10/src/php.ll	2012-09-17 11:25:18.582759801 +0200
@@ -23,7 +23,7 @@
 %{
 #include <assert.h>
 #include <ctype.h>
-#include <iostream.h>
+#include <iostream>
 #include <stdio.h>
 
 #include "doc.h"
--- doc++-3.4.10/src/tex2gif.cc	2001-08-07 20:55:40.000000000 +0200
+++ doc++-3.4.10/src/tex2gif.cc	2012-09-17 11:26:06.698547836 +0200
@@ -21,8 +21,8 @@
   Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */
 
-#include <iostream.h>
-#include <fstream.h>
+#include <iostream>
+#include <fstream>
 #include <stdio.h>
 #include <string.h>
 
`("PATH" ":" prefix ,(map (lambda (input) (string-append (assoc-ref inputs input) "/bin")) '("cdrdao" "cdrtools" "dvd+rw-tools" "libburn" "sox"))))))))) (native-inputs (list extra-cmake-modules pkg-config kdoctools-5)) (inputs (list bash-minimal cdrdao cdrtools dvd+rw-tools ffmpeg flac karchive-5 kcmutils-5 kconfig-5 kcoreaddons-5 kfilemetadata-5 ki18n-5 kiconthemes-5 kio-5 kjobwidgets-5 knewstuff-5 knotifications-5 knotifyconfig-5 kservice-5 kwidgetsaddons-5 kxmlgui-5 lame libburn libcdio-paranoia libdvdcss libdvdread ;; TODO: LibFuzzer libkcddb-qt5 libmad libmpcdec ;;("libmusicbrainz" ,libmusicbrainz) ; wants old version 2 libsamplerate libsndfile libvorbis breeze-icons ; default icon set shared-mime-info solid-5 sox taglib zlib)) (home-page "https://apps.kde.org/k3b/") (synopsis "Sophisticated CD/DVD burning application") (description "K3b is CD-writing software which intends to be feature-rich and provide an easily usable interface. Features include burning audio CDs from .WAV and .MP3 audio files, configuring external programs and configuring devices. The @code{udisks-service-type} should be enabled for @command{k3b} to discover the available CD drives.") (license ;; GPL for programs, FDL for documentation (list license:gpl2+ license:fdl1.2+)))) (define-public kaffeine (package (name "kaffeine") (version "2.0.18") (source (origin (method url-fetch) (uri (string-append "mirror://kde/stable/kaffeine" "/kaffeine-" version ".tar.xz")) (sha256 (base32 "10dnhr9v2jlki44i3gmjagky66ybixmv6f29z5imk9clgddrlyfr")))) (build-system qt-build-system) (native-inputs (list extra-cmake-modules pkg-config kdoctools-5)) (inputs (list eudev kcoreaddons-5 kdbusaddons-5 ki18n-5 kio-5 kwidgetsaddons-5 kwindowsystem-5 kxmlgui-5 libxscrnsaver breeze-icons ; default icon set qtbase-5 qtx11extras solid-5 v4l-utils ; libdvbv5 vlc)) (arguments (list #:phases #~(modify-phases %standard-phases (add-after 'unpack 'fix-code (lambda _ (substitute* "src/dvb/dvbdevice_linux.cpp" (("\\s*qPrintable\\(transponder\\.getTransmissionType\\(\\)\\)\\);") "transponder.getTransmissionType());"))))))) (home-page "https://apps.kde.org/kaffeine/") (synopsis "Versatile media player for KDE") (description "Kaffeine is a media player for KDE. While it supports multiple Phonon backends, its default backend is Xine, giving Kaffeine a wide variety of supported media types and letting Kaffeine access CDs, DVDs, and network streams easily. Kaffeine can keep track of multiple playlists simultaneously, and supports autoloading of subtitle files for use while playing video.") (license ;; GPL for programs, FDL for documentation (list license:gpl2+ license:fdl1.2+)))) (define-public kamoso (package (name "kamoso") (version "24.05.2") (source (origin (method url-fetch) (uri (string-append "mirror://kde/stable/release-service/" version "/src/kamoso-" version ".tar.xz")) (sha256 (base32 "1i2w2cmlfr9q4p405kycy2xqp8q5d6f1j3pwr5sbdhis3rm7vm4l")))) (build-system qt-build-system) (native-inputs (list extra-cmake-modules `(,glib "bin") kdoctools-5 pkg-config)) (inputs (list gstreamer gst-plugins-base kconfig-5 ki18n-5 kio-5 kirigami-5 knotifications-5 kparts-5 breeze-icons ; default icon set purpose-5 qtbase-5 qtdeclarative-5 qtgraphicaleffects qtquickcontrols-5 qtquickcontrols2-5 ; not listed as dependency qtx11extras)) (arguments (list #:tests? #f)) ; test program gets built, but is not found (home-page "https://apps.kde.org/kamoso/") (synopsis "Take pictures and videos out of your webcam") (description "Kamoso is a simple and friendly program to use your camera. Use it to take pictures and make videos to share.") (license ;; GPL for programs, LGPL for libraries (list license:gpl2+ license:lgpl2.0+)))) (define-public kmix (package (name "kmix") (version "24.05.2") (source (origin (method url-fetch) (uri (string-append "mirror://kde/stable/release-service/" version "/src/kmix-" version ".tar.xz")) (sha256 (base32 "1ha0sil2vbpvgys7jkhav7j5g7drg57ypr8c9i3c8ndqwpsyxk3g")))) (build-system qt-build-system) (native-inputs (list extra-cmake-modules kdoctools-5 pkg-config)) (inputs (list alsa-lib glib kconfigwidgets-5 kcompletion-5 kconfig-5 kconfigwidgets-5 kcrash-5 kdbusaddons-5 kglobalaccel-5 ki18n-5 kiconthemes-5 knotifications-5 kwidgetsaddons-5 kwindowsystem-5 kxmlgui-5 libcanberra breeze-icons ; default icon set plasma-framework pulseaudio qtbase-5 solid-5)) (home-page "https://apps.kde.org/kmix/") (synopsis "Volume control and mixer") (description "KMix is an audio device mixer, used to adjust volume, select recording inputs, and set other hardware options. This package is part of the KDE multimedia module.") (license ;; GPL for programs, LGPL for libraries, FDL for documentation (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+)))) (define-public kwave (package (name "kwave") (version "24.05.2") (source (origin (method url-fetch) (uri (string-append "mirror://kde/stable/release-service/" version "/src/kwave-" version ".tar.xz")) (sha256 (base32 "1g3gaxmchsf9c7zvx608wl41qs001vr1zm0cgnaim753446vb08f")))) (build-system qt-build-system) (native-inputs (list extra-cmake-modules (librsvg-for-system) pkg-config kdoctools-5 tzdata-for-tests)) (inputs (list alsa-lib audiofile flac id3lib karchive-5 kcompletion-5 kconfig-5 kconfigwidgets-5 kcoreaddons-5 kcrash-5 kdbusaddons-5 ki18n-5 kiconthemes-5 kio-5 kservice-5 ktextwidgets-5 kwidgetsaddons-5 kxmlgui-5 libmad libsamplerate libvorbis opus breeze-icons ; default icon set pulseaudio qtbase-5 qtmultimedia-5 zlib)) (arguments (list #:phases #~(modify-phases %standard-phases (add-before 'check 'set-TZDATA (lambda* (#:key inputs tests? #:allow-other-keys) (setenv "TZDIR" (search-input-directory inputs "share/zoneinfo"))))))) (home-page "https://apps.kde.org/kwave/") (synopsis "Sound editor for KDE") (description "Kwave is a sound editor designed for the KDE Desktop Environment. With Kwave you can record, play back, import and edit many sorts of audio files including multi-channel files. It includes some plugins to transform audio files in several ways and presents a graphical view with a complete zoom- and scroll capability. Its features include: @itemize @item 24 Bit Support @item Undo/Redo @item Use of multicore CPUs (SMP, hyperthreading) @item Simple Drag & Drop @item Realtime Pre-Listen for some effects @item Support for multi-track files @item Playback and recording via native ALSA (or OSS, deprecated) @item Playback via PulseAudio and Phonon @item Load and edit-capability for large files (can use virtual memory) @item Reading and auto-repair of damaged wav-files @item Supports multiple windows @item Extendable Plugin interface @item a nice splashscreen @item some label handling @end itemize") (license ;; GPL for programs, LGPL for libraries, FDL for documentation (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+ license:cc-by-sa3.0 license:cc-by-sa4.0 ;; icons, samples license:cc0 license:bsd-3)))) ;; utilities files (define-public libkcddb (package (name "libkcddb") (version "24.05.2") (source (origin (method url-fetch) (uri (string-append "mirror://kde/stable/release-service/" version "/src/libkcddb-" version ".tar.xz")) (sha256 (base32 "0b2khcfm3jnc4iar0ljsq0z3dr3ak6jyaqnbgwj3yk2j05j0yc9n")))) (build-system qt-build-system) (native-inputs (list extra-cmake-modules kdoctools)) (inputs (list kcodecs kconfig ki18n kio kcmutils kwidgetsaddons libmusicbrainz)) (arguments (list #:qtbase qtbase #:configure-flags #~(list "-DQT_MAJOR_VERSION=6") #:tests? #f)) ; Most tests require network (home-page "https://invent.kde.org/multimedia/libkcddb") (synopsis "CDDB library for KDE Platform (runtime)") (description "A library for retrieving and sending cddb information.") (license ;; GPL for programs, LGPL for libraries, FDL for documentation (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+)))) (define-public libkcddb-qt5 (package (inherit libkcddb) (name "libkcddb-qt5") (native-inputs (list extra-cmake-modules kdoctools-5)) (inputs (list kcodecs-5 kconfig-5 ki18n-5 kio-5 kcmutils-5 kwidgetsaddons-5 libmusicbrainz)) (arguments (list #:qtbase qtbase-5 #:configure-flags #~(list "-DQT_MAJOR_VERSION=5") ;; Most tests require network #:tests? #f)))) (define-public libkcompactdisc (package (name "libkcompactdisc") (version "24.05.2") (source (origin (method url-fetch) (uri (string-append "mirror://kde/stable/release-service/" version "/src/libkcompactdisc-" version ".tar.xz")) (sha256 (base32 "1lh6vn5aqwlvnb7q29nwxqzb4i4ymd1gs0y1k0vf5czhywrr9gqm")))) (build-system qt-build-system) (native-inputs (list extra-cmake-modules)) (inputs (list alsa-lib kcoreaddons ki18n phonon solid)) (arguments (list #:configure-flags #~(list "-DQT_MAJOR_VERSION=6") #:qtbase qtbase)) (home-page "https://invent.kde.org/multimedia/libkcompactdisc") (synopsis "KDE library for playing & ripping CDs") (description "The KDE Compact Disc library provides an API for applications using the KDE Platform to interface with the CD drives for audio CDs.") (license ;; GPL for programs, LGPL for libraries (list license:gpl2+ license:lgpl2.0+))))