# $Id: Portfile 86786 2011-11-04 05:20:35Z boeyms@macports.org $

PortSystem 1.0

name            webarchiver
version         0.3
categories      www
platforms       darwin
maintainers     nomaintainer
description     Command-line tool to create Safari-style webarchives
long_description \
    webarchiver is a simply utility that allows you to create Safari\
    webarchives (.webarchive) from the command line.\
    webarchiver is compatible with Mac OS X 10.4 (Safari 2.0).
homepage   http://www.entropytheblog.com/blog/2008/11/webarchiver-create-safari-webarchives-from-the-command-line/
master_sites    macports
#master_sites    http://github.com/paulwilliam/webarchiver/tarball/${version}/
set author      paulwilliam
set commit_sha1 14f7c37ff6016a2d200f40f1f67245be849cec35
#distname        ${author}-${name}-${commit_sha1}
worksrcdir      ${author}-${name}-${commit_sha1}
checksums       md5     b96f0ba9e80f122a1c1cfb58a4576d0a \
                sha1    37d93162ff88adff9bec9e30c780ca7446f3d81b \
                rmd160  bc98ccb42f6b4268ba60163e78c647a5d4139494
use_configure   no
build.cmd       xcodebuild
build.target    build
# At present, this port builds universal by default.  I will fix this once I
# figure out how to, but it's so tiny that it's not a big deal for now.
destroot {
    xinstall -m 755 \
        ${worksrcpath}/build/Release/webarchiver ${destroot}${prefix}/bin
    xinstall -d -m 755 ${destroot}${prefix}/share/doc/webarchiver
    xinstall -m 644 \
        ${worksrcpath}/README ${destroot}${prefix}/share/doc/webarchiver
#    The source doesn't currently have a man page; guess I'll have to write
#    one eventually.  The following will be added once I've done so.
#    xinstall -m 644 ${filespath}/webarchiver.1 ${prefix}/share/man/man1
}
