# $Id: Portfile,v 1.17 2005/10/26 20:10:56 mww Exp $

PortSystem 1.0
name		pine
version		4.64
categories	mail
maintainers	sean@fuzzymagic.com
description	Pine - a Program for Internet News and Email
homepage	http://www.washington.edu/pine/
platforms	darwin

long_description Pine is a tool for reading, sending, and managing \
		 electronic messages that was designed with novice \
		 users in mind.

master_sites	ftp://ftp.cac.washington.edu/pine/ \
		ftp://ftp.cac.washington.edu/pine/old/
checksums   md5 75af127948cc0c701d424d22d621f792
distname	${portname}${portversion}
extract.suffix	.tar.Z

use_configure	no

build.cmd	sh ${worksrcpath}/build
build.target	osx

variant ssl_plain	{ build.args SSLTYPE=unix }

destroot	{ xinstall -m 755 -d \
			${destroot}${prefix}/share/doc/${portname}
		xinstall -m 755 -W ${worksrcpath}/bin pine pico pilot rpdump \
			rpload ${destroot}${prefix}/bin
		xinstall -m 644 -W ${worksrcpath}/doc pico.1 pilot.1 pine.1 \
			rpdump.1 rpload.1 ${destroot}${prefix}/share/man/man1
		xinstall -m 644 -W ${worksrcpath}/doc/tech-notes \
			background.html cmd-line.html config-notes.html \
			config.html index.html installation.html \
			introduction.html low-level.html porting.html \
			${destroot}${prefix}/share/doc/${portname}
		system "${destroot}${prefix}/bin/pine -conf > ${destroot}${prefix}/etc/pine.conf" }

