Ticket #53887: Portfile.diff

File Portfile.diff, 4.0 KB (added by janstary (Jan Starý), 7 years ago)

upgrade mandoc to 1.14.1

  • textproc/mandoc/Portfile

    diff --git a/textproc/mandoc/Portfile b/textproc/mandoc/Portfile
    index 7db5044c83..a146824060 100644
    a b  
    33PortSystem          1.0
    44
    55name                mandoc
    6 version             1.13.3
     6version             1.14.1
     7description         UNIX manpage compiler
     8homepage            http://mdocml.bsd.lv/
    79categories          textproc
    810license             ISC
    911maintainers         eitanadler.com:lists stare.cz:hans openmaintainer
    10 description         The mandoc UNIX manpage compiler toolset
    11 homepage            http://mdocml.bsd.lv/
    12 platforms           darwin freebsd
     12platforms           openbsd freebsd netbsd darwin
    1313
    1414long_description    mandoc is a suite of tools compiling mdoc, \
    1515                    the roff macro language of choice for \
    long_description mandoc is a suite of tools compiling mdoc, \ 
    1818
    1919master_sites        http://mdocml.bsd.lv/snapshots/
    2020
     21livecheck.name      mdocml
    2122distname            mdocml-${version}
    22 checksums           rmd160  47d1096708b45b15d8f198404fd6608d164bb66a \
    23                     sha256  23ccab4800d50bf4c327979af5d4aa1a6a2dc490789cb67c4c3ac1bd40b8cad8
    24 
    25 depends_lib         port:sqlite3
    26 
    27 # Without declaring a universal variant before using get_canonical_archflags,
    28 # only non-universal arch flags are returned.
    29 # This works around it.
    30 # Another way around the problem would be setting build.env in pre-build.
    31 # Kudos to jmr and ryandesign for explaining that.
    32 variant universal   {}
    33 
    34 build.env           CFLAGS="${configure.cppflags} ${configure.cflags} [get_canonical_archflags cc]" \
    35                     LDFLAGS="${configure.ldflags} [get_canonical_archflags ld]"
    36 build.args          CC="${configure.cc}"
     23checksums           rmd160  2e2d593e3f6cfcde3bdf57b090947b355ce2b2e8 \
     24                    sha256  356954f141ec6f5635e938c826f2e16e4619bb361c64d84a31f6775d030a615b
    3725
    3826pre-configure {
    3927    set filename "${worksrcpath}/configure.local"
    4028    set content [subst {
    41 CC="${configure.cc}"
    42 CFLAGS="${configure.cppflags} ${configure.cflags} [get_canonical_archflags cc]"
    43 LDFLAGS="${configure.ldflags} [get_canonical_archflags ld]"
    44 DBLIB="-lsqlite3"
    45 HAVE_SQLITE3="1"
    46 BUILD_DB="1"
    47 BUILD_CGI="0"
    4829
    49 # Rename mandoc binaries (and their manpages.)
    50 BINM_APROPOS="mapropos"
    51 BINM_MAN="mman"
    52 BINM_WHATIS="mwhatis"
    53 BINM_MAKEWHATIS="mmakewhatis"
     30PREFIX="${prefix}"
     31MANDIR="${prefix}/share/man"
    5432
    55 # Rename mandoc manpages.
     33MANM_MANCONF="mandoc.conf"
    5634MANM_MAN="mandoc_man"
     35MANM_MDOC="mandoc_mdoc"
    5736MANM_ROFF="mandoc_roff"
    5837MANM_EQN="mandoc_eqn"
    5938MANM_TBL="mandoc_tbl"
    6039
    61 PREFIX="${prefix}"
    62 BINDIR="${prefix}/bin"
    63 SBINDIR="${prefix}/sbin"
    64 INCLUDEDIR="${prefix}/include"
    65 LIBDIR="${prefix}/lib"
    66 MANDIR="${prefix}/share/man"
    67 EXAMPLEDIR="${prefix}/share/examples/mandoc"
     40BINM_MAN="mman"
     41BINM_APROPOS="mapropos"
     42BINM_WHATIS="mwhatis"
     43BINM_MAKEWHATIS="mandocdb"
     44BINM_SOELIM="msoelim"
    6845
    69 INSTALL_PROGRAM="${configure.install} -m 0755"}
    70     ]
     46INSTALL_PROGRAM="${configure.install} -m 0755"
     47INSTALL_LIB="${configure.install} -m 0644"
     48INSTALL_MAN="${configure.install} -m 0644"
     49INSTALL_DATA="${configure.install} -m 0644"
    7150
    72     set fd [open "${filename}" "w"]
     51INSTALL_LIBMANDOC=0
     52BUILD_CGI=0
     53BUILD_CATMAN=0
    7354
    74     puts -nonewline "${fd}" "${content}"
     55CC="${configure.cc}"
     56CFLAGS="${configure.cppflags} ${configure.cflags} [get_canonical_archflags cc]"
     57LDFLAGS="${configure.ldflags} [get_canonical_archflags ld]"
    7558
     59} ]
     60
     61    set fd [open "${filename}" "w"]
     62    puts -nonewline "${fd}" "${content}"
    7663    close "${fd}"
    7764}
     65
     66# Without declaring a universal variant before using get_canonical_archflags,
     67# only non-universal arch flags are returned.
     68# This works around it.
     69# Another way around the problem would be setting build.env in pre-build.
     70# Kudos to jmr and ryandesign for explaining that.
     71variant universal   {}
     72
     73build.env           CFLAGS="${configure.cppflags} ${configure.cflags} [get_canonical_archflags cc]" \
     74                    LDFLAGS="${configure.ldflags} [get_canonical_archflags ld]"
     75build.args          CC="${configure.cc}"