[Pkg-mono-svn-commits] [sdb] 02/02: First Debianization

Jo Shields directhex at moszumanska.debian.org
Fri Feb 7 12:52:32 UTC 2014


This is an automated email from the git hooks/post-receive script.

directhex pushed a commit to annotated tag debian/1.2-1
in repository sdb.

commit d288dfaa024fd9275c8143d6221755dce70cbff8
Author: Jo Shields <directhex at apebox.org>
Date:   Fri Feb 7 11:58:54 2014 +0000

    First Debianization
---
 debian/changelog                               |  5 +++
 debian/compat                                  |  1 +
 debian/control                                 | 17 ++++++++
 debian/copyright                               | 26 ++++++++++++
 debian/install                                 |  3 ++
 debian/patches/install_sdb.exe_to_usrlib.patch |  8 ++++
 debian/patches/series                          |  3 ++
 debian/patches/use_libreadline.patch           | 10 +++++
 debian/patches/use_systemwide_libs.patch       | 56 ++++++++++++++++++++++++++
 debian/rules                                   | 16 ++++++++
 debian/source/format                           |  1 +
 11 files changed, 146 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..1999f99
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+sdb (1.2-1) unstable; urgency=low
+
+  * Initial release
+
+ -- Jo Shields <directhex at apebox.org>  Fri, 07 Feb 2014 11:32:52 +0000
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..7f8f011
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+7
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..707a1df
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,17 @@
+Source: sdb
+Section: cli-mono
+Priority: extra
+Maintainer: Jo Shields <directhex at apebox.org>
+Build-Depends: debhelper (>= 7.0.50~), cli-common-dev (>= 0.8~), mono-devel (>= 3.0), libicsharpcode-nrefactory-cil-dev, libmono-debugger-libs-cil-dev, libmono-cecil-cil-dev, libreadline6-dev
+Standards-Version: 3.9.4
+Homepage: https://github.com/mono/sdb
+Vcs-Git: git://git.debian.org/git/pkg-mono/packages/sdb.git
+Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-mono/packages/sdb.git;a=summary
+
+Package: sdb
+Architecture: all
+Depends: ${cli:Depends}, ${shlibs:Depends}, ${misc:Depends}
+Description: a command line client for Mono's soft debugger
+ SDB is a command line client for Mono's soft debugger, a cooperative 
+ debugger that is part of the Mono VM. It tries to be similar in 
+ command syntax to tools such as GDB and LLDB.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..0418012
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,26 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: sdb
+Source: https://github.com/mono/sdb
+
+Files: *
+Copyright: © 2013-2014 Alex Rønne Petersen
+           © 2014 Jo Shields
+License: MIT
+ Permission is hereby granted, free of charge, to any person obtaining a copy
+ of this software and associated documentation files (the "Software"), to deal
+ in the Software without restriction, including without limitation the rights
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ copies of the Software, and to permit persons to whom the Software is
+ furnished to do so, subject to the following conditions:
+ .
+ The above copyright notice and this permission notice shall be included in
+ all copies or substantial portions of the Software.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ THE SOFTWARE.
+
diff --git a/debian/install b/debian/install
new file mode 100644
index 0000000..1578472
--- /dev/null
+++ b/debian/install
@@ -0,0 +1,3 @@
+bin/*.exe*	/usr/lib/sdb/
+bin/*.dll*	/usr/lib/sdb/
+bin/sdb		/usr/bin/
diff --git a/debian/patches/install_sdb.exe_to_usrlib.patch b/debian/patches/install_sdb.exe_to_usrlib.patch
new file mode 100644
index 0000000..a789094
--- /dev/null
+++ b/debian/patches/install_sdb.exe_to_usrlib.patch
@@ -0,0 +1,8 @@
+Index: sdb.git/sdb.in
+===================================================================
+--- sdb.git.orig/sdb.in	2014-02-07 12:48:37.976954392 +0000
++++ sdb.git/sdb.in	2014-02-07 12:48:47.976954037 +0000
+@@ -1,2 +1,2 @@
+ #!/usr/bin/env bash
+-MONO_PATH=`dirname $0`:$MONO_PATH exec `which mono` __MONO_OPTIONS__ $MONO_OPTIONS `dirname $0`/sdb.exe "$@"
++MONO_PATH=`dirname $0`:$MONO_PATH exec `which mono` __MONO_OPTIONS__ $MONO_OPTIONS /usr/lib/sdb/sdb.exe "$@"
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..e10a6be
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,3 @@
+use_systemwide_libs.patch
+use_libreadline.patch
+install_sdb.exe_to_usrlib.patch
diff --git a/debian/patches/use_libreadline.patch b/debian/patches/use_libreadline.patch
new file mode 100644
index 0000000..6fe0775
--- /dev/null
+++ b/debian/patches/use_libreadline.patch
@@ -0,0 +1,10 @@
+Index: sdb.git/sdb.exe.config
+===================================================================
+--- sdb.git.orig/sdb.exe.config	2014-02-07 11:31:10.905119406 +0000
++++ sdb.git/sdb.exe.config	2014-02-07 12:42:09.684968180 +0000
+@@ -1,4 +1,4 @@
+ <configuration>
+-    <dllmap dll="libedit" target="libedit.so.2" os="!windows" />
++    <dllmap dll="libedit" target="libreadline.so.6" os="!windows" />
+     <dllmap dll="libedit" target="libedit.dylib" os="osx" />
+ </configuration>
diff --git a/debian/patches/use_systemwide_libs.patch b/debian/patches/use_systemwide_libs.patch
new file mode 100644
index 0000000..f4831bd
--- /dev/null
+++ b/debian/patches/use_systemwide_libs.patch
@@ -0,0 +1,56 @@
+Index: sdb.git/Makefile
+===================================================================
+--- sdb.git.orig/Makefile	2014-02-07 12:25:57.749002692 +0000
++++ sdb.git/Makefile	2014-02-07 12:28:14.916997822 +0000
+@@ -112,37 +112,24 @@
+ 	$(RM) $(tests)
+ 
+ clean-deps:
+-	$(CD) dep/debugger-libs && $(XBUILD) $(XBUILD_FLAGS) /target:Clean
+ 
+ gendarme: bin/sdb.exe
+ 	$(GENDARME) $(GENDARME_FLAGS) --log bin/sdb.log $<
+ 
+ override refs = \
+-	ICSharpCode.NRefactory.dll \
+-	ICSharpCode.NRefactory.CSharp.dll \
+ 	Mono.Cecil.dll \
+ 	Mono.Cecil.Mdb.dll \
+ 	Mono.Debugger.Soft.dll \
+ 	Mono.Debugging.dll \
+ 	Mono.Debugging.Soft.dll
+ 
++override packages = \
++	nrefactory
++
+ $(addprefix bin/, $(refs)):
+-	$(CD) dep/debugger-libs && $(XBUILD) $(XBUILD_FLAGS) debugger-libs.sln
+ 	$(MKDIR) -p bin
+-	$(CP) dep/nrefactory/bin/Debug/ICSharpCode.NRefactory.dll \
+-		bin/ICSharpCode.NRefactory.dll
+-	$(CP) dep/nrefactory/bin/Debug/ICSharpCode.NRefactory.CSharp.dll \
+-		bin/ICSharpCode.NRefactory.CSharp.dll
+-	$(CP) dep/cecil/bin/$(xb_mode)/Mono.Cecil.dll \
+-		bin/Mono.Cecil.dll
+-	$(CP) dep/cecil/bin/$(xb_mode)/Mono.Cecil.Mdb.dll \
+-		bin/Mono.Cecil.Mdb.dll
+-	$(CP) dep/debugger-libs/Mono.Debugger.Soft/bin/Debug/Mono.Debugger.Soft.dll \
+-		bin/Mono.Debugger.Soft.dll
+-	$(CP) dep/debugger-libs/Mono.Debugging/bin/Debug/Mono.Debugging.dll \
+-		bin/Mono.Debugging.dll
+-	$(CP) dep/debugger-libs/Mono.Debugging.Soft/bin/Debug/Mono.Debugging.Soft.dll \
+-		bin/Mono.Debugging.Soft.dll
++	$(CP) `$(PKG_CONFIG) --variable=Libraries mono-cecil` bin/
++	$(CP) `$(PKG_CONFIG) --variable=Libraries mono-debugger` bin/
+ 
+ dep/Options.cs:
+ 	$(CP) `$(PKG_CONFIG) --variable=Sources mono-options` $@
+@@ -197,7 +184,7 @@
+ 	src/Utilities.cs
+ 
+ bin/sdb.exe: $(srcs) $(addprefix bin/, $(refs)) mono.snk
+-	$(MCS) $(MCS_FLAGS) -keyfile:mono.snk -lib:bin -out:bin/sdb.exe -target:exe -r:Mono.Posix $(addprefix -r:, $(refs)) $(srcs)
++	$(MCS) $(MCS_FLAGS) -keyfile:mono.snk -lib:bin -out:bin/sdb.exe -target:exe -r:Mono.Posix $(addprefix -r:, $(refs)) $(addprefix -pkg:, $(packages)) $(srcs)
+ 
+ bin/sdb.exe.config: sdb.exe.config
+ 	$(MKDIR) -p bin
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..c6d14b9
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,16 @@
+#!/usr/bin/make -f
+#export DH_VERBOSE=1
+
+override_dh_clean:
+	rm -fr dep/
+
+override_dh_auto_build:
+	mkdir -p dep/
+	dh_auto_build
+	rm bin/Mono.Cecil.Pdb*
+	rm bin/Mono.Cecil.Rocks*
+
+override_dh_auto_test:
+
+%:
+	dh --with cli $@ 
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mono/packages/sdb.git



More information about the Pkg-mono-svn-commits mailing list