[packages/doublecpp] - new

qboosh qboosh at pld-linux.org
Tue May 22 19:31:08 CEST 2018


commit 46eaee831bd6a5cbc028e40d5dc85e0438b50551
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue May 22 19:31:54 2018 +0200

    - new

 doublecpp-includes.patch | 50 ++++++++++++++++++++++++++++++++++++++++++
 doublecpp.spec           | 56 ++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 106 insertions(+)
---
diff --git a/doublecpp.spec b/doublecpp.spec
new file mode 100644
index 0000000..77e1e3f
--- /dev/null
+++ b/doublecpp.spec
@@ -0,0 +1,56 @@
+Summary:	Doublecpp - double dispatch in C++
+Summary(pl.UTF-8):	Doublecpp - podwójna dyspozycja w C++
+Name:		doublecpp
+Version:	0.6.3
+Release:	1
+License:	GPL v2+
+Group:		Development/Tools
+Source0:	http://downloads.sourceforge.net/doublecpp/%{name}-%{version}.tar.gz
+# Source0-md5:	0537ff74de82901f2e3bd92aaa677b3d
+Patch0:		%{name}-includes.patch
+URL:		http://doublecpp.sourceforge.net/
+BuildRequires:	libstdc++-devel
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Doublecpp is a preprocessor for C++ that handles a new linguistic
+construct for defining branches of a multi-method. The "right" branch
+of such a method will be selected dynamically at run-time according to
+the actual type of the object on which the method is invoked and to
+the actual type of the first argument: double dispatch.
+
+%description -l pl.UTF-8
+Doublecpp to preprocesor dla C++ obsługujący nową konstrukcję językową
+do definiowania odgałęzień multi-metody. Właściwa gałąź takiej metody
+jest wybierana dynamicznie w czasie działania zgodnie z typem obiektu,
+z jakim została wywołana metoda oraz typem pierwszego argumentu:
+podwójna dyspozycja.
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+%configure \
+	%{!?with_static_libs:--disable-static}
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+# packaged as %doc
+%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/doublecpp
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS ChangeLog NEWS README TODO doc/doublecpp.html
+%attr(755,root,root) %{_bindir}/doublecpp
diff --git a/doublecpp-includes.patch b/doublecpp-includes.patch
new file mode 100644
index 0000000..0dae105
--- /dev/null
+++ b/doublecpp-includes.patch
@@ -0,0 +1,50 @@
+--- doublecpp-0.6.3/src/sourcemodifier.cpp.orig	2006-07-25 23:12:39.000000000 +0200
++++ doublecpp-0.6.3/src/sourcemodifier.cpp	2018-05-22 19:00:04.928332158 +0200
+@@ -9,6 +9,7 @@
+  ***************************************************************************/
+ 
+ #include <assert.h>
++#include <cstdlib>
+ #include <iostream> // TODO: remove it when changed ProgElems cons
+ 
+ #include "my_sstream.h"
+--- doublecpp-0.6.3/src/sourceanalyser.cpp.orig	2006-07-25 23:12:40.000000000 +0200
++++ doublecpp-0.6.3/src/sourceanalyser.cpp	2018-05-22 19:00:54.674998257 +0200
+@@ -8,6 +8,7 @@
+  *   (at your option) any later version.                                   *
+  ***************************************************************************/
+ 
++#include <cstdlib>
+ #include "sourceanalyser.h"
+ #include "fileutil.h"
+ #include "progelems.hpp"
+--- doublecpp-0.6.3/src/branchanalyser.cpp.orig	2006-07-25 23:12:40.000000000 +0200
++++ doublecpp-0.6.3/src/branchanalyser.cpp	2018-05-22 19:01:26.981664554 +0200
+@@ -9,6 +9,7 @@
+  ***************************************************************************/
+ 
+ #include <assert.h>
++#include <cstdlib>
+ 
+ #include "branchanalyser.h"
+ #include "multimethods.h"
+--- doublecpp-0.6.3/src/parambinder.cpp.orig	2006-07-25 23:12:40.000000000 +0200
++++ doublecpp-0.6.3/src/parambinder.cpp	2018-05-22 19:02:40.174997053 +0200
+@@ -10,6 +10,7 @@
+ #include "parambinder.h"
+ 
+ #include <assert.h>
++#include <cstdlib>
+ 
+ #include "classdecl.h"
+ #include "methparams.h"
+--- doublecpp-0.6.3/src/programanalyser.cpp.orig	2006-03-28 10:12:13.000000000 +0200
++++ doublecpp-0.6.3/src/programanalyser.cpp	2018-05-22 19:02:58.041663518 +0200
+@@ -7,6 +7,7 @@
+  *   the Free Software Foundation; either version 2 of the License, or     *
+  *   (at your option) any later version.                                   *
+  ***************************************************************************/
++#include <cstdlib>
+ #include "programanalyser.h"
+ 
+ #include "multimethods.h"
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/doublecpp.git/commitdiff/46eaee831bd6a5cbc028e40d5dc85e0438b50551



More information about the pld-cvs-commit mailing list