summaryrefslogtreecommitdiff
path: root/dev-tex/cpp2latex
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-tex/cpp2latex
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-tex/cpp2latex')
-rw-r--r--dev-tex/cpp2latex/Manifest9
-rw-r--r--dev-tex/cpp2latex/cpp2latex-2.3-r1.ebuild30
-rw-r--r--dev-tex/cpp2latex/cpp2latex-2.3-r2.ebuild19
-rw-r--r--dev-tex/cpp2latex/files/cpp2latex-2.3-gcc43.patch12
-rw-r--r--dev-tex/cpp2latex/files/cpp2latex-2.3-tests.patch15
-rw-r--r--dev-tex/cpp2latex/files/cpp2latex-2.3.patch44
-rw-r--r--dev-tex/cpp2latex/metadata.xml8
7 files changed, 137 insertions, 0 deletions
diff --git a/dev-tex/cpp2latex/Manifest b/dev-tex/cpp2latex/Manifest
new file mode 100644
index 000000000000..49441cfcd53d
--- /dev/null
+++ b/dev-tex/cpp2latex/Manifest
@@ -0,0 +1,9 @@
+AUX cpp2latex-2.3-gcc43.patch 345 SHA256 45bf1cfb72623b1a9996fb304b7cf7ed824f205e63872eb10faa1f9b00a3ab62 SHA512 b1a74fb536687e1c3974fd4747c3b0ad83ec331b8ef89aabfd375202ff6d9df1ea230bc807b76513ddb08af538122e6296c15a477f9d472903f9ea85ae3869de WHIRLPOOL d23dd3a1500d0fb53a43d013d68b2f6781f3a8b9023c563c59f7efbaff5061a30ae59bb6dddafbbb76a5d1747551e5517a54e26a1363b04561c4c64a6c6d14cb
+AUX cpp2latex-2.3-tests.patch 443 SHA256 3753ba7caadeff12b4b901627e07b68ffa8535ae72781e787ff818ac4a56745b SHA512 21da2eeb1616993c82dddef8f4214c1e68b40cea40d8497a8a24e1151ef5680c72de3a2660a34bcc1e02d832558643e1a46a20675ed2a50f71500f7d346cec1c WHIRLPOOL 2d69ff304cf46bb36acfd8989578309a87ebb38ee3482a094461602631c7b7cb2cacf3f2cf2173093e0d4defa1235ef7760bd010d85a9fa7cf13595af11cd96a
+AUX cpp2latex-2.3.patch 1261 SHA256 2eab5c05692b1354d73bfce99a6352d6f84c87f66de3666e4d6bce9b3d4f5fdb SHA512 8effdd739ebee882c4449ab40020086a977087be449948729c194d8a14e6d2b053c061a2ca3291229c34a8cfebf930118392a288224fad8fcd36dda2d0402c08 WHIRLPOOL bbba4a80cd82174365e852f5767a6c7e543f2d20ed8ce3f52f99b2d1de760349d7f6d437d4d2921ef857811ada528c7aa3de111ab5276efff2f4559635a87c13
+DIST cpp2latex-2.3.tar.gz 483213 SHA256 bd2ede885f34f5412734b2ec28cc454b6ce0ae3cc89b9a0cfe9df4baa075af86 SHA512 af4a13a79b2eb14556f35ca372a0c4f5fec5ddc52a712e998fb73dfe0451c1d95eb857f905a9fd66fac72f734fdcad50b9bca2769780950c7b04fa56912812e1 WHIRLPOOL b34d5611bf2af53b5dd9cc5dd2002f795d894ba87d00072160080b7655959eae64f902e5af04cd22e0fee58d46930ede53e7a2f03e808235e91800eb56de8b5c
+EBUILD cpp2latex-2.3-r1.ebuild 761 SHA256 2e61dc8c72450584dd32946b3a8ad3aa5f22f22e57ebb3a42f7b214213d6765a SHA512 feff129f5c2e4dd94458f66ecf8e7ce82eef48a08c80c14c43563d3b335ee9c1e0ed6ddedb973d80ff7a0129926cb8d4312ccecffd6e1cab0b341222b38b91a2 WHIRLPOOL 9943441c9840290985dba1ee79afe4a14704abf711915d0c58ff6936c9bc1058c9654ddd83f5c325e1bbbe64943dc19bf12554c516257959e6629feb14950366
+EBUILD cpp2latex-2.3-r2.ebuild 498 SHA256 a9faf526045a48bc889dbbed4939c8920e0f261caf70e10664c47914ac98d4f7 SHA512 fc7e14f89b016e5ea14e0523fbbdb7f436d205083155ac06d3d56c680159c4232b3412d58d109423fa0f59bfde8f931e7fc8704e7fc3fdca1478e2a4ed1103a4 WHIRLPOOL 311c7309b72410f5e3913a9e40cdd22214a1211f0d310ec61976b802f080e2f6455546279c26de71b8c5984a38d6cd428330ebfe63fb7630c562f9e927a55d41
+MISC ChangeLog 2884 SHA256 5c5936e9da2fc96e8d68d7a0a9038836ba07c683e83bbc1d92cb4bb596442ec3 SHA512 a24029cb16133c0702e7a1193b31d465e13410ccedcbafa9e660eae5f334f7f1fe5f6c44b83bda1e0a12263c12141b79038adf0393a4168af2f78de144559376 WHIRLPOOL d1de257371fb8961873f7342a5724489ce8b68b12452c783b3f09b8b713fc181827e373950d1ea6f606eed8cedb26e2d2fb2da1c382e76f825046f5a915aebac
+MISC ChangeLog-2015 2098 SHA256 7645838c4bd8e27b64e1432877ea7ffb8e3f5ace90590a6cccc53fb672ca9be4 SHA512 43ebb845884a960a982b11d387d4dcdfba2fb99e0e0259e0140c2515a292c6539a9eea6c477f33ad300c38acfe699b6ade9294bb2333fe2b91858b61d09605bb WHIRLPOOL 4dd99fab22f034da52571eedd2190424d223eb44aa3c9a4291b7ca39eec549213a81fbf2d3bbf5945645e09221dce03b5249aabe01ce1e39abab096377a7cbc5
+MISC metadata.xml 245 SHA256 b3de478821488be2cdc91b078e21c911dc384af882c5c44631a47dfa91516dc8 SHA512 1653777623e2c15e1ce13229e396723b2cc9c214983e0f8592de98c01a31badc6c38c6735ed44f937d145883b43fb6f049af3eddb9ff96b18c96ccf8f67dd690 WHIRLPOOL 701a78fc2214f5fd4bd781477f85e87e716b8d76ea831a0fa4afc8871c4286cc363679f1ff4f844555ad4f77cc7265208b83e805f56c22fc4baeed1062280c08
diff --git a/dev-tex/cpp2latex/cpp2latex-2.3-r1.ebuild b/dev-tex/cpp2latex/cpp2latex-2.3-r1.ebuild
new file mode 100644
index 000000000000..719cee656d0f
--- /dev/null
+++ b/dev-tex/cpp2latex/cpp2latex-2.3-r1.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit eutils
+
+DESCRIPTION="A program to convert C++ code to LaTeX source"
+HOMEPAGE="http://www.arnoldarts.de/drupal/?q=Cpp2LaTeX"
+SRC_URI="http://www.arnoldarts.de/drupal/files/downloads/cpp2latex/${P}.tar.gz"
+LICENSE="GPL-2"
+
+IUSE=""
+SLOT="0"
+KEYWORDS="amd64 ppc sparc x86"
+
+# although it makes sense to have tex installed, it is
+# neither a compile or runtime dependency
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}/cpp2latex"
+ # bug 44585
+ epatch "${FILESDIR}/cpp2latex-2.3.patch"
+ # bug #227863
+ epatch "${FILESDIR}/${P}-gcc43.patch"
+ epatch "${FILESDIR}/${P}-tests.patch"
+}
+
+src_install() {
+ emake install DESTDIR="${D}" || die "make install failed"
+}
diff --git a/dev-tex/cpp2latex/cpp2latex-2.3-r2.ebuild b/dev-tex/cpp2latex/cpp2latex-2.3-r2.ebuild
new file mode 100644
index 000000000000..fdf89e105561
--- /dev/null
+++ b/dev-tex/cpp2latex/cpp2latex-2.3-r2.ebuild
@@ -0,0 +1,19 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="A program to convert C++ code to LaTeX source"
+HOMEPAGE="http://www.arnoldarts.de/cpp2latex/"
+SRC_URI="http://www.arnoldarts.de/files/cpp2latex/${P}.tar.gz"
+LICENSE="GPL-2"
+
+SLOT="0"
+KEYWORDS="amd64 ppc sparc x86"
+
+# first patch: bug #44585, second patch bug #227863
+PATCHES=(
+ "${FILESDIR}/${P}.patch"
+ "${FILESDIR}/${P}-gcc43.patch"
+ "${FILESDIR}/${P}-tests.patch"
+)
diff --git a/dev-tex/cpp2latex/files/cpp2latex-2.3-gcc43.patch b/dev-tex/cpp2latex/files/cpp2latex-2.3-gcc43.patch
new file mode 100644
index 000000000000..006560506676
--- /dev/null
+++ b/dev-tex/cpp2latex/files/cpp2latex-2.3-gcc43.patch
@@ -0,0 +1,12 @@
+Index: cpp2latex-2.3/cpp2latex/main.cpp
+===================================================================
+--- cpp2latex-2.3.orig/cpp2latex/main.cpp
++++ cpp2latex-2.3/cpp2latex/main.cpp
+@@ -22,6 +22,7 @@
+ #include <iostream>
+ #include <stdlib.h>
+ #include <string>
++#include <cstring>
+ #include <fstream>
+ #include <vector>
+ #include <stdio.h>
diff --git a/dev-tex/cpp2latex/files/cpp2latex-2.3-tests.patch b/dev-tex/cpp2latex/files/cpp2latex-2.3-tests.patch
new file mode 100644
index 000000000000..621c43d28156
--- /dev/null
+++ b/dev-tex/cpp2latex/files/cpp2latex-2.3-tests.patch
@@ -0,0 +1,15 @@
+Index: cpp2latex-2.3/cpp2latex/getopttest.cpp
+===================================================================
+--- cpp2latex-2.3.orig/cpp2latex/getopttest.cpp
++++ cpp2latex-2.3/cpp2latex/getopttest.cpp
+@@ -2,7 +2,9 @@
+ #include <iostream>
+ #include <getopt.h>
+
+-void main( int argc, char* argv[] )
++using namespace std;
++
++int main( int argc, char* argv[] )
+ {
+ int optch=0, optc=1;
+ while( ( optch = getopt( argc,argv, "h:a:k" ) ) > 0 )
diff --git a/dev-tex/cpp2latex/files/cpp2latex-2.3.patch b/dev-tex/cpp2latex/files/cpp2latex-2.3.patch
new file mode 100644
index 000000000000..b72b870ba53b
--- /dev/null
+++ b/dev-tex/cpp2latex/files/cpp2latex-2.3.patch
@@ -0,0 +1,44 @@
+--- a/cpp2latex/main.cpp Thu Mar 6 08:15:36 2003
++++ a/cpp2latex/main.cpp Tue Jan 24 21:47:17 2006
+@@ -27,12 +27,14 @@
+ #include <stdio.h>
+ #include <getopt.h>
+
++using namespace std;
++
+ struct replace{
+ std::string voraus;
+ std::string ersetzt;
+ };
+
+-std::vector <replace> rules;
++std::vector<struct replace> rules;
+ std::string syntax( std::ifstream *src, char *c );
+ void initReplace();
+ bool satzzeichen( char c );
+@@ -162,9 +164,13 @@
+ if( comment && !comment1 )
+ {
+ file.get(c);
+- if(c=='/') { out+="/}"; comment=false; }
+- else { if(c=='\n') out+="\\\\"; }
+- if( !( (c=='*')||(c=='/') )) out+=c;
++ if(c=='/') {
++ out+="/}";
++ comment=false;
++ } else if (c=='\n') out+="\\\\";
++ /* .alex. 1 line substitution*/
++ else file.seekg(-1,ios::cur);
++ //if( !( (c=='*')||(c=='/') )) out+=c;
+ }
+ break;
+
+@@ -323,7 +329,7 @@
+ /** initialize the replacementrules */
+ void initReplace()
+ {
+-replace dummy;
++ struct replace dummy;
+ dummy.voraus = "and"; dummy.ersetzt = "\\textbf{and}"; rules.push_back(dummy);
+ dummy.voraus = "and_eq"; dummy.ersetzt = "\\textbf{and\\underline\\ eq}"; rules.push_back(dummy);
+ dummy.voraus = "asm"; dummy.ersetzt = "\\textbf{asm}"; rules.push_back(dummy);
diff --git a/dev-tex/cpp2latex/metadata.xml b/dev-tex/cpp2latex/metadata.xml
new file mode 100644
index 000000000000..13170c3184d8
--- /dev/null
+++ b/dev-tex/cpp2latex/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>tex@gentoo.org</email>
+ <name>Gentoo TeX Project</name>
+</maintainer>
+</pkgmetadata>