# $Id: Portfile 65531 2010-03-27 02:59:32Z ryandesign@macports.org $

PortSystem 1.0
name			hymn
version			0.8.0
categories		audio
platforms		darwin
maintainers		nomaintainer
homepage		http://hymn-project.org
description		Utility for removing DRM on AAC files

long_description	The purpose of hymn is to allow you to excercise your \
			fair-use rights under copyright law. It allows you to \
			free your iTunes Music Store purchases from their DRM \
			restrictions with no sound quality loss. These songs \
			can then be played outside the iTunes environment, even \
			on operating systems not supported by iTunes. It works \
			on Mac OS X, many Unix(-ish) variants and on Windows.

master_sites		http://hymn-project.org/archive/

checksums		md5 61ab842b4fbf3715b70d0e2efd61c1c6

distname		${name}-${version}src

destroot {		xinstall -m 755 ${worksrcpath}/src/cli/${name} \
					${destroot}${prefix}/bin
			}

post-destroot {		xinstall -d ${destroot}${prefix}/share/doc/${name}
			xinstall -m 644 -v -W ${worksrcpath} \
				AUTHORS ChangeLog COPYING NEWS README THANKS \
				${destroot}${prefix}/share/doc/${name}
			file copy ${worksrcpath}/doc \
				${destroot}${prefix}/share/doc/${name}/manual
			system "cd ${destroot}${prefix}/share/doc/${name}/manual \
				&& rm -r Makefile* hymn-version*"
			}


variant cocoa {
	destroot {	xinstall -d -m 755 ${destroot}/Applications/MacPorts
			file copy ${worksrcpath}/src/cocoa_ui/build/${name}.app \
			${destroot}/Applications/MacPorts/${name}.app
		}
	}

pre-fetch       {
        return -code error "This application is subject to a cease and desist order barring distribution."
}

livecheck.type		none
