[med-svn] [netepi-analysis] 02/13: * Cleanup the package * Builds and installs now

Andreas Tille tille at debian.org
Tue Dec 26 13:49:28 UTC 2017


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

tille pushed a commit to branch master
in repository netepi-analysis.

commit 0dfe4e883ceb098d320596fc7aa65a446fb4235b
Author: Varun Hiremath <varun at debian.org>
Date:   Fri Mar 7 07:20:19 2008 +0000

    * Cleanup the package
    * Builds and installs now
---
 debian/compat                   |  2 +-
 debian/control                  | 78 +++++++++++++++++++----------------
 debian/docs                     |  2 +
 debian/netepi-analysis.examples |  1 +
 debian/netepi-analysis.install  |  1 +
 debian/python-distutils.mk      | 90 -----------------------------------------
 debian/rules                    | 26 +++++++-----
 debian/watch                    |  3 +-
 8 files changed, 64 insertions(+), 139 deletions(-)

diff --git a/debian/compat b/debian/compat
index b8626c4..1e8b314 100644
--- a/debian/compat
+++ b/debian/compat
@@ -1 +1 @@
-4
+6
diff --git a/debian/control b/debian/control
index f7e1de4..333f41d 100644
--- a/debian/control
+++ b/debian/control
@@ -2,56 +2,64 @@ Source: netepi-analysis
 Section: science
 Priority: optional
 Maintainer: Andreas Tille <tille at debian.org>
-Build-Depends: debhelper (>= 4.0.0), cdbs (>= 0.4.30), python-numeric-ext
-Standards-Version: 3.7.2
+Build-Depends: debhelper (>= 6), cdbs (>= 0.4.30), python-numeric-ext,
+ python2.4-dev, python-central
+Build-Depends-Indep: python-egenix-mxdatetime
+Standards-Version: 3.7.3
+XS-Python-Version: current
+Homepage: http://www.netepi.org/
+Vcs-Svn: svn://svn.debian.org/svn/debian-med/trunk/packages/netepi-analysis/trunk/
+Vcs-Browser: http://svn.debian.org/wsvn/debian-med/trunk/packages/netepi-analysis/trunk/?rev=0&sc=0
 
 Package: netepi-analysis
 Architecture: all
-Depends: ${shlibs:Depends}, ${misc:Depends}, python, python-numeric, python-egenix-mxdatetime, python-bsddb3, r-base, python-rpy, xvfb, yapps2
+Depends: ${shlibs:Depends}, ${misc:Depends}, python, python-numeric,
+ python-egenix-mxdatetime, python-bsddb3, r-base, python-rpy, xvfb,
+ yapps2
 Recommends: python-psyco
 Description: network-enabled tools for epidemiology and public health practice
- NetEpi, which is short for "Network-enabled Epidemiology", is a collaborative
- project to create a suite of free, open source software tools for epidemiology
- and public health practice. Anyone with an interest in population health
- epidemiology or public health informatics is encouraged to examine the prototype
- tools and to consider contributing to their further development. Contributions
- which involve formal and/or informal testing of the tools in a wide range of
- circumstances and environments are particularly welcome, as is assistance with
- design, programming and documentation tasks.
+ NetEpi, which is short for "Network-enabled Epidemiology", is a
+ collaborative project to create a suite of free, open source software
+ tools for epidemiology and public health practice. Anyone with an
+ interest in population health epidemiology or public health
+ informatics is encouraged to examine the prototype tools and to
+ consider contributing to their further development. Contributions
+ which involve formal and/or informal testing of the tools in a wide
+ range of circumstances and environments are particularly welcome, as
+ is assistance with design, programming and documentation tasks.
  .
- This is a tool for conducting epidemiological analysis of data sets, both large
- and small, either through a Web browser interface, or via a programmatic
- interface. In many respects it is similar to the analysis facilities included
- in the Epi Info suite, except that NetEpi Analysis is designed to be installed
- on servers and accessed remotely via Web browsers, although it can also be
- installed on individual desktop or laptop computers.
+ This is a tool for conducting epidemiological analysis of data sets,
+ both large and small, either through a Web browser interface, or via
+ a programmatic interface. In many respects it is similar to the
+ analysis facilities included in the Epi Info suite, except that
+ NetEpi Analysis is designed to be installed on servers and accessed
+ remotely via Web browsers, although it can also be installed on
+ individual desktop or laptop computers.
  .
  The software was developed by New South Wales Department of Health.
- .
- Homepage: http://www.netepi.org/
 
 Package: netepi-analysis-web
 Architecture: all
 Depends: netepi-analysis, python-albatross
 Description: network-enabled tools for epidemiology and public health practice
- NetEpi, which is short for "Network-enabled Epidemiology", is a collaborative
- project to create a suite of free, open source software tools for epidemiology
- and public health practice. Anyone with an interest in population health
- epidemiology or public health informatics is encouraged to examine the prototype
- tools and to consider contributing to their further development. Contributions
- which involve formal and/or informal testing of the tools in a wide range of
- circumstances and environments are particularly welcome, as is assistance with
- design, programming and documentation tasks.
+ NetEpi, which is short for "Network-enabled Epidemiology", is a
+ collaborative project to create a suite of free, open source software
+ tools for epidemiology and public health practice. Anyone with an
+ interest in population health epidemiology or public health
+ informatics is encouraged to examine the prototype tools and to
+ consider contributing to their further development. Contributions
+ which involve formal and/or informal testing of the tools in a wide
+ range of circumstances and environments are particularly welcome, as
+ is assistance with design, programming and documentation tasks.
  .
- This is a tool for conducting epidemiological analysis of data sets, both large
- and small, either through a Web browser interface, or via a programmatic
- interface. In many respects it is similar to the analysis facilities included
- in the Epi Info suite, except that NetEpi Analysis is designed to be installed
- on servers and accessed remotely via Web browsers, although it can also be
- installed on individual desktop or laptop computers.
+ This is a tool for conducting epidemiological analysis of data sets,
+ both large and small, either through a Web browser interface, or via
+ a programmatic interface. In many respects it is similar to the
+ analysis facilities included in the Epi Info suite, except that
+ NetEpi Analysis is designed to be installed on servers and accessed
+ remotely via Web browsers, although it can also be installed on
+ individual desktop or laptop computers.
  .
  The software was developed by New South Wales Department of Health.
  .
- Homepage: http://www.netepi.org/
- .
  This package contains the web interface to NetEpi Analysis
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 0000000..206cb2c
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1,2 @@
+docs/README.searchabletext
+README
diff --git a/debian/netepi-analysis.examples b/debian/netepi-analysis.examples
new file mode 100644
index 0000000..1549b67
--- /dev/null
+++ b/debian/netepi-analysis.examples
@@ -0,0 +1 @@
+demo
diff --git a/debian/netepi-analysis.install b/debian/netepi-analysis.install
new file mode 100644
index 0000000..dd95e40
--- /dev/null
+++ b/debian/netepi-analysis.install
@@ -0,0 +1 @@
+debian/tmp/*
diff --git a/debian/python-distutils.mk b/debian/python-distutils.mk
deleted file mode 100644
index 8b82af8..0000000
--- a/debian/python-distutils.mk
+++ /dev/null
@@ -1,90 +0,0 @@
-# -*- mode: makefile; coding: utf-8 -*-
-# Copyright © 2003 Colin Walters <walters at debian.org>
-# Description: configure, compile, binary, and clean Python libraries and programs
-#  This class works for Python packages which use the Python
-#  "distutils".  Note that optionally it can also use the
-#  dh_python program which does some nice stuff.  See
-#  the manual page for that program for more information.
-#
-# This program 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, or (at
-# your option) any later version.
-#
-# This program 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, write to the Free Software
-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
-# 02111-1307 USA.
-
-
-ifndef _cdbs_bootstrap
-_cdbs_scripts_path ?= /usr/lib/cdbs
-_cdbs_rules_path ?= /usr/share/cdbs/1/rules
-_cdbs_class_path ?= /usr/share/cdbs/1/class
-endif
-
-ifndef _cdbs_class_python_distutils
-_cdbs_class_python_distutils := 1
-
-include $(_cdbs_class_path)/langcore.mk$(_cdbs_makefile_suffix)
-
-DEB_PYTHON_COMPILE_VERSION = 
-
-DEB_PYTHON_VERSIONS = 2.1 2.2 2.3 2.4
-
-DEB_PYTHON_SETUP_CMD = setup.py
-DEB_PYTHON_CLEAN_ARGS = -a
-DEB_PYTHON_BUILD_ARGS = --build-base="$(DEB_BUILDDIR)/build"
-DEB_PYTHON_INSTALL_ARGS_ALL = --no-compile -O0
-
-# make: *** No rule to make target `voodoo'.  Stop.
-DEB_PYTHON_REAL_LIB_PACKAGES := $(strip $(filter $(patsubst %,python%%,$(DEB_PYTHON_VERSIONS)),$(DEB_ALL_PACKAGES)))
-# If no versioned python library packages found, grab all simpler ones
-ifeq (,$(DEB_PYTHON_REAL_LIB_PACKAGES))
-DEB_PYTHON_SIMPLE_PACKAGES := $(strip $(filter python-%,$(DEB_ALL_PACKAGES)))
-endif
-
-cdbs_python_ver = $(filter-out -%,$(subst -, -,$(patsubst install/python%,%,$@)))
-
-common-build-arch common-build-indep:: common-build-impl
-common-build-impl::
-	echo "DEBUG: common-build-impl on $(DEB_BUILD_ARCH)"
-	cd $(DEB_SRCDIR)/soomext && python$(DEB_PYTHON_COMPILE_VERSION) $(DEB_PYTHON_SETUP_CMD) build $(DEB_PYTHON_BUILD_ARGS)
-	if [ "$(DEB_BUILD_ARCH)" = "i386" ] ; then \
-	    ln -s lib.linux-i686-$(DEB_PYTHON_COMPILE_VERSION) soomext/build/lib.linux-$(DEB_BUILD_ARCH)-$(DEB_PYTHON_COMPILE_VERSION) ; \
-	fi
-	echo "DEBUG: now normal common-build-impl"
-	cd $(DEB_SRCDIR) && PYTHONPATH=soomext/build/lib.linux-$(DEB_BUILD_ARCH)-$(DEB_PYTHON_COMPILE_VERSION) python$(DEB_PYTHON_COMPILE_VERSION) $(DEB_PYTHON_SETUP_CMD) build $(DEB_PYTHON_BUILD_ARGS)
-
-clean::
-# Ignore errors from this rule.  In a tarball build, the file
-# may not exist.
-	-python$(DEB_PYTHON_COMPILE_VERSION) $(DEB_PYTHON_SETUP_CMD) clean $(DEB_PYTHON_CLEAN_ARGS)
-
-# See if this package doesn't appear to need to be compiled by multiple
-# Python versions.
-ifeq (,$(DEB_PYTHON_REAL_LIB_PACKAGES))
-common-install-arch common-install-indep:: common-install-impl
-common-install-impl::
-	cd $(DEB_SRCDIR) && /usr/bin/python$(DEB_PYTHON_COMPILE_VERSION) $(DEB_PYTHON_SETUP_CMD) install --root=$(DEB_DESTDIR) $(DEB_PYTHON_INSTALL_ARGS_ALL) $(DEB_PYTHON_INSTALL_ARGS_$(cdbs_curpkg)
-else
-$(patsubst %,install/%,$(DEB_PYTHON_REAL_LIB_PACKAGES)) :: install/% :
-	cd $(DEB_SRCDIR) && /usr/bin/python$(cdbs_python_ver) $(DEB_PYTHON_SETUP_CMD) install --root=debian/$(cdbs_curpkg) $(DEB_PYTHON_INSTALL_ARGS_ALL) $(DEB_PYTHON_INSTALL_ARGS_$(cdbs_curpkg)
-endif
-
-$(patsubst %,install/%,$(DEB_PYTHON_SIMPLE_PACKAGES)) :: install/% :
-	cd $(DEB_SRCDIR) && python $(DEB_PYTHON_SETUP_CMD) install --root="debian/$(cdbs_curpkg)" $(DEB_PYTHON_INSTALL_ARGS_ALL) $(DEB_PYTHON_INSTALL_ARGS_$(cdbs_curpkg)
-
-# This class can optionally utilize debhelper's "dh_python" command.  Just
-# be sure you include debhelper.mk before including this file.
-ifdef _cdbs_rules_debhelper
-$(patsubst %,binary-install/%,$(DEB_PACKAGES)) :: binary-install/%:
-	dh_python -p$(cdbs_curpkg)
-endif
-
-endif
diff --git a/debian/rules b/debian/rules
index 5d9df61..865600a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,19 +1,23 @@
 #!/usr/bin/make -f
 
+DEB_PYTHON_SYSTEM:= pycentral
+
 include /usr/share/cdbs/1/rules/debhelper.mk
-# include /usr/share/cdbs/1/rules/simple-patchsys.mk
-# include /usr/share/cdbs/1/class/python-distutils.mk
-include debian/python-distutils.mk
+include /usr/share/cdbs/1/class/python-distutils.mk
 
-DEB_PYTHON_COMPILE_VERSION = 2.3
+# Add soomext build dir to PYTHONPATH; required for building other modules.
+export PYTHONPATH=$(CURDIR)/soomext/build/build-modules/
 
-# Workaround for #252134
 clean::
-	python$(DEB_PYTHON_COMPILE_VERSION) $(DEB_PYTHON_SETUP_CMD) clean $(DEB_PYTHON_CLEAN_ARGS) || rm -f SOOMv0/*.pyc
-	rm -rf soomext/build
+	$(RM) -r soomext/build
+
+makebuilddir::
+	(cd soomext; \
+	python setup.py build --build-platlib build/build-modules; \
+	python setup.py install --root=debian/netepi-analysis/)
 
-# first build soomext
-common-install-impl::
-	echo common-install-impl
-	cd $(DEB_SRCDIR)/soomext && /usr/bin/python$(DEB_PYTHON_COMPILE_VERSION) $(DEB_PYTHON_SETUP_CMD) install --root=$(DEB_DESTDIR) $(DEB_PYTHON_INSTALL_ARGS_ALL) $(DEB_PYTHON_INSTALL_ARGS_$(cdbs_curpkg)
+install/netepi-analysis-web::
+	(cd web; python install.py install_prefix=$(CURDIR)/debian/netepi-analysis-web)
 
+get-orig-source:
+	-uscan --upstream-version 0 --rename
diff --git a/debian/watch b/debian/watch
index 7cc520a..ac6d137 100644
--- a/debian/watch
+++ b/debian/watch
@@ -5,5 +5,4 @@ http://sf.net/netepi/NetEpi-Analysis-(.*)\.tar\.gz
 
 ## direct scan works as well
 # http://heanet.dl.sourceforge.net/sourceforge/netepi NetEpi-Analysis-(.*)\.tar\.gz
-# http://heanet.dl.sourceforge.net/sourceforge/netepi/NetEpi-Analysis-(.*)\.tar\.gz   
-
+# http://heanet.dl.sourceforge.net/sourceforge/netepi/NetEpi-Analysis-(.*)\.tar\.gz

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/netepi-analysis.git



More information about the debian-med-commit mailing list