aboutsummaryrefslogtreecommitdiff
path: root/print/cpp2latex
diff options
context:
space:
mode:
authorYing-Chieh Liao <ijliao@FreeBSD.org>2003-03-28 16:55:32 +0000
committerYing-Chieh Liao <ijliao@FreeBSD.org>2003-03-28 16:55:32 +0000
commitd6b0f9fbef38d822280ca1f194335a80a635a2d6 (patch)
tree44ccd14b30365360b129ea25f9c982ce3ceae993 /print/cpp2latex
parentdad922e46c6c35d16e660dbeea697b86d105e353 (diff)
downloadports-d6b0f9fbef38d822280ca1f194335a80a635a2d6.tar.gz
ports-d6b0f9fbef38d822280ca1f194335a80a635a2d6.zip
Notes
Diffstat (limited to 'print/cpp2latex')
-rw-r--r--print/cpp2latex/Makefile6
-rw-r--r--print/cpp2latex/distinfo2
-rw-r--r--print/cpp2latex/files/patch-main.cpp28
-rw-r--r--print/cpp2latex/pkg-plist10
4 files changed, 9 insertions, 37 deletions
diff --git a/print/cpp2latex/Makefile b/print/cpp2latex/Makefile
index d0da5ff56a14..99ce71f4c256 100644
--- a/print/cpp2latex/Makefile
+++ b/print/cpp2latex/Makefile
@@ -7,7 +7,7 @@
#
PORTNAME= cpp2latex
-PORTVERSION= 2.1
+PORTVERSION= 2.3
CATEGORIES= print
MASTER_SITES= http://www.arnoldarts.de/
@@ -15,10 +15,10 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= Convert C++ source to a file you can input in an LaTeX-document
GNU_CONFIGURE= yes
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
-do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/cpp2latex/cpp2latex ${PREFIX}/bin
.if !defined(NOPORTDOCS)
+post-install:
@${MKDIR} ${DOCSDIR}
.for file in AUTHORS ChangeLog README TODO
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
diff --git a/print/cpp2latex/distinfo b/print/cpp2latex/distinfo
index c1d83485889b..0f1082900e68 100644
--- a/print/cpp2latex/distinfo
+++ b/print/cpp2latex/distinfo
@@ -1 +1 @@
-MD5 (cpp2latex-2.1.tar.gz) = d13a0359d41823f2c6d4802794ccdee8
+MD5 (cpp2latex-2.3.tar.gz) = bfe67773548df87c3e0975591f835c74
diff --git a/print/cpp2latex/files/patch-main.cpp b/print/cpp2latex/files/patch-main.cpp
deleted file mode 100644
index 6a9785b0b336..000000000000
--- a/print/cpp2latex/files/patch-main.cpp
+++ /dev/null
@@ -1,28 +0,0 @@
---- cpp2latex/main.cpp.orig Mon Jun 11 14:14:19 2001
-+++ cpp2latex/main.cpp Tue Nov 26 19:32:41 2002
-@@ -25,6 +25,14 @@
- #include <fstream>
- #include <vector>
-
-+using std::cerr;
-+using std::cout;
-+using std::endl;
-+using std::getline;
-+using std::ifstream;
-+using std::string;
-+using std::vector;
-+
- struct replace{
- string voraus;
- string ersetzt;
-@@ -87,8 +95,8 @@
- cerr<<" Skipping "<<skip<<" lines."<<endl;
- for(int i=0; i<skip; i++)
- {
-- char* tmp;
-- file.gets( &tmp );
-+ string line;
-+ getline( file, line );
- }
-
- // Tabspace setzen
diff --git a/print/cpp2latex/pkg-plist b/print/cpp2latex/pkg-plist
index 860908a28fae..140262145f69 100644
--- a/print/cpp2latex/pkg-plist
+++ b/print/cpp2latex/pkg-plist
@@ -1,6 +1,6 @@
bin/cpp2latex
-%%PORTDOCS%%share/doc/cpp2latex/AUTHORS
-%%PORTDOCS%%share/doc/cpp2latex/ChangeLog
-%%PORTDOCS%%share/doc/cpp2latex/README
-%%PORTDOCS%%share/doc/cpp2latex/TODO
-%%PORTDOCS%%@dirrm share/doc/cpp2latex
+%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
+%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%%%DOCSDIR%%/TODO
+%%PORTDOCS%%@dirrm %%DOCSDIR%%