[58022] trunk/dports/aqua/Smultron/Portfile

toby at macports.org toby at macports.org
Sun Sep 20 15:30:18 PDT 2009


Revision: 58022
          http://trac.macports.org/changeset/58022
Author:   toby at macports.org
Date:     2009-09-20 15:30:15 -0700 (Sun, 20 Sep 2009)
Log Message:
-----------
update to 3.6b1 to fix #21520 (Can't build Smultron after upgrade to Snow Leopard and migration of MacPort)

Also remove a bunch of useless stuff from the port, use $applications_dir, and create symlinks sanely.

Modified Paths:
--------------
    trunk/dports/aqua/Smultron/Portfile

Modified: trunk/dports/aqua/Smultron/Portfile
===================================================================
--- trunk/dports/aqua/Smultron/Portfile	2009-09-20 20:53:38 UTC (rev 58021)
+++ trunk/dports/aqua/Smultron/Portfile	2009-09-20 22:30:15 UTC (rev 58022)
@@ -4,7 +4,7 @@
 PortGroup xcode 1.0
 
 name			Smultron
-version			3.5.1
+version			3.6b1
 categories		aqua editors
 platforms		darwin
 maintainers		bfulgham
@@ -12,7 +12,7 @@
 description		Cocoa text editor with syntax colouring
 
 long_description	Smultron is an open-source text editor written in Cocoa \
-			for Mac OS X Panther with many of the features that you \
+			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, \
@@ -23,47 +23,19 @@
 			
 			
 master_sites		sourceforge:smultron
-checksums           md5     08af90e57f58c4b2c99b376815ddfc43 \
-                    sha1    b559ac4f83f4f14ee86d1695c12a05c106b04930 \
-                    rmd160  414b3e41b9902f8f2bcfb22ac507a9c7fb9637d1
+checksums           md5     73844a1bce1f9ff546d49be291658e85 \
+                    sha1    723ec603c2d2371172cce3a9096adc46469a6ad7 \
+                    rmd160  1b40870e2b028ecda156e1899378fb89e6214809
 
 
 use_zip			yes
 distname		${name}Source-${version}
+worksrcdir      ${name}Source
 
-pre-fetch {
-    if {[variant_isset darwin_7] || [variant_isset darwin_8]} {
-        return -code error "${name} ${version} only builds on Mac OS X Leopard (10.5.x). Sorry."
-    }
-}
-
-use_configure		no
-
-platform darwin 7 { }
-platform darwin 8 { }
-
-platform darwin 9 {
-	if {$xcodeversion == "2.1"} {
-		set xcodebuilddir	build/Deployment
-	}
-}
-
-build.type		pbx
-build.dir		${workpath}/${name}Source
-
 destroot	{
-	xinstall -m 755 -d ${destroot}/Applications/MacPorts
+	xinstall -m 755 -d ${destroot}${applications_dir}
 	file copy ${workpath}/${name}Source/build/Release/Smultron.app \
-		${destroot}/Applications/MacPorts
+		${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"
 }
-
-post-activate {
-	system "ln -sf /Applications/MacPorts/Smultron.app/Contents/Resources/smultron ${prefix}/bin/smultron"
-	system "ln -sf /Applications/MacPorts/Smultron.app/Contents/Resources/smultron.1 ${prefix}/share/man/man1/smultron.1"
-}
-
-# post-uninstall {
-# 	file delete -force ${prefix}/bin/smultron
-# 	file delete -force ${prefix}/bin/smultron.1
-#}
-
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090920/2ef4026d/attachment.html>


More information about the macports-changes mailing list