/
Portfile
87 lines (68 loc) · 3.15 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
# -*- 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
name littleutils
version 1.2.6a
revision 0
categories sysutils
maintainers {mps @Schamschula} openmaintainer
license GPL-3+ ijg permissive
description littleutils includes various small and useful command-line utilities
long_description The littleutils include a duplicate file finder (repeats), \
image optimizers (opt-jpg, opt-png, opt-gif, recomp-jpg), \
file rename tools (lowercase, uppercase, pren), archive \
recompressors (to-gzip, to-bzip, to-7zip, to-lzma, \
to-lzip, to-xz), a tempfile utility (tempname), file \
property tools (filedate, filemode, filenode, fileown, \
filesize, and lrealpath), and others.
homepage https://sourceforge.net/projects/littleutils/
master_sites sourceforge:project/littleutils/littleutils-source/${version}/
use_xz yes
platforms {darwin >= 11}
checksums rmd160 6c4a765c7f35f800d76260e3085f5a453d91ff22 \
sha256 ddf9dc4aed18dbacd8c950d7bf788f29dedeabb1431f06aa6532fd79274fe8ca \
size 219492
perl5.major 5.34
depends_build port:gettext
depends_lib port:bash \
port:bzip2 \
port:dash \
port:file \
port:gettext-runtime \
port:ghostscript \
port:gifsicle \
port:gzip \
port:img2pdf \
port:imlib2 \
port:lzip \
port:lzma \
port:lzop \
port:p${perl5.major}-cryptx \
port:p7zip \
port:perl${perl5.major} \
port:pngcrush \
port:pngquant \
path:lib/pkgconfig/poppler.pc:poppler \
port:xz \
port:zstd
configure.args PROGPERL=${perl5.bin}
destroot.target "install install-extra"
variant python38 conflicts python39 python310 python311 description {Use Python 3.8} {}
variant python39 conflicts python38 python310 python311 description {Use Python 3.9} {}
variant python310 conflicts python38 python39 python311 description {Use Python 3.10} {}
variant python311 conflicts python38 python39 python310 description {Use Python 3.11} {}
if {![variant_isset python38] && ![variant_isset python39] && ![variant_isset python310]} {
default_variants +python311
}
foreach pv {311 310 39 38} {
if {[variant_isset python${pv}]} {
depends_lib-append \
port:python${pv}
set python.branch \
[string index ${pv} 0].[string range ${pv} 1 end]
configure.env \
PROGPYTHON=${prefix}/bin/python${python.branch}
break
}
}
livecheck.regex /${name}-(\[0-9a.\]+)${extract.suffix}