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
4 4 PortGroup github 1.0 5 5 6 6 github.setup rockdaboot libpsl 0.19.1 libpsl- 7 revision 17 revision 2 8 8 license MIT 9 9 description A C library and utility to handle the Public Suffix List 10 10 long_description ${description} … … 12 12 categories net 13 13 platforms darwin 14 14 15 checksums rmd160 d0002fc6c4e2cd65e5659d817b4eb72c2c05c384 \ 16 sha256 fd4dba59846928bcc6f030719ae38b7480523d1be94db135be505263357992ee 15 # Delete this line when updating to the next libpsl version. 16 dist_subdir ${name}/${version}_1 17 17 18 github.tarball_from releases 19 set main_distfile ${distfiles} 20 21 set psl_data_commit 85fa8fbdf73a0f2fcf5f4790c204394557dfbaf3 22 set psl_data_worksrcdir publicsuffix-list-[string range ${psl_data_commit} 0 6] 23 set psl_data_distname ${psl_data_worksrcdir} 24 set psl_data_distfile ${psl_data_distname}${extract.suffix} 25 26 distfiles ${main_distfile}:main \ 27 ${psl_data_distfile}:list 28 29 master_sites ${github.master_sites}:main \ 30 https://github.com/publicsuffix/list/tarball/${psl_data_commit}:list 31 32 checksums ${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 18 41 depends_build-append \ 19 42 port:pkgconfig \ 20 port:automake \21 port:autoconf \22 port:libtool \23 43 port:gtk-doc \ 24 44 port:python27 25 45 … … 29 49 port:libidn2 \ 30 50 port:libunistring 31 51 32 # latest Public Suffix List data is referenced as a git submodule33 # in the libpsl git repo but not included in the libpsl tarball itself34 # download separately to enable generation of built-in PSL data35 # PSL data is current as of 2017102836 37 set psl_data_dir ${workpath}38 set psl_data_commit 85fa8fbdf73a0f2fcf5f4790c204394557dfbaf339 set psl_data_archive ${psl_data_commit}.zip40 set psl_data_url https://github.com/publicsuffix/list/archive41 42 52 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}" 53 # Replace older bundled publicsuffix list. 45 54 delete ${worksrcpath}/list 46 move ${work srcpath}/list-${psl_data_commit} ${worksrcpath}/list55 move ${workpath}/${psl_data_worksrcdir} ${worksrcpath}/list 47 56 } 48 57 49 # we're not building from a git clone so remove references to git in autogen.sh50 patchfiles disable-unnecessary-git-processing.patch51 52 58 post-patch { 53 59 reinplace "s|^#!.*|#!${prefix}/bin/python2.7|" \ 54 60 ${worksrcpath}/src/psl-make-dafsa … … 55 61 } 56 62 57 63 configure.python ${prefix}/bin/python2.7 58 configure.cmd ./autogen.sh && ./configure59 64 60 65 configure.args --enable-builtin=libidn2 \ 61 66 --enable-gtk-doc \ -
files/disable-unnecessary-git-processing.patch
1 --- autogen.sh.orig 2017-11-19 19:01:02.000000000 -08002 +++ autogen.sh 2017-11-19 19:01:32.000000000 -08003 @@ -6,12 +6,6 @@4 exit 15 fi6 7 -GIT=$(which git 2>/dev/null)8 -if test $? -ne 0; then9 - echo "No 'git' found. You must install the git package."10 - exit 111 -fi12 -13 # create m4 before gtkdocize14 mkdir -p m4 2>/dev/null15 16 @@ -27,8 +21,6 @@17 $GTKDOCIZE18 fi19 20 -$GIT submodule init21 -$GIT submodule update22 $AUTORECONF --install --force --symlink23 24 echo