# $Id: Portfile,v 1.1 2006/04/29 11:29:19 mww Exp $

PortSystem		1.0
name			jlj
version			2.12
categories		net
maintainers		mstevens@etla.org
description		A livejournal client
long_description  JLJ is a command-line interface for posting to \
				  livejournal. Posts are edited in your default editor.
homepage		  http://patsy.cis.rit.edu/Software/perl/
master_sites	  http://patsy.cis.rit.edu/Software/perl/
distname          ${name}_${version}
checksums		  md5 55724c4d6d26211f34803ef856075234
depends_run       port:perl5.8

worksrcdir        jlj
configure	  {
	reinplace "s|\/usr\/bin\/perl|${prefix}\/bin\/perl|" \
		"${workpath}/jlj/jlj.pl"
}
build			  {}
destroot     {
	xinstall -d -m 0755 ${destroot}${prefix}/bin
	xinstall -m 0755 ${workpath}/jlj/jlj.pl ${destroot}${prefix}/bin/jlj
	xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}
	xinstall -m 0644 ${workpath}/jlj/README.JLJ ${destroot}${prefix}/share/doc/${name}
	xinstall -d -m 0755 ${destroot}/${prefix}/share/examples/${name}
	xinstall -m 0644 ${workpath}/jlj/.livejournal.rc ${destroot}${prefix}/share/examples/${name}/livejournal.rc
}
