# $Id: Portfile,v 1.1 2006/06/17 13:54:59 mww Exp $

PortSystem        1.0
name              sclj
version           3.2
categories        net
maintainers       kayos@genetikayos.com
platforms         darwin
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://sclj.sourceforge.net/
master_sites      sourceforge:sclj
checksums         sha1 338c156478a63e5db656f58495d9fe2e4fbcbeec
depends_run       port:perl5.8
use_bzip2         yes

patchfiles        patch-src-Makefile \
                  patch-Make.vars \
                  patch-man-man1-Makefile

configure {
	cd ${worksrcpath}/src
	reinplace "s|\/usr\/bin\/perl|${prefix}\/bin\/perl|" \
		sclj scljconv scljed
}

build {}

pre-destroot {
	reinplace "s|install:|install: foo|g" ${worksrcpath}/Makefile
	system "touch ${worksrcpath}/foo"
}
destroot.destdir	PREFIX=${destroot}${prefix}

