[Pkg-cli-libs-commits] [SCM] mono.reflection branch, master, updated. upstream/1.0+git20110407+d2343843-16-g6ff1499

Jo Shields directhex at apebox.org
Tue Aug 9 21:17:10 UTC 2011


The following commit has been merged in the master branch:
commit 976c2d0cc92644213ea3634963c0da8c363ad5de
Author: Jo Shields <directhex at apebox.org>
Date:   Tue Aug 9 22:01:55 2011 +0100

    Build a .pc file, and clean it in the clean rule.

diff --git a/debian/mono.reflection.pc.in b/debian/mono.reflection.pc.in
new file mode 100644
index 0000000..10d2343
--- /dev/null
+++ b/debian/mono.reflection.pc.in
@@ -0,0 +1,9 @@
+prefix=/usr
+assemblies_dir=${prefix}/lib/mono-reflection
+Libraries=${assemblies_dir}/Mono.Reflection.dll
+
+Name: Mono.Reflection
+Description: Mono.Reflection Library
+Version: none
+Libs: -r:${Libraries}
+
diff --git a/debian/rules b/debian/rules
index ece55aa..00ae6a1 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,6 +9,15 @@ include /usr/share/cli-common/cli.make
 override_dh_auto_build:
 	xbuild Mono.Reflection.csproj
 
+	sed -e 's;@prefix@;/usr;g' \
+		-e 's;^Version:.*;Version:\ $(UPVERSION);g' \
+		debian/mono.reflection.pc.in > debian/mono.reflection.pc
+
+override_dh_clean:
+	rm -f debian/mono.reflection.pc
+	xbuild Mono.Reflection.csproj /target:clean
+	dh_clean
+
 %:
 	dh $@
 

-- 
mono.reflection



More information about the Pkg-cli-libs-commits mailing list