Portfile

# $Id: Portfile 22478 2007-03-02 05:16:40Z pipping@macports.org $

PortSystem 1.0

name BigSQL
version 1.0
categories aqua databases
maintainers nomaintainer@macports.org
platforms darwin
description postgresql psql-like client in cocoa
long_description BigSQL is a PostgreSQL client (not unlike psql). It \
enables the user to send SQL to a server and display the \
result. Written in Cocoa, it is quite pretty.

homepage http://www.bignerdranch.com/Resources/
master_sites ${homepage}
distname ${name}src
extract.suffix .tgz
checksums md5 687748bc5bf54ea2af6b1af63ff52772
patchfiles patch-project.pbxproj.diff

depends_lib lib:pq:postgresql

set worksrcpath ${workpath}/${name}

configure { reinplace "s|DPORTSPREFIX|${prefix}|g" \
${worksrcpath}/BigSQL.pbproj/project.pbxproj }

build.dir ${worksrcpath}
build.type pbx
build.target -buildstyle Deployment

set xcodebuilddir build
platform darwin 8 {
if {$xcodeversion == "2.1"} {
set xcodebuilddir build/Deployment
}
}

destroot { system "install -m 755 -d \
${destroot}/Applications/MacPorts \
&& ditto -rsrcFork ${worksrcpath}/${xcodebuilddir}/BigSQL.app \
${destroot}/Applications/MacPorts/BigSQL.app \
&& install -m 755 -d ${destroot}${prefix}/share/doc/${name} \
&& install -m 644 ${worksrcpath}/README.txt \
${destroot}${prefix}/share/doc/${name}" }
destroot.target

files