Since I now have a mac for work, I've been moving my old work files and creating some packages for macports. Here's the first of the lot that I use regularly, it's for mr - a Multiple Repository management tool

# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- 
# vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id$
PortSystem      1.0
name            mr
version         0.48
categories      devel
maintainers     tchpc.tcd.ie:jtang
description     a Multiple Repository management tool
homepage        http://kitenet.net/~joey/code/mr/
master_sites    http://ftp.de.debian.org/debian/pool/main/m/mr/
distfiles       mr_${version}${extract.suffix}
distname        mr
depends_lib     port:perl5.8

use_configure       no

checksums           md5     3d3770f7d4b1bb4f92cdfa9c57090dfe \
                    sha1    bdaac495252c562f708e9ddda47b3f54424eb07a \
                    rmd160  ee55d5c9ec37719c5c56d98ed314d4693dd0e102


build.args    PERL_PATH="${prefix}/bin/perl" DESTDIR=${destroot} prefix=${prefix}
destroot.destdir  DESTDIR=${destroot} prefix=${prefix}

build.target      build

configure {}

destroot {
     xinstall -m 755 -d ${destroot}${prefix}/bin
     xinstall -m 755 ${worksrcpath}/mr ${destroot}${prefix}/bin
     xinstall -m 755 ${worksrcpath}/webcheckout ${destroot}${prefix}/bin

     xinstall -m 755 -d ${destroot}${prefix}/share/man/man1
     xinstall -m 755 ${worksrcpath}/mr.1 ${destroot}${prefix}/share/man/man1
     xinstall -m 755 ${worksrcpath}/webcheckout.1 ${destroot}${prefix}/share/man/man1
}

dwm or pristine-tar is on my hit list next.

Bookmark and Share