<pre style='margin:0'>
Marius Schamschula (Schamschula) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/83dd50262336828c1cfe20c358ab49a090820c17">https://github.com/macports/macports-ports/commit/83dd50262336828c1cfe20c358ab49a090820c17</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 83dd50262336828c1cfe20c358ab49a090820c17
</span>Author: Aaron Madlon-Kay <aaron@madlon-kay.com>
AuthorDate: Thu Jan 12 11:33:15 2017 +0900
<span style='display:block; white-space:pre;color:#404040;'> Add sqlite3-tools subport to sqlite3
</span>---
databases/sqlite3/Portfile | 40 ++++++++++++++++++++++++++++++++++++++--
1 file changed, 38 insertions(+), 2 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/databases/sqlite3/Portfile b/databases/sqlite3/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 43b33f5..cfd5c37 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/databases/sqlite3/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/databases/sqlite3/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -23,7 +23,8 @@ long_description SQLite3 is an SQL database engine in a C library. \
</span> homepage http://www.sqlite.org/
master_sites ${homepage}2017
<span style='display:block; white-space:pre;background:#ffe0e0;'>-distname sqlite-autoconf-[string range [subst [regsub -all {\.([0-9]+)} "${version}.0.0" {[format %02d \1]}]] 0 6]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set padded_ver [string range [subst [regsub -all {\.([0-9]+)} "${version}.0.0" {[format %02d \1]}]] 0 6]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+distname sqlite-autoconf-${padded_ver}
</span>
checksums rmd160 86b351cfa4321a857fe6987694e188655226951f \
sha256 65cc0c3e9366f50c0679c5ccd31432cea894bc4a3e8947dabab88c8693263615
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -56,9 +57,44 @@ livecheck.url http://www.sqlite.org/news.html
</span> livecheck.regex (3(?:\\.\[0-9\]+)+)
post-destroot {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- xinstall -m 644 ${worksrcpath}/${name}.1 ${destroot}${prefix}/share/man/man1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${subport} eq ${name}} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 644 ${worksrcpath}/${name}.1 ${destroot}${prefix}/share/man/man1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span> }
platform darwin 8 {
configure.cppflags-append -DSQLITE_WITHOUT_ZONEMALLOC
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+subport ${name}-tools {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ distname sqlite-src-${padded_ver}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ description A bundle of command-line tools for managing SQLite \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ database files
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ long_description A bundle of command-line tools for managing SQLite \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ database files, including the sqldiff program and the \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sqlite3_analyzer program.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ checksums rmd160 0b704dbe2e26c3b6153ef2a8108d1b668fd419c0 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 ee77c2cc5cc4a7b0a746a1d4496f7aee0d71c558a3bbfcf8e9e0b35416910337
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ use_zip yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_lib port:tcl
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args --with-tcl=${prefix}/lib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ build.target sqldiff sqlite3_analyzer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 755 ${worksrcpath}/sqldiff ${destroot}${prefix}/bin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 755 ${worksrcpath}/sqlite3_analyzer ${destroot}${prefix}/bin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ pre-activate {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # tcl previously conflicted because it installed files now provided by sqlite3-tools
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {![catch {set installed [lindex [registry_active tcl] 0]}]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set _version [lindex $installed 1]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set _revision [lindex $installed 2]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set _cmp866 [vercmp $_version 8.6.6]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {($_cmp866 < 0) || ($_cmp866 == 0 && $_revision < 1)} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # tcl used to install some files now provided by sqlite3-tools in versions < 8.6.6_1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ registry_deactivate_composite tcl "" [list ports_nodepcheck 1]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span></pre><pre style='margin:0'>
</pre>