-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
Portfile
41 lines (33 loc) · 1.59 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
# -*- 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 adodb
version 5.20.9
set branch [join [lrange [split ${version} .] 0 0] .]
categories databases
license BSD
maintainers nomaintainer
description Database library for PHP
long_description {*}${description}
homepage http://adodb.sourceforge.net/
platforms any
supported_archs noarch
set file_version [join [lrange [split ${version} .] 0 1] ""]
master_sites sourceforge:project/adodb/adodb-php5-only/adodb-${file_version}-for-php5
worksrcdir ${name}${branch}
checksums rmd160 dc435eae56d98fb7fbe115d9d855c9308cf8098c \
sha256 3017d846a5fd2c5cf10b6eda88f462e19907b28798564df55b86eb7d498b3305
use_configure no
build {}
set adodbdir ${prefix}/share
set docsdir ${prefix}/share/doc/${name}/cute_icons_for_site
destroot {
xinstall -m 755 -d ${destroot}${adodbdir}
xinstall -m 755 -d ${destroot}${docsdir}/cute_icons_for_site
system "cp -R ${worksrcpath} ${destroot}${adodbdir}"
system "cp ${worksrcpath}/docs/* ${destroot}${docsdir}"
system "cp ${worksrcpath}/cute_icons_for_site/*.* ${destroot}${docsdir}/cute_icons_for_site"
}
livecheck.url http://sourceforge.net/projects/adodb/files/adodb-php5-only/
livecheck.type regex
livecheck.version ${file_version}
livecheck.regex "${name}-(\\d+\[a-z\]?)-for-php5"