-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
Portfile
50 lines (40 loc) · 2.05 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
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortSystem 1.0
PortGroup perl5 1.0
perl5.branches 5.28 5.30 5.32 5.34
perl5.setup File-BaseDir 0.09
revision 0
license {Artistic-1 GPL}
maintainers nomaintainer
supported_archs noarch
description This module can be used to find directories and files as \
specified by the Freedesktop.org Base Directory Specification.
long_description This module can be used to find directories and files as \
specified by the Freedesktop.org Base Directory Specification. \
This specifications gives a mechanism to locate directories for \
configuration, application data and cache data. It is suggested \
that desktop applications for e.g. the Gnome, KDE or Xfce platforms \
follow this layout. However, the same layout can just as well be \
used for non-GUI applications.
platforms {darwin any}
checksums rmd160 1508ead23b56761c68a8892cb59cb48d4f44014d \
sha256 6da6f7281562ac8f11ef1a3af6aedb51c41182b60f1f122ced0079efd92967d9 \
size 21508
if {${perl5.major} != ""} {
depends_build-append \
port:p${perl5.major}-file-which
depends_lib-append \
port:p${perl5.major}-ipc-system-simple
patchfiles patch-lib-File-BaseDir.pm.diff \
patch-t-01-vars.t.diff \
patch-t-03-OO.t.diff
post-patch {
set prefix_words [lrange [split ${prefix} /] 1 end]
reinplace "s|@@MP_PREFIX_WORDS@@|${prefix_words}|" \
${worksrcpath}/lib/File/BaseDir.pm \
${worksrcpath}/t/01_vars.t \
${worksrcpath}/t/03_OO.t
reinplace "s|@@MP_PREFIX_PATH@@|${prefix}|" \
${worksrcpath}/lib/File/BaseDir.pm
}
}