[Python-apps-commits] r424 - in packages/mayavi2/trunk/debian (4 files)

varun-guest at users.alioth.debian.org varun-guest at users.alioth.debian.org
Sun Dec 16 08:04:08 UTC 2007


    Date: Sunday, December 16, 2007 @ 08:04:07
  Author: varun-guest
Revision: 424

* Add debian/orig-tar,sh to create orig.tar.gz
* Cleanup debian/rules.

Added:
  packages/mayavi2/trunk/debian/orig-tar.sh
Modified:
  packages/mayavi2/trunk/debian/changelog
  packages/mayavi2/trunk/debian/control
  packages/mayavi2/trunk/debian/rules

Modified: packages/mayavi2/trunk/debian/changelog
===================================================================
--- packages/mayavi2/trunk/debian/changelog	2007-12-15 16:51:38 UTC (rev 423)
+++ packages/mayavi2/trunk/debian/changelog	2007-12-16 08:04:07 UTC (rev 424)
@@ -11,6 +11,7 @@
     + install using setup files.
   * Install upstream provided manpage.
   * Install examples and docs.
+  * Add debain/orig-tar.sh to create orig.tar.gz
 
   [ Kumar Appaiah ]
   * Build-Depend on python-vtk (>= 5.0.3-1) instead of 5.0.3-1+b1.

Modified: packages/mayavi2/trunk/debian/control
===================================================================
--- packages/mayavi2/trunk/debian/control	2007-12-15 16:51:38 UTC (rev 423)
+++ packages/mayavi2/trunk/debian/control	2007-12-16 08:04:07 UTC (rev 424)
@@ -13,7 +13,8 @@
 
 Package: mayavi2
 Architecture: any
-Depends: ${python:Depends}, python-enthought-traits, python-enthought-traits-ui
+Depends: ${python:Depends}, python-enthought-traits,
+ python-enthought-traits-ui, python-wxgtk2.6
 XB-Python-Version: ${python:Versions}
 Description: A scientific visualization package for 2-D and 3-D data
  MayaVi2 is a cross-platform tool for 2-D and 3-D scientific data

Added: packages/mayavi2/trunk/debian/orig-tar.sh
===================================================================
--- packages/mayavi2/trunk/debian/orig-tar.sh	                        (rev 0)
+++ packages/mayavi2/trunk/debian/orig-tar.sh	2007-12-16 08:04:07 UTC (rev 424)
@@ -0,0 +1,44 @@
+#!/bin/sh -e
+
+# $1 version
+TAR=../mayavi2_$1.orig.tar.gz
+DIR=mayavi2_$1.orig
+
+# package list
+PACKAGE_LIST="
+enthought.debug-2.0.1b1.tar.gz
+enthought.envisage-2.0.1b1.tar.gz
+enthought.logger-2.0.1b1.tar.gz
+enthought.mayavi-2.0.2a1.tar.gz
+enthought.persistence-2.0.1b2.tar.gz
+enthought.plugins.debug-2.0.1b1.tar.gz
+enthought.plugins.python_shell-2.0.1b1.tar.gz
+enthought.plugins.refresh_code-2.0.1b1.tar.gz
+enthought.plugins.text_editor-2.0.1b1.tar.gz
+enthought.tvtk-2.0.0b2.tar.gz
+"
+
+# download the tarballs
+REPO=http://code.enthought.com/enstaller/eggs/source/
+mkdir $DIR
+(cd $DIR; \
+for package in $PACKAGE_LIST
+do
+    wget $REPO/$package;
+    name=`echo $package | sed -e 's/-.*//'`;
+    dir=`echo $package | sed -e 's/\.tar.*//'`;
+    tar zxf $package;
+    mv $dir $name;
+    rm $package;
+done )
+
+# create the tarball
+GZIP=--best tar -c -z -f $TAR $DIR
+rm -rf $DIR
+
+# move to directory 'tarballs'
+if [ -r .svn/deb-layout ]; then
+  . .svn/deb-layout
+  mv $TAR $origDir
+  echo "moved $TAR to $origDir"
+fi


Property changes on: packages/mayavi2/trunk/debian/orig-tar.sh
___________________________________________________________________
Name: svn:executable
   + *

Modified: packages/mayavi2/trunk/debian/rules
===================================================================
--- packages/mayavi2/trunk/debian/rules	2007-12-15 16:51:38 UTC (rev 423)
+++ packages/mayavi2/trunk/debian/rules	2007-12-16 08:04:07 UTC (rev 424)
@@ -10,22 +10,23 @@
 DEB_PYTHON_INSTALL_ARGS_ALL 	+= --single-version-externally-managed
 SITE_PACKAGES=$(DEB_DESTDIR)usr/share/pycentral/mayavi2/site-packages
 
-python-build-stamp-%:
-	-./build.sh
-
 clean::
 	find -type d | grep build$ | xargs $(RM) -r
 
+python-build-stamp-%:
+	for file in $(CURDIR)/*/setup.py; do \
+	  DIR=`dirname $$file`; \
+	  cd $$DIR && python$* setup.py build; \
+	done
+
 python-install-%:
 	for file in $(CURDIR)/*/setup.py; do \
 	  DIR=`dirname $$file`; \
-	  cd $$DIR && python$* setup.py install --root $(CURDIR)/debian/mayavi2; \
-	done;
-	mkdir -p $(DEB_DESTDIR)usr/bin
-	$(RM) $(DEB_DESTDIR)usr/bin/mayavi2
-	ln -s /usr/lib/python2.4/site-packages/enthought/mayavi/scripts/mayavi2 $(DEB_DESTDIR)usr/bin/mayavi2
+	  cd $$DIR && python$* setup.py install --root $(DEB_DESTDIR); \
+	done
 
 binary-predeb/mayavi2::
+	dh_link /usr/lib/python2.4/site-packages/enthought/mayavi/scripts/mayavi2 /usr/bin/mayavi2
 	find $(SITE_PACKAGES) -type f | grep nspkg.pth$ | xargs $(RM)
 	sed -i '/^#!/d' $(SITE_PACKAGES)/enthought/tvtk/setup.py
 	sed -i '/^#!/d' $(SITE_PACKAGES)/enthought/mayavi/scripts/mayavi2.py
@@ -33,5 +34,4 @@
 	$(RM) $(DEB_DESTDIR)usr/share/doc/mayavi2/docs/mayavi/mayavi2.man*
 
 get-orig-source:
-	wget http://code.enthought.com/downloads/source/ets2.6/enthought.mayavi.tar.gz -O \
-		mayavi2_$(DEB_UPSTREAM_VERSION).orig.tar.gz
+	sh debian/orig-tar.sh $(DEB_UPSTREAM_VERSION)




More information about the Python-apps-commits mailing list