[Python-modules-commits] r3959 - in packages/enthought-traits-ui/trunk/debian (3 files)
varun-guest at users.alioth.debian.org
varun-guest at users.alioth.debian.org
Sun Dec 16 12:58:54 UTC 2007
Date: Sunday, December 16, 2007 @ 12:58:53
Author: varun-guest
Revision: 3959
* Add debian/orig-tar.sh script to create orig.tar.gz
Added:
packages/enthought-traits-ui/trunk/debian/orig-tar.sh
Modified:
packages/enthought-traits-ui/trunk/debian/changelog
packages/enthought-traits-ui/trunk/debian/rules
Modified: packages/enthought-traits-ui/trunk/debian/changelog
===================================================================
--- packages/enthought-traits-ui/trunk/debian/changelog 2007-12-16 12:57:31 UTC (rev 3958)
+++ packages/enthought-traits-ui/trunk/debian/changelog 2007-12-16 12:58:53 UTC (rev 3959)
@@ -10,6 +10,7 @@
+ Depends: fix python-ets-traits version
+ Set architecture to all
* Install docs and examples
+ * Add debain/orig-tar.sh script to create orig.tar.gz
-- Varun Hiremath <varunhiremath at gmail.com> Sat, 08 Dec 2007 00:36:52 +0530
Added: packages/enthought-traits-ui/trunk/debian/orig-tar.sh
===================================================================
--- packages/enthought-traits-ui/trunk/debian/orig-tar.sh (rev 0)
+++ packages/enthought-traits-ui/trunk/debian/orig-tar.sh 2007-12-16 12:58:53 UTC (rev 3959)
@@ -0,0 +1,43 @@
+#!/bin/sh -e
+
+# $1 version
+TAR=../enthought-traits-ui_$1.orig.tar.gz
+DIR=enthought-traits-ui_$1.orig
+
+# package list
+PACKAGE_LIST="
+enthought.developer-2.0.1b1.tar.gz
+enthought.io-2.0.1b1.tar.gz
+enthought.pyface-2.0.1b1.tar.gz
+enthought.naming-2.0.1b1.tar.gz
+enthought.resource-2.0.1b1.tar.gz
+enthought.util-2.0.1b2.tar.gz
+enthought.type_manager-2.0.1b1.tar.gz
+enthought.sweet_pickle-2.0.1b1.tar.gz
+enthought.traits.ui.wx-2.0.1b1.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/enthought-traits-ui/trunk/debian/orig-tar.sh
___________________________________________________________________
Name: svn:executable
+ *
Modified: packages/enthought-traits-ui/trunk/debian/rules
===================================================================
--- packages/enthought-traits-ui/trunk/debian/rules 2007-12-16 12:57:31 UTC (rev 3958)
+++ packages/enthought-traits-ui/trunk/debian/rules 2007-12-16 12:58:53 UTC (rev 3959)
@@ -10,12 +10,15 @@
DEB_PYTHON_INSTALL_ARGS_ALL += --single-version-externally-managed
SITE_PACKAGES=$(DEB_DESTDIR)usr/share/pycentral/python-enthought-traits-ui/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-py:
for file in $(CURDIR)/*/setup.py; do \
DIR=`dirname $$file`; \
@@ -27,5 +30,4 @@
rmdir $(DEB_DESTDIR)/usr/lib
get-orig-source:
- wget http://code.enthought.com/downloads/source/ets2.6/enthought.traits%5bui%5d.tar.gz -O \
- traits-ui_$(DEB_UPSTREAM_VERSION).orig.tar.gz
+ sh debian/orig-tar.sh $(DEB_UPSTREAM_VERSION)
More information about the Python-modules-commits
mailing list