[27909] trunk/dports/devel/curlhandle

source_changes at macosforge.org source_changes at macosforge.org
Wed Aug 15 16:18:08 PDT 2007


Revision: 27909
          http://trac.macosforge.org/projects/macports/changeset/27909
Author:   nox at macports.org
Date:     2007-08-15 16:18:08 -0700 (Wed, 15 Aug 2007)

Log Message:
-----------
curlhandle:
 * Ported to xcode portgroup.
 * Corrected dependencies.
 * Documentation is know correctly installed in the framework Resources directory.
 * Disabled universal support.
 * Added sha1 and rmd160 checksums and livecheck.

Modified Paths:
--------------
    trunk/dports/devel/curlhandle/Portfile

Removed Paths:
-------------
    trunk/dports/devel/curlhandle/files/patch-CURLHandle.m

Modified: trunk/dports/devel/curlhandle/Portfile
===================================================================
--- trunk/dports/devel/curlhandle/Portfile	2007-08-15 23:12:04 UTC (rev 27908)
+++ trunk/dports/devel/curlhandle/Portfile	2007-08-15 23:18:08 UTC (rev 27909)
@@ -1,78 +1,60 @@
 # $Id$
+
 PortSystem		1.0
+PortGroup		xcode 1.0
 
 name			curlhandle
+set my_name		CURLHandle
 version			1.9
 categories		devel framework
-platforms		darwin
-maintainers		nomaintainer at macports.org
+maintainers		nomaintainer
 description		CURLHandle is a framework wrapper around a CURL
+
 long_description	${description}
+
 homepage		http://curlhandle.sourceforge.net/
 master_sites	${homepage}
-set framework	CURLHandle
-distname		${framework}_${version}
+distname		${my_name}_${version}
 extract.suffix	.tgz
-checksums		md5 7b1d79b09777b0818370ea1b5b2f002a
 
-set xcodebuilddir               build
+checksums		md5 7b1d79b09777b0818370ea1b5b2f002a \
+				sha1 76e4ac1e40397afa00035a57ab10573d2e1e3f38 \
+				rmd160 4620ce536d636da764d60835c80bd374b9a747e4
 
-platform darwin 8 {
-if {$xcodeversion == "2.1"} {
-        set xcodebuilddir       build/Deployment
-}
-}
+# curlhandle is linked against curl statically so it only needs it at build time.
+depends_build	port:curl
 
-depends_lib		lib:libz.1:zlib \
-			lib:libssl.0.9:openssl \
-			port:curl
+xcode.project			${my_name}Source/${my_name}.pbproj
+xcode.destroot.type		framework
 
-extract.dir		${worksrcpath}
-pre-extract		{ file mkdir ${worksrcpath} }
-
-patchfiles		patch-CURLHandle.m
 post-patch {
-	cd ${worksrcpath}
-	reinplace "s|/tmp/curl|${worksrcpath}/curl|g" \
-		${framework}Source/${framework}.pbproj/project.pbxproj
-	reinplace "s|/usr/local/lib/libcurl|${prefix}/lib/libcurl|g" \
-		${framework}Source/${framework}.pbproj/project.pbxproj
-	reinplace "s|/Library/Frameworks/${framework}.framework|../${framework}Source/${xcodebuilddir}/${framework}.framework|" \
-		${framework}TesterSource/${framework}Tester.pbproj/project.pbxproj
+	cd ${worksrcpath}/${xcode.project}
+
+	reinplace "s|/tmp/curl|${worksrcpath}/curl|g" project.pbxproj
+	reinplace "s|/usr/local/lib/libcurl|${prefix}/lib/libcurl|g" project.pbxproj
 }
 
-use_configure	no
+extract.dir ${worksrcpath}
 
-build.dir		${worksrcpath}/${framework}Source
-build.type		pbx
-build.target	-target ${framework}
-build.args		-buildstyle Deployment
-post-build {
-	cd ${worksrcpath}
-	system "install_name_tool \
-		-id /Library/Frameworks/${framework}.framework/${framework} \
-		${framework}Source/${xcodebuilddir}/${framework}.framework/${framework}"
-
- 	system "mkdir -p ${framework}TesterSource/${xcodebuilddir}"
-        system "ln -s ${worksrcpath}/${framework}Source/${xcodebuilddir}/${framework}.framework \
-                ${worksrcpath}/${framework}TesterSource/${xcodebuilddir}/${framework}.framework"
-	build.dir		${framework}TesterSource
-	build.target	-target ${framework}Tester
-	system "[command build]"
+pre-extract {
+	file mkdir ${worksrcpath}
 }
 
-destroot {
-	cd ${worksrcpath}
-	xinstall -d -m 0755 ${destroot}/Library/Frameworks
-	system "cp -R ${framework}Source/${xcodebuilddir}/${framework}.framework \
-		${destroot}/Library/Frameworks"
-	xinstall -d -m 0755 ${destroot}/Applications/MacPorts
-	system "cp -R ${framework}TesterSource/${xcodebuilddir}/${framework}Tester.app \
-		${destroot}/Applications/MacPorts"
-	xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${framework}
-	xinstall -m 0644 ReleaseNotes.txt DevNotes.txt \
-		${destroot}${prefix}/share/doc/${framework}
-	system "cp -R Documentation \
-		${destroot}${prefix}/share/doc/${framework}/Documentation"
+post-destroot {
+	xinstall -d ${destroot}/Library/Frameworks
+	copy "${worksrcpath}/[file dirname ${xcode.project}]/build/UninstalledProducts/${my_name}.framework" \
+		${destroot}/Library/Frameworks
+
+	cd ${destroot}/Library/Frameworks/${my_name}.framework
+	set docdir Versions/A/Resources/Documentation
+	xinstall -d ${docdir}
+	eval xinstall -m 0644 [glob ${worksrcpath}/Documentation/*.html] ${docdir}
+	ln -s Versions/A/Resources
 }
 
+universal_variant no
+
+livecheck.check	regex
+livecheck.url	${homepage}
+livecheck.regex <td>(\\d+(?:\\.\\d+)*)</td>
+

Deleted: trunk/dports/devel/curlhandle/files/patch-CURLHandle.m
===================================================================
--- trunk/dports/devel/curlhandle/files/patch-CURLHandle.m	2007-08-15 23:12:04 UTC (rev 27908)
+++ trunk/dports/devel/curlhandle/files/patch-CURLHandle.m	2007-08-15 23:18:08 UTC (rev 27909)
@@ -1,35 +0,0 @@
---- CURLHandleSource/CURLHandle.m.orig	Mon Oct 18 15:35:43 2004
-+++ CURLHandleSource/CURLHandle.m	Mon Oct 18 15:36:02 2004
-@@ -12,8 +12,8 @@
- #define NSS(s) (NSString *)(s)
- #include <SystemConfiguration/SystemConfiguration.h>
- 
--#warning # If you build with a curl that was built under 10.2, the result will not be 10.1-compatible.
--#warning # ... so For 10.1 compatibility, please build curl under 10.1.
-+// #warning # If you build with a curl that was built under 10.2, the result will not be 10.1-compatible.
-+// #warning # ... so For 10.1 compatibility, please build curl under 10.1.
- 
- 
- // Un-comment these to do some debugging things
-@@ -358,10 +358,10 @@
- 		[mPort setDelegate:self];
- 
- #if 1
--#warning # this may be leaking ... there are two retains going on here.  Apple bug report #2885852, still open after TWO YEARS!
-+// #warning # this may be leaking ... there are two retains going on here.  Apple bug report #2885852, still open after TWO YEARS!
- 		[[NSRunLoop currentRunLoop] addPort:mPort forMode:(NSString *)kCFRunLoopCommonModes];
- #else
--#warning # This attempt to compensate for the leak causes crashes....
-+// #warning # This attempt to compensate for the leak causes crashes....
- {
- 			int oldCount = [mPort retainCount];
- 			int newCount;
-@@ -852,7 +852,7 @@
- 
- - (NSString *)headerString
- {
--#warning We can't really assume a header encoding, trying 7-bit ASCII only.  Maybe there is some way to know?
-+// #warning We can't really assume a header encoding, trying 7-bit ASCII only.  Maybe there is some way to know?
- 
- 	if (nil == mHeaderString)		// Has it not been initialized yet?
- 	{

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070815/89ecbbbb/attachment.html


More information about the macports-changes mailing list