# $Id: Portfile 28073 2007-08-19 18:42:56Z nox@macports.org $

PortSystem		1.0

name			advancescan
version			1.13
maintainers		nomaintainer
platforms		darwin
categories		archivers
description		command line rom manager for many emulators

long_description	AdvanceSCAN is a command line rom manager for MAME, \
					MESS, AdvanceMAME, AdvanceMESS and Raine. It contains \
					also a diff generator of rom sets.

homepage		http://advancemame.sourceforge.net/scan-readme.html
master_sites	sourceforge:advancemame

checksums		md5 1f2c5b7db63f0e7b6ae117b8da69c168 \
				sha1 66c638ec4b42ee695cef69fd5ec44152ad3b2c44 \
				rmd160 f02230d4e63db120b1685460515c732b8ab532c0

configure.args		--mandir=${destroot}${prefix}/share/man

destroot.destdir	prefix=${destroot}${prefix}

post-destroot {
	set docdir ${prefix}/share/doc/${name}-${version}
	xinstall -d ${destroot}${docdir}
	xinstall -m 0644 -W ${worksrcdir} AUTHORS COPYING HISTORY README \
		${destroot}${docdir}
}

livecheck.check	regex
livecheck.url	http://advancemame.sourceforge.net/scan-download.html
livecheck.regex	${name}-(\\d+(?:\\.\\d+)*)
