Ticket #55440: libpsl.diff

File libpsl.diff, 3.3 KB (added by ryandesign (Ryan Carsten Schmidt), 6 years ago)
  • Portfile

     
    44PortGroup           github 1.0
    55
    66github.setup        rockdaboot libpsl 0.19.1 libpsl-
    7 revision            1
     7revision            2
    88license             MIT
    99description         A C library and utility to handle the Public Suffix List
    1010long_description    ${description}
     
    1212categories          net
    1313platforms           darwin
    1414
    15 checksums           rmd160  d0002fc6c4e2cd65e5659d817b4eb72c2c05c384 \
    16                     sha256  fd4dba59846928bcc6f030719ae38b7480523d1be94db135be505263357992ee
     15# Delete this line when updating to the next version.
     16dist_subdir         ${name}/${version}_1
    1717
     18github.tarball_from releases
     19
     20checksums           rmd160  a9e5d338db0a58d1de496dfce6f7f4273cf854da \
     21                    sha256  735146b51bbd3dcb6b0f87819c64bf3115f7fb9fa2e3a7fe9966e3346a8abc79 \
     22                    size    9072973
     23
    1824depends_build-append \
    1925                    port:pkgconfig \
    20                     port:automake \
    21                     port:autoconf \
    22                     port:libtool \
    2326                    port:gtk-doc \
    2427                    port:python27
    2528
     
    2932                    port:libidn2 \
    3033                    port:libunistring
    3134
    32 # latest Public Suffix List data is referenced as a git submodule
    33 # in the libpsl git repo but not included in the libpsl tarball itself
    34 # download separately to enable generation of built-in PSL data
    35 # PSL data is current as of 20171028
    36 
    37 set psl_data_dir        ${workpath}
    38 set psl_data_commit     85fa8fbdf73a0f2fcf5f4790c204394557dfbaf3
    39 set psl_data_archive    ${psl_data_commit}.zip
    40 set psl_data_url        https://github.com/publicsuffix/list/archive
    41 
    42 post-extract {
    43     curl fetch ${psl_data_url}/${psl_data_archive} ${psl_data_dir}/${psl_data_archive}
    44     system "/usr/bin/unzip -d ${worksrcpath} ${psl_data_dir}/${psl_data_archive}"
    45     delete ${worksrcpath}/list
    46     move ${worksrcpath}/list-${psl_data_commit} ${worksrcpath}/list
    47 }
    48 
    49 # we're not building from a git clone so remove references to git in autogen.sh
    50 patchfiles          disable-unnecessary-git-processing.patch
    51 
    5235post-patch {
    5336    reinplace "s|^#!.*|#!${prefix}/bin/python2.7|" \
    5437        ${worksrcpath}/src/psl-make-dafsa
     
    5538}
    5639
    5740configure.python    ${prefix}/bin/python2.7
    58 configure.cmd       ./autogen.sh && ./configure
    5941
    6042configure.args      --enable-builtin=libidn2 \
    6143                    --enable-gtk-doc \
  • files/disable-unnecessary-git-processing.patch

     
    1 --- autogen.sh.orig     2017-11-19 19:01:02.000000000 -0800
    2 +++ autogen.sh  2017-11-19 19:01:32.000000000 -0800
    3 @@ -6,12 +6,6 @@
    4    exit 1
    5  fi
    6  
    7 -GIT=$(which git 2>/dev/null)
    8 -if test $? -ne 0; then
    9 -  echo "No 'git' found. You must install the git package."
    10 -  exit 1
    11 -fi
    12 -
    13  #  create m4 before gtkdocize
    14  mkdir -p m4 2>/dev/null
    15  
    16 @@ -27,8 +21,6 @@
    17    $GTKDOCIZE
    18  fi
    19  
    20 -$GIT submodule init
    21 -$GIT submodule update
    22  $AUTORECONF --install --force --symlink
    23  
    24  echo