[Python-apps-commits] r832 - in packages/harvestman/trunk/debian (4 files)

morph-guest at users.alioth.debian.org morph-guest at users.alioth.debian.org
Sat Mar 22 15:59:07 UTC 2008


    Date: Saturday, March 22, 2008 @ 15:59:05
  Author: morph-guest
Revision: 832

replacing bin script

Added:
  packages/harvestman/trunk/debian/bin/
  packages/harvestman/trunk/debian/bin/harvestman
Modified:
  packages/harvestman/trunk/debian/changelog
  packages/harvestman/trunk/debian/rules

Added: packages/harvestman/trunk/debian/bin/harvestman
===================================================================
--- packages/harvestman/trunk/debian/bin/harvestman	                        (rev 0)
+++ packages/harvestman/trunk/debian/bin/harvestman	2008-03-22 15:59:05 UTC (rev 832)
@@ -0,0 +1,5 @@
+#!/usr/bin/python
+
+from HarvestMan.harvestman import harvestMan
+h = harvestMan()
+h.main()

Modified: packages/harvestman/trunk/debian/changelog
===================================================================
--- packages/harvestman/trunk/debian/changelog	2008-03-22 11:10:08 UTC (rev 831)
+++ packages/harvestman/trunk/debian/changelog	2008-03-22 15:59:05 UTC (rev 832)
@@ -12,11 +12,15 @@
     - bump versioned build-dep on python-central to >= 0.6
   * debian/rules
     - support new directories structure of python-central (Closes: #472050)
+    - removed build-stamp
+    - just using python since it always links to default Python
   * debian/copyright
     - added upstream author notice
     - added copyright notice
     - indented license with 4 spaces
     - added copyright notices for files different from main one
+  * debian/bin/harvestman
+    - added as bin wrapper to harvestman
 
  -- Kumar Appaiah <akumar at ee.iitm.ac.in>  Mon, 08 Oct 2007 20:39:21 +0200
 

Modified: packages/harvestman/trunk/debian/rules
===================================================================
--- packages/harvestman/trunk/debian/rules	2008-03-22 11:10:08 UTC (rev 831)
+++ packages/harvestman/trunk/debian/rules	2008-03-22 15:59:05 UTC (rev 832)
@@ -6,20 +6,11 @@
 # For Debian-specific patches:
 include /usr/share/dpatch/dpatch.make
 
-# The versions of python currently supported
-PYTHON=$(shell pyversions -r)
-
 # The default Python version
 PYTHON_DEFAULT=$(shell pyversions -d)
 
-build: build-stamp
+build:
 
-build-stamp: patch-stamp
-	dh_testdir
-	touch $@
-	$(PYTHON) setup.py build
-	touch $@
-
 clean: unpatch
 	dh_testdir
 	dh_testroot
@@ -28,17 +19,16 @@
 	find -name '*.py[co]' -exec rm -f {} \;
 	dh_clean
 
-install: build install-$(PYTHON)
-
-install-$(PYTHON):
+install: build
 	dh_testdir
 	dh_testroot
 	dh_clean -k
-	$(PYTHON) setup.py install --root `pwd`/debian/harvestman/
-	find ./debian/harvestman/usr/ -name '*\.py' | xargs sed -i -e '1 s|^#\!.*python.*|#!/usr/bin/$(PYTHON)|'
-	mkdir -p ./debian/harvestman/usr/bin
-	echo -e "#!/bin/sh\nexec /usr/bin/$(PYTHON_DEFAULT) \
-	/usr/lib/$(PYTHON_DEFAULT)/site-packages/HarvestMan/harvestman.py \"\$$@\"" > ./debian/harvestman/usr/bin/harvestman
+	python setup.py install --root `pwd`/debian/harvestman/
+	find ./debian/harvestman/usr/ -name '*\.py' | xargs sed -i -e '1 s|^#\!.*python.*|#!/usr/bin/python|'
+	dh_install debian/bin/harvestman   /usr/bin/
+	### echo -e "#!/bin/sh\nexec /usr/bin/python \
+	### /usr/lib/)/site-packages/HarvestMan/harvestman.py \"\$$@\"" > ./debian/harvestman/usr/bin/harvestman
+
 # Build architecture-independent files here.
 # Pass -i to all debhelper commands in this target to reduce clutter.
 binary-indep: build install




More information about the Python-apps-commits mailing list