Ticket #55440: libpsl-with-updated-publicsuffix-list.diff

File libpsl-with-updated-publicsuffix-list.diff, 4.2 KB (added by ryandesign (Ryan Carsten Schmidt), 7 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 libpsl version.
     16dist_subdir         ${name}/${version}_1
    1717
     18github.tarball_from releases
     19set main_distfile   ${distfiles}
     20
     21set psl_data_commit     85fa8fbdf73a0f2fcf5f4790c204394557dfbaf3
     22set psl_data_worksrcdir publicsuffix-list-[string range ${psl_data_commit} 0 6]
     23set psl_data_distname   ${psl_data_worksrcdir}
     24set psl_data_distfile   ${psl_data_distname}${extract.suffix}
     25
     26distfiles           ${main_distfile}:main \
     27                    ${psl_data_distfile}:list
     28
     29master_sites        ${github.master_sites}:main \
     30                    https://github.com/publicsuffix/list/tarball/${psl_data_commit}:list
     31
     32checksums           ${main_distfile} \
     33                    rmd160  a9e5d338db0a58d1de496dfce6f7f4273cf854da \
     34                    sha256  735146b51bbd3dcb6b0f87819c64bf3115f7fb9fa2e3a7fe9966e3346a8abc79 \
     35                    size    9072973 \
     36                    ${psl_data_distfile} \
     37                    rmd160  076b83dc06612905b295c1771606f15580053a59 \
     38                    sha256  b08f95ebcdf7a9f3a3e2a158f3224ca0824cecfc1a7dbfa0d7ee52ae6b71f1b9 \
     39                    size    83303
     40
    1841depends_build-append \
    1942                    port:pkgconfig \
    20                     port:automake \
    21                     port:autoconf \
    22                     port:libtool \
    2343                    port:gtk-doc \
    2444                    port:python27
    2545
     
    2949                    port:libidn2 \
    3050                    port:libunistring
    3151
    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 
    4252post-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}"
     53    # Replace older bundled publicsuffix list.
    4554    delete ${worksrcpath}/list
    46     move ${worksrcpath}/list-${psl_data_commit} ${worksrcpath}/list
     55    move ${workpath}/${psl_data_worksrcdir} ${worksrcpath}/list
    4756}
    4857
    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 
    5258post-patch {
    5359    reinplace "s|^#!.*|#!${prefix}/bin/python2.7|" \
    5460        ${worksrcpath}/src/psl-make-dafsa
     
    5561}
    5662
    5763configure.python    ${prefix}/bin/python2.7
    58 configure.cmd       ./autogen.sh && ./configure
    5964
    6065configure.args      --enable-builtin=libidn2 \
    6166                    --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