[107574] trunk/dports/textproc/c2html
sean at macports.org
sean at macports.org
Tue Jul 2 17:41:14 PDT 2013
Revision: 107574
https://trac.macports.org/changeset/107574
Author: sean at macports.org
Date: 2013-07-02 17:41:14 -0700 (Tue, 02 Jul 2013)
Log Message:
-----------
c2html: update to the only maintained c2html on launchpad; raise epoch
Modified Paths:
--------------
trunk/dports/textproc/c2html/Portfile
Added Paths:
-----------
trunk/dports/textproc/c2html/files/patch-Makefile.in.diff
trunk/dports/textproc/c2html/files/patch-man.diff
Removed Paths:
-------------
trunk/dports/textproc/c2html/files/patch-Makefile
trunk/dports/textproc/c2html/files/patch-check_begin.c
trunk/dports/textproc/c2html/files/patch-error.c
trunk/dports/textproc/c2html/files/patch-makefile.default
Modified: trunk/dports/textproc/c2html/Portfile
===================================================================
--- trunk/dports/textproc/c2html/Portfile 2013-07-03 00:41:05 UTC (rev 107573)
+++ trunk/dports/textproc/c2html/Portfile 2013-07-03 00:41:14 UTC (rev 107574)
@@ -3,41 +3,34 @@
PortSystem 1.0
name c2html
-version 1.1.0
+version 0.9.6
+epoch 1
categories textproc
maintainers toby
+
description c2html converts C source files to highlighted html
long_description \
c2html is a program which converts C source files to \
highlighted html files. The produced file can be used for \
creating technical manuals. A highlighted source code listing \
is usually much easier to read.
-homepage http://c2html.sourceforge.net/
+
+homepage https://launchpad.net/ubuntu/+source/${name}
platforms darwin
license GPL-2
-master_sites sourceforge
-distname ${name}_${version}
-checksums md5 819e263c4b8712ac1b7026ae8fc88d29 \
- sha1 bc9fe51875ec5d1b517f318c47429fdd00de18ee \
- rmd160 d00543035f753f7f5edb67d275cc0b6f62cc04ac
+master_sites https://launchpad.net/ubuntu/+archive/primary/+files
+distname ${name}_${version}.orig
+worksrcdir ${name}-${version}
-worksrcdir ${name}
+checksums rmd160 d9c70c6193f917c9a3d2ef9845004c2f4081eb8b \
+ sha256 652924a3030456f8fd0ed4fc5fe424750c7c7d70eb133eac0cecf0ddcbcab85a
-patchfiles patch-Makefile patch-makefile.default \
- patch-check_begin.c patch-error.c
+patchfiles patch-Makefile.in.diff \
+ patch-man.diff
-configure {
- reinplace "s|__CC__|${configure.cc}|" ${worksrcpath}/Makefile
- reinplace "s|__CFLAGS__|${configure.cflags}|" ${worksrcpath}/Makefile
- reinplace "s|__LDFLAGS__|${configure.ldflags}|" ${worksrcpath}/makefile.default
-}
+configure.args --mandir=${prefix}/share/man
-destroot {
- xinstall -m 755 ${worksrcpath}/c2html ${destroot}${prefix}/bin
- xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
- xinstall -m 644 "${worksrcpath}/User manual.pdf" \
- ${destroot}${prefix}/share/doc/${name}
-}
-
-livecheck.regex ${name} ${name} (\.*) released
+livecheck.version ${version}-3
+livecheck.type regex
+livecheck.regex ${name}/(\[0-9.-\]+)
Deleted: trunk/dports/textproc/c2html/files/patch-Makefile
===================================================================
--- trunk/dports/textproc/c2html/files/patch-Makefile 2013-07-03 00:41:05 UTC (rev 107573)
+++ trunk/dports/textproc/c2html/files/patch-Makefile 2013-07-03 00:41:14 UTC (rev 107574)
@@ -1,13 +0,0 @@
---- Makefile.orig 2009-04-18 23:54:10.000000000 -0700
-+++ Makefile 2009-04-18 23:54:18.000000000 -0700
-@@ -14,8 +14,8 @@
- INSTALL_FILES=\
- 'User manual.pdf'
-
--CFLAGS=-I. -O3 -Wall
--CC=gcc
-+CFLAGS=-I. __CFLAGS__ -Wall
-+CC=__CC__
-
- RMDIR=rmdir
-
Added: trunk/dports/textproc/c2html/files/patch-Makefile.in.diff
===================================================================
--- trunk/dports/textproc/c2html/files/patch-Makefile.in.diff (rev 0)
+++ trunk/dports/textproc/c2html/files/patch-Makefile.in.diff 2013-07-03 00:41:14 UTC (rev 107574)
@@ -0,0 +1,18 @@
+--- Makefile.in.orig 2011-12-15 18:30:18.000000000 -0600
++++ Makefile.in 2011-12-15 18:36:53.000000000 -0600
+@@ -50,13 +50,13 @@
+ INSTALL = @INSTALL@
+ INSTALL_PROGRAM = @INSTALL_PROGRAM@
+ INSTALL_DATA = @INSTALL_DATA@
+-prefix = @prefix@
++prefix = $(DESTDIR)@prefix@
+ exec_prefix = ${prefix}
+ bindir = @bindir@
+ mandir = @mandir@
+ man1dir = @mandir@/man1
+ srcdir = @srcdir@
+-docdir = @DOCDIR@
++docdir = @datadir@/doc
+ CPPFLAGS = @CPPFLAGS@
+
+ CFLAGS += -O2 -Wall
Deleted: trunk/dports/textproc/c2html/files/patch-check_begin.c
===================================================================
--- trunk/dports/textproc/c2html/files/patch-check_begin.c 2013-07-03 00:41:05 UTC (rev 107573)
+++ trunk/dports/textproc/c2html/files/patch-check_begin.c 2013-07-03 00:41:14 UTC (rev 107574)
@@ -1,30 +0,0 @@
---- check_begin.c.orig 2009-04-19 00:03:22.000000000 -0700
-+++ check_begin.c 2009-04-19 00:03:41.000000000 -0700
-@@ -83,8 +83,8 @@
- const char hyphens[NUM_HYPHENS] = {'_', '@', '$', '\'', '"', '`'};
-
- /*
-- There are two types of comments: those who start with "/*" and those who start with "//"
-- If the current comment starts with "/*" comment1 is TRUE otherwise it is FALSE
-+ There are two types of comments: those who start with "/ *" and those who start with "//"
-+ If the current comment starts with "/ *" comment1 is TRUE otherwise it is FALSE
- */
- char comment1;
-
-@@ -159,14 +159,14 @@
- const char *begin2 = "//";
-
- /*
-- If line is the beginning of a comment which begins with "/*"
-+ If line is the beginning of a comment which begins with "/ *"
- */
- if ( isbeginend(begin1, line) )
- {
- comment1 = TRUE;
- return (TRUE); /* line is the beginning of a comment */
- }
-- comment1 = FALSE; /* line is definitely not the beginnig of a comment starting with "/*" */
-+ comment1 = FALSE; /* line is definitely not the beginnig of a comment starting with "/ *" */
-
- /* line can now only be the beginning of a comment which begins with "//" */
- return ( isbeginend(begin2, line) );
Deleted: trunk/dports/textproc/c2html/files/patch-error.c
===================================================================
--- trunk/dports/textproc/c2html/files/patch-error.c 2013-07-03 00:41:05 UTC (rev 107573)
+++ trunk/dports/textproc/c2html/files/patch-error.c 2013-07-03 00:41:14 UTC (rev 107574)
@@ -1,10 +0,0 @@
---- error.c.orig 2009-04-19 00:02:33.000000000 -0700
-+++ error.c 2009-04-19 00:02:42.000000000 -0700
-@@ -24,6 +24,7 @@
- (replace (at) by @ and (dot) by .)
- ---------------------------------------------------------------------------------*/
- #include <stdio.h>
-+#include <stdlib.h>
- #include <c2html.h>
-
-
Deleted: trunk/dports/textproc/c2html/files/patch-makefile.default
===================================================================
--- trunk/dports/textproc/c2html/files/patch-makefile.default 2013-07-03 00:41:05 UTC (rev 107573)
+++ trunk/dports/textproc/c2html/files/patch-makefile.default 2013-07-03 00:41:14 UTC (rev 107574)
@@ -1,11 +0,0 @@
---- makefile.default.orig 2009-04-18 23:54:52.000000000 -0700
-+++ makefile.default 2009-04-18 23:55:04.000000000 -0700
-@@ -16,7 +16,7 @@
- mkdir $(DESTDIR)
-
- $(TARGET): $(OBJECTS)
-- $(CC) -o $@ $(OBJECTS)
-+ $(CC) __LDFLAGS__ -o $@ $(OBJECTS)
-
- install: $(TARGET) $(DESTDIR)
- cp $(INSTALLFILES) $(DESTDIR)
Added: trunk/dports/textproc/c2html/files/patch-man.diff
===================================================================
--- trunk/dports/textproc/c2html/files/patch-man.diff (rev 0)
+++ trunk/dports/textproc/c2html/files/patch-man.diff 2013-07-03 00:41:14 UTC (rev 107574)
@@ -0,0 +1,36 @@
+--- c2html.1
++++ c2html.1
+@@ -39,7 +39,7 @@
+ PATH_TRANSLATED to the pathname of the source file.
+ If
+ .B c2html
+-has been compiled with option -DCOMPRESSION=1 then it will invoke
++has been compiled with option \-DCOMPRESSION=1 then it will invoke
+ .B gzip
+ to compress the generated HTML before sending it to the requesting
+ browser. Of course
+@@ -98,7 +98,7 @@
+ .br
+ echo "<meta name=\\"generator\\""
+ .br
+- echo "content=\\"\`c2html -V\`\\">"
++ echo "content=\\"\`c2html \-V\`\\">"
+ .br
+ echo "</head>"
+ .br
+@@ -108,13 +108,13 @@
+ .br
+ echo "<ul>Structures and functions"
+ .br
+- cat $PATH_TRANSLATED | c2html -isc
++ cat $PATH_TRANSLATED | c2html \-isc
+ .br
+ echo "</ul>"
+ .br
+ echo "<hr></hr>"
+ .br
+- cat $PATH_TRANSLATED | c2html -sc
++ cat $PATH_TRANSLATED | c2html \-sc
+ .br
+ echo "</body></html>"
+ .br
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130702/ad618a10/attachment-0001.html>
More information about the macports-changes
mailing list