# $Id: Portfile 50984 2009-05-14 21:08:43Z and.damore@macports.org $

PortSystem        1.0
name              sclj
version           3.2
categories        net
maintainers       genetikayos.com:kayos
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       path:bin/perl:perl5
use_bzip2         yes

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

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

build {}

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

