[79090] trunk/dports/devel/roboctl

ryandesign at macports.org ryandesign at macports.org
Wed Jun 1 21:06:07 PDT 2011


Revision: 79090
          http://trac.macports.org/changeset/79090
Author:   ryandesign at macports.org
Date:     2011-06-01 21:06:06 -0700 (Wed, 01 Jun 2011)
Log Message:
-----------
roboctl: update to 0.3.7, ensure we're UsingTheRightCompiler and build arch, indicate license; see #29679

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

Added Paths:
-----------
    trunk/dports/devel/roboctl/files/
    trunk/dports/devel/roboctl/files/patch-Commands-Legoctl-Makefile.diff
    trunk/dports/devel/roboctl/files/patch-Scripts-lego_bluetooth_config.diff

Modified: trunk/dports/devel/roboctl/Portfile
===================================================================
--- trunk/dports/devel/roboctl/Portfile	2011-06-02 03:29:20 UTC (rev 79089)
+++ trunk/dports/devel/roboctl/Portfile	2011-06-02 04:06:06 UTC (rev 79090)
@@ -3,10 +3,11 @@
 PortSystem	1.0
 
 name		roboctl
-version		0.3.6
+version		0.3.7
 categories	devel
 platforms	darwin
 maintainers	tds.net:jwbacon
+license		BSD
 
 description	Communication tools for Lego and VEX robots
 long_description	Tools for communicating with and controlling Lego \
@@ -16,24 +17,30 @@
 master_sites	http://personalpages.tds.net/~jwbacon/Ports/distfiles/ \
 		http://jbacon.dyndns.org/~bacon/Ports/distfiles/
 
-checksums	md5 1a9e5d45367359fbcbd16370f29ae899 \
-		sha1 17e2bbbcd4189c9baf4b212b8f6c2d98423a2b91 \
-		rmd160 136c6c532a860321bd2b0341b32a504660cd2ff6
+checksums	sha1    6edf410f34d3c3507c48cf10b13c9aa946acef33 \
+		rmd160  e7cbc213e6aa20ecd09439dbb9d035948805b09f
 
+depends_lib	port:libusb-compat
+
+patchfiles	patch-Commands-Legoctl-Makefile.diff
+
 use_configure	no
 
-depends_lib	port:libusb-compat
+build.args	LOCALBASE=${prefix} \
+		PREFIX=${prefix} \
+		MANPREFIX=${prefix}/share \
+		CC="${configure.cc} ${configure.cc_archflags}"
 
+pre-build {
+	system "cd ${worksrcpath} && make depend [join ${build.args}]"
+}
+
 destroot.destdir	PREFIX=${destroot}${prefix}
-build.cmd	"make depend && make"
-build.args	"LOCALBASE=${prefix} PREFIX=${prefix} MANPREFIX=${prefix}/share"
-destroot.args	"MANPREFIX=${prefix}/share"
-post-patch {
+destroot.args	MANPREFIX=${prefix}/share
+
+platform darwin {
 	if {${os.major} >= 9} {
-		reinplace "s|echo -e|echo|g" \
-			${worksrcpath}/Commands/Legoctl/Makefile \
-			${worksrcpath}/Commands/Vexctl/Makefile \
-			${worksrcpath}/Libs/C/Makefile
+		patchfiles-append patch-Scripts-lego_bluetooth_config.diff
 	}
 }
 

Added: trunk/dports/devel/roboctl/files/patch-Commands-Legoctl-Makefile.diff
===================================================================
--- trunk/dports/devel/roboctl/files/patch-Commands-Legoctl-Makefile.diff	                        (rev 0)
+++ trunk/dports/devel/roboctl/files/patch-Commands-Legoctl-Makefile.diff	2011-06-02 04:06:06 UTC (rev 79090)
@@ -0,0 +1,11 @@
+--- Commands/Legoctl/Makefile.orig	2010-12-26 08:46:27.000000000 -0600
++++ Commands/Legoctl/Makefile	2011-06-01 22:38:01.000000000 -0500
+@@ -42,7 +42,7 @@
+ INCLUDES?= -I../../Libs/C -I${LOCALBASE}/include
+ CFLAGS  += -Wall ${INCLUDES}
+ 
+-LFLAGS1 += -L../../Libs/C -lroboctl -L${LOCALBASE}/lib -lusb -lbluetooth
++LFLAGS1 += -L../../Libs/C -lroboctl -L${LOCALBASE}/lib -lusb 
+ 
+ INSTALL ?= install
+ LN      ?= ln

Added: trunk/dports/devel/roboctl/files/patch-Scripts-lego_bluetooth_config.diff
===================================================================
--- trunk/dports/devel/roboctl/files/patch-Scripts-lego_bluetooth_config.diff	                        (rev 0)
+++ trunk/dports/devel/roboctl/files/patch-Scripts-lego_bluetooth_config.diff	2011-06-02 04:06:06 UTC (rev 79090)
@@ -0,0 +1,26 @@
+--- Scripts/lego_bluetooth_config.orig	2010-07-27 08:07:46.000000000 -0500
++++ Scripts/lego_bluetooth_config	2011-06-01 22:38:01.000000000 -0500
+@@ -54,10 +54,10 @@
+ 	    
+ 	    echo "" > $tempfile
+ 	    echo "device {" >> $tempfile
+-	    echo -e "\tbdaddr $addr;" >> $tempfile
+-	    echo -e "\tname \"$name\";" >> $tempfile
+-	    echo -e "\tkey nokey;" >> $tempfile
+-	    echo -e "\tpin \"$pin\";" >> $tempfile
++	    echo "\tbdaddr $addr;" >> $tempfile
++	    echo "\tname \"$name\";" >> $tempfile
++	    echo "\tkey nokey;" >> $tempfile
++	    echo "\tpin \"$pin\";" >> $tempfile
+ 	    echo "}" >> $tempfile
+ 	    
+ 	    hcsecd_conf='/etc/bluetooth/hcsecd.conf'
+@@ -72,7 +72,7 @@
+ 	    bt_hosts='/etc/bluetooth/hosts'
+ 	    if [ "0`grep $addr $bt_hosts`" = "0" ]; then
+ 		echo "Adding $addr to $bt_hosts..."
+-		echo -e "$addr\t$name" >> $bt_hosts
++		echo "$addr\t$name" >> $bt_hosts
+ 	    else
+ 		echo "$addr already in $bt_hosts"
+ 	    fi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110601/22a8f6ea/attachment.html>


More information about the macports-changes mailing list