Ticket #23212: gzip-doc-variant.diff

File gzip-doc-variant.diff, 1.3 KB (added by ryandesign (Ryan Carsten Schmidt), 15 years ago)

hypothetical change to add a doc variant with texinfo dependency

  • files/patch-Makefile.am-no-doc.diff

     
     1--- Makefile.am.orig    2010-03-23 10:40:24.000000000 -0500
     2+++ Makefile.am 2010-03-23 10:40:41.000000000 -0500
     3@@ -17,7 +17,7 @@
     4 # with this program; if not, write to the Free Software Foundation, Inc.,
     5 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
     6 
     7-SUBDIRS = lib doc
     8+SUBDIRS = lib
     9 ACLOCAL_AMFLAGS = -I m4
     10 AM_CPPFLAGS = -I$(top_srcdir)/lib
     11 AM_CFLAGS = $(WARN_CFLAGS) $(WERROR_CFLAGS)
  • Portfile

     
    44
    55name            gzip
    66version         1.4
     7revision        1
    78categories      archivers
    89platforms       darwin freebsd
    910maintainers     mww openmaintainer
     
    2324patchfiles \
    2425    patch-gzip-rsyncable.diff
    2526
     27variant doc description {Install documentation} {
     28    depends_build-append    port:texinfo
     29}
     30if {![variant_isset doc]} {
     31    patchfiles-append       patch-Makefile.am-no-doc.diff
     32    use_autoreconf          yes
     33}
     34
    2635configure.args  DEFS=NO_ASM
    2736
    2837use_parallel_build yes