[78167] trunk/dports/devel/cryptlib

ryandesign at macports.org ryandesign at macports.org
Wed Apr 27 05:32:35 PDT 2011


Revision: 78167
          http://trac.macports.org/changeset/78167
Author:   ryandesign at macports.org
Date:     2011-04-27 05:32:32 -0700 (Wed, 27 Apr 2011)
Log Message:
-----------
cryptlib: update to 3.4 and clean up the port a bit

Modified Paths:
--------------
    trunk/dports/devel/cryptlib/Portfile
    trunk/dports/devel/cryptlib/files/lresolv.diff
    trunk/dports/devel/cryptlib/files/patch-crypt_osconfig.h

Modified: trunk/dports/devel/cryptlib/Portfile
===================================================================
--- trunk/dports/devel/cryptlib/Portfile	2011-04-27 10:07:28 UTC (rev 78166)
+++ trunk/dports/devel/cryptlib/Portfile	2011-04-27 12:32:32 UTC (rev 78167)
@@ -3,8 +3,8 @@
 PortSystem		1.0
 
 name			cryptlib
-version			3.3.3
-revision		1
+version             3.4.0
+set branch          [join [lrange [split ${version} .] 0 1] .]
 categories		devel security crypto
 maintainers		nomaintainer
 description		cryptlib is a powerful security toolkit (library)
@@ -22,17 +22,17 @@
 homepage		http://www.cs.auckland.ac.nz/~pgut001/cryptlib/
 master_sites	ftp://ftp.franken.de/pub/crypt/cryptlib/ \
                 http://www.cypherpunks.to/~peter/
-distname		cl[join [split $version .] ""]
-dist_subdir     ${name}/${version}_1
+distname            cl[join [split $version .] ""]
 use_zip			yes
-checksums		md5 98effb4644e1336a57bd3be50bae07d4 \
-				sha1 f745ec44b4578b76eae49702035b635a004dfa14
 
-worksrcdir		cryptlib
+checksums           sha1    78f7599971c889a55346ddf858e3ef147a5270f0 \
+                    rmd160  d38cf69841942670f84e4c2d64a708f5cb3d4299
+
 pre-extract {
-	extract.pre_args-append		"-a"
-	extract.post_args			"-d ${worksrcpath}"
+    # DOS to UNIX line endings.
+    extract.pre_args-append -a
 }
+extract.mkdir       yes
 
 use_configure	no
 
@@ -42,21 +42,17 @@
                 CC="${configure.cc}"
 
 destroot {
-	set drprefix	${destroot}${prefix}
-	file mkdir "${drprefix}/lib" "${drprefix}/include" \
-		"${drprefix}/share/doc/${name}"
-	xinstall -m 644 ${worksrcpath}/libcl.a ${worksrcpath}/${cryptlibDylib} \
-		${drprefix}/lib
-	system "ln -s ${cryptlibDylib} ${drprefix}/lib/${cryptlibDylibLink}"
-	xinstall -m 644 ${worksrcpath}/cryptlib.h ${drprefix}/include
-	xinstall -m 644 ${worksrcpath}/README ${drprefix}/share/doc/${name}
-	system "/bin/echo ${homepage} > ${drprefix}/share/doc/${name}/website"
+    xinstall -m 644 ${worksrcpath}/libcl.a ${worksrcpath}/${cryptlibDylib} ${destroot}${prefix}/lib
+    ln -s ${cryptlibDylib} ${destroot}${prefix}/lib/${cryptlibDylibLink}
+    xinstall -m 644 ${worksrcpath}/cryptlib.h ${destroot}${prefix}/include
+    xinstall -d ${destroot}${prefix}/share/doc/${name}
+    xinstall -m 644 ${worksrcpath}/README ${destroot}${prefix}/share/doc/${name}
 }
 
 platform darwin {
     patchfiles-append patch-crypt_osconfig.h
 	global cryptlibDylib cryptlibDylibLink
-	set cryptlibDylib		libcl.3.3.dylib
+	set cryptlibDylib		libcl.${branch}.dylib
 	set cryptlibDylibLink	libcl.dylib
 }
 
@@ -67,6 +63,6 @@
 platform sunos {
 	global cryptlibDylib cryptlibDylibLink
 	patchfiles-append	patch-makefile.sunos
-	set cryptlibDylib		libcl.so.3.3
+	set cryptlibDylib		libcl.so.${branch}
 	set cryptlibDylibLink	libcl.so
 }

Modified: trunk/dports/devel/cryptlib/files/lresolv.diff
===================================================================
--- trunk/dports/devel/cryptlib/files/lresolv.diff	2011-04-27 10:07:28 UTC (rev 78166)
+++ trunk/dports/devel/cryptlib/files/lresolv.diff	2011-04-27 12:32:32 UTC (rev 78167)
@@ -10,9 +10,9 @@
  
  	'FreeBSD'|'NetBSD')
  		echo "-lpthread" ;;
---- makefile.orig	2009-07-21 01:02:22.000000000 +1000
-+++ makefile	2009-09-22 06:38:58.000000000 +1000
-@@ -1409,7 +1409,7 @@
+--- makefile.orig	2010-11-19 04:08:54.000000000 -0600
++++ makefile	2011-04-27 07:05:00.000000000 -0500
+@@ -1482,7 +1482,7 @@
  $(DYLIBNAME):	$(OBJS) $(EXTRAOBJS) $(TESTOBJS)
  				@$(LD) -dynamiclib -compatibility_version $(MAJ).$(MIN) \
  					-current_version $(MAJ).$(MIN).$(PLV) \

Modified: trunk/dports/devel/cryptlib/files/patch-crypt_osconfig.h
===================================================================
--- trunk/dports/devel/cryptlib/files/patch-crypt_osconfig.h	2011-04-27 10:07:28 UTC (rev 78166)
+++ trunk/dports/devel/cryptlib/files/patch-crypt_osconfig.h	2011-04-27 12:32:32 UTC (rev 78167)
@@ -1,6 +1,6 @@
---- crypt/osconfig.h.orig	2009-05-07 02:07:36.000000000 +1000
-+++ crypt/osconfig.h	2009-09-22 05:53:36.000000000 +1000
-@@ -231,6 +231,10 @@
+--- crypt/osconfig.h.orig	2010-12-19 04:14:06.000000000 -0600
++++ crypt/osconfig.h	2011-04-27 07:05:00.000000000 -0500
+@@ -257,6 +257,10 @@
    #else
  	#define L_ENDIAN
    #endif
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110427/d2e4804e/attachment-0001.html>


More information about the macports-changes mailing list