-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
Portfile
104 lines (79 loc) · 3.13 KB
/
Portfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
PortSystem 1.0
PortGroup github 1.0
github.setup rockdaboot libpsl 0.20.2 libpsl-
# when incrementing version or revision please check
# that psl_data_commit and psl_data_date refer to latest
# publicsuffix/list git master commit
revision 0
license MIT
description A C library and utility to handle the Public Suffix List
long_description ${description}
maintainers nomaintainer
categories net
platforms darwin
github.tarball_from releases
set main_distfile ${distfiles}
set psl_data_commit 5d3dfdf7f074ca2831d7c2413cf50b976a019a39
set psl_data_date 20190205
set psl_data_worksrcdir publicsuffix-list-[string range ${psl_data_commit} 0 6]
set psl_data_distname ${psl_data_worksrcdir}
set psl_data_distfile ${psl_data_distname}${extract.suffix}
version ${version}-${psl_data_date}
distfiles ${main_distfile}:main \
${psl_data_distfile}:list
master_sites ${github.master_sites}:main \
https://github.com/publicsuffix/list/tarball/${psl_data_commit}:list
checksums ${main_distfile} \
rmd160 418230d331d2976c111263f3c1280d47929f48cb \
sha256 f8fd0aeb66252dfcc638f14d9be1e2362fdaf2ca86bde0444ff4d5cc961b560f \
size 9228099 \
${psl_data_distfile} \
rmd160 42db7a91fcfc146e8be112be445d5febaa3ca3db \
sha256 e798eb356c11db44a8fe20d548dd6a6a0e2e4d186a513ede86ec1d2abe45fc3a \
size 86824
depends_build-append \
port:pkgconfig \
port:python27
depends_lib-append path:lib/pkgconfig/glib-2.0.pc:glib2 \
port:gettext \
port:libiconv \
port:libidn2 \
port:libunistring
license_noconflict python27
post-extract {
# Replace older bundled publicsuffix list.
delete ${worksrcpath}/list
move ${workpath}/${psl_data_worksrcdir} ${worksrcpath}/list
}
post-patch {
reinplace "s|^#!.*|#!${prefix}/bin/python2.7|" \
${worksrcpath}/src/psl-make-dafsa
}
configure.python ${prefix}/bin/python2.7
configure.args --enable-builtin=libidn2 \
--disable-silent-rules
subport libpsl-docs {
description GTK docs for libpsl.
long_description ${description}
}
if {${subport} eq ${name}} {
configure.args-append \
--disable-gtk-doc \
--disable-gtk-doc-html \
--disable-gtk-doc-pdf
notes "libpsl API documentation is provided by the port 'libpsl-docs'."
} else {
depends_build-append \
port:gtk-doc
depends_lib-append \
port:libpsl
configure.args-append \
--enable-gtk-doc
post-destroot {
delete ${destroot}${prefix}/bin \
${destroot}${prefix}/include \
${destroot}${prefix}/lib \
${destroot}${prefix}/share/man
}
}