[19789] trunk/dports/devel/cups-headers

source_changes at macosforge.org source_changes at macosforge.org
Sat Sep 30 03:52:33 PDT 2006


Revision: 19789
          http://trac.macosforge.org/projects/macports/changeset/19789
Author:   rhwood at macports.org
Date:     2006-09-30 03:52:33 -0700 (Sat, 30 Sep 2006)

Log Message:
-----------
Rework to only install headers on Jaguar.

Modified Paths:
--------------
    trunk/dports/devel/cups-headers/Portfile

Added Paths:
-----------
    trunk/dports/devel/cups-headers/files/
    trunk/dports/devel/cups-headers/files/README.cups-headers.txt

Modified: trunk/dports/devel/cups-headers/Portfile
===================================================================
--- trunk/dports/devel/cups-headers/Portfile	2006-09-30 10:44:55 UTC (rev 19788)
+++ trunk/dports/devel/cups-headers/Portfile	2006-09-30 10:52:33 UTC (rev 19789)
@@ -2,24 +2,34 @@
 
 PortSystem 1.0
 
-name	 		cups-headers
-version			1.1.15
-description		temporary port providing cups headers for jaguar
-platforms		darwin
-categories		devel
-maintainers		darwinports at opendarwin.org
+name	 	cups-headers
+version		1.1.15
+revision	1
+description	CUPS (Common Unix Printing System) headers for Jaguar (Mac OS X 10.3.x)
+platforms	darwin
+categories	devel
+maintainers	macports-dev at lists.macosforge.org
 
-distname		cups
-master_sites		http://www.opensource.apple.com/projects/cups/
-checksums		md5 b2aed0b50372687a56f4e665fdd85bee
+distname	cups
+master_sites	http://www.opensource.apple.com/projects/cups/
+checksums	md5 b2aed0b50372687a56f4e665fdd85bee
 
-configure		{}
-build			{
-				system "perl -pi -e 's,includedir=/usr/include,includedir=${prefix}/include,' '${workpath}/${worksrcdir}/cups-config'"
-			}
+configure	{}
+build		{}
+destroot	{
+	file mkdir ${destroot}${prefix}/share/doc/
+	file copy ${filespath}/README.cups-headers.txt ${destroot}${prefix}/share/doc
+}
 
-destroot		{
-				system "install -d -m 755 '${destroot}${prefix}/bin'"
-				system "install -c -m 755 '${workpath}/${worksrcdir}/cups-config' '${destroot}${prefix}/bin/'cups-config"
-				system "cd '${workpath}/${worksrcdir}' && make installhdrs INCLUDEDIR='${destroot}${prefix}/include'"
-			}
+variant darwin_7	{
+	build	{
+		system "perl -pi -e 's,includedir=/usr/include,includedir=${prefix}/include,' '${workpath}/${worksrcdir}/cups-config'"
+	}
+	destroot	{
+		system "install -d -m 755 '${destroot}${prefix}/bin'"
+		system "install -c -m 755 '${workpath}/${worksrcdir}/cups-config' '${destroot}${prefix}/bin/'cups-config"
+		system "cd '${workpath}/${worksrcdir}' && make installhdrs INCLUDEDIR='${destroot}${prefix}/include'"
+		file mkdir ${destroot}${prefix}/share/doc/
+		file copy ${filespath}/README.cups-headers.txt ${destroot}${prefix}/share/doc
+	}
+}

Added: trunk/dports/devel/cups-headers/files/README.cups-headers.txt
===================================================================
--- trunk/dports/devel/cups-headers/files/README.cups-headers.txt	                        (rev 0)
+++ trunk/dports/devel/cups-headers/files/README.cups-headers.txt	2006-09-30 10:52:33 UTC (rev 19789)
@@ -0,0 +1,8 @@
+The cups-headers port is a placeholder port that is only really meaningful
+on Mac OS X 10.3.x (Jaguar).
+
+If you have ports on other versions of Mac OS X that break on bad cups headers
+or library files, then this port should be uninstalled.
+
+This port should only install this readme file on versions of Mac OS X other
+than Jaguar.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20060930/39de60af/attachment.html


More information about the macports-changes mailing list