[103775] trunk/dports/textproc/doxygen/Portfile

larryv at macports.org larryv at macports.org
Wed Mar 6 20:03:36 PST 2013


Revision: 103775
          https://trac.macports.org/changeset/103775
Author:   larryv at macports.org
Date:     2013-03-06 20:03:35 -0800 (Wed, 06 Mar 2013)
Log Message:
-----------
doxygen: Add modeline and fix whitespace; use "delete" instead of "file delete".

Modified Paths:
--------------
    trunk/dports/textproc/doxygen/Portfile

Modified: trunk/dports/textproc/doxygen/Portfile
===================================================================
--- trunk/dports/textproc/doxygen/Portfile	2013-03-07 02:34:31 UTC (rev 103774)
+++ trunk/dports/textproc/doxygen/Portfile	2013-03-07 04:03:35 UTC (rev 103775)
@@ -1,117 +1,127 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
 # $Id$
 
-PortSystem 1.0
+PortSystem              1.0
 
-name			doxygen
-version			1.8.3
-revision		3
-categories		textproc devel
-maintainers		css
-license			GPL-2
-description		Documentation system for several programming languages
-long_description \
-	It can generate an on-line documentation browser (in HTML) and/or an \
-	off-line reference manual from a set of documented source files. \
-	There is also support for generating output in RTF (MS-Word), \
-	PostScript, hyperlinked PDF, compressed HTML, and Unix man pages. The \
-	documentation is extracted directly from the sources, which makes it \
-	much easier to keep the documentation consistent with the source code. \
-	You can configure doxygen to extract the code structure from \
-	undocumented source files. This is very useful to quickly find your \
-	way in large source distributions. You can also visualize the \
-	relations between the various elements by means of include dependency \
-	graphs, inheritance diagrams, and collaboration diagrams, which are \
-	all generated automatically.
+name                    doxygen
+version                 1.8.3
+revision                3
+categories              textproc devel
+maintainers             css
+license                 GPL-2
+description             Documentation system for several programming languages
+long_description        It can generate an on-line documentation browser \
+                        (in HTML) and/or an off-line reference manual \
+                        from a set of documented source files. There is \
+                        also support for generating output in RTF \
+                        (MS-Word), PostScript, hyperlinked PDF, \
+                        compressed HTML, and Unix man pages. The \
+                        documentation is extracted directly from the \
+                        sources, which makes it much easier to keep the \
+                        documentation consistent with the source code. \
+                        You can configure doxygen to extract the code \
+                        structure from undocumented source files. This \
+                        is very useful to quickly find your way in large \
+                        source distributions. You can also visualize the \
+                        relations between the various elements by means \
+                        of include dependency graphs, inheritance \
+                        diagrams, and collaboration diagrams, which are \
+                        all generated automatically.
 
-platforms		darwin
+platforms               darwin
 
-homepage		http://www.doxygen.org/
-master_sites		http://ftp.stack.nl/pub/users/dimitri/ \
-			ftp://ftp.stack.nl/pub/users/dimitri/
-distfiles		${distname}.src${extract.suffix}
+homepage                http://www.doxygen.org/
+master_sites            http://ftp.stack.nl/pub/users/dimitri/ \
+                        ftp://ftp.stack.nl/pub/users/dimitri/
+distfiles               ${distname}.src${extract.suffix}
 
-checksums           ${distname}.src${extract.suffix} \
-                    md5     54245ba38a30f50fd7ae6e62fc05de15 \
-                    sha1    e74240f445e08b782fa7a3de5f0b333901307587 \
-                    rmd160  fa1fa1c38dc1d26104b5c4e9cbb9e118f830378d
+checksums               ${distname}.src${extract.suffix} \
+                        md5     54245ba38a30f50fd7ae6e62fc05de15 \
+                        sha1    e74240f445e08b782fa7a3de5f0b333901307587 \
+                        rmd160  fa1fa1c38dc1d26104b5c4e9cbb9e118f830378d
 
-depends_build-append	bin:perl:perl5 port:flex port:bison
-depends_lib		port:libpng path:bin/dot:graphviz port:libiconv
+depends_build-append    bin:perl:perl5 \
+                        port:flex \
+                        port:bison
+depends_lib             port:libpng \
+                        port:libiconv
 
-patchfiles	    patch-configure.diff
+patchfiles              patch-configure.diff
 
-patch.pre_args      -p1
-configure.universal_args-delete --disable-dependency-tracking
+patch.pre_args          -p1
+configure.universal_args-delete \
+                        --disable-dependency-tracking
 
-configure.pre_args	--prefix ${prefix}
-configure.args		--docdir ${prefix}/share/doc --dot ${prefix}/bin/dot
+configure.pre_args      --prefix ${prefix}
+configure.args          --docdir ${prefix}/share/doc \
+                        --dot ${prefix}/bin/dot
 
 post-extract {
-	# Use our flex
-	file delete ${worksrcpath}/src/ce_lex.cpp
-	file delete ${worksrcpath}/src/code.cpp
-	file delete ${worksrcpath}/src/commentcnv.cpp
-	file delete ${worksrcpath}/src/commentscan.cpp
-	file delete ${worksrcpath}/src/config.cpp
-	file delete ${worksrcpath}/src/declinfo.cpp
-	file delete ${worksrcpath}/src/defargs.cpp
-	file delete ${worksrcpath}/src/doctokenizer.cpp
-	file delete ${worksrcpath}/src/fortrancode.cpp
-	file delete ${worksrcpath}/src/fortranscanner.cpp
-	file delete ${worksrcpath}/src/pre.cpp
-	file delete ${worksrcpath}/src/pycode.cpp
-	file delete ${worksrcpath}/src/pyscanner.cpp
-	file delete ${worksrcpath}/src/scanner.cpp
-	file delete ${worksrcpath}/src/tclscanner.cpp
-	file delete ${worksrcpath}/src/vhdlcode.cpp
-	file delete ${worksrcpath}/src/vhdlscanner.cpp
+    # Use our flex
+    delete ${worksrcpath}/src/ce_lex.cpp
+    delete ${worksrcpath}/src/code.cpp
+    delete ${worksrcpath}/src/commentcnv.cpp
+    delete ${worksrcpath}/src/commentscan.cpp
+    delete ${worksrcpath}/src/config.cpp
+    delete ${worksrcpath}/src/declinfo.cpp
+    delete ${worksrcpath}/src/defargs.cpp
+    delete ${worksrcpath}/src/doctokenizer.cpp
+    delete ${worksrcpath}/src/fortrancode.cpp
+    delete ${worksrcpath}/src/fortranscanner.cpp
+    delete ${worksrcpath}/src/pre.cpp
+    delete ${worksrcpath}/src/pycode.cpp
+    delete ${worksrcpath}/src/pyscanner.cpp
+    delete ${worksrcpath}/src/scanner.cpp
+    delete ${worksrcpath}/src/tclscanner.cpp
+    delete ${worksrcpath}/src/vhdlcode.cpp
+    delete ${worksrcpath}/src/vhdlscanner.cpp
 
-	# Use our bison
-	file delete ${worksrcpath}/src/ce_parse.cpp
-	file delete ${worksrcpath}/src/ce_parse.h
-	file delete ${worksrcpath}/src/vhdlparser.cpp
-	file delete ${worksrcpath}/src/vhdlparser.h
+    # Use our bison
+    delete ${worksrcpath}/src/ce_parse.cpp
+    delete ${worksrcpath}/src/ce_parse.h
+    delete ${worksrcpath}/src/vhdlparser.cpp
+    delete ${worksrcpath}/src/vhdlparser.h
 }
 
 post-patch {
-	# ensure correct compilers and compiler options are used
-	reinplace "/^TMAKE_CC\[\[:space:\]\]/s%=.*%= ${configure.cc} ${configure.cppflags} [get_canonical_archflags cc]%" ${tmake_conf}
-	reinplace "/^TMAKE_CXX\[\[:space:\]\]/s%=.*%= ${configure.cxx} ${configure.cppflags} [get_canonical_archflags cxx]%" ${tmake_conf}
-	reinplace "/^TMAKE_LINK\[\[:space:\]\]/s%=.*%= ${configure.cxx} ${configure.ldflags} [get_canonical_archflags ld]%" ${tmake_conf}
-	reinplace "/^TMAKE_LINK_SHLIB\[\[:space:\]\]/s%=.*%= ${configure.cxx} [get_canonical_archflags ld]%" ${tmake_conf}
+    # ensure correct compilers and compiler options are used
+    reinplace "/^TMAKE_CC\[\[:space:\]\]/s%=.*%= ${configure.cc} ${configure.cppflags} [get_canonical_archflags cc]%" ${tmake_conf}
+    reinplace "/^TMAKE_CXX\[\[:space:\]\]/s%=.*%= ${configure.cxx} ${configure.cppflags} [get_canonical_archflags cxx]%" ${tmake_conf}
+    reinplace "/^TMAKE_LINK\[\[:space:\]\]/s%=.*%= ${configure.cxx} ${configure.ldflags} [get_canonical_archflags ld]%" ${tmake_conf}
+    reinplace "/^TMAKE_LINK_SHLIB\[\[:space:\]\]/s%=.*%= ${configure.cxx} [get_canonical_archflags ld]%" ${tmake_conf}
 
-	# may not be strictly necessary, but remove trailing '/' from DESTDIR
-	reinplace "s|\$(DESTDIR)/|\$(DESTDIR)|g" ${worksrcpath}/Makefile.in
+    # may not be strictly necessary, but remove trailing '/' from DESTDIR
+    reinplace "s|\$(DESTDIR)/|\$(DESTDIR)|g" ${worksrcpath}/Makefile.in
 
-	# link with doxygen's libmd5, avoiding a libwww port conflict
-	reinplace "s|-lmd5|../lib/libmd5.a|" ${worksrcpath}/src/doxygen.pro.in
+    # link with doxygen's libmd5, avoiding a libwww port conflict
+    reinplace "s|-lmd5|../lib/libmd5.a|" ${worksrcpath}/src/doxygen.pro.in
 
-	# do not require GNU install; BSD install suffices
-	reinplace "s,-n \"`\$j/\$i --version 2>/dev/null \| grep utils`\",-x \"\$j/\$i\",g" ${worksrcpath}/configure
+    # do not require GNU install; BSD install suffices
+    reinplace "s,-n \"`\$j/\$i --version 2>/dev/null \| grep utils`\",-x \"\$j/\$i\",g" ${worksrcpath}/configure
 
-	# remove flag that is not defined for gcc and only suppresses some warnings for clang
+    # remove flag that is not defined for gcc and only suppresses some warnings for clang
     if {[string match *gcc* ${configure.compiler}]} {
-		reinplace "s|-Wno-invalid-source-encoding||g" ${tmake_conf}
-	}
+        reinplace "s|-Wno-invalid-source-encoding||g" ${tmake_conf}
+    }
 }
 
-build.target		all
+build.target            all
 
-destroot.target		install
-destroot.args		INSTALL=${prefix} \
-			DOCDIR=${prefix}/share/doc/doxygen \
-			MAN1DIR=share/man/man1
+destroot.target         install
+destroot.args           INSTALL=${prefix} \
+                        DOCDIR=${prefix}/share/doc/doxygen \
+                        MAN1DIR=share/man/man1
 
 variant docs description {Include the doxygen PDF documentation and LaTeX} requires {latex} {
-  destroot.target-append  install_docs
-  build.target-append     pdf
-  use_parallel_build      no
+    destroot.target-append  install_docs
+    build.target-append     pdf
+    use_parallel_build      no
 }
 
 variant latex description {Support LaTeX/PDF doxygen output} {
-  depends_build-append  bin:pdflatex:texlive \
-                        bin:gs:ghostscript \
-                        port:texlive-latex-extra
+    depends_build-append    bin:pdflatex:texlive \
+                            bin:gs:ghostscript \
+                            port:texlive-latex-extra
 }
 
 variant wizard description {Include the GUI wizard based on Qt4} {
@@ -120,10 +130,10 @@
     PortGroup qt4 1.0
 
     # tell configure to make the wizard app
-    configure.args-append	--with-doxywizard
+    configure.args-append   --with-doxywizard
 
-	# on Macs, qmake builds .app directories; when installing, copy
-	# this directory to the correct location (via the reinplace below).
+    # on Macs, qmake builds .app directories; when installing, copy
+    # this directory to the correct location (via the reinplace below).
     patchfiles-append       patch-addon_doxywizard_Makefile.in.diff
 
     post-patch {
@@ -149,16 +159,16 @@
             ${worksrcpath}/addon/doxywizard/Makefile.in
     }
 
-	post-destroot {
-		# allow doxywizard to be called from the command line
-		ln -s ${applications_dir}/DoxyWizard.app/Contents/MacOS/DoxyWizard ${destroot}${prefix}/bin/doxywizard
-	}
+    post-destroot {
+        # allow doxywizard to be called from the command line
+        ln -s ${applications_dir}/DoxyWizard.app/Contents/MacOS/DoxyWizard ${destroot}${prefix}/bin/doxywizard
+    }
 }
 
 platform darwin {
-	# Specify the platform explicitly to avoid a universal build.
-	global tmake_conf
+    # Specify the platform explicitly to avoid a universal build.
+    global tmake_conf
 
-		set tmake_conf	${worksrcpath}/tmake/lib/macosx-c++/tmake.conf
-		configure.args-append	--platform macosx-c++
+    set tmake_conf ${worksrcpath}/tmake/lib/macosx-c++/tmake.conf
+    configure.args-append   --platform macosx-c++
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130306/ed9785b4/attachment.html>


More information about the macports-changes mailing list