[Python-modules-commits] r3958 - in packages/enthought-traits/trunk/debian (3 files)
varun-guest at users.alioth.debian.org
varun-guest at users.alioth.debian.org
Sun Dec 16 12:57:32 UTC 2007
Date: Sunday, December 16, 2007 @ 12:57:31
Author: varun-guest
Revision: 3958
* Add debain/orig-tar.sh script to create orig.tar.gz
* Cleanup debian/rules
Added:
packages/enthought-traits/trunk/debian/orig-tar.sh
Modified:
packages/enthought-traits/trunk/debian/changelog
packages/enthought-traits/trunk/debian/rules
Modified: packages/enthought-traits/trunk/debian/changelog
===================================================================
--- packages/enthought-traits/trunk/debian/changelog 2007-12-16 08:05:00 UTC (rev 3957)
+++ packages/enthought-traits/trunk/debian/changelog 2007-12-16 12:57:31 UTC (rev 3958)
@@ -5,6 +5,7 @@
+ add clean target
+ install using setup files.
* Install examples and docs.
+ * Add debain/orig-tar.sh script to create orig.tar.gz
-- Varun Hiremath <varunhiremath at gmail.com> Sat, 08 Dec 2007 00:14:12 +0530
Added: packages/enthought-traits/trunk/debian/orig-tar.sh
===================================================================
--- packages/enthought-traits/trunk/debian/orig-tar.sh (rev 0)
+++ packages/enthought-traits/trunk/debian/orig-tar.sh 2007-12-16 12:57:31 UTC (rev 3958)
@@ -0,0 +1,36 @@
+#!/bin/sh -e
+
+# $1 version
+TAR=../enthought-traits_$1.orig.tar.gz
+DIR=enthought-traits_$1.orig
+
+# package list
+PACKAGE_LIST="
+enthought.etsconfig-2.0.1b1.tar.gz
+enthought.traits-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/trunk/debian/orig-tar.sh
___________________________________________________________________
Name: svn:executable
+ *
Modified: packages/enthought-traits/trunk/debian/rules
===================================================================
--- packages/enthought-traits/trunk/debian/rules 2007-12-16 08:05:00 UTC (rev 3957)
+++ packages/enthought-traits/trunk/debian/rules 2007-12-16 12:57:31 UTC (rev 3958)
@@ -10,17 +10,20 @@
DEB_PYTHON_INSTALL_ARGS_ALL += --single-version-externally-managed
SITE_PACKAGES=$(DEB_DESTDIR)usr/share/pycentral/python-enthought-traits/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 $(DEB_DESTDIR); \
- done;
+ done
binary-predeb/python-enthought-traits::
find $(SITE_PACKAGES) -type f | grep nspkg.pth$ | xargs $(RM)
@@ -29,5 +32,4 @@
touch $(SITE_PACKAGES)/enthought/traits/ui/__init__.py
get-orig-source:
- wget http://code.enthought.com/downloads/source/ets2.6/enthought.traits.tar.gz -O \
- traits_$(DEB_UPSTREAM_VERSION).orig.tar.gz
+ sh debian/orig-tar.sh $(DEB_UPSTREAM_VERSION)
More information about the Python-modules-commits
mailing list