#! /bin/sh /usr/share/dpatch/dpatch-run
## 01_fix_nunit_reference.dpatch by Jelmer Vernooij <jelmer@samba.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Fix reference to nunit library.

@DPATCH@
diff -urNad flowanalysis~/default.build flowanalysis/default.build
--- flowanalysis~/default.build	2009-05-06 10:45:11.000000000 +0100
+++ flowanalysis/default.build	2009-05-06 10:46:16.000000000 +0100
@@ -1,8 +1,6 @@
 <?xml version="1.0"?>
 <project name="Cecil.FlowAnalysis" default="test">
 
-	<include buildfile="nunit.inc" />
-
 	<property name="Mono.Cecil.dll" value="../../mcs/class/Mono.Cecil/bin/Mono.Cecil.dll" />
 	<property name="build.dir" value="bin" />
 	<property name="booi" value="booi" />
@@ -60,8 +58,10 @@
 			<references basedir="${build.dir}">
 				<include name="Cecil.FlowAnalysis.dll" />
 				<include name="Mono.Cecil.dll" />
-				<include name="${nunit.framework.dll}" />
 			</references>
+			<pkg-references>
+				<package name="nunit"/>
+			</pkg-references>
 		</csc>
 	</target>
 

