Ticket #55440: libpsl.diff
File libpsl.diff, 3.3 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 version. 16 dist_subdir ${name}/${version}_1 17 17 18 github.tarball_from releases 19 20 checksums rmd160 a9e5d338db0a58d1de496dfce6f7f4273cf854da \ 21 sha256 735146b51bbd3dcb6b0f87819c64bf3115f7fb9fa2e3a7fe9966e3346a8abc79 \ 22 size 9072973 23 18 24 depends_build-append \ 19 25 port:pkgconfig \ 20 port:automake \21 port:autoconf \22 port:libtool \23 26 port:gtk-doc \ 24 27 port:python27 25 28 … … 29 32 port:libidn2 \ 30 33 port:libunistring 31 34 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 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}/list46 move ${worksrcpath}/list-${psl_data_commit} ${worksrcpath}/list47 }48 49 # we're not building from a git clone so remove references to git in autogen.sh50 patchfiles disable-unnecessary-git-processing.patch51 52 35 post-patch { 53 36 reinplace "s|^#!.*|#!${prefix}/bin/python2.7|" \ 54 37 ${worksrcpath}/src/psl-make-dafsa … … 55 38 } 56 39 57 40 configure.python ${prefix}/bin/python2.7 58 configure.cmd ./autogen.sh && ./configure59 41 60 42 configure.args --enable-builtin=libidn2 \ 61 43 --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