[134197] trunk/dports/devel/bison/Portfile
larryv at macports.org
larryv at macports.org
Thu Mar 19 17:31:07 PDT 2015
Revision: 134197
https://trac.macports.org/changeset/134197
Author: larryv at macports.org
Date: 2015-03-19 17:31:07 -0700 (Thu, 19 Mar 2015)
Log Message:
-----------
bison: Add modeline, rearrange, refactor, and reformat
The bizarre arrangement and indenting will simplify the future commit
that adds the `bison-runtime` subport.
Modified Paths:
--------------
trunk/dports/devel/bison/Portfile
Modified: trunk/dports/devel/bison/Portfile
===================================================================
--- trunk/dports/devel/bison/Portfile 2015-03-20 00:31:05 UTC (rev 134196)
+++ trunk/dports/devel/bison/Portfile 2015-03-20 00:31:07 UTC (rev 134197)
@@ -1,63 +1,69 @@
+# -*- 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 bison
+epoch 1
version 2.7.1
revision 1
-epoch 1
categories devel
+platforms darwin
+license GPL-3+
maintainers mww
-license GPL-3+
-platforms darwin
-description general-purpose parser generator
-long_description \
- Bison is a general-purpose parser generator that converts a grammar \
- description for an LALR context-free grammar into a C program to \
- parse that grammar. Once you are proficient with Bison, you can use \
- it to develop a wide range of language parsers, from those used in \
- simple desk calculators to complex programming languages.
-homepage http://www.gnu.org/software/bison/
+ installs_libs no
+
+ description general-purpose parser generator
+ long_description Bison is a general-purpose parser generator \
+ that converts a grammar description for an \
+ LALR context-free grammar into a C program to \
+ parse that grammar. Once you are proficient \
+ with Bison, you can use it to develop a wide \
+ range of language parsers, from those used in \
+ simple desk calculators to complex programming \
+ languages.
+
+ depends_lib port:gettext \
+ port:libiconv \
+ port:m4
+
+homepage http://www.gnu.org/software/bison
+
master_sites gnu
+use_xz yes
checksums rmd160 933257e61c1098160d4fd71063f340b2ee304671 \
sha256 b409adcbf245baadb68d2f66accf6fdca5e282cafec1b865f4b5e963ba8ea7fb
-use_xz yes
-depends_lib port:gettext port:m4 port:libiconv
-
-installs_libs no
-
configure.args --disable-silent-rules \
--infodir=${prefix}/share/info \
--mandir=${prefix}/share/man \
--disable-yacc
-test.run yes
-test.target check
+ test.run yes
+ test.target check
-post-destroot {
- set docdir ${prefix}/share/doc/${name}
- xinstall -d ${destroot}${docdir}/examples/calc++
- xinstall -m 0444 -W ${worksrcpath} AUTHORS COPYING ChangeLog NEWS \
- THANKS TODO ${destroot}${docdir}
- xinstall -m 444 -W ${worksrcpath}/examples/calc++ \
- calc++-driver.cc calc++-driver.hh calc++-parser.cc \
- calc++-parser.hh calc++-parser.stamp calc++-parser.yy \
- calc++-scanner.cc calc++-scanner.ll calc++.cc location.hh \
- position.hh stack.hh test \
- ${destroot}${docdir}/examples/calc++
- # yacc manpage gets installed even with '--disable-yacc'
- if {! [variant_isset yacc]} {
- delete ${destroot}${prefix}/share/man/man1/yacc.1
+ post-destroot {
+ set docdir ${prefix}/share/doc/${name}
+ xinstall -d ${destroot}${docdir}/examples/calc++
+ xinstall -m 0444 -W ${worksrcpath} AUTHORS COPYING ChangeLog NEWS \
+ THANKS TODO ${destroot}${docdir}
+ xinstall -m 444 -W ${worksrcpath}/examples/calc++ \
+ calc++-driver.cc calc++-driver.hh calc++-parser.cc \
+ calc++-parser.hh calc++-parser.stamp calc++-parser.yy \
+ calc++-scanner.cc calc++-scanner.ll calc++.cc location.hh \
+ position.hh stack.hh test \
+ ${destroot}${docdir}/examples/calc++
+ # yacc manpage gets installed even with '--disable-yacc'
+ if {! [variant_isset yacc]} {
+ delete ${destroot}${prefix}/share/man/man1/yacc.1
+ }
}
-}
variant yacc description "enable yacc compatibility" {
configure.args-delete --disable-yacc
}
-livecheck.type regex
-livecheck.url http://ftp.gnu.org/gnu/bison/?C=M&O=D
-livecheck.regex ${name}-(\\d+(?:\\.\\d+)*)
-
+ livecheck.type regex
+ livecheck.url http://ftp.gnu.org/gnu/bison/?C=M&O=D
+ livecheck.regex ${name}-(\\d+(?:\\.\\d+)*)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150319/ac3aceee/attachment.html>
More information about the macports-changes
mailing list