PortSystem 1.0
PortGroup xcode 1.0

name			Smultron
version			3.6b1
categories		aqua editors
platforms		darwin
maintainers		nomaintainer
homepage		http://smultron.sourceforge.net/
description		Cocoa text editor with syntax colouring

long_description	Smultron is an open-source text editor written in Cocoa \
			for Mac OS X with many of the features that you \
			might need. It features easy selection of the opened documents, \
			line numbers, support for syntax colouring for many different \
			languages, support for text encodings, code snippets, a toolbar, \
			a status bar, HTML preview, multi-document find and replace with \
			regular expressions, possibility to show invisible characters, \
			authenticated saves, command-line utility, .Mac synchronisation \
			of preferences and many more features.
			
			
master_sites		sourceforge:smultron
checksums           md5     73844a1bce1f9ff546d49be291658e85 \
                    sha1    723ec603c2d2371172cce3a9096adc46469a6ad7 \
                    rmd160  1b40870e2b028ecda156e1899378fb89e6214809


use_zip			yes
distname		${name}Source-${version}
worksrcdir      ${name}Source

destroot	{
	xinstall -m 755 -d ${destroot}${applications_dir}
	file copy ${workpath}/${name}Source/build/Release/Smultron.app \
		${destroot}${applications_dir}
	system "ln -sf ${applications_dir}/Smultron.app/Contents/Resources/smultron ${destroot}${prefix}/bin/smultron"
	system "ln -sf ${applications_dir}/Smultron.app/Contents/Resources/smultron.1 ${destroot}${prefix}/share/man/man1/smultron.1"
}
