Commit 5a28fda8 authored by Ritesh Sarraf's avatar Ritesh Sarraf

Add debian/ work

parent 3971597b
seascope (0.6.1.hgr112-1) experimental; urgency=low
* Initial release. (Closes: #684161)
-- Ritesh Raj Sarraf <rrs@debian.org> Thu, 09 Aug 2012 14:07:52 +0530
Source: seascope
Priority: optional
Section: python
Maintainer: Ritesh Raj Sarraf <rrs@debian.org>
Build-Depends: debhelper (>= 7.0.50~), python (>= 2.6.6-3~), python-setuptools
Standards-Version: 3.9.2
Homepage: http://code.google.com/p/seascope/
Vcs-Git: git://git.debian.org/collab-maint/seascope.git
Vcs-Browser: http://git.debian.org/?p=collab-maint/seascope.git;a=summary
Package: seascope
Architecture: all
Depends: ${python:Depends}, ${misc:Depends}, python-qt4, python-qscintilla2
Provides: ${python:Provides}
Recommends: exuberant-ctags, id-utils, cscope
Description: source code navigation tool
Seascope is a graphical source code browsing tool with cross reference
functionality support using the following backends:
* cscope
* idutils
* ctags
.
Seascope is written in Python and is supported on all major operating
system platforms
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: seascope
Upstream-Contact: Anil Kumar <anil.omkar@gmail.com>
Source: http://code.google.com/p/seascope
Files: *
Copyright: 2010 - 2012 Anil Kumar <anil.omkar@gmail.com>
License: BSD
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. The name of the author may not be used to endorse or promote products
derived from this software without specific prior written permission.
.
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Files: debian/*
Copyright: 2012 Ritesh Raj Sarraf <rrs@debian.org>
License: GPL-3+
License: GPL-3+
This package is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
.
This package is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>
.
On Debian systems, the complete text of the GNU General
Public License version 3 can be found in "/usr/share/common-licenses/GPL-3".
?package(seascope):\
needs="X11"\
section="Applications/Programming"\
title="Seascope"\
icon32x32="/usr/share/pixmaps/seascope.xpm"\
command="/usr/bin/seascope"
#!/usr/bin/make -f
DEB_UPSTREAM_VERSION := $(shell dpkg-parsechangelog | sed -rne 's,^Version: ([^-]+).*,\1,p')
PKG_DIR := seascope-$(DEB_UPSTREAM_VERSION)
PACKAGE := seascope
TMPDIR := $(CURDIR)/debian/$(PACKAGE)
get-orig-source:
uscan --force-download --rename --repack --download-version=$(DEB_UPSTREAM_VERSION) --destdir=.
%:
dh "$@" --with python2
override_dh_auto_build:
# Do nothing
touch $@
override_dh_auto_install:
test -e debian/control
test 0 = "`id -u`" || (echo need root privileges; exit 1)
install -d --mode=0755 $(TMPDIR)
install -d --mode=0755 $(TMPDIR)/usr/bin
install -d --mode=0755 $(TMPDIR)/usr/share/pixmaps
install -d --mode=0755 $(TMPDIR)/usr/share/pyshared/$(PACKAGE)
install --mode=0755 debian/seascope.sh $(TMPDIR)/usr/bin/seascope
install --mode=0644 debian/seascope.xpm $(TMPDIR)/usr/share/pixmaps/seascope.xpm
cp -a src/backend src/icons src/DialogManager.py src/tools src/ui src/view src/Seascope.py $(TMPDIR)/usr/share/pyshared/$(PACKAGE)
dh_install -s
#!/bin/sh
# seascope workaround for binary
test -d /usr/share/pyshared/seascope || exit 1;
cd /usr/share/pyshared/seascope;
python Seascope.py
/* XPM */
static char * seascope_xpm[] = {
"32 32 2 1",
" c None",
". c #000000",
" .. ",
" .......... ",
" ............ ",
" .............. ",
" ..... ..... ",
" ..... ... ..... ",
" ..... ....... ..... ",
" .... .. .. .... ",
" ... .. ... ",
" ... ... ... ",
".... ..... .... ",
".... .... .... ",
" ... ... ... ",
" ... .. .. ... ",
" .... .. .. .... ",
" .... ....... ..... ",
" .... ..... ..... ",
" ..... ...... ",
" .................. ",
" ................. ",
" .......... ..... ",
" .... ..... ",
" ..... ",
" ..... ",
" ..... ",
" ..... ",
" ..... ",
" ..... ",
" ... ",
" . ",
" ",
" "};
# Compulsory line, this is a version 3 file
version=3
#http://argparse.googlecode.com/files/argparse-(\d\.\d)\.zip
opts=\
downloadurlmangle=s|.*[?]name=(.*?)&.*|http://seascope.googlecode.com/files/$1|,\
filenamemangle=s|[^/]+[?]name=(.*?)&.*|$1| \
http://code.google.com/p/seascope/downloads/detail[?]name=seascope-([0-9.]+)\.tar\.gz.*
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment