[47912] trunk/dports/sysutils/smart

afb at macports.org afb at macports.org
Mon Mar 9 15:16:24 PDT 2009


Revision: 47912
          http://trac.macports.org/changeset/47912
Author:   afb at macports.org
Date:     2009-03-09 15:16:23 -0700 (Mon, 09 Mar 2009)
Log Message:
-----------
add test target too

Modified Paths:
--------------
    trunk/dports/sysutils/smart/Portfile

Added Paths:
-----------
    trunk/dports/sysutils/smart/files/patch-Makefile

Modified: trunk/dports/sysutils/smart/Portfile
===================================================================
--- trunk/dports/sysutils/smart/Portfile	2009-03-09 22:10:16 UTC (rev 47911)
+++ trunk/dports/sysutils/smart/Portfile	2009-03-09 22:16:23 UTC (rev 47912)
@@ -23,7 +23,7 @@
 		rmd160 249b9295a09375ff52395fe783c24709515d08e8
 
 use_bzip2	yes
-patchfiles	patch-prefix.diff
+patchfiles	patch-prefix.diff patch-Makefile
 
 depends_lib	lib:librpm:rpm	port:python24
 ### by default, it will run --shell interface.
@@ -41,6 +41,7 @@
 
 build.args-append	PYTHON="${prefix}/bin/python2.4"
 destroot.args-append	PYTHON="${prefix}/bin/python2.4"
+test.args-append	PYTHON="${prefix}/bin/python2.4"
 
 variant rpm5 description "use rpm5, not rpm4" {
 	# uses RPM 5.0.3, instead of the default RPM 4.4.9
@@ -51,6 +52,8 @@
 	build.args-append	PYTHON="${prefix}/bin/python2.5"
 	destroot.args-delete	PYTHON="${prefix}/bin/python2.4"
 	destroot.args-append	PYTHON="${prefix}/bin/python2.5"
+	test.args-delete	PYTHON="${prefix}/bin/python2.4"
+	test.args-append	PYTHON="${prefix}/bin/python2.5"
 }
 
 post-destroot {
@@ -58,6 +61,8 @@
 	                  ${destroot}${prefix}/var/lib/smart
 }
 
+test.run	yes
+
 livecheck.name	smartpm
 livecheck.check	regex
 livecheck.url	${homepage}

Added: trunk/dports/sysutils/smart/files/patch-Makefile
===================================================================
--- trunk/dports/sysutils/smart/files/patch-Makefile	                        (rev 0)
+++ trunk/dports/sysutils/smart/files/patch-Makefile	2009-03-09 22:16:23 UTC (rev 47912)
@@ -0,0 +1,13 @@
+--- Makefile.orig	2009-03-09 23:11:41.000000000 +0100
++++ Makefile	2009-03-09 23:12:18.000000000 +0100
+@@ -45,8 +45,8 @@
+ 	done
+ 
+ test:
+-	./setup.py build_ext -i
+-	LANG=C ./test $(TEST)
++	$(PYTHON) setup.py build_ext -i
++	LANG=C $(PYTHON) test $(TEST)
+ 
+ .PHONY: clean smart.pot update-po check-po test
+ 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090309/fb9917dd/attachment.html>


More information about the macports-changes mailing list