/
Portfile
42 lines (32 loc) · 1.26 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
# -*- 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
name string_replace
version 0.1
categories textproc perl
license GPL-2
platforms any
supported_archs noarch
maintainers nomaintainer
description searches and replaces a text string or regular expression
long_description This tool was designed to go through text files (meaning: \
text, html, php, etc.) to search for and replace a \
particular text string (or regular expression).
# original homepage, master_sites are dead
# only available via MacPorts distfile mirrors
homepage http://freecode.com/projects/string_replace
master_sites macports_distfiles:${name}
checksums md5 9b855c0b4d0514965f0b175b982fa768
use_bzip2 yes
depends_run bin:perl:perl5
patch {
reinplace "s|/usr/bin/perl|/usr/bin/env perl|g" \
${workpath}/${name}/${name}.pl
}
use_configure no
build {}
destroot {
xinstall -m 755 ${workpath}/${name}/${name}.pl \
${destroot}${prefix}/bin/${name}
}
# no updates expected
livecheck.type none